diff --git a/sdk/core/azure-core-test/src/main/java/com/azure/core/test/http/PlaybackClient.java b/sdk/core/azure-core-test/src/main/java/com/azure/core/test/http/PlaybackClient.java index fc3641a950174..cf75085a00e9f 100644 --- a/sdk/core/azure-core-test/src/main/java/com/azure/core/test/http/PlaybackClient.java +++ b/sdk/core/azure-core-test/src/main/java/com/azure/core/test/http/PlaybackClient.java @@ -7,13 +7,14 @@ import com.azure.core.http.HttpRequest; import com.azure.core.http.HttpResponse; import com.azure.core.http.ProxyOptions; +import com.azure.core.implementation.http.UrlBuilder; import com.azure.core.test.models.NetworkCallRecord; import com.azure.core.test.models.RecordedData; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; +import com.azure.core.util.logging.ClientLogger; +import reactor.core.Exceptions; import reactor.core.publisher.Mono; -import java.net.URI; +import java.io.ByteArrayOutputStream; import java.nio.charset.StandardCharsets; import java.util.HashMap; import java.util.Map; @@ -25,14 +26,14 @@ * HTTP client that plays back {@link NetworkCallRecord NetworkCallRecords}. */ public final class PlaybackClient implements HttpClient { - private final Logger logger = LoggerFactory.getLogger(PlaybackClient.class); + private final ClientLogger logger = new ClientLogger(PlaybackClient.class); private final AtomicInteger count = new AtomicInteger(0); private final Map textReplacementRules; private final RecordedData recordedData; /** - * Creates a PlaybackClient that replays network calls from {@code recordedData} and replaces - * {@link NetworkCallRecord#response() response text} for any rules specified in {@code textReplacementRules}. + * Creates a PlaybackClient that replays network calls from {@code recordedData} and replaces {@link + * NetworkCallRecord#response() response text} for any rules specified in {@code textReplacementRules}. * * @param recordedData The data to playback. * @param textReplacementRules A set of rules to replace text in network call responses. @@ -88,14 +89,16 @@ private Mono playbackHttpResponse(final HttpRequest request) { count.incrementAndGet(); if (networkCallRecord == null) { - if (logger.isWarnEnabled()) { - logger.warn("NOT FOUND - Method: {} URL: {}", incomingMethod, incomingUrl); - logger.warn("Records requested: {}.", count); - } + logger.warning("NOT FOUND - Method: {} URL: {}", incomingMethod, incomingUrl); + logger.warning("Records requested: {}.", count); return Mono.error(new IllegalStateException("==> Unexpected request: " + incomingMethod + " " + incomingUrl)); } + if (networkCallRecord.exception() != null) { + throw logger.logExceptionAsWarning(Exceptions.propagate(networkCallRecord.exception().get())); + } + int recordStatusCode = Integer.parseInt(networkCallRecord.response().get("StatusCode")); HttpHeaders headers = new HttpHeaders(); @@ -112,7 +115,7 @@ private Mono playbackHttpResponse(final HttpRequest request) { } String rawBody = networkCallRecord.response().get("Body"); - byte[] bytes = new byte[0]; + byte[] bytes = null; if (rawBody != null) { for (Map.Entry rule : textReplacementRules.entrySet()) { @@ -121,7 +124,20 @@ private Mono playbackHttpResponse(final HttpRequest request) { } } - bytes = rawBody.getBytes(StandardCharsets.UTF_8); + String contentType = networkCallRecord.response().get("Content-Type"); + + // octet-stream's are written to disk using Arrays.toString() which creates an output such as "[12, -1]". + if (contentType != null && contentType.equalsIgnoreCase("application/octet-stream")) { + ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); + for (String piece : rawBody.substring(1, rawBody.length() - 1).split(", ")) { + outputStream.write(Byte.parseByte(piece)); + } + + bytes = outputStream.toByteArray(); + } else { + bytes = rawBody.getBytes(StandardCharsets.UTF_8); + } + if (bytes.length > 0) { headers.put("Content-Length", String.valueOf(bytes.length)); } @@ -141,7 +157,12 @@ private String applyReplacementRule(String text) { } private static String removeHost(String url) { - URI uri = URI.create(url); - return String.format("%s?%s", uri.getPath(), uri.getQuery()); + UrlBuilder urlBuilder = UrlBuilder.parse(url); + + if (urlBuilder.query().containsKey("sig")) { + urlBuilder.setQueryParameter("sig", "REDACTED"); + } + + return String.format("%s%s", urlBuilder.path(), urlBuilder.queryString()); } } diff --git a/sdk/core/azure-core-test/src/main/java/com/azure/core/test/models/NetworkCallError.java b/sdk/core/azure-core-test/src/main/java/com/azure/core/test/models/NetworkCallError.java new file mode 100644 index 0000000000000..a9bd6025550fa --- /dev/null +++ b/sdk/core/azure-core-test/src/main/java/com/azure/core/test/models/NetworkCallError.java @@ -0,0 +1,74 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.core.test.models; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.net.UnknownHostException; + +/** + * This class represents a caught throwable during a network call. It is used to serialize exceptions that were thrown + * during the pipeline and deserialize them back into their actual throwable class when running in playback mode. + */ +public class NetworkCallError { + @JsonProperty("Throwable") + private Throwable throwable; + + @JsonProperty("ClassName") + private String className; + + /** + * Empty constructor used by deserialization. + */ + public NetworkCallError() { + } + + /** + * Constructs the class setting the throwable and its class name. + * + * @param throwable Throwable thrown during a network call. + */ + public NetworkCallError(Throwable throwable) { + this.throwable = throwable; + this.className = throwable.getClass().getName(); + } + + /** + * @return the thrown throwable as the class it was thrown as by converting is using its class name. + */ + public Throwable get() { + switch (className) { + case "java.lang.NullPointerException": + return new NullPointerException(throwable.getMessage()); + + case "java.lang.IndexOutOfBoundsException": + return new IndexOutOfBoundsException(throwable.getMessage()); + + case "java.net.UnknownHostException": + return new UnknownHostException(throwable.getMessage()); + + default: + return throwable; + } + } + + /** + * Sets the throwable that was thrown during a network call. + * + * @param throwable Throwable that was thrown. + */ + public void throwable(Throwable throwable) { + this.throwable = throwable; + } + + /** + * Sets the name of the class of the throwable. This is used during deserialization the construct the throwable + * as the actual class that was thrown. + * + * @param className Class name of the throwable. + */ + public void className(String className) { + this.className = className; + } +} diff --git a/sdk/core/azure-core-test/src/main/java/com/azure/core/test/models/NetworkCallRecord.java b/sdk/core/azure-core-test/src/main/java/com/azure/core/test/models/NetworkCallRecord.java index e7a080912a2be..ca6446e591ff8 100644 --- a/sdk/core/azure-core-test/src/main/java/com/azure/core/test/models/NetworkCallRecord.java +++ b/sdk/core/azure-core-test/src/main/java/com/azure/core/test/models/NetworkCallRecord.java @@ -23,6 +23,9 @@ public class NetworkCallRecord { @JsonProperty("Response") private Map response; + @JsonProperty("Exception") + private NetworkCallError exception; + /** * Gets the HTTP method for with this network call * @@ -96,4 +99,22 @@ public Map response() { public void response(Map response) { this.response = response; } + + /** + * Gets the throwable thrown during evaluation of the network call. + * + * @return Throwable thrown during the network call. + */ + public NetworkCallError exception() { + return exception; + } + + /** + * Sets the throwable thrown during evaluation of the network call. + * + * @param exception Throwable thrown during the network call. + */ + public void exception(NetworkCallError exception) { + this.exception = exception; + } } diff --git a/sdk/core/azure-core-test/src/main/java/com/azure/core/test/policy/RecordNetworkCallPolicy.java b/sdk/core/azure-core-test/src/main/java/com/azure/core/test/policy/RecordNetworkCallPolicy.java index 8560dbcbbf06f..0fb90cf536d02 100644 --- a/sdk/core/azure-core-test/src/main/java/com/azure/core/test/policy/RecordNetworkCallPolicy.java +++ b/sdk/core/azure-core-test/src/main/java/com/azure/core/test/policy/RecordNetworkCallPolicy.java @@ -8,6 +8,8 @@ import com.azure.core.http.HttpPipelineNextPolicy; import com.azure.core.http.HttpResponse; import com.azure.core.http.policy.HttpPipelinePolicy; +import com.azure.core.implementation.http.UrlBuilder; +import com.azure.core.test.models.NetworkCallError; import com.azure.core.test.models.NetworkCallRecord; import com.azure.core.test.models.RecordedData; import com.azure.core.util.logging.ClientLogger; @@ -19,9 +21,14 @@ import java.io.IOException; import java.net.HttpURLConnection; import java.nio.charset.StandardCharsets; +import java.util.Arrays; +import java.util.Base64; import java.util.HashMap; import java.util.Map; import java.util.Objects; +import java.util.UUID; +import java.util.regex.Matcher; +import java.util.regex.Pattern; import java.util.zip.GZIPInputStream; /** @@ -30,6 +37,17 @@ */ public class RecordNetworkCallPolicy implements HttpPipelinePolicy { private static final int DEFAULT_BUFFER_LENGTH = 1024; + private static final String CONTENT_TYPE = "Content-Type"; + private static final String CONTENT_ENCODING = "Content-Encoding"; + private static final String X_MS_VERSION = "x-ms-version"; + private static final String USER_AGENT = "User-Agent"; + private static final String STATUS_CODE = "StatusCode"; + private static final String BODY = "Body"; + private static final String SIG = "sig"; + + private static final Pattern DELEGATIONKEY_KEY_PATTERN = Pattern.compile("(?:)(.*)(?:)"); + private static final Pattern DELEGATIONKEY_CLIENTID_PATTERN = Pattern.compile("(?:)(.*)(?:)"); + private static final Pattern DELEGATIONKEY_TENANTID_PATTERN = Pattern.compile("(?:)(.*)(?:)"); private final ClientLogger logger = new ClientLogger(RecordNetworkCallPolicy.class); private final RecordedData recordedData; @@ -49,43 +67,54 @@ public Mono process(HttpPipelineCallContext context, HttpPipelineN final NetworkCallRecord networkCallRecord = new NetworkCallRecord(); Map headers = new HashMap<>(); - if (context.httpRequest().headers().value("Content-Type") != null) { - headers.put("Content-Type", context.httpRequest().headers().value("Content-Type")); + if (context.httpRequest().headers().value(CONTENT_TYPE) != null) { + headers.put(CONTENT_TYPE, context.httpRequest().headers().value(CONTENT_TYPE)); } - if (context.httpRequest().headers().value("x-ms-version") != null) { - headers.put("x-ms-version", context.httpRequest().headers().value("x-ms-version")); + if (context.httpRequest().headers().value(X_MS_VERSION) != null) { + headers.put(X_MS_VERSION, context.httpRequest().headers().value(X_MS_VERSION)); } - if (context.httpRequest().headers().value("User-Agent") != null) { - headers.put("User-Agent", context.httpRequest().headers().value("User-Agent")); + if (context.httpRequest().headers().value(USER_AGENT) != null) { + headers.put(USER_AGENT, context.httpRequest().headers().value(USER_AGENT)); } networkCallRecord.headers(headers); networkCallRecord.method(context.httpRequest().httpMethod().toString()); - networkCallRecord.uri(context.httpRequest().url().toString().replaceAll("\\?$", "")); - return next.process().flatMap(httpResponse -> { - final HttpResponse bufferedResponse = httpResponse.buffer(); - - return extractResponseData(bufferedResponse).map(responseData -> { - networkCallRecord.response(responseData); - String body = responseData.get("Body"); - - // Remove pre-added header if this is a waiting or redirection - if (body != null && body.contains("InProgress") - || Integer.parseInt(responseData.get("StatusCode")) == HttpURLConnection.HTTP_MOVED_TEMP) { - logger.info("Waiting for a response or redirection."); - } else { - recordedData.addNetworkCall(networkCallRecord); - } + // Remove sensitive information such as SAS token signatures from the recording. + UrlBuilder urlBuilder = UrlBuilder.parse(context.httpRequest().url()); + if (urlBuilder.query().containsKey(SIG)) { + urlBuilder.setQueryParameter(SIG, "REDACTED"); + } + networkCallRecord.uri(urlBuilder.toString().replaceAll("\\?$", "")); + + return next.process() + .doOnError(throwable -> { + networkCallRecord.exception(new NetworkCallError(throwable)); + recordedData.addNetworkCall(networkCallRecord); + throw logger.logExceptionAsWarning(Exceptions.propagate(throwable)); + }).flatMap(httpResponse -> { + final HttpResponse bufferedResponse = httpResponse.buffer(); + + return extractResponseData(bufferedResponse).map(responseData -> { + networkCallRecord.response(responseData); + String body = responseData.get(BODY); + + // Remove pre-added header if this is a waiting or redirection + if (body != null && body.contains("InProgress") + || Integer.parseInt(responseData.get(STATUS_CODE)) == HttpURLConnection.HTTP_MOVED_TEMP) { + logger.info("Waiting for a response or redirection."); + } else { + recordedData.addNetworkCall(networkCallRecord); + } - return bufferedResponse; + return bufferedResponse; + }); }); - }); } private Mono> extractResponseData(final HttpResponse response) { final Map responseData = new HashMap<>(); - responseData.put("StatusCode", Integer.toString(response.statusCode())); + responseData.put(STATUS_CODE, Integer.toString(response.statusCode())); boolean addedRetryAfter = false; for (HttpHeader header : response.headers()) { @@ -102,40 +131,77 @@ private Mono> extractResponseData(final HttpResponse respons responseData.put("retry-after", "0"); } - String contentType = response.headerValue("content-type"); + String contentType = response.headerValue(CONTENT_TYPE); if (contentType == null) { return Mono.just(responseData); - } else if (contentType.contains("json") || response.headerValue("content-encoding") == null) { - return response.bodyAsString().switchIfEmpty(Mono.just("")).map(content -> { - responseData.put("Body", content); + } else if (contentType.equalsIgnoreCase("application/octet-stream")) { + return response.bodyAsByteArray().switchIfEmpty(Mono.just(new byte[0])).map(bytes -> { + if (bytes.length == 0) { + return responseData; + } + + responseData.put(BODY, Arrays.toString(bytes)); + return responseData; + }); + } else if (contentType.contains("json") || response.headerValue(CONTENT_ENCODING) == null) { + return response.bodyAsString(StandardCharsets.UTF_8).switchIfEmpty(Mono.just("")).map(content -> { + responseData.put(BODY, redactUserDelegationKey(content)); return responseData; }); } else { - return response.bodyAsByteArray().map(bytes -> { + return response.bodyAsByteArray().switchIfEmpty(Mono.just(new byte[0])).map(bytes -> { + if (bytes.length == 0) { + return responseData; + } + String content; - try (GZIPInputStream gis = new GZIPInputStream(new ByteArrayInputStream(bytes)); - ByteArrayOutputStream output = new ByteArrayOutputStream()) { - byte[] buffer = new byte[DEFAULT_BUFFER_LENGTH]; - int position = 0; - int bytesRead = gis.read(buffer, position, buffer.length); - - while (bytesRead != -1) { - output.write(buffer, 0, bytesRead); - position += bytesRead; - bytesRead = gis.read(buffer, position, buffer.length); + if ("gzip".equalsIgnoreCase(response.headerValue(CONTENT_ENCODING))) { + try (GZIPInputStream gis = new GZIPInputStream(new ByteArrayInputStream(bytes)); + ByteArrayOutputStream output = new ByteArrayOutputStream()) { + byte[] buffer = new byte[DEFAULT_BUFFER_LENGTH]; + int position = 0; + int bytesRead = gis.read(buffer, position, buffer.length); + + while (bytesRead != -1) { + output.write(buffer, 0, bytesRead); + position += bytesRead; + bytesRead = gis.read(buffer, position, buffer.length); + } + + content = new String(output.toByteArray(), StandardCharsets.UTF_8); + } catch (IOException e) { + throw logger.logExceptionAsWarning(Exceptions.propagate(e)); } - - content = new String(output.toByteArray(), StandardCharsets.UTF_8); - } catch (IOException e) { - throw logger.logExceptionAsError(Exceptions.propagate(e)); + } else { + content = new String(bytes, StandardCharsets.UTF_8); } - responseData.remove("content-encoding"); - responseData.put("content-length", Integer.toString(content.length())); + responseData.remove(CONTENT_ENCODING); + responseData.put("Content-Length", Integer.toString(content.length())); - responseData.put("body", content); + responseData.put(BODY, content); return responseData; }); } } + + private String redactUserDelegationKey(String content) { + if (!content.contains("UserDelegationKey")) { + return content; + } + + content = redactionReplacement(content, DELEGATIONKEY_KEY_PATTERN.matcher(content), Base64.getEncoder().encodeToString("REDACTED".getBytes(StandardCharsets.UTF_8))); + content = redactionReplacement(content, DELEGATIONKEY_CLIENTID_PATTERN.matcher(content), UUID.randomUUID().toString()); + content = redactionReplacement(content, DELEGATIONKEY_TENANTID_PATTERN.matcher(content), UUID.randomUUID().toString()); + + return content; + } + + private String redactionReplacement(String content, Matcher matcher, String replacement) { + while (matcher.find()) { + content = content.replace(matcher.group(1), replacement); + } + + return content; + } } diff --git a/sdk/core/azure-core-test/src/main/java/com/azure/core/test/utils/TestResourceNamer.java b/sdk/core/azure-core-test/src/main/java/com/azure/core/test/utils/TestResourceNamer.java index c5b939230f0ea..423d3843eb2c7 100644 --- a/sdk/core/azure-core-test/src/main/java/com/azure/core/test/utils/TestResourceNamer.java +++ b/sdk/core/azure-core-test/src/main/java/com/azure/core/test/utils/TestResourceNamer.java @@ -6,6 +6,8 @@ import com.azure.core.test.TestMode; import com.azure.core.test.models.RecordedData; +import java.time.OffsetDateTime; +import java.time.ZoneOffset; import java.util.Objects; /** @@ -64,4 +66,19 @@ public String randomUuid() { return uuid; } } + + /** + * Gets an OffsetDateTime of UTC now. + * + * @return OffsetDateTime of UTC now. + */ + public OffsetDateTime now() { + if (testMode == TestMode.PLAYBACK) { + return OffsetDateTime.parse(recordedData.removeVariable()); + } else { + OffsetDateTime now = OffsetDateTime.now(ZoneOffset.UTC); + recordedData.addVariable(now.toString()); + return now; + } + } } diff --git a/sdk/core/azure-core/src/main/java/com/azure/core/implementation/http/UrlBuilder.java b/sdk/core/azure-core/src/main/java/com/azure/core/implementation/http/UrlBuilder.java index f33717511cade..088310ed22acb 100644 --- a/sdk/core/azure-core/src/main/java/com/azure/core/implementation/http/UrlBuilder.java +++ b/sdk/core/azure-core/src/main/java/com/azure/core/implementation/http/UrlBuilder.java @@ -26,6 +26,7 @@ public final class UrlBuilder { /** * Set the scheme/protocol that will be used to build the final URL. + * * @param scheme The scheme/protocol that will be used to build the final URL. * @return This UrlBuilder so that multiple setters can be chained together. */ @@ -40,6 +41,7 @@ public UrlBuilder scheme(String scheme) { /** * Get the scheme/protocol that has been assigned to this UrlBuilder. + * * @return the scheme/protocol that has been assigned to this UrlBuilder. */ public String scheme() { @@ -48,6 +50,7 @@ public String scheme() { /** * Set the host that will be used to build the final URL. + * * @param host The host that will be used to build the final URL. * @return This UrlBuilder so that multiple setters can be chained together. */ @@ -62,6 +65,7 @@ public UrlBuilder host(String host) { /** * Get the host that has been assigned to this UrlBuilder. + * * @return the host that has been assigned to this UrlBuilder. */ public String host() { @@ -70,6 +74,7 @@ public String host() { /** * Set the port that will be used to build the final URL. + * * @param port The port that will be used to build the final URL. * @return This UrlBuilder so that multiple setters can be chained together. */ @@ -84,6 +89,7 @@ public UrlBuilder port(String port) { /** * Set the port that will be used to build the final URL. + * * @param port The port that will be used to build the final URL. * @return This UrlBuilder so that multiple setters can be chained together. */ @@ -93,6 +99,7 @@ public UrlBuilder port(int port) { /** * Get the port that has been assigned to this UrlBuilder. + * * @return the port that has been assigned to this UrlBuilder. */ public Integer port() { @@ -101,6 +108,7 @@ public Integer port() { /** * Set the path that will be used to build the final URL. + * * @param path The path that will be used to build the final URL. * @return This UrlBuilder so that multiple setters can be chained together. */ @@ -115,6 +123,7 @@ public UrlBuilder path(String path) { /** * Get the path that has been assigned to this UrlBuilder. + * * @return the path that has been assigned to this UrlBuilder. */ public String path() { @@ -123,10 +132,10 @@ public String path() { /** * Set the provided query parameter name and encoded value to query string for the final URL. + * * @param queryParameterName The name of the query parameter. * @param queryParameterEncodedValue The encoded value of the query parameter. - * @return The provided query parameter name and encoded value to query string for the final - * URL. + * @return The provided query parameter name and encoded value to query string for the final URL. */ public UrlBuilder setQueryParameter(String queryParameterName, String queryParameterEncodedValue) { query.put(queryParameterName, queryParameterEncodedValue); @@ -135,6 +144,7 @@ public UrlBuilder setQueryParameter(String queryParameterName, String queryParam /** * Set the query that will be used to build the final URL. + * * @param query The query that will be used to build the final URL. * @return This UrlBuilder so that multiple setters can be chained together. */ @@ -149,12 +159,31 @@ public UrlBuilder query(String query) { /** * Get the query that has been assigned to this UrlBuilder. + * * @return the query that has been assigned to this UrlBuilder. */ public Map query() { return query; } + public String queryString() { + if (query.isEmpty()) { + return ""; + } + + StringBuilder queryBuilder = new StringBuilder("?"); + for (Map.Entry entry : query.entrySet()) { + if (queryBuilder.length() > 1) { + queryBuilder.append("&"); + } + queryBuilder.append(entry.getKey()); + queryBuilder.append("="); + queryBuilder.append(entry.getValue()); + } + + return queryBuilder.toString(); + } + private UrlBuilder with(String text, UrlTokenizerState startState) { final UrlTokenizer tokenizer = new UrlTokenizer(text, startState); @@ -194,7 +223,7 @@ private UrlBuilder with(String text, UrlTokenizerState startState) { if (nameValue.length == 2) { setQueryParameter(nameValue[0], nameValue[1]); } else { - throw logger.logExceptionAsError(new IllegalArgumentException("Malformed query entry: " + entry)); + setQueryParameter(nameValue[0], ""); } } } @@ -210,6 +239,7 @@ private UrlBuilder with(String text, UrlTokenizerState startState) { /** * Get the URL that is being built. + * * @return The URL that is being built. * @throws MalformedURLException if the URL is not fully formed. */ @@ -219,6 +249,7 @@ public URL toURL() throws MalformedURLException { /** * Get the string representation of the URL that is being built. + * * @return The string representation of the URL that is being built. */ public String toString() { @@ -251,25 +282,14 @@ public String toString() { result.append(path); } - if (!query.isEmpty()) { - StringBuilder queryBuilder = new StringBuilder("?"); - for (Map.Entry entry : query.entrySet()) { - if (queryBuilder.length() > 1) { - queryBuilder.append("&"); - } - queryBuilder.append(entry.getKey()); - queryBuilder.append("="); - queryBuilder.append(entry.getValue()); - } - - result.append(queryBuilder.toString()); - } + result.append(queryString()); return result.toString(); } /** * Parse a UrlBuilder from the provided URL string. + * * @param url The string to parse. * @return The UrlBuilder that was parsed from the string. */ @@ -281,6 +301,7 @@ public static UrlBuilder parse(String url) { /** * Parse a UrlBuilder from the provided URL object. + * * @param url The URL object to parse. * @return The UrlBuilder that was parsed from the URL object. */ diff --git a/sdk/storage/azure-storage-blob/pom.xml b/sdk/storage/azure-storage-blob/pom.xml index 1155f5f1a8338..ab0d9da51777c 100644 --- a/sdk/storage/azure-storage-blob/pom.xml +++ b/sdk/storage/azure-storage-blob/pom.xml @@ -89,11 +89,6 @@ 1.0.0-preview.3 test - - junit - junit - test - org.slf4j slf4j-simple diff --git a/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/APISpec.groovy b/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/APISpec.groovy index 47a8c62161f60..68ee0e2ed6d9c 100644 --- a/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/APISpec.groovy +++ b/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/APISpec.groovy @@ -3,7 +3,6 @@ package com.azure.storage.blob - import com.azure.core.http.HttpClient import com.azure.core.http.HttpHeaders import com.azure.core.http.HttpMethod @@ -15,18 +14,22 @@ import com.azure.core.http.ProxyOptions import com.azure.core.http.policy.HttpLogDetailLevel import com.azure.core.http.policy.HttpPipelinePolicy import com.azure.core.http.rest.Response +import com.azure.core.test.InterceptorManager +import com.azure.core.test.TestMode +import com.azure.core.test.utils.TestResourceNamer import com.azure.core.util.configuration.ConfigurationManager +import com.azure.core.util.logging.ClientLogger import com.azure.identity.credential.EnvironmentCredentialBuilder import com.azure.storage.blob.models.ContainerItem import com.azure.storage.blob.models.CopyStatusType import com.azure.storage.blob.models.LeaseStateType +import com.azure.storage.blob.models.ListContainersOptions import com.azure.storage.blob.models.Metadata import com.azure.storage.blob.models.RetentionPolicy import com.azure.storage.blob.models.StorageServiceProperties import com.azure.storage.common.Constants +import com.azure.storage.common.credentials.SASTokenCredential import com.azure.storage.common.credentials.SharedKeyCredential -import org.junit.Assume -import org.spockframework.lang.ISpecificationContext import reactor.core.publisher.Flux import reactor.core.publisher.Mono import spock.lang.Shared @@ -35,14 +38,12 @@ import spock.lang.Specification import java.nio.ByteBuffer import java.nio.charset.Charset import java.nio.charset.StandardCharsets +import java.time.Duration import java.time.OffsetDateTime import java.util.function.Supplier class APISpec extends Specification { - static final String RECORD_MODE = "RECORD" - - @Shared - Integer iterationNo = 0 // Used to generate stable container names for recording tests with multiple iterations. + private final ClientLogger logger = new ClientLogger(APISpec.class) Integer entityNo = 0 // Used to generate stable container names for recording tests requiring multiple containers. @@ -64,15 +65,12 @@ class APISpec extends Specification { } } - static defaultDataSize = defaultData.remaining() - - // If debugging is enabled, recordings cannot run as there can only be one proxy at a time. - static boolean enableDebugging = false + static int defaultDataSize = defaultData.remaining() // Prefixes for blobs and containers - static String containerPrefix = "jtc" // java test container + String containerPrefix = "jtc" // java test container - static String blobPrefix = "javablob" + String blobPrefix = "javablob" /* The values below are used to create data-driven tests for access conditions. @@ -97,236 +95,363 @@ class APISpec extends Specification { static final String garbageLeaseID = UUID.randomUUID().toString() - /* - credential for various kinds of accounts. - */ - @Shared - static SharedKeyCredential primaryCreds + static def AZURE_TEST_MODE = "AZURE_TEST_MODE" + static def PRIMARY_STORAGE = "PRIMARY_STORAGE_" + static def SECONDARY_STORAGE = "SECONDARY_STORAGE_" + static def BLOB_STORAGE = "BLOB_STORAGE_" + static def PREMIUM_STORAGE = "PREMIUM_STORAGE_" - @Shared - static SharedKeyCredential alternateCreds + static SharedKeyCredential primaryCredential + static SharedKeyCredential alternateCredential + static SharedKeyCredential blobCredential + static SharedKeyCredential premiumCredential + static TestMode testMode - /* - URLs to various kinds of accounts. - */ BlobServiceClient primaryBlobServiceClient BlobServiceAsyncClient primaryBlobServiceAsyncClient + BlobServiceClient alternateBlobServiceClient + BlobServiceClient blobServiceClient + BlobServiceClient premiumBlobServiceClient - @Shared - static BlobServiceClient alternateBlobServiceClient + private InterceptorManager interceptorManager + private TestResourceNamer resourceNamer + private String testName - @Shared - static BlobServiceClient blobServiceClient + def setupSpec() { + testMode = setupTestMode() + primaryCredential = getCredential(PRIMARY_STORAGE) + alternateCredential = getCredential(SECONDARY_STORAGE) + blobCredential = getCredential(BLOB_STORAGE) + premiumCredential = getCredential(PREMIUM_STORAGE) + } - @Shared - static BlobServiceClient premiumBlobServiceClient + def setup() { + String fullTestName = specificationContext.getCurrentIteration().getName().replace(' ', '').toLowerCase() + String className = specificationContext.getCurrentSpec().getName() + + int iterationIndex = fullTestName.lastIndexOf("[") + int substringIndex = (int) Math.min((iterationIndex != -1) ? iterationIndex : fullTestName.length(), 50) + this.testName = fullTestName.substring(0, substringIndex) + this.interceptorManager = new InterceptorManager(className + fullTestName, testMode) + this.resourceNamer = new TestResourceNamer(className + testName, testMode, interceptorManager.getRecordedData()) + + primaryBlobServiceClient = setClient(primaryCredential) + primaryBlobServiceAsyncClient = getServiceAsyncClient(primaryCredential) + alternateBlobServiceClient = setClient(alternateCredential) + blobServiceClient = setClient(blobCredential) + premiumBlobServiceClient = setClient(premiumCredential) + + def containerName = generateContainerName() + cc = primaryBlobServiceClient.getContainerClient(containerName) + ccAsync = primaryBlobServiceAsyncClient.getContainerAsyncClient(containerName) + cc.create() + } - /* - Constants for testing that the context parameter is properly passed to the pipeline. - */ - static final String defaultContextKey = "Key" + def cleanup() { + def options = new ListContainersOptions().prefix(containerPrefix + testName) + for (ContainerItem container : primaryBlobServiceClient.listContainers(options, Duration.ofSeconds(120))) { + ContainerClient containerClient = primaryBlobServiceClient.getContainerClient(container.name()) - static String getTestName(ISpecificationContext ctx) { - return ctx.getCurrentFeature().name.replace(' ', '').toLowerCase() - } + if (container.properties().leaseState() == LeaseStateType.LEASED) { + containerClient.breakLeaseWithResponse(0, null, null, null) + } - def generateContainerName() { - generateContainerName(specificationContext, iterationNo, entityNo++) - } + containerClient.delete() + } - def generateBlobName() { - generateBlobName(specificationContext, iterationNo, entityNo++) + interceptorManager.close() } - /** - * This function generates an entity name by concatenating the passed prefix, the name of the test requesting the - * entity name, and some unique suffix. This ensures that the entity name is unique for each test so there are - * no conflicts on the service. If we are not recording, we can just use the time. If we are recording, the suffix - * must always be the same so we can match requests. To solve this, we use the entityNo for how many entities have - * already been created by this test so far. This would sufficiently distinguish entities within a recording, but - * could still yield duplicates on the service for data-driven tests. Therefore, we also add the iteration number - * of the data driven tests. - * - * @param specificationContext - * Used to obtain the name of the test running. - * @param prefix - * Used to group all entities created by these tests under common prefixes. Useful for listing. - * @param iterationNo - * Indicates which iteration of a data-driven test is being executed. - * @param entityNo - * Indicates how man entities have been created by the test so far. This distinguishes multiple containers - * or multiple blobs created by the same test. Only used when dealing with recordings. - * @return - */ - static String generateResourceName(ISpecificationContext specificationContext, String prefix, int iterationNo, - int entityNo) { - String suffix = "" - suffix += System.currentTimeMillis() // For uniqueness between runs. - suffix += entityNo // For easy identification of which call created this resource. - return prefix + getTestName(specificationContext).take(63 - suffix.length() - prefix.length()) + suffix - } + static TestMode setupTestMode() { + String testMode = ConfigurationManager.getConfiguration().get(AZURE_TEST_MODE) - static int updateIterationNo(ISpecificationContext specificationContext, int iterationNo) { - if (specificationContext.currentIteration.estimatedNumIterations > 1) { - return iterationNo + 1 - } else { - return 0 + if (testMode != null) { + try { + return TestMode.valueOf(testMode.toUpperCase(Locale.US)) + } catch (IllegalArgumentException ex) { + return TestMode.PLAYBACK + } } - } - static String generateContainerName(ISpecificationContext specificationContext, int iterationNo, int entityNo) { - return generateResourceName(specificationContext, containerPrefix, iterationNo, entityNo) + return TestMode.PLAYBACK } - static String generateBlobName(ISpecificationContext specificationContext, int iterationNo, int entityNo) { - return generateResourceName(specificationContext, blobPrefix, iterationNo, entityNo) + static boolean liveMode() { + return setupTestMode() == TestMode.RECORD } - static getGenericCreds(String accountType) { - String accountName = ConfigurationManager.getConfiguration().get(accountType + "ACCOUNT_NAME") - String accountKey = ConfigurationManager.getConfiguration().get(accountType + "ACCOUNT_KEY") + private SharedKeyCredential getCredential(String accountType) { + String accountName + String accountKey + + if (testMode == TestMode.RECORD) { + accountName = ConfigurationManager.getConfiguration().get(accountType + "ACCOUNT_NAME") + accountKey = ConfigurationManager.getConfiguration().get(accountType + "ACCOUNT_KEY") + } else { + accountName = "storageaccount" + accountKey = "astorageaccountkey" + } if (accountName == null || accountKey == null) { - System.out.println("Account name or key for the " + accountType + " account was null. Test's requiring " + - "these credential will fail.") + logger.warning("Account name or key for the {} account was null. Test's requiring these credentials will fail.", accountType) return null } + return new SharedKeyCredential(accountName, accountKey) } - static HttpClient getHttpClient() { - if (enableDebugging) { - return HttpClient.createDefault().proxy(new Supplier() { - @Override - ProxyOptions get() { - return new ProxyOptions(ProxyOptions.Type.HTTP, new InetSocketAddress("localhost", 8888)) - } - }) + BlobServiceClient setClient(SharedKeyCredential credential) { + try { + return getServiceClient(credential) + } catch (Exception ex) { + return null + } + } + + def getOAuthServiceClient() { + BlobServiceClientBuilder builder = new BlobServiceClientBuilder() + .endpoint(String.format("https://%s.blob.core.windows.net/", primaryCredential.accountName())) + .httpClient(getHttpClient()) + .httpLogDetailLevel(HttpLogDetailLevel.BODY_AND_HEADERS) + + if (testMode == TestMode.RECORD) { + builder.addPolicy(interceptorManager.getRecordPolicy()) + + // AZURE_TENANT_ID, AZURE_CLIENT_ID, AZURE_CLIENT_SECRET + return builder.credential(new EnvironmentCredentialBuilder().build()).buildClient() } else { - return HttpClient.createDefault() + // Running in playback, we don't have access to the AAD environment variables, just use SharedKeyCredential. + return builder.credential(primaryCredential).buildClient() } } - static BlobServiceClient getGenericBlobServiceClient(SharedKeyCredential creds) { - // TODO: logging? + BlobServiceClient getServiceClient(String endpoint) { + return getServiceClient(null, endpoint, null) + } + + BlobServiceClient getServiceClient(SharedKeyCredential credential) { + return getServiceClient(credential, String.format("https://%s.blob.core.windows.net", credential.accountName()), null) + } + + BlobServiceClient getServiceClient(SharedKeyCredential credential, String endpoint) { + return getServiceClient(credential, endpoint, null) + } - return new BlobServiceClientBuilder() - .endpoint("https://" + creds.accountName() + ".blob.core.windows.net") + BlobServiceClient getServiceClient(SharedKeyCredential credential, String endpoint, HttpPipelinePolicy... policies) { + BlobServiceClientBuilder builder = new BlobServiceClientBuilder() + .endpoint(endpoint) .httpClient(getHttpClient()) .httpLogDetailLevel(HttpLogDetailLevel.BODY_AND_HEADERS) - .credential(creds) - .buildClient() + + for (HttpPipelinePolicy policy : policies) { + builder.addPolicy(policy) + } + + if (testMode == TestMode.RECORD) { + builder.addPolicy(interceptorManager.getRecordPolicy()) + } + + if (credential != null) { + builder.credential(credential) + } + + return builder.buildClient() } - static BlobServiceAsyncClient getGenericBlobServiceAsyncClient(SharedKeyCredential creds) { - // TODO: logging? + BlobServiceClient getServiceClient(SASTokenCredential credential, String endpoint) { + BlobServiceClientBuilder builder = new BlobServiceClientBuilder() + .endpoint(endpoint) + .httpClient(getHttpClient()) + .httpLogDetailLevel(HttpLogDetailLevel.BODY_AND_HEADERS) + + if (testMode == TestMode.RECORD) { + builder.addPolicy(interceptorManager.getRecordPolicy()) + } + + return builder.credential(credential).buildClient() + } - return new BlobServiceClientBuilder() - .endpoint("https://" + creds.accountName() + ".blob.core.windows.net") + BlobServiceAsyncClient getServiceAsyncClient(SharedKeyCredential credential) { + BlobServiceClientBuilder builder = new BlobServiceClientBuilder() + .credential(credential) + .endpoint(String.format("https://%s.blob.core.windows.net", credential.accountName())) .httpClient(getHttpClient()) .httpLogDetailLevel(HttpLogDetailLevel.BODY_AND_HEADERS) - .credential(creds) - .buildAsyncClient() - } - - static void cleanupContainers() throws MalformedURLException { - BlobServiceClient serviceURL = new BlobServiceClientBuilder() - .endpoint("http://" + primaryCreds.accountName() + ".blob.core.windows.net") - .credential(primaryCreds) - .buildClient() - // There should not be more than 5000 containers from these tests - for (ContainerItem c : serviceURL.listContainers()) { - ContainerClient containerURL = serviceURL.getContainerClient(c.name()) - if (c.properties().leaseState() == LeaseStateType.LEASED) { - containerURL.breakLease() - } - containerURL.delete() + + if (testMode == TestMode.RECORD) { + builder.addPolicy(interceptorManager.getRecordPolicy()) } + + return builder.buildAsyncClient() } - static byte[] getRandomByteArray(int size) { - Random rand = new Random(getRandomSeed()) - byte[] data = new byte[size] - rand.nextBytes(data) - return data + ContainerClient getContainerClient(SASTokenCredential credential, String endpoint) { + ContainerClientBuilder builder = new ContainerClientBuilder() + .endpoint(endpoint) + .httpClient(getHttpClient()) + .httpLogDetailLevel(HttpLogDetailLevel.BODY_AND_HEADERS) + + if (testMode == TestMode.RECORD) { + builder.addPolicy(interceptorManager.getRecordPolicy()) + } + + builder.credential(credential).buildClient() } - /* - Size must be an int because ByteBuffer sizes can only be an int. Long is not supported. - */ + BlobAsyncClient getBlobAsyncClient(SharedKeyCredential credential, String endpoint, String blobName) { + BlobClientBuilder builder = new BlobClientBuilder() + .endpoint(endpoint) + .blobName(blobName) + .httpClient(getHttpClient()) + .httpLogDetailLevel(HttpLogDetailLevel.BODY_AND_HEADERS) - static ByteBuffer getRandomData(int size) { - return ByteBuffer.wrap(getRandomByteArray(size)) + if (testMode == TestMode.RECORD) { + builder.addPolicy(interceptorManager.getRecordPolicy()) + } + + builder.credential(credential).buildBlobAsyncClient() } - /* - We only allow int because anything larger than 2GB (which would require a long) is left to stress/perf. - */ + BlobClient getBlobClient(SASTokenCredential credential, String endpoint, String blobName) { + return getBlobClient(credential, endpoint, blobName, null) + } - static File getRandomFile(int size) { - File file = File.createTempFile(UUID.randomUUID().toString(), ".txt") - file.deleteOnExit() - FileOutputStream fos = new FileOutputStream(file) - fos.write(getRandomData(size).array()) - fos.close() - return file + BlobClient getBlobClient(SASTokenCredential credential, String endpoint, String blobName, String snapshotId) { + BlobClientBuilder builder = new BlobClientBuilder() + .endpoint(endpoint) + .blobName(blobName) + .snapshot(snapshotId) + .httpClient(getHttpClient()) + .httpLogDetailLevel(HttpLogDetailLevel.BODY_AND_HEADERS) + + if (testMode == TestMode.RECORD) { + builder.addPolicy(interceptorManager.getRecordPolicy()) + } + + return builder.credential(credential).buildBlobClient() } - static long getRandomSeed() { - return System.currentTimeMillis() + BlobClient getBlobClient(SharedKeyCredential credential, String endpoint, HttpPipelinePolicy... policies) { + BlobClientBuilder builder = new BlobClientBuilder() + .endpoint(endpoint) + .httpClient(getHttpClient()) + .httpLogDetailLevel(HttpLogDetailLevel.BODY_AND_HEADERS) + + for (HttpPipelinePolicy policy : policies) { + builder.addPolicy(policy) + } + + if (testMode == TestMode.RECORD) { + builder.addPolicy(interceptorManager.getRecordPolicy()) + } + + return builder.credential(credential).buildBlobClient() } - def setupSpec() { - /* - We'll let primary creds throw and crash if there are no credential specified because everything else will fail. - */ - primaryCreds = getGenericCreds("PRIMARY_STORAGE_") - - /* - It's feasible someone wants to test a specific subset of tests, so we'll still attempt to create each of the - ServiceURLs separately. We don't really need to take any action here, as we've already reported to the user, - so we just swallow the exception and let the relevant tests fail later. Perhaps we can add annotations or - something in the future. - */ - try { - alternateCreds = getGenericCreds("SECONDARY_STORAGE_") - alternateBlobServiceClient = getGenericBlobServiceClient(alternateCreds) + BlobClient getBlobClient(SharedKeyCredential credential, String endpoint, String blobName) { + BlobClientBuilder builder = new BlobClientBuilder() + .endpoint(endpoint) + .blobName(blobName) + .httpClient(getHttpClient()) + .httpLogDetailLevel(HttpLogDetailLevel.BODY_AND_HEADERS) + + if (testMode == TestMode.RECORD) { + builder.addPolicy(interceptorManager.getRecordPolicy()) } - catch (Exception e) { + + return builder.credential(credential).buildBlobClient() + } + + BlobClient getBlobClient(String endpoint, SASTokenCredential credential) { + BlobClientBuilder builder = new BlobClientBuilder() + .endpoint(endpoint) + .httpClient(getHttpClient()) + .httpLogDetailLevel(HttpLogDetailLevel.BODY_AND_HEADERS) + + if (credential != null) { + builder.credential(credential) } - try { - blobServiceClient = getGenericBlobServiceClient(getGenericCreds("BLOB_STORAGE_")) + if (testMode == TestMode.RECORD) { + builder.addPolicy(interceptorManager.getRecordPolicy()) } - catch (Exception e) { + + return builder.buildBlobClient() + } + + private HttpClient getHttpClient() { + HttpClient client + if (testMode == TestMode.RECORD) { + client = HttpClient.createDefault().wiretap(true) + } else { + client = interceptorManager.getPlaybackClient() } - try { - premiumBlobServiceClient = getGenericBlobServiceClient(getGenericCreds("PREMIUM_STORAGE_")) + if (Boolean.parseBoolean(ConfigurationManager.getConfiguration().get("AZURE_TEST_DEBUGGING"))) { + return client.proxy(PROXY_OPTIONS) + } else { + return client } - catch (Exception e) { + } + + private Supplier PROXY_OPTIONS = new Supplier() { + @Override + ProxyOptions get() { + return new ProxyOptions(ProxyOptions.Type.HTTP, new InetSocketAddress("localhost", 8888)) } } - def cleanupSpec() { - Assume.assumeTrue("The test only runs in Live mode.", getTestMode().equalsIgnoreCase(RECORD_MODE)) - cleanupContainers() + def generateContainerName() { + generateResourceName(containerPrefix, entityNo++) } - def setup() { - Assume.assumeTrue("The test only runs in Live mode.", getTestMode().equalsIgnoreCase(RECORD_MODE)) - String containerName = generateContainerName() + def generateBlobName() { + generateResourceName(blobPrefix, entityNo++) + } - primaryBlobServiceClient = getGenericBlobServiceClient(primaryCreds) - primaryBlobServiceAsyncClient = getGenericBlobServiceAsyncClient(primaryCreds) - cc = primaryBlobServiceClient.getContainerClient(containerName) - ccAsync = primaryBlobServiceAsyncClient.getContainerAsyncClient(containerName) - cc.create() // creates for both, since they point to the same place + private String generateResourceName(String prefix, int entityNo) { + return resourceNamer.randomName(prefix + testName + entityNo, 63) } - def cleanup() { - // TODO: Scrub auth header here? - iterationNo = updateIterationNo(specificationContext, iterationNo) + String getRandomUUID() { + return resourceNamer.randomUuid() + } + + String getBlockID() { + return Base64.encoder.encodeToString(resourceNamer.randomUuid().getBytes(StandardCharsets.UTF_8)) + } + + OffsetDateTime getUTCNow() { + return resourceNamer.now() + } + + byte[] getRandomByteArray(int size) { + long seed = UUID.fromString(resourceNamer.randomUuid()).getMostSignificantBits() & Long.MAX_VALUE + Random rand = new Random(seed) + byte[] data = new byte[size] + rand.nextBytes(data) + return data + } + + /* + Size must be an int because ByteBuffer sizes can only be an int. Long is not supported. + */ + + ByteBuffer getRandomData(int size) { + return ByteBuffer.wrap(getRandomByteArray(size)) + } + + /* + We only allow int because anything larger than 2GB (which would require a long) is left to stress/perf. + */ + + File getRandomFile(int size) { + File file = File.createTempFile(UUID.randomUUID().toString(), ".txt") + file.deleteOnExit() + FileOutputStream fos = new FileOutputStream(file) + fos.write(getRandomData(size).array()) + fos.close() + return file } /** @@ -343,7 +468,7 @@ class APISpec extends Specification { */ def setupBlobMatchCondition(BlobClient bu, String match) { if (match == receivedEtag) { - return bu.getPropertiesWithResponse(null, null, null).headers().value("ETag") + bu.getPropertiesWithResponse(null, null, null).headers().value("ETag") } else { return match } @@ -368,11 +493,8 @@ class APISpec extends Specification { if (leaseID == receivedLeaseID || leaseID == garbageLeaseID) { responseLeaseId = bu.acquireLease(null, -1) } - if (leaseID == receivedLeaseID) { - return responseLeaseId - } else { - return leaseID - } + + return (leaseID == receivedLeaseID) ? responseLeaseId : leaseID } def setupContainerMatchCondition(ContainerClient cu, String match) { @@ -407,7 +529,7 @@ class APISpec extends Specification { if (status == CopyStatusType.FAILED.toString() || currentTime.minusMinutes(1) == start) { throw new Exception("Copy failed or took too long") } - sleep(1000) + sleepIfRecord(1000) } } @@ -439,7 +561,7 @@ class APISpec extends Specification { response.headers().value("Content-Type") == contentType } - static Metadata getMetadataFromHeaders(HttpHeaders headers) { + Metadata getMetadataFromHeaders(HttpHeaders headers) { Metadata metadata = new Metadata() for (Map.Entry header : headers.toMap()) { @@ -455,73 +577,36 @@ class APISpec extends Specification { def enableSoftDelete() { primaryBlobServiceClient.setProperties(new StorageServiceProperties() .deleteRetentionPolicy(new RetentionPolicy().enabled(true).days(2))) - sleep(30000) // Wait for the policy to take effect. + + sleepIfRecord(30000) } def disableSoftDelete() { primaryBlobServiceClient.setProperties(new StorageServiceProperties() .deleteRetentionPolicy(new RetentionPolicy().enabled(false))) - sleep(30000) // Wait for the policy to take effect. + sleepIfRecord(30000) } - - /* - This method returns a stub of an HttpResponse. This is for when we want to test policies in isolation but don't care - about the status code, so we stub a response that always returns a given value for the status code. We never care - about the number or nature of interactions with this stub. - */ - - def getStubResponse(int code) { - return Stub(HttpResponse) { - statusCode() >> code + // Only sleep if test is running in live mode + def sleepIfRecord(long milliseconds) { + if (testMode == TestMode.RECORD) { + sleep(milliseconds) } } - /* - This is for stubbing responses that will actually go through the pipeline and autorest code. Autorest does not seem - to play too nicely with mocked objects and the complex reflection stuff on both ends made it more difficult to work - with than was worth it. - */ - - def getStubResponse(int code, HttpRequest request) { - return new HttpResponse() { - - @Override - int statusCode() { - return code - } - - @Override - String headerValue(String s) { - return null - } - - @Override - HttpHeaders headers() { - return new HttpHeaders() - } - - @Override - Flux body() { - return Flux.empty() - } - - @Override - Mono bodyAsByteArray() { - return Mono.just(new byte[0]) - } - - @Override - Mono bodyAsString() { - return Mono.just("") - } - - @Override - Mono bodyAsString(Charset charset) { - return Mono.just("") + class MockRetryRangeResponsePolicy implements HttpPipelinePolicy { + @Override + Mono process(HttpPipelineCallContext context, HttpPipelineNextPolicy next) { + return next.process().flatMap { HttpResponse response -> + if (response.request().headers().value("x-ms-range") != "bytes=2-6") { + return Mono. error(new IllegalArgumentException("The range header was not set correctly on retry.")) + } else { + // ETag can be a dummy value. It's not validated, but DownloadResponse requires one + return Mono. just(new MockDownloadHttpResponse(response, 206, Flux.error(new IOException()))) + } } - }.request(request) + } } /* @@ -529,7 +614,8 @@ class APISpec extends Specification { to play too nicely with mocked objects and the complex reflection stuff on both ends made it more difficult to work with than was worth it. Because this type is just for BlobDownload, we don't need to accept a header type. */ - static class MockDownloadHttpResponse extends HttpResponse { + + class MockDownloadHttpResponse extends HttpResponse { private final int statusCode private final HttpHeaders headers private final Flux body @@ -576,33 +662,4 @@ class APISpec extends Specification { return Mono.error(new IOException()) } } - - def getContextStubPolicy(int successCode, Class responseHeadersType) { - return Mock(HttpPipelinePolicy) { - process(_ as HttpPipelineCallContext, _ as HttpPipelineNextPolicy) >> { - HttpPipelineCallContext context, HttpPipelineNextPolicy next -> - if (!context.getData(defaultContextKey).isPresent()) { - return Mono.error(new RuntimeException("Context key not present.")) - } else { - return Mono.just(getStubResponse(successCode, context.httpRequest())) - } - } - } - } - - def getOAuthServiceURL() { - return new BlobServiceClientBuilder() - .endpoint(String.format("https://%s.blob.core.windows.net/", primaryCreds.accountName())) - .credential(new EnvironmentCredentialBuilder().build()) // AZURE_TENANT_ID, AZURE_CLIENT_ID, AZURE_CLIENT_SECRET - .httpLogDetailLevel(HttpLogDetailLevel.BODY_AND_HEADERS) - .buildClient() - } - - def getTestMode() { - String testMode = System.getenv("AZURE_TEST_MODE") - if (testMode == null) { - testMode = "PLAYBACK" - } - return testMode - } } diff --git a/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/BlobAPITest.groovy b/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/BlobAPITest.groovy index df8cc6403fd19..7bce3ee57d93f 100644 --- a/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/BlobAPITest.groovy +++ b/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/BlobAPITest.groovy @@ -4,9 +4,6 @@ package com.azure.storage.blob import com.azure.core.http.HttpHeaders -import com.azure.core.http.HttpPipelineCallContext -import com.azure.core.http.HttpPipelineNextPolicy -import com.azure.core.http.policy.HttpPipelinePolicy import com.azure.core.http.rest.Response import com.azure.core.http.rest.VoidResponse import com.azure.core.implementation.util.ImplUtils @@ -14,7 +11,6 @@ import com.azure.storage.blob.models.AccessTier import com.azure.storage.blob.models.ArchiveStatus import com.azure.storage.blob.models.BlobAccessConditions import com.azure.storage.blob.models.BlobHTTPHeaders -import com.azure.storage.blob.models.BlobItem import com.azure.storage.blob.models.BlobRange import com.azure.storage.blob.models.BlobType import com.azure.storage.blob.models.CopyStatusType @@ -31,8 +27,6 @@ import com.azure.storage.blob.models.StorageAccountInfo import com.azure.storage.blob.models.StorageErrorCode import com.azure.storage.blob.models.StorageException import com.azure.storage.blob.models.SyncCopyStatusType -import reactor.core.publisher.Flux -import reactor.core.publisher.Mono import spock.lang.Unroll import java.nio.ByteBuffer @@ -101,7 +95,6 @@ class BlobAPITest extends APISpec { This is to test the appropriate integration of DownloadResponse, including setting the correct range values on HTTPGetterInfo. */ - def "Download with retry range"() { /* We are going to make a request for some range on a blob. The Flux returned will throw an exception, forcing @@ -112,26 +105,7 @@ class BlobAPITest extends APISpec { constructed in BlobClient.download(). */ setup: - HttpPipelinePolicy mockPolicy = Mock(HttpPipelinePolicy) { - process(_ as HttpPipelineCallContext, _ as HttpPipelineNextPolicy) >> { - HttpPipelineCallContext context, HttpPipelineNextPolicy next -> - return next.process() - .flatMap { - if (it.request().headers().value("x-ms-range") != "bytes=2-6") { - return Mono.error(new IllegalArgumentException("The range header was not set correctly on retry.")) - } else { - // ETag can be a dummy value. It's not validated, but DownloadResponse requires one - return Mono.just(new MockDownloadHttpResponse(it, 206, Flux.error(new IOException()))) - } - } - } - } - - BlobClient bu2 = new BlobClientBuilder() - .endpoint(bc.getBlobUrl().toString()) - .credential(primaryCreds) - .addPolicy(mockPolicy) - .buildBlobClient() + BlobClient bu2 = getBlobClient(primaryCredential, bc.getBlobUrl().toString(), new MockRetryRangeResponsePolicy()) when: BlobRange range = new BlobRange(2, 5L) @@ -682,7 +656,8 @@ class BlobAPITest extends APISpec { setup: String leaseID = setupBlobLeaseCondition(bc, receivedLeaseID) - Thread.sleep(16000) // Wait for the lease to expire to ensure we are actually renewing it + // If running in live mode wait for the lease to expire to ensure we are actually renewing it + sleepIfRecord(16000) Response renewLeaseResponse = bc.renewLeaseWithResponse(leaseID, null, null, null) expect: @@ -837,7 +812,7 @@ class BlobAPITest extends APISpec { @Unroll def "Break lease"() { setup: - bc.acquireLeaseWithResponse(UUID.randomUUID().toString(), leaseTime, null, null, null) + bc.acquireLeaseWithResponse(getRandomUUID(), leaseTime, null, null, null) Response breakLeaseResponse = bc.breakLeaseWithResponse(breakPeriod, null, null, null) String leaseState = bc.getPropertiesWithResponse(null, null, null).headers().value("x-ms-lease-state") @@ -923,8 +898,8 @@ class BlobAPITest extends APISpec { def "Change lease"() { setup: - Response acquireLeaseResponse = bc.acquireLeaseWithResponse(UUID.randomUUID().toString(), 15, null, null, null) - Response changeLeaseResponse = bc.changeLeaseWithResponse(acquireLeaseResponse.value(), UUID.randomUUID().toString(), null, null, null) + String acquireLease = bc.acquireLease(getRandomUUID(), 15) + Response changeLeaseResponse = bc.changeLeaseWithResponse(acquireLease, getRandomUUID(), null, null, null) expect: bc.releaseLeaseWithResponse(changeLeaseResponse.value(), null, null, null).statusCode() == 200 @@ -936,7 +911,7 @@ class BlobAPITest extends APISpec { def leaseID = setupBlobLeaseCondition(bc, receivedLeaseID) expect: - bc.changeLeaseWithResponse(leaseID, UUID.randomUUID().toString(), null, null, null).statusCode() == 200 + bc.changeLeaseWithResponse(leaseID, getRandomUUID(), null, null, null).statusCode() == 200 } @Unroll @@ -951,7 +926,7 @@ class BlobAPITest extends APISpec { .ifNoneMatch(noneMatch) expect: - bc.changeLeaseWithResponse(leaseID, UUID.randomUUID().toString(), mac, null, null).statusCode() == 200 + bc.changeLeaseWithResponse(leaseID, getRandomUUID(), mac, null, null).statusCode() == 200 where: modified | unmodified | match | noneMatch @@ -974,7 +949,7 @@ class BlobAPITest extends APISpec { .ifNoneMatch(noneMatch) when: - bc.changeLeaseWithResponse(leaseID, UUID.randomUUID().toString(), mac, null, null) + bc.changeLeaseWithResponse(leaseID, getRandomUUID(), mac, null, null) then: thrown(StorageException) @@ -1109,7 +1084,7 @@ class BlobAPITest extends APISpec { when: while (copyDestBlob.getPropertiesWithResponse(null, null, null).headers().value("x-ms-copy-status") == CopyStatusType.PENDING.toString()) { - sleep(1000) + sleepIfRecord(1000) } def headers2 = copyDestBlob.getPropertiesWithResponse(null, null, null).headers() @@ -1139,13 +1114,12 @@ class BlobAPITest extends APISpec { metadata.put(key2, value2) } - String status = - bu2.startCopyFromURLWithResponse(bc.getBlobUrl(), metadata, null, null, null, null) - .headers().value("x-ms-copy-status") + def status = bu2.startCopyFromURLWithResponse(bc.getBlobUrl(), metadata, null, null, null, null) + .headers().value("x-ms-copy-status") OffsetDateTime start = OffsetDateTime.now() while (status != CopyStatusType.SUCCESS.toString()) { - sleep(1000) + sleepIfRecord(1000) status = bu2.getPropertiesWithResponse(null, null, null).headers().value("x-ms-copy-status") OffsetDateTime currentTime = OffsetDateTime.now() if (status == CopyStatusType.FAILED.toString() || currentTime.minusMinutes(1) == start) { @@ -1154,7 +1128,7 @@ class BlobAPITest extends APISpec { } expect: - getMetadataFromHeaders(bu2.getPropertiesWithResponse(null, null, null).headers()) == metadata + bu2.getProperties().metadata() == metadata where: key1 | value1 | key2 | value2 @@ -1334,8 +1308,7 @@ class BlobAPITest extends APISpec { BlobClient bu2 = cu2.getBlobClient(generateBlobName()) when: - String copyID = - bu2.startCopyFromURL(bc.getBlobUrl()) + String copyID = bu2.startCopyFromURL(bc.getBlobUrl()) then: bu2.abortCopyFromURLWithResponse(copyID, null, null, null).statusCode() == 204 @@ -1428,7 +1401,7 @@ class BlobAPITest extends APISpec { bu2.copyFromURLWithResponse(bc.getBlobUrl(), metadata, null, null, null, null) then: - getMetadataFromHeaders(bu2.getPropertiesWithResponse(null, null, null).headers()) == metadata + bu2.getProperties().metadata() == metadata where: key1 | value1 | key2 | value2 @@ -1662,8 +1635,8 @@ class BlobAPITest extends APISpec { @Unroll def "Set tier block blob"() { setup: - def cc = blobServiceClient.createContainer(generateContainerName()) - def bc = cc.getBlockBlobClient(generateBlobName()) + ContainerClient cc = blobServiceClient.createContainer(generateContainerName()) + BlockBlobClient bc = cc.getBlockBlobClient(generateBlobName()) bc.upload(defaultInputStream.get(), defaultData.remaining()) when: @@ -1690,7 +1663,7 @@ class BlobAPITest extends APISpec { @Unroll def "Set tier page blob"() { setup: - def cc = premiumBlobServiceClient.createContainer(generateContainerName()) + ContainerClient cc = premiumBlobServiceClient.createContainer(generateContainerName()) def bc = cc.getPageBlobClient(generateBlobName()) bc.create(512) @@ -1718,9 +1691,9 @@ class BlobAPITest extends APISpec { def "Set tier min"() { setup: - def cc = blobServiceClient.createContainer(generateContainerName()) - def bc = cc.getBlockBlobClient(generateBlobName()) - bc.upload(defaultInputStream.get(), defaultData.remaining()) + ContainerClient cc = blobServiceClient.createContainer(generateContainerName()) + BlockBlobClient bu = cc.getBlockBlobClient(generateBlobName()) + bu.upload(defaultInputStream.get(), defaultData.remaining()) when: int statusCode = bc.setTierWithResponse(AccessTier.HOT, null, null, null).statusCode() @@ -1734,7 +1707,7 @@ class BlobAPITest extends APISpec { def "Set tier inferred"() { setup: - def cc = blobServiceClient.createContainer(generateContainerName()) + def cc = blobServiceClient.createContainer(generateBlobName()) def bc = cc.getBlockBlobClient(generateBlobName()) bc.upload(defaultInputStream.get(), defaultDataSize) @@ -1769,9 +1742,6 @@ class BlobAPITest extends APISpec { bc.getPropertiesWithResponse(null, null, null).headers().value("x-ms-archive-status") == status.toString() cc.listBlobsFlat().iterator().next().properties().archiveStatus() == status - cleanup: - cc.delete() - where: sourceTier | destTier | status AccessTier.ARCHIVE | AccessTier.COOL | ArchiveStatus.REHYDRATE_PENDING_TO_COOL @@ -1805,6 +1775,7 @@ class BlobAPITest extends APISpec { def "Set tier lease"() { setup: + def cc = blobServiceClient.createContainer(generateContainerName()) def bc = cc.getBlockBlobClient(generateBlobName()) bc.upload(defaultInputStream.get(), defaultDataSize) @@ -1839,13 +1810,14 @@ class BlobAPITest extends APISpec { bc.delete() when: - HttpHeaders headers = bc.undeleteWithResponse(null, null).headers() + def undeleteHeaders = bc.undeleteWithResponse(null, null).headers() + bc.getProperties() then: notThrown(StorageException) - headers.value("x-ms-request-id") != null - headers.value("x-ms-version") != null - headers.value("Date") != null + undeleteHeaders.value("x-ms-request-id") != null + undeleteHeaders.value("x-ms-version") != null + undeleteHeaders.value("Date") != null disableSoftDelete() == null } @@ -1888,11 +1860,9 @@ class BlobAPITest extends APISpec { def "Get account info error"() { when: - BlobServiceClient serviceURL = new BlobServiceClientBuilder() - .endpoint(primaryBlobServiceClient.getAccountUrl().toString()) - .buildClient() - serviceURL.getContainerClient(generateContainerName()).getBlobClient(generateBlobName()) - .getAccountInfo() + BlobServiceClient serviceURL = getServiceClient(primaryBlobServiceClient.getAccountUrl().toString()) + + serviceURL.getContainerClient(generateContainerName()).getBlobClient(generateBlobName()).getAccountInfo() then: thrown(StorageException) diff --git a/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/BlobOutputStreamTest.groovy b/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/BlobOutputStreamTest.groovy new file mode 100644 index 0000000000000..7d4ab2b816b77 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/BlobOutputStreamTest.groovy @@ -0,0 +1,74 @@ +package com.azure.storage.blob + +import com.azure.storage.common.Constants +import spock.lang.Ignore + +class BlobOutputStreamTest extends APISpec { + private static int FOUR_MB = 4 * Constants.MB + + @Ignore + def "BlockBlob output stream"() { + setup: + byte[] data = getRandomByteArray(100 * Constants.MB) + BlockBlobClient blockBlobClient = cu.getBlockBlobClient(generateBlobName()) + + when: + BlobOutputStream outputStream = blockBlobClient.getBlobOutputStream() + outputStream.write(data) + outputStream.close() + + then: + blockBlobClient.getProperties().blobSize() == data.length + convertInputStreamToByteArray(blockBlobClient.openInputStream()) == data + } + + @Ignore + def "PageBlob output stream"() { + setup: + byte[] data = getRandomByteArray(1024 * Constants.MB - 512) + PageBlobClient pageBlobClient = cu.getPageBlobClient(generateBlobName()) + pageBlobClient.create(data.length) + + + when: + BlobOutputStream outputStream = pageBlobClient.getBlobOutputStream(data.length) + outputStream.write(data) + outputStream.close() + + then: + convertInputStreamToByteArray(pageBlobClient.openInputStream()) == data + } + + @Ignore + def "AppendBlob output stream"() { + setup: + byte[] data = getRandomByteArray(64 * FOUR_MB) + AppendBlobClient appendBlobClient = cu.getAppendBlobClient(generateBlobName()) + appendBlobClient.create() + + when: + BlobOutputStream outputStream = appendBlobClient.getBlobOutputStream() + for (int i = 0; i != 64; i++) { + outputStream.write(Arrays.copyOfRange(data, i * FOUR_MB, ((i + 1) * FOUR_MB) - 1)) + } + outputStream.close() + + then: + appendBlobClient.getProperties().blobSize() == data.length + convertInputStreamToByteArray(appendBlobClient.openInputStream()) == data + } + + private static byte[] convertInputStreamToByteArray(InputStream inputStream) { + int b + ByteArrayOutputStream outputStream = new ByteArrayOutputStream() + try { + while ((b = inputStream.read()) != -1) { + outputStream.write(b) + } + } catch (IOException ex) { + throw new UncheckedIOException(ex) + } + + return outputStream.toByteArray() + } +} diff --git a/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/BlobOutputStreamTest.java b/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/BlobOutputStreamTest.java deleted file mode 100644 index 3c00d3af458d5..0000000000000 --- a/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/BlobOutputStreamTest.java +++ /dev/null @@ -1,118 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.azure.storage.blob; - -import com.azure.storage.common.Constants; -import com.azure.storage.common.credentials.SharedKeyCredential; -import org.junit.Assert; -import org.junit.BeforeClass; - -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.io.InputStream; -import java.io.UncheckedIOException; -import java.util.ArrayList; -import java.util.List; -import java.util.Random; - -public class BlobOutputStreamTest { - private static final Random RANDOM = new Random(); - private static BlobServiceClient storageClient; - private static ContainerClient containerClient; - - @BeforeClass - public static void setup() { - storageClient = new BlobServiceClientBuilder() - .endpoint("https://" + System.getenv("ACCOUNT_NAME") + ".blob.core.windows.net") - .credential(new SharedKeyCredential(System.getenv("ACCOUNT_NAME"), System.getenv("ACCOUNT_KEY"))) -// .httpClient(HttpClient.createDefault().proxy(() -> new ProxyOptions(Type.HTTP, new InetSocketAddress("localhost", 8888)))) - .buildClient(); - String containerName = "testcontainer" + RANDOM.nextInt(1000); - containerClient = storageClient.getContainerClient(containerName); - if (!containerClient.exists()) { - containerClient.create(); - } - } - -// @Test - public void testBlockBlobOutputStream() throws Exception { - String blobName = "testblob" + RANDOM.nextInt(1000); - int length = 100 * Constants.MB; - byte[] randomBytes = new byte[length]; - RANDOM.nextBytes(randomBytes); - - BlockBlobClient blockBlobClient = containerClient.getBlockBlobClient(blobName); - BlobOutputStream outStream = blockBlobClient.getBlobOutputStream(); - outStream.write(randomBytes); - outStream.close(); - - Assert.assertEquals(length, blockBlobClient.getProperties().blobSize()); - BlobInputStream blobInputStream = blockBlobClient.openInputStream(); - byte[] downloaded = convertInputStreamToByteArray(blobInputStream); - Assert.assertArrayEquals(randomBytes, downloaded); - } - -// @Test - public void testPageBlobOutputStream() throws Exception { - int length = 1024 * Constants.MB - 512; - String blobName = "testblob" + RANDOM.nextInt(1000); - byte[] randomBytes = new byte[length]; - RANDOM.nextBytes(randomBytes); - - PageBlobClient pageBlobClient = containerClient.getPageBlobClient(blobName); - pageBlobClient.create(length); - BlobOutputStream outStream = pageBlobClient.getBlobOutputStream(length); - outStream.write(randomBytes); - outStream.close(); - - BlobInputStream blobInputStream = pageBlobClient.openInputStream(); - byte[] downloaded = convertInputStreamToByteArray(blobInputStream); - Assert.assertArrayEquals(randomBytes, downloaded); - } - -// @Test - public void testAppendBlobOutputStream() throws Exception { - int length = 0; - String blobName = "testblob" + RANDOM.nextInt(1000); - List randomBytes = new ArrayList<>(); - ByteArrayOutputStream stream = new ByteArrayOutputStream(); - for (int i = 0; i != 64; ++i) { - int subLength = RANDOM.nextInt(4 * Constants.MB); - length += subLength; - byte[] bytes = new byte[subLength]; - RANDOM.nextBytes(bytes); - randomBytes.add(bytes); - stream.write(bytes); - } - - byte[] uploaded = stream.toByteArray(); - - AppendBlobClient appendBlobClient = containerClient.getAppendBlobClient(blobName); - appendBlobClient.create(); - BlobOutputStream outStream = appendBlobClient.getBlobOutputStream(); - for (int i = 0; i != 64; i++) { - outStream.write(randomBytes.get(i)); - } - outStream.close(); - - Assert.assertEquals(length, appendBlobClient.getProperties().blobSize()); - BlobInputStream blobInputStream = appendBlobClient.openInputStream(); - byte[] downloaded = convertInputStreamToByteArray(blobInputStream); - Assert.assertArrayEquals(uploaded, downloaded); - } - - private byte[] convertInputStreamToByteArray(InputStream inputStream) { - int b; - ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); - try { - while ((b = inputStream.read()) != -1) { - outputStream.write(b); - } - } catch (IOException ex) { - throw new UncheckedIOException(ex); - } - - return outputStream.toByteArray(); - } -} diff --git a/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/BlockBlobAPITest.groovy b/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/BlockBlobAPITest.groovy index f73173be58f7d..e57df8ab1301d 100644 --- a/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/BlockBlobAPITest.groovy +++ b/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/BlockBlobAPITest.groovy @@ -1,6 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. + package com.azure.storage.blob import com.azure.core.http.HttpHeaders @@ -31,10 +32,6 @@ class BlockBlobAPITest extends APISpec { bc.upload(defaultInputStream.get(), defaultDataSize) } - def getBlockID() { - return Base64.encoder.encodeToString(UUID.randomUUID().toString().getBytes(StandardCharsets.UTF_8)) - } - def "Stage block"() { setup: def response = bc.stageBlockWithResponse(getBlockID(), defaultInputStream.get(), defaultDataSize, null, null, null) @@ -57,6 +54,7 @@ class BlockBlobAPITest extends APISpec { @Unroll def "Stage block illegal arguments"() { when: + String blockID = (getBlockId) ? getBlockID() : null bc.stageBlock(blockID, data == null ? null : data.get(), dataSize) then: @@ -64,12 +62,12 @@ class BlockBlobAPITest extends APISpec { exceptionType.isInstance(e) where: - blockID | data | dataSize | exceptionType - null | defaultInputStream | defaultDataSize | StorageException - getBlockID() | null | defaultDataSize | NullPointerException - getBlockID() | defaultInputStream | defaultDataSize + 1 | IndexOutOfBoundsException + getBlockId | data | dataSize | exceptionType + false | defaultInputStream | defaultDataSize | StorageException + true | null | defaultDataSize | NullPointerException + true | defaultInputStream | defaultDataSize + 1 | IndexOutOfBoundsException // TODO (alzimmer): This doesn't throw an error as the stream is larger than the stated size - //getBlockID() | defaultInputStream | defaultDataSize - 1 | IllegalArgumentException + //true | defaultInputStream | defaultDataSize - 1 | IllegalArgumentException } def "Stage block empty body"() { @@ -163,15 +161,16 @@ class BlockBlobAPITest extends APISpec { @Unroll def "Stage block from URL IA"() { when: + String blockID = (getBlockId) ? getBlockID() : null bc.stageBlockFromURL(blockID, sourceURL, null) then: thrown(StorageException) where: - blockID | sourceURL - null | new URL("http://www.example.com") - getBlockID() | null + getBlockId | sourceURL + false | new URL("http://www.example.com") + true | null } def "Stage block from URL range"() { @@ -627,9 +626,9 @@ class BlockBlobAPITest extends APISpec { validateBlobProperties(response, cacheControl, contentDisposition, contentEncoding, contentLanguage, contentMD5, contentType) where: - cacheControl | contentDisposition | contentEncoding | contentLanguage | contentMD5 | contentType - null | null | null | null | null | null - "control" | "disposition" | "encoding" | "language" | MessageDigest.getInstance("MD5").digest(defaultData.array()) | "type" + cacheControl | contentDisposition | contentEncoding | contentLanguage | contentMD5 | contentType + null | null | null | null | null | null + "control" | "disposition" | "encoding" | "language" | MessageDigest.getInstance("MD5").digest(defaultData.array()) | "type" } @Unroll diff --git a/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/BlockBlobInputOutputStreamTest.groovy b/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/BlockBlobInputOutputStreamTest.groovy index b9102194c2ca1..a11adbd4d1048 100644 --- a/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/BlockBlobInputOutputStreamTest.groovy +++ b/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/BlockBlobInputOutputStreamTest.groovy @@ -1,6 +1,7 @@ package com.azure.storage.blob import com.azure.storage.common.Constants +import spock.lang.Requires class BlockBlobInputOutputStreamTest extends APISpec { BlockBlobClient bc @@ -9,11 +10,12 @@ class BlockBlobInputOutputStreamTest extends APISpec { bc = cc.getBlockBlobClient(generateBlobName()) } + // Only run this test in live mode as BlobOutputStream dynamically assigns blocks + @Requires({ APISpec.liveMode() }) def "Upload download"() { when: int length = 30 * Constants.MB - byte[] randomBytes = new byte[length] - (new Random()).nextBytes(randomBytes) + byte[] randomBytes = getRandomByteArray(length) BlobOutputStream outStream = bc.getBlobOutputStream() outStream.write(randomBytes) diff --git a/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/ContainerAPITest.groovy b/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/ContainerAPITest.groovy index d6fa6956e39c3..918a9d55b3fe9 100644 --- a/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/ContainerAPITest.groovy +++ b/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/ContainerAPITest.groovy @@ -84,7 +84,7 @@ class ContainerAPITest extends APISpec { when: cc.createWithResponse(null, publicAccess, null, null) - def access = cc.getPropertiesWithResponse(null, null, null).value().blobPublicAccess() + def access = cc.getProperties().blobPublicAccess() then: access.toString() == publicAccess.toString() @@ -323,16 +323,14 @@ class ContainerAPITest extends APISpec { SignedIdentifier identifier = new SignedIdentifier() .id("0000") .accessPolicy(new AccessPolicy() - .start(OffsetDateTime.now().atZoneSameInstant(ZoneId.of("UTC")).toOffsetDateTime()) - .expiry(OffsetDateTime.now().atZoneSameInstant(ZoneId.of("UTC")).toOffsetDateTime() - .plusDays(1)) + .start(getUTCNow()) + .expiry(getUTCNow().plusDays(1)) .permission("r")) SignedIdentifier identifier2 = new SignedIdentifier() .id("0001") .accessPolicy(new AccessPolicy() - .start(OffsetDateTime.now().atZoneSameInstant(ZoneId.of("UTC")).toOffsetDateTime()) - .expiry(OffsetDateTime.now().atZoneSameInstant(ZoneId.of("UTC")).toOffsetDateTime() - .plusDays(2)) + .start(getUTCNow()) + .expiry(getUTCNow().plusDays(2)) .permission("w")) List ids = new ArrayList<>() ids.push(identifier) @@ -429,9 +427,8 @@ class ContainerAPITest extends APISpec { SignedIdentifier identifier = new SignedIdentifier() .id("0000") .accessPolicy(new AccessPolicy() - .start(OffsetDateTime.now().atZoneSameInstant(ZoneId.of("UTC")).toOffsetDateTime()) - .expiry(OffsetDateTime.now().atZoneSameInstant(ZoneId.of("UTC")).toOffsetDateTime() - .plusDays(1)) + .start(getUTCNow()) + .expiry(getUTCNow().plusDays(1)) .permission("r")) List ids = new ArrayList<>() ids.push(identifier) @@ -623,7 +620,7 @@ class ContainerAPITest extends APISpec { PageBlobClient copyBlob = cc.getPageBlobClient(copyName) - String status = copyBlob.startCopyFromURLWithResponse(normal.getBlobUrl(), null, null, null, null, null).value() + String status = copyBlob.startCopyFromURL(normal.getBlobUrl()) OffsetDateTime start = OffsetDateTime.now() while (status != CopyStatusType.SUCCESS.toString()) { status = copyBlob.getPropertiesWithResponse(null, null, null).headers().value("x-ms-copy-status") @@ -631,7 +628,7 @@ class ContainerAPITest extends APISpec { if (status == CopyStatusType.FAILED.toString() || currentTime.minusMinutes(1) == start) { throw new Exception("Copy failed or took too long") } - sleep(1000) + sleepIfRecord(1000) } PageBlobClient metadataBlob = cc.getPageBlobClient(metadataName) @@ -1211,7 +1208,8 @@ class ContainerAPITest extends APISpec { setup: String leaseID = setupContainerLeaseCondition(cc, receivedLeaseID) - Thread.sleep(16000) // Wait for the lease to expire to ensure we are actually renewing it + // If running in live mode wait for the lease to expire to ensure we are actually renewing it + sleepIfRecord(16000) Response renewLeaseResponse = cc.renewLeaseWithResponse(leaseID, null, null, null) expect: @@ -1374,7 +1372,7 @@ class ContainerAPITest extends APISpec { @Unroll def "Break lease"() { setup: - cc.acquireLease(UUID.randomUUID().toString(), leaseTime) + cc.acquireLease(getRandomUUID(), leaseTime) def breakLeaseResponse = cc.breakLeaseWithResponse(breakPeriod, null, null, null) def state = LeaseStateType.fromString(cc.getPropertiesWithResponse(null, null, null).headers().value("x-ms-lease-state")) @@ -1384,7 +1382,8 @@ class ContainerAPITest extends APISpec { breakLeaseResponse.value().getSeconds() <= remainingTime validateBasicHeaders(breakLeaseResponse.headers()) if (breakPeriod != null) { - sleep(breakPeriod * 1000) // so we can delete the container after the test completes + // If running in live mode wait for the lease to break so we can delete the container after the test completes + sleepIfRecord(breakPeriod * 1000) } where: @@ -1468,7 +1467,7 @@ class ContainerAPITest extends APISpec { def "Change lease"() { setup: String leaseID = setupContainerLeaseCondition(cc, receivedLeaseID) - Response changeLeaseResponse = cc.changeLeaseWithResponse(leaseID, UUID.randomUUID().toString(), null, null, null) + Response changeLeaseResponse = cc.changeLeaseWithResponse(leaseID, getRandomUUID(), null, null, null) leaseID = changeLeaseResponse.value() expect: @@ -1481,7 +1480,7 @@ class ContainerAPITest extends APISpec { def leaseID = setupContainerLeaseCondition(cc, receivedLeaseID) expect: - cc.changeLeaseWithResponse(leaseID, UUID.randomUUID().toString(), null, null, null).statusCode() == 200 + cc.changeLeaseWithResponse(leaseID, getRandomUUID(), null, null, null).statusCode() == 200 } @Unroll @@ -1491,7 +1490,7 @@ class ContainerAPITest extends APISpec { def mac = new ModifiedAccessConditions().ifModifiedSince(modified).ifUnmodifiedSince(unmodified) expect: - cc.changeLeaseWithResponse(leaseID, UUID.randomUUID().toString(), mac, null, null).statusCode() == 200 + cc.changeLeaseWithResponse(leaseID, getRandomUUID(), mac, null, null).statusCode() == 200 where: modified | unmodified @@ -1507,7 +1506,7 @@ class ContainerAPITest extends APISpec { def mac = new ModifiedAccessConditions().ifModifiedSince(modified).ifUnmodifiedSince(unmodified) when: - cc.changeLeaseWithResponse(leaseID, UUID.randomUUID().toString(), mac, null, null) + cc.changeLeaseWithResponse(leaseID, getRandomUUID(), mac, null, null) then: thrown(StorageException) @@ -1601,11 +1600,9 @@ class ContainerAPITest extends APISpec { cc.create() } - AppendBlobClient bu = new BlobClientBuilder() - .credential(primaryCreds) - .endpoint("http://" + primaryCreds.accountName() + ".blob.core.windows.net/\$root/rootblob") - .httpClient(getHttpClient()) - .buildAppendBlobClient() + AppendBlobClient bu = getBlobClient(primaryCredential, + String.format("http://%s.blob.core.windows.net/%s/rootblob", primaryCredential.accountName(), ContainerClient.ROOT_CONTAINER_NAME)) + .asAppendBlobClient() when: Response createResponse = bu.createWithResponse(null, null, null, null, null) @@ -1686,9 +1683,7 @@ class ContainerAPITest extends APISpec { def "Get account info error"() { when: - BlobServiceClient serviceURL = new BlobServiceClientBuilder() - .endpoint(primaryBlobServiceClient.getAccountUrl().toString()) - .buildClient() + BlobServiceClient serviceURL = getServiceClient(primaryBlobServiceClient.getAccountUrl().toString()) serviceURL.getContainerClient(generateContainerName()).getAccountInfo() diff --git a/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/DownloadResponseMockFlux.java b/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/DownloadResponseMockFlux.java index 4199e5e6ddde6..9134d3a840da9 100644 --- a/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/DownloadResponseMockFlux.java +++ b/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/DownloadResponseMockFlux.java @@ -31,15 +31,16 @@ class DownloadResponseMockFlux extends Flux { private HTTPGetterInfo info; private ByteBuffer scenarioData; - DownloadResponseMockFlux(int scenario) { + DownloadResponseMockFlux(int scenario, APISpec apiSpec) { this.scenario = scenario; + switch (this.scenario) { case DR_TEST_SCENARIO_SUCCESSFUL_ONE_CHUNK: - this.scenarioData = APISpec.getRandomData(512 * 1024); + this.scenarioData = apiSpec.getRandomData(512 * 1024); break; case DR_TEST_SCENARIO_SUCCESSFUL_MULTI_CHUNK: case DR_TEST_SCENARIO_SUCCESSFUL_STREAM_FAILURES: - this.scenarioData = APISpec.getRandomData(1024); + this.scenarioData = apiSpec.getRandomData(1024); break; case DR_TEST_SCENARIO_MAX_RETRIES_EXCEEDED: case DR_TEST_SCENARIO_NON_RETRYABLE_ERROR: diff --git a/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/DownloadResponseTest.groovy b/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/DownloadResponseTest.groovy index b053dd1628afe..778d3334104a3 100644 --- a/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/DownloadResponseTest.groovy +++ b/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/DownloadResponseTest.groovy @@ -32,7 +32,7 @@ class DownloadResponseTest extends APISpec { @Unroll def "Successful"() { setup: - DownloadResponseMockFlux flux = new DownloadResponseMockFlux(scenario) + DownloadResponseMockFlux flux = new DownloadResponseMockFlux(scenario, this) HTTPGetterInfo info = new HTTPGetterInfo() .offset(0) @@ -59,7 +59,7 @@ class DownloadResponseTest extends APISpec { @Unroll def "Failure"() { setup: - DownloadResponseMockFlux flux = new DownloadResponseMockFlux(scenario) + DownloadResponseMockFlux flux = new DownloadResponseMockFlux(scenario, this) ReliableDownloadOptions options = new ReliableDownloadOptions().maxRetryRequests(5) HTTPGetterInfo info = new HTTPGetterInfo().eTag("etag") @@ -89,7 +89,7 @@ class DownloadResponseTest extends APISpec { @Unroll def "Info null IA"() { setup: - DownloadResponseMockFlux flux = new DownloadResponseMockFlux(DownloadResponseMockFlux.DR_TEST_SCENARIO_SUCCESSFUL_ONE_CHUNK) + DownloadResponseMockFlux flux = new DownloadResponseMockFlux(DownloadResponseMockFlux.DR_TEST_SCENARIO_SUCCESSFUL_ONE_CHUNK, this) when: new DownloadAsyncResponse(flux.getter(info).block().rawResponse(), info, { HTTPGetterInfo newInfo -> flux.getter(newInfo) }) @@ -113,7 +113,7 @@ class DownloadResponseTest extends APISpec { def "Getter IA"() { setup: - DownloadResponseMockFlux flux = new DownloadResponseMockFlux(DownloadResponseMockFlux.DR_TEST_SCENARIO_SUCCESSFUL_ONE_CHUNK) + DownloadResponseMockFlux flux = new DownloadResponseMockFlux(DownloadResponseMockFlux.DR_TEST_SCENARIO_SUCCESSFUL_ONE_CHUNK, this) when: DownloadAsyncResponse response = new DownloadAsyncResponse(flux.getter(new HTTPGetterInfo()).block() @@ -126,7 +126,7 @@ class DownloadResponseTest extends APISpec { def "Info"() { setup: - DownloadResponseMockFlux flux = new DownloadResponseMockFlux(DownloadResponseMockFlux.DR_TEST_SCENARIO_INFO_TEST) + DownloadResponseMockFlux flux = new DownloadResponseMockFlux(DownloadResponseMockFlux.DR_TEST_SCENARIO_INFO_TEST, this) HTTPGetterInfo info = new HTTPGetterInfo() .offset(20) .count(10) diff --git a/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/HelperTest.groovy b/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/HelperTest.groovy index 5d74138af7642..bf79c9f316ec8 100644 --- a/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/HelperTest.groovy +++ b/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/HelperTest.groovy @@ -4,7 +4,6 @@ package com.azure.storage.blob import com.azure.core.http.rest.Response -import com.azure.core.http.rest.VoidResponse import com.azure.storage.blob.models.BlobRange import com.azure.storage.blob.models.StorageException import com.azure.storage.blob.models.UserDelegationKey @@ -95,10 +94,10 @@ class HelperTest extends APISpec { ServiceSASSignatureValues v = new ServiceSASSignatureValues() .permissions(p.toString()) - .startTime(OffsetDateTime.now().minusDays(1)) - .expiryTime(OffsetDateTime.now().plusDays(1)) + .startTime(getUTCNow()) + .expiryTime(getUTCNow().plusDays(1)) .resource(Constants.UrlConstants.SAS_BLOB_SNAPSHOT_CONSTANT) - .canonicalName(String.format("/blob/%s/%s/%s", primaryCreds.accountName(), containerName, blobName)) + .canonicalName(String.format("/blob/%s/%s/%s", primaryCredential.accountName(), containerName, blobName)) .snapshotId(snapshotId) .ipRange(ipR) .protocol(SASProtocol.HTTPS_ONLY) @@ -110,11 +109,9 @@ class HelperTest extends APISpec { when: BlobURLParts parts = URLParser.parse(bu.getBlobUrl()) - parts.sasQueryParameters(v.generateSASQueryParameters(primaryCreds)).scheme("https") + parts.sasQueryParameters(v.generateSASQueryParameters(primaryCredential)).scheme("https") // base blob with snapshot SAS - AppendBlobClient bsu = new BlobClientBuilder() - .endpoint(parts.toURL().toString()) - .buildAppendBlobClient() + AppendBlobClient bsu = getBlobClient(parts.toURL().toString(), null).asAppendBlobClient() bsu.download(new ByteArrayOutputStream()) @@ -125,10 +122,8 @@ class HelperTest extends APISpec { when: // blob snapshot with snapshot SAS parts.snapshot(snapshotId) - bsu = new BlobClientBuilder() - .endpoint(parts.toURL().toString()) - .credential(SASTokenCredential.fromSASTokenString(parts.sasQueryParameters().encode())) - .buildAppendBlobClient() + bsu = getBlobClient(parts.toURL().toString(), SASTokenCredential.fromSASTokenString(parts.sasQueryParameters().encode())) + .asAppendBlobClient() ByteArrayOutputStream data = new ByteArrayOutputStream() bsu.download(data) @@ -171,7 +166,7 @@ class HelperTest extends APISpec { } v.startTime(startTime) - .canonicalName(String.format("/blob/%s/containerName/blobName", primaryCreds.accountName())) + .canonicalName(String.format("/blob/%s/containerName/blobName", primaryCredential.accountName())) .snapshotId(snapId) if (expiryTime == null) { @@ -192,21 +187,21 @@ class HelperTest extends APISpec { .contentLanguage(language) .contentType(type) - SASQueryParameters token = v.generateSASQueryParameters(primaryCreds) + SASQueryParameters token = v.generateSASQueryParameters(primaryCredential) if (startTime != null) { expectedStringToSign = String.format(expectedStringToSign, Utility.ISO_8601_UTC_DATE_FORMATTER.format(startTime), Utility.ISO_8601_UTC_DATE_FORMATTER.format(expiryTime), - primaryCreds.accountName()) + primaryCredential.accountName()) } else { expectedStringToSign = String.format(expectedStringToSign, Utility.ISO_8601_UTC_DATE_FORMATTER.format(expiryTime), - primaryCreds.accountName()) + primaryCredential.accountName()) } then: - token.signature() == primaryCreds.computeHmac256(expectedStringToSign) + token.signature() == primaryCredential.computeHmac256(expectedStringToSign) /* We don't test the blob or containerName properties because canonicalized resource is always added as at least @@ -241,7 +236,7 @@ class HelperTest extends APISpec { } v.startTime(startTime) - .canonicalName(String.format("/blob/%s/containerName/blobName", primaryCreds.accountName())) + .canonicalName(String.format("/blob/%s/containerName/blobName", primaryCredential.accountName())) .snapshotId(snapId) if (expiryTime == null) { @@ -278,7 +273,7 @@ class HelperTest extends APISpec { SASQueryParameters token = v.generateSASQueryParameters(key) - expectedStringToSign = String.format(expectedStringToSign, Utility.ISO_8601_UTC_DATE_FORMATTER.format(v.expiryTime()), primaryCreds.accountName()) + expectedStringToSign = String.format(expectedStringToSign, Utility.ISO_8601_UTC_DATE_FORMATTER.format(v.expiryTime()), primaryCredential.accountName()) then: token.signature() == Utility.computeHMac256(key.value(), expectedStringToSign) @@ -314,7 +309,7 @@ class HelperTest extends APISpec { .expiryTime(expiryTime) .permissions(new BlobSASPermission().toString()) .resource(expectedResource) - .canonicalName(String.format("/blob/%s/%s", primaryCreds.accountName(), containerName)) + .canonicalName(String.format("/blob/%s/%s", primaryCredential.accountName(), containerName)) .snapshotId(snapId) if (blobName != null) { @@ -323,13 +318,13 @@ class HelperTest extends APISpec { expectedStringToSign = String.format(expectedStringToSign, Utility.ISO_8601_UTC_DATE_FORMATTER.format(expiryTime), - primaryCreds.accountName()) + primaryCredential.accountName()) when: - SASQueryParameters token = v.generateSASQueryParameters(primaryCreds) + SASQueryParameters token = v.generateSASQueryParameters(primaryCredential) then: - token.signature() == primaryCreds.computeHmac256(expectedStringToSign) + token.signature() == primaryCredential.computeHmac256(expectedStringToSign) token.resource() == expectedResource where: @@ -359,10 +354,10 @@ class HelperTest extends APISpec { e.getMessage().contains(parameter) where: - containerName | version | creds | blobName || parameter - "c" | null | primaryCreds | "b" | "version" - "c" | "v" | null | "b" | "sharedKeyCredentials" - "c" | "v" | primaryCreds | null | "canonicalName" + containerName | version | creds | blobName || parameter + "c" | null | primaryCredential | "b" | "version" + "c" | "v" | null | "b" | "sharedKeyCredentials" + "c" | "v" | primaryCredential | null | "canonicalName" } @Unroll @@ -542,12 +537,12 @@ class HelperTest extends APISpec { v.ipRange(new IPRange().ipMin("ip")) } - def token = v.generateSASQueryParameters(primaryCreds) + def token = v.generateSASQueryParameters(primaryCredential) - expectedStringToSign = String.format(expectedStringToSign, primaryCreds.accountName()) + expectedStringToSign = String.format(expectedStringToSign, primaryCredential.accountName()) then: - token.signature() == primaryCreds.computeHmac256(expectedStringToSign) + token.signature() == primaryCredential.computeHmac256(expectedStringToSign) where: startTime | ipRange | protocol || expectedStringToSign @@ -574,13 +569,13 @@ class HelperTest extends APISpec { e.getMessage().contains(parameter) where: - permissions | service | resourceType | expiryTime | version | creds || parameter - null | "b" | "c" | OffsetDateTime.now() | "v" | primaryCreds || "permissions" - "c" | null | "c" | OffsetDateTime.now() | "v" | primaryCreds || "services" - "c" | "b" | null | OffsetDateTime.now() | "v" | primaryCreds || "resourceTypes" - "c" | "b" | "c" | null | "v" | primaryCreds || "expiryTime" - "c" | "b" | "c" | OffsetDateTime.now() | null | primaryCreds || "version" - "c" | "b" | "c" | OffsetDateTime.now() | "v" | null || "SharedKeyCredential" + permissions | service | resourceType | expiryTime | version | creds || parameter + null | "b" | "c" | OffsetDateTime.now() | "v" | primaryCredential || "permissions" + "c" | null | "c" | OffsetDateTime.now() | "v" | primaryCredential || "services" + "c" | "b" | null | OffsetDateTime.now() | "v" | primaryCredential || "resourceTypes" + "c" | "b" | "c" | null | "v" | primaryCredential || "expiryTime" + "c" | "b" | "c" | OffsetDateTime.now() | null | primaryCredential || "version" + "c" | "b" | "c" | OffsetDateTime.now() | "v" | null || "SharedKeyCredential" } @Unroll @@ -707,10 +702,10 @@ class HelperTest extends APISpec { ServiceSASSignatureValues sasValues = new ServiceSASSignatureValues() .expiryTime(OffsetDateTime.now(ZoneOffset.UTC).plusDays(1)) .permissions("r") - .canonicalName(String.format("/blob/%s/container/blob", primaryCreds.accountName())) + .canonicalName(String.format("/blob/%s/container/blob", primaryCredential.accountName())) .resource(Constants.UrlConstants.SAS_BLOB_SNAPSHOT_CONSTANT) - parts.sasQueryParameters(sasValues.generateSASQueryParameters(primaryCreds)) + parts.sasQueryParameters(sasValues.generateSASQueryParameters(primaryCredential)) when: String[] splitParts = parts.toURL().toString().split("\\?") diff --git a/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/PageBlobAPITest.groovy b/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/PageBlobAPITest.groovy index 695297ff60a34..61cd27c9577a8 100644 --- a/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/PageBlobAPITest.groovy +++ b/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/PageBlobAPITest.groovy @@ -197,6 +197,7 @@ class PageBlobAPITest extends APISpec { @Unroll def "Upload page IA"() { when: + def data = (dataSize == null) ? null : new ByteArrayInputStream(getRandomByteArray(dataSize)) bc.uploadPages(new PageRange().start(0).end(PageBlobClient.PAGE_BYTES * 2 - 1), data) then: @@ -204,10 +205,10 @@ class PageBlobAPITest extends APISpec { exceptionType.isInstance(e) where: - data | exceptionType - null | NullPointerException - new ByteArrayInputStream(getRandomByteArray(PageBlobClient.PAGE_BYTES)) | IndexOutOfBoundsException - new ByteArrayInputStream(getRandomByteArray(PageBlobClient.PAGE_BYTES * 3)) | StorageException + dataSize | exceptionType + null | NullPointerException + PageBlobClient.PAGE_BYTES | IndexOutOfBoundsException + PageBlobClient.PAGE_BYTES * 3 | StorageException } @Unroll @@ -333,17 +334,12 @@ class PageBlobAPITest extends APISpec { outputStream.toByteArray() == Arrays.copyOfRange(data, PageBlobClient.PAGE_BYTES * 2, PageBlobClient.PAGE_BYTES * 4) } - @Unroll def "Upload page from URL IA"() { when: - bc.uploadPagesFromURL(range, bc.getBlobUrl(), sourceOffset) + bc.uploadPagesFromURL(null, bc.getBlobUrl(), (Long) PageBlobClient.PAGE_BYTES) then: thrown(IllegalArgumentException) - - where: - sourceOffset | range - (Long) PageBlobClient.PAGE_BYTES | null } def "Upload page from URL MD5"() { @@ -1011,7 +1007,7 @@ class PageBlobAPITest extends APISpec { if (status == CopyStatusType.FAILED.toString() || currentTime.minusMinutes(1) == start) { throw new Exception("Copy failed or took too long") } - sleep(1000) + sleepIfRecord(1000) } expect: @@ -1050,7 +1046,7 @@ class PageBlobAPITest extends APISpec { if (status == CopyStatusType.FAILED.toString() || currentTime.minusMinutes(1) == start) { throw new Exception("Copy failed or took too long") } - sleep(1000) + sleepIfRecord(1000) } snapshot = bc.createSnapshot().getSnapshotId() diff --git a/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/ProgressReporterTest.groovy b/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/ProgressReporterTest.groovy index c839d436752a8..3363d431ca822 100644 --- a/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/ProgressReporterTest.groovy +++ b/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/ProgressReporterTest.groovy @@ -5,6 +5,7 @@ package com.azure.storage.blob import reactor.core.publisher.Flux +import spock.lang.Requires import java.nio.ByteBuffer import java.util.concurrent.atomic.AtomicLong @@ -31,9 +32,10 @@ class ProgressReporterTest extends APISpec { 2 * mockReceiver.reportProgress(10) 2 * mockReceiver.reportProgress(25) 2 * mockReceiver.reportProgress(30) - 0 * mockReceiver.reportProgress({it > 30}) + 0 * mockReceiver.reportProgress({ it > 30 }) } + @Requires({ APISpec.liveMode() }) def "Report progress sequential network test"() { setup: IProgressReceiver mockReceiver = Mock(IProgressReceiver) @@ -42,11 +44,9 @@ class ProgressReporterTest extends APISpec { Flux data = ProgressReporter.addProgressReporting(Flux.just(buffer), mockReceiver) when: - BlockBlobAsyncClient bu = new BlobClientBuilder() - .endpoint(cc.getContainerUrl().toString()) - .blobName(generateBlobName()) - .credential(primaryCreds) - .buildBlockBlobAsyncClient() + BlockBlobAsyncClient bu = getBlobAsyncClient(primaryCredential, cc.getContainerUrl().toString(), generateBlobName()) + .asBlockBlobAsyncClient() + bu.upload(data, buffer.remaining()).block() then: @@ -100,7 +100,7 @@ class ProgressReporterTest extends APISpec { We should never report more progress than the 60 total (30 from each Flux--Resubscribing is a retry and therefore rewinds). */ - 0 * mockReceiver.reportProgress({it > 60}) + 0 * mockReceiver.reportProgress({ it > 60 }) } // See TransferManagerTest for network tests of the parallel ProgressReporter. diff --git a/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/RetryTest.groovy b/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/RetryTest.groovy index ab5f9aabd8726..d32a2d1caaa9f 100644 --- a/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/RetryTest.groovy +++ b/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/RetryTest.groovy @@ -3,11 +3,11 @@ package com.azure.storage.blob - import com.azure.core.http.HttpResponse import com.azure.storage.common.policy.RequestRetryOptions import com.azure.storage.common.policy.RetryPolicyType import spock.lang.Unroll + // Tests for package-private functionality. class RetryTest extends APISpec { static URL retryTestURL = new URL("https://" + RequestRetryTestFactory.RETRY_TEST_PRIMARY_HOST) diff --git a/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/SASTest.groovy b/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/SASTest.groovy index 0fd791e5fc891..12183c2e3b7b5 100644 --- a/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/SASTest.groovy +++ b/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/SASTest.groovy @@ -3,7 +3,6 @@ package com.azure.storage.blob -import com.azure.core.http.policy.HttpLogDetailLevel import com.azure.storage.blob.models.AccessPolicy import com.azure.storage.blob.models.BlobRange import com.azure.storage.blob.models.SignedIdentifier @@ -15,6 +14,7 @@ import com.azure.storage.common.SASProtocol import com.azure.storage.common.Utility import com.azure.storage.common.credentials.SASTokenCredential import com.azure.storage.common.credentials.SharedKeyCredential +import spock.lang.Ignore import spock.lang.Unroll import java.time.LocalDateTime @@ -26,6 +26,7 @@ class SASTest extends APISpec { This test is to validate the workaround for the autorest bug that forgets to set the request property on the response. */ + def "Request property"() { when: def response = cc.deleteWithResponse(null, null, null) @@ -102,7 +103,7 @@ class SASTest extends APISpec { setup: def data = "test".getBytes() def blobName = generateBlobName() - def bu = cc.getBlockBlobClient(blobName) + def bu = getBlobClient(primaryCredential, cc.getContainerUrl().toString(), blobName).asBlockBlobClient() bu.upload(new ByteArrayInputStream(data), data.length) def permissions = new BlobSASPermission() @@ -111,8 +112,8 @@ class SASTest extends APISpec { .create(true) .delete(true) .add(true) - def startTime = OffsetDateTime.now().minusDays(1) - def expiryTime = OffsetDateTime.now().plusDays(1) + def startTime = getUTCNow().minusDays(1) + def expiryTime = getUTCNow().plusDays(1) def ipRange = new IPRange() .ipMin("0.0.0.0") .ipMax("255.255.255.255") @@ -126,12 +127,7 @@ class SASTest extends APISpec { when: def sas = bu.generateSAS(null, permissions, expiryTime, startTime, null, sasProtocol, ipRange, cacheControl, contentDisposition, contentEncoding, contentLanguage, contentType) - def client = new BlobClientBuilder() - .endpoint(cc.getContainerUrl().toString()) - .blobName(blobName) - .credential(SASTokenCredential.fromSASTokenString(sas)) - .httpClient(getHttpClient()) - .buildBlockBlobClient() + def client = getBlobClient(SASTokenCredential.fromSASTokenString(sas), cc.getContainerUrl().toString(), blobName).asBlockBlobClient() def os = new ByteArrayOutputStream() client.download(os) @@ -151,7 +147,7 @@ class SASTest extends APISpec { def data = "test".getBytes() def blobName = generateBlobName() - def bu = cc.getBlockBlobClient(blobName) + def bu = getBlobClient(primaryCredential, cc.getContainerUrl().toString(), blobName).asBlockBlobClient() bu.upload(new ByteArrayInputStream(data), data.length) String snapshotId = bu.createSnapshot().getSnapshotId() @@ -163,8 +159,8 @@ class SASTest extends APISpec { .create(true) .delete(true) .add(true) - def startTime = OffsetDateTime.now().minusDays(1) - def expiryTime = OffsetDateTime.now().plusDays(1) + def startTime = getUTCNow().minusDays(1) + def expiryTime = getUTCNow().plusDays(1) def ipRange = new IPRange() .ipMin("0.0.0.0") .ipMax("255.255.255.255") @@ -178,13 +174,7 @@ class SASTest extends APISpec { when: def sas = snapshotBlob.generateSAS(null, permissions, expiryTime, startTime, null, sasProtocol, ipRange, cacheControl, contentDisposition, contentEncoding, contentLanguage, contentType) - def client = new BlobClientBuilder() - .endpoint(cc.getContainerUrl().toString()) - .blobName(blobName) - .snapshot(snapshotId) - .credential(SASTokenCredential.fromSASTokenString(sas)) - .httpClient(getHttpClient()) - .buildBlockBlobClient() + def client = getBlobClient(SASTokenCredential.fromSASTokenString(sas), cc.getContainerUrl().toString(), blobName, snapshotId).asBlockBlobClient() def os = new ByteArrayOutputStream() client.download(os) @@ -198,12 +188,13 @@ class SASTest extends APISpec { properties.contentLanguage() == "language" } + @Ignore def "serviceSASSignatureValues network test container"() { setup: - SignedIdentifier identifier = new SignedIdentifier() + def identifier = new SignedIdentifier() .id("0000") .accessPolicy(new AccessPolicy().permission("racwdl") - .expiry(OffsetDateTime.now().plusDays(1))) + .expiry(getUTCNow().plusDays(1))) cc.setAccessPolicy(null, Arrays.asList(identifier)) // Check containerSASPermissions @@ -215,26 +206,18 @@ class SASTest extends APISpec { .delete(true) .add(true) - OffsetDateTime expiryTime = OffsetDateTime.now().plusDays(1) + OffsetDateTime expiryTime = getUTCNow().plusDays(1) when: String sasWithId = cc.generateSAS(identifier.id()) - ContainerClient client1 = new ContainerClientBuilder() - .endpoint(cc.getContainerUrl().toString()) - .credential(SASTokenCredential.fromSASTokenString(sasWithId)) - .httpClient(getHttpClient()) - .buildClient() + ContainerClient client1 = getContainerClient(SASTokenCredential.fromSASTokenString(sasWithId), cc.getContainerUrl().toString()) client1.listBlobsFlat().iterator().hasNext() String sasWithPermissions = cc.generateSAS(permissions, expiryTime) - ContainerClient client2 = new ContainerClientBuilder() - .endpoint(cc.getContainerUrl().toString()) - .credential(SASTokenCredential.fromSASTokenString(sasWithPermissions)) - .httpClient(getHttpClient()) - .buildClient() + ContainerClient client2 = getContainerClient(SASTokenCredential.fromSASTokenString(sasWithPermissions), cc.getContainerUrl().toString()) client2.listBlobsFlat().iterator().hasNext() @@ -243,6 +226,7 @@ class SASTest extends APISpec { } + @Ignore def "serviceSASSignatureValues network test blob user delegation"() { setup: byte[] data = "test".getBytes() @@ -257,8 +241,8 @@ class SASTest extends APISpec { .delete(true) .add(true) - OffsetDateTime startTime = OffsetDateTime.now().minusDays(1) - OffsetDateTime expiryTime = OffsetDateTime.now().plusDays(1) + OffsetDateTime startTime = getUTCNow().minusDays(1) + OffsetDateTime expiryTime = getUTCNow().plusDays(1) IPRange ipRange = new IPRange() .ipMin("0.0.0.0") @@ -271,21 +255,16 @@ class SASTest extends APISpec { String contentLanguage = "language" String contentType = "type" - UserDelegationKey key = getOAuthServiceURL().getUserDelegationKey(null, OffsetDateTime.now().plusDays(1)) + UserDelegationKey key = getOAuthServiceClient().getUserDelegationKey(null, getUTCNow().plusDays(1)) when: - String sas = bu.generateUserDelegationSAS(key, primaryCreds.accountName(), permissions, expiryTime, startTime, null, sasProtocol, ipRange, cacheControl, contentDisposition, contentEncoding, contentLanguage, contentType) + String sas = bu.generateUserDelegationSAS(key, primaryCredential.accountName(), permissions, expiryTime, startTime, null, sasProtocol, ipRange, cacheControl, contentDisposition, contentEncoding, contentLanguage, contentType) - BlockBlobClient client = new BlobClientBuilder() - .endpoint(cc.getContainerUrl().toString()) - .blobName(blobName) - .credential(SASTokenCredential.fromSASTokenString(sas)) - .httpClient(getHttpClient()) - .buildBlockBlobClient() + BlockBlobClient client = getBlobClient(SASTokenCredential.fromSASTokenString(sas), cc.getContainerUrl().toString(), blobName).asBlockBlobClient() OutputStream os = new ByteArrayOutputStream() client.download(os) - BlobProperties properties = client.getProperties().value() + BlobProperties properties = client.getProperties() then: os.toString() == new String(data) @@ -296,13 +275,14 @@ class SASTest extends APISpec { notThrown(StorageException) } + @Ignore def "serviceSASSignatureValues network test blob snapshot user delegation"() { setup: byte[] data = "test".getBytes() String blobName = generateBlobName() BlockBlobClient bu = cc.getBlockBlobClient(blobName) bu.upload(new ByteArrayInputStream(data), data.length) - BlockBlobClient snapshotBlob = bu.createSnapshot().asBlockBlobClient() + BlockBlobClient snapshotBlob = bu.createSnapshot().value().asBlockBlobClient() String snapshotId = snapshotBlob.getSnapshotId() BlobSASPermission permissions = new BlobSASPermission() @@ -312,8 +292,8 @@ class SASTest extends APISpec { .delete(true) .add(true) - OffsetDateTime startTime = OffsetDateTime.now().minusDays(1) - OffsetDateTime expiryTime = OffsetDateTime.now().plusDays(1) + OffsetDateTime startTime = getUTCNow().minusDays(1) + OffsetDateTime expiryTime = getUTCNow().plusDays(1) IPRange ipRange = new IPRange() .ipMin("0.0.0.0") @@ -326,20 +306,14 @@ class SASTest extends APISpec { String contentLanguage = "language" String contentType = "type" - UserDelegationKey key = getOAuthServiceURL().getUserDelegationKey(startTime, expiryTime) + UserDelegationKey key = getOAuthServiceClient().getUserDelegationKey(startTime, expiryTime) when: - String sas = snapshotBlob.generateUserDelegationSAS(key, primaryCreds.accountName(), permissions, expiryTime, startTime, null, sasProtocol, ipRange, cacheControl, contentDisposition, contentEncoding, contentLanguage, contentType) + String sas = snapshotBlob.generateUserDelegationSAS(key, primaryCredential.accountName(), permissions, expiryTime, startTime, null, sasProtocol, ipRange, cacheControl, contentDisposition, contentEncoding, contentLanguage, contentType) // base blob with snapshot SAS - BlockBlobClient client1 = new BlobClientBuilder() - .endpoint(cc.getContainerUrl().toString()) - .blobName(blobName) - .credential(SASTokenCredential.fromSASTokenString(sas)) - .httpClient(getHttpClient()) - .httpLogDetailLevel(HttpLogDetailLevel.BODY_AND_HEADERS) - .buildBlockBlobClient() + BlockBlobClient client1 = getBlobClient(SASTokenCredential.fromSASTokenString(sas), cc.getContainerUrl().toString(), blobName).asBlockBlobClient() client1.download(new ByteArrayOutputStream()) then: @@ -348,15 +322,7 @@ class SASTest extends APISpec { when: // blob snapshot with snapshot SAS - BlockBlobClient client2 = new BlobClientBuilder() - .endpoint(cc.getContainerUrl().toString()) - .blobName(blobName) - .snapshot(snapshotId) - .credential(SASTokenCredential.fromSASTokenString(sas)) - .httpClient(getHttpClient()) - .httpLogDetailLevel(HttpLogDetailLevel.BODY_AND_HEADERS) - .buildBlockBlobClient() - + BlockBlobClient client2 = getBlobClient(SASTokenCredential.fromSASTokenString(sas), cc.getContainerUrl().toString(), blobName, snapshotId).asBlockBlobClient() OutputStream os = new ByteArrayOutputStream() client2.download(os) @@ -374,6 +340,7 @@ class SASTest extends APISpec { properties.contentLanguage() == "language" } + @Ignore def "serviceSASSignatureValues network test container user delegation"() { setup: ContainerSASPermission permissions = new ContainerSASPermission() @@ -383,20 +350,14 @@ class SASTest extends APISpec { .delete(true) .add(true) - OffsetDateTime expiryTime = OffsetDateTime.now().plusDays(1) + OffsetDateTime expiryTime = getUTCNow().plusDays(1) - UserDelegationKey key = getOAuthServiceURL().getUserDelegationKey(null, OffsetDateTime.now().plusDays(1)) + UserDelegationKey key = getOAuthServiceClient().getUserDelegationKey(null, getUTCNow().plusDays(1)) when: + String sasWithPermissions = cc.generateUserDelegationSAS(key, primaryCredential.accountName(), permissions, expiryTime) - String sasWithPermissions = cc.generateUserDelegationSAS(key, primaryCreds.accountName(), permissions, expiryTime) - - ContainerClient client = new ContainerClientBuilder() - .endpoint(cc.getContainerUrl().toString()) - .credential(SASTokenCredential.fromSASTokenString(sasWithPermissions)) - .httpClient(getHttpClient()) - .buildClient() - + ContainerClient client = getContainerClient(SASTokenCredential.fromSASTokenString(sasWithPermissions), cc.getContainerUrl().toString()) client.listBlobsFlat().iterator().hasNext() then: @@ -418,18 +379,12 @@ class SASTest extends APISpec { .object(true) def permissions = new AccountSASPermission() .read(true) - def expiryTime = OffsetDateTime.now().plusDays(1) + def expiryTime = getUTCNow().plusDays(1) when: def sas = primaryBlobServiceClient.generateAccountSAS(service, resourceType, permissions, expiryTime, null, null, null, null) - def client = new BlobClientBuilder() - .endpoint(cc.getContainerUrl().toString()) - .blobName(blobName) - .credential(SASTokenCredential.fromSASTokenString(sas)) - .httpClient(getHttpClient()) - .buildBlockBlobClient() - + def client = getBlobClient(SASTokenCredential.fromSASTokenString(sas), cc.getContainerUrl().toString(), blobName).asBlockBlobClient() def os = new ByteArrayOutputStream() client.download(os) @@ -452,17 +407,12 @@ class SASTest extends APISpec { .object(true) def permissions = new AccountSASPermission() .read(true) - def expiryTime = OffsetDateTime.now().plusDays(1) + def expiryTime = getUTCNow().plusDays(1) when: def sas = primaryBlobServiceClient.generateAccountSAS(service, resourceType, permissions, expiryTime, null, null, null, null) - def client = new BlobClientBuilder() - .endpoint(cc.getContainerUrl().toString()) - .blobName(blobName) - .credential(SASTokenCredential.fromSASTokenString(sas)) - .httpClient(getHttpClient()) - .buildBlockBlobClient() + def client = getBlobClient(SASTokenCredential.fromSASTokenString(sas), cc.getContainerUrl().toString(), blobName).asBlockBlobClient() client.delete() then: @@ -480,17 +430,13 @@ class SASTest extends APISpec { def permissions = new AccountSASPermission() .read(true) .create(false) - def expiryTime = OffsetDateTime.now().plusDays(1) + def expiryTime = getUTCNow().plusDays(1) when: def sas = primaryBlobServiceClient.generateAccountSAS(service, resourceType, permissions, expiryTime, null, null, null, null) - def scBuilder = new BlobServiceClientBuilder() - scBuilder.endpoint(primaryBlobServiceClient.getAccountUrl().toString()) - .httpClient(getHttpClient()) - .credential(SASTokenCredential.fromSASTokenString(sas)) - def sc = scBuilder.buildClient() - sc.createContainer("container") + def sc = getServiceClient(SASTokenCredential.fromSASTokenString(sas), primaryBlobServiceClient.getAccountUrl().toString()) + sc.createContainer(generateContainerName()) then: thrown(StorageException) @@ -507,17 +453,13 @@ class SASTest extends APISpec { def permissions = new AccountSASPermission() .read(true) .create(true) - def expiryTime = OffsetDateTime.now().plusDays(1) + def expiryTime = getUTCNow().plusDays(1) when: def sas = primaryBlobServiceClient.generateAccountSAS(service, resourceType, permissions, expiryTime, null, null, null, null) - def scBuilder = new BlobServiceClientBuilder() - scBuilder.endpoint(primaryBlobServiceClient.getAccountUrl().toString()) - .httpClient(getHttpClient()) - .credential(SASTokenCredential.fromSASTokenString(sas)) - def sc = scBuilder.buildClient() - sc.createContainer("container") + def sc = getServiceClient(SASTokenCredential.fromSASTokenString(sas), primaryBlobServiceClient.getAccountUrl().toString()) + sc.createContainer(generateContainerName()) then: notThrown(StorageException) @@ -532,7 +474,7 @@ class SASTest extends APISpec { @Unroll def "serviceSasSignatures string to sign"() { when: - def v = new ServiceSASSignatureValues() + ServiceSASSignatureValues v = new ServiceSASSignatureValues() def p = new BlobSASPermission() p.read(true) v.permissions(p.toString()) @@ -556,9 +498,9 @@ class SASTest extends APISpec { .contentLanguage(language) .contentType(type) - def token = v.generateSASQueryParameters(primaryCreds) + def token = v.generateSASQueryParameters(primaryCredential) then: - token.signature() == primaryCreds.computeHmac256(expectedStringToSign) + token.signature() == primaryCredential.computeHmac256(expectedStringToSign) /* We don't test the blob or containerName properties because canonicalized resource is always added as at least @@ -641,7 +583,6 @@ class SASTest extends APISpec { null | null | null | null | null | null | null | "3hd4LRwrARVGbeMRQRfTLIsGMkCPuZJnvxZDU7Gak8c=" | null | null | null | null | null | null | null | "type" || "r\n\n" + Utility.ISO_8601_UTC_DATE_FORMATTER.format(OffsetDateTime.of(2017, 1, 1, 0, 0, 0, 0, ZoneOffset.UTC)) + "\ncontainerName/blobName\n\n\n\n\n\n\n\n\n" + Constants.HeaderConstants.TARGET_STORAGE_VERSION + "\n\n\n\n\n\n\ntype" } - @Unroll def "serviceSASSignatureValues canonicalizedResource"() { setup: def blobName = generateBlobName() @@ -670,9 +611,9 @@ class SASTest extends APISpec { e.getMessage().contains(parameter) where: - version | creds || parameter - null | primaryCreds | "version" - "v" | null | "sharedKeyCredentials" + version | creds || parameter + null | primaryCredential || "version" + "v" | null || "sharedKeyCredentials" } @Unroll @@ -834,7 +775,7 @@ class SASTest extends APISpec { @Unroll def "ServiceSASSignatureValues assertGenerateOk"() { when: - def serviceSASSignatureValues = new ServiceSASSignatureValues() + ServiceSASSignatureValues serviceSASSignatureValues = new ServiceSASSignatureValues() serviceSASSignatureValues.version(version) serviceSASSignatureValues.canonicalName(canonicalName) serviceSASSignatureValues.expiryTime(expiryTime) @@ -855,11 +796,11 @@ class SASTest extends APISpec { where: usingUserDelegation | version | canonicalName | expiryTime | permissions | identifier | resource | snapshotId - false | null | null | null | null | null | null | null - false | Constants.HeaderConstants.TARGET_STORAGE_VERSION | null | null | null | null | null | null - false | Constants.HeaderConstants.TARGET_STORAGE_VERSION | "containerName/blobName" | null | null | null | null | null - false | Constants.HeaderConstants.TARGET_STORAGE_VERSION | "containerName/blobName" | OffsetDateTime.of(2017, 1, 1, 0, 0, 0, 0, ZoneOffset.UTC) | null | null | null | null - false | Constants.HeaderConstants.TARGET_STORAGE_VERSION | "containerName/blobName" | null | new BlobSASPermission().read(true).toString() | null | null | null + false | null | null | null | null | null | null | null + false | Constants.HeaderConstants.TARGET_STORAGE_VERSION | null | null | null | null | null | null + false | Constants.HeaderConstants.TARGET_STORAGE_VERSION | "containerName/blobName" | null | null | null | null | null + false | Constants.HeaderConstants.TARGET_STORAGE_VERSION | "containerName/blobName" | OffsetDateTime.of(2017, 1, 1, 0, 0, 0, 0, ZoneOffset.UTC) | null | null | null | null + false | Constants.HeaderConstants.TARGET_STORAGE_VERSION | "containerName/blobName" | null | new BlobSASPermission().read(true).toString() | null | null | null false | null | null | null | null | "0000" | "c" | "id" } @@ -887,10 +828,10 @@ class SASTest extends APISpec { } v.protocol(protocol) - def token = v.generateSASQueryParameters(primaryCreds) + def token = v.generateSASQueryParameters(primaryCredential) then: - token.signature() == primaryCreds.computeHmac256(String.format(expectedStringToSign, primaryCreds.accountName())) + token.signature() == primaryCredential.computeHmac256(String.format(expectedStringToSign, primaryCredential.accountName())) where: startTime | ipRange | protocol || expectedStringToSign @@ -917,13 +858,13 @@ class SASTest extends APISpec { e.getMessage().contains(parameter) where: - permissions | service | resourceType | expiryTime | version | creds || parameter - null | "b" | "c" | OffsetDateTime.now() | "v" | primaryCreds || "permissions" - "c" | null | "c" | OffsetDateTime.now() | "v" | primaryCreds || "services" - "c" | "b" | null | OffsetDateTime.now() | "v" | primaryCreds || "resourceTypes" - "c" | "b" | "c" | null | "v" | primaryCreds || "expiryTime" - "c" | "b" | "c" | OffsetDateTime.now() | null | primaryCreds || "version" - "c" | "b" | "c" | OffsetDateTime.now() | "v" | null || "SharedKeyCredential" + permissions | service | resourceType | expiryTime | version | creds || parameter + null | "b" | "c" | OffsetDateTime.now() | "v" | primaryCredential || "permissions" + "c" | null | "c" | OffsetDateTime.now() | "v" | primaryCredential || "services" + "c" | "b" | null | OffsetDateTime.now() | "v" | primaryCredential || "resourceTypes" + "c" | "b" | "c" | null | "v" | primaryCredential || "expiryTime" + "c" | "b" | "c" | OffsetDateTime.now() | null | primaryCredential || "version" + "c" | "b" | "c" | OffsetDateTime.now() | "v" | null || "SharedKeyCredential" } @Unroll @@ -1050,7 +991,7 @@ class SASTest extends APISpec { .permissions("r") .canonicalName("/containerName/blobName") .expiryTime(OffsetDateTime.of(2017, 1, 1, 0, 0, 0, 0, ZoneOffset.UTC)) - parts.sasQueryParameters(sasValues.generateSASQueryParameters(primaryCreds)) + parts.sasQueryParameters(sasValues.generateSASQueryParameters(primaryCredential)) when: def splitParts = parts.toURL().toString().split("\\?") diff --git a/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/Sample.java b/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/Sample.java deleted file mode 100644 index 7e2dd2b8cbd01..0000000000000 --- a/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/Sample.java +++ /dev/null @@ -1,215 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.azure.storage.blob; - -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.Response; -import com.azure.storage.common.credentials.SharedKeyCredential; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -import java.io.ByteArrayInputStream; -import java.io.ByteArrayOutputStream; -import java.io.File; -import java.io.FileOutputStream; -import java.io.IOException; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.util.UUID; - -public class Sample { - - private static final String ACCOUNT_ENDPOINT = ""; - private static final String ACCOUNT_NAME = ""; - private static final String ACCOUNT_KEY = ""; - - //@Test - public void sample() throws IOException { - // get service client - BlobServiceClient serviceClient = new BlobServiceClientBuilder().endpoint(ACCOUNT_ENDPOINT) - .credential(new SharedKeyCredential(ACCOUNT_NAME, ACCOUNT_KEY)) - .httpClient(HttpClient.createDefault()/*.proxy(() -> new ProxyOptions(ProxyOptions.Type.HTTP, new InetSocketAddress("localhost", 8888)))*/) - .buildClient(); - - // create 5 containers - ContainerClient containerClientToCreate = null; - for (int i = 0; i < 5; i++) { - String name = "uxtesting" + UUID.randomUUID(); - containerClientToCreate = serviceClient.getContainerClient(name); - containerClientToCreate.create(); - System.out.println("Created container: " + name); - } - System.out.println(); - - // finalized client for lambdas - final ContainerClient containerClient = containerClientToCreate; - - // list containers in account - System.out.println("Listing containers in account:"); - serviceClient.listContainers().forEach((item) -> System.out.println(item.name())); - System.out.println(); - - // in the last container, create 5 blobs - for (int i = 0; i < 5; i++) { - BlockBlobClient blobClient = containerClient.getBlockBlobClient("testblob-" + i); - ByteArrayInputStream testdata = new ByteArrayInputStream(("test data" + i).getBytes(StandardCharsets.UTF_8)); - - blobClient.upload(testdata, testdata.available()); - System.out.println("Uploaded blob."); - } - System.out.println(); - - // list blobs and download results - System.out.println("Listing/downloading blobs:"); - containerClient.listBlobsFlat().forEach((item) -> { - ByteArrayOutputStream stream = new ByteArrayOutputStream(); - containerClient.getBlobClient(item.name()).download(stream); - System.out.println(item.name() + ": " + new String(stream.toByteArray())); - }); - System.out.println(); - - // cleanup - serviceClient.listContainers().forEach((item) -> { - ContainerClient containerClientToCleanup = serviceClient.getContainerClient(item.name()); - containerClientToCleanup.delete(); - System.out.println("Deleted container: " + item.name()); - }); - } - - //@Test - public void asyncSample() throws IOException { - // get service client - BlobServiceAsyncClient serviceClient = new BlobServiceClientBuilder().endpoint(ACCOUNT_ENDPOINT) - .credential(new SharedKeyCredential(ACCOUNT_NAME, ACCOUNT_KEY)) - .httpClient(HttpClient.createDefault()/*.proxy(() -> new ProxyOptions(ProxyOptions.Type.HTTP, new InetSocketAddress("localhost", 8888)))*/) - .buildAsyncClient(); - - // create 5 containers - ContainerAsyncClient containerClient = null; - Mono createContainerTask = Mono.empty(); - for (int i = 0; i < 5; i++) { - String name = "uxtesting" + UUID.randomUUID(); - containerClient = serviceClient.getContainerAsyncClient(name); - - createContainerTask = createContainerTask.and(containerClient.create().then(Mono.defer(() -> { - System.out.println("Created container: " + name); - return Mono.empty(); - }))); - } - ContainerAsyncClient finalContainerClient = containerClient; // final variable for lambda usage - - createContainerTask - // list containers - .thenMany(Flux.defer(() -> { - System.out.println("Listing containers in account:"); - return serviceClient.listContainers() - .flatMap(containerItem -> { - System.out.println(containerItem.name()); - return Mono.empty(); - }); - })) - // in the last container, create 5 blobs - .then(Mono.defer(() -> { - Mono finished = Mono.empty(); - for (int i = 0; i < 5; i++) { - BlockBlobAsyncClient blobClient = finalContainerClient.getBlockBlobAsyncClient("testblob-" + i); - byte[] message = ("test data" + i).getBytes(StandardCharsets.UTF_8); - Flux testdata = Flux.just(ByteBuffer.wrap(message)); - - finished = finished.and(blobClient.upload(testdata, message.length) - .then(Mono.defer(() -> { - System.out.println("Uploaded blob."); - return Mono.empty(); - }))); - } - - return finished; - })) - // list blobs - .thenMany(Flux.defer(() -> { - System.out.println(); - System.out.println("Listing/downloading blobs:"); - return finalContainerClient.listBlobsFlat(); - })) - // download results - .flatMap(listItem -> - finalContainerClient.getBlobAsyncClient(listItem.name()) - .downloadWithResponse(null, null, null, false, null) - .flatMapMany(Response::value) - .map(buffer -> new String(buffer.array())) - .doOnNext(string -> System.out.println(listItem.name() + ": " + string))) - // cleanup - .thenMany(serviceClient.listContainers()) - .flatMap(containerItem -> serviceClient - .getContainerAsyncClient(containerItem.name()) - .delete()) - .blockLast(); - } - - //@Test - public void uploadDownloadFromFile() throws IOException { - final String data = "TEST DATA" + UUID.randomUUID(); - final String folderPath = "C:/Users/jaschrep/Desktop/temp"; - - // make start file - File startFile = new File(folderPath, "startFile" + UUID.randomUUID()); - FileOutputStream fstream = new FileOutputStream(startFile); - fstream.write(data.getBytes()); - fstream.close(); - - // get service client - BlobServiceClient serviceClient = new BlobServiceClientBuilder().endpoint(ACCOUNT_ENDPOINT) - .credential(new SharedKeyCredential(ACCOUNT_NAME, ACCOUNT_KEY)) - .httpClient(HttpClient.createDefault()/*.proxy(() -> new ProxyOptions(ProxyOptions.Type.HTTP, new InetSocketAddress("localhost", 8888)))*/) - .buildClient(); - - // make container - ContainerClient containerClient = serviceClient.getContainerClient("uxstudy" + UUID.randomUUID()); - containerClient.create(); - - // upload data - BlockBlobClient blobClient = containerClient.getBlockBlobClient("testblob_" + UUID.randomUUID()); - blobClient.uploadFromFile(startFile.getAbsolutePath()); - - // download data - File endFile = new File(folderPath, "endFile" + UUID.randomUUID()); - blobClient.downloadToFile(endFile.getAbsolutePath()); - } - - //@Test - public void uploadDownloadFromFileAsync() throws IOException { - final String data = "TEST DATA" + UUID.randomUUID(); - final String folderPath = "C:/Users/jaschrep/Desktop/temp"; - - // make start file - File startFile = new File(folderPath, "startFile" + UUID.randomUUID()); - FileOutputStream fstream = new FileOutputStream(startFile); - fstream.write(data.getBytes()); - fstream.close(); - - // get service client - BlobServiceAsyncClient serviceClient = new BlobServiceClientBuilder().endpoint(ACCOUNT_ENDPOINT) - .credential(new SharedKeyCredential(ACCOUNT_NAME, ACCOUNT_KEY)) - .httpClient(HttpClient.createDefault()/*.proxy(() -> new ProxyOptions(ProxyOptions.Type.HTTP, new InetSocketAddress("localhost", 8888)))*/) - .buildAsyncClient(); - - // make container - ContainerAsyncClient containerClient = serviceClient.getContainerAsyncClient("uxstudy" + UUID.randomUUID()); - containerClient.create() - - // upload data - .then(Mono.defer(() -> { - BlockBlobAsyncClient blobClient = containerClient.getBlockBlobAsyncClient("testblob_" + UUID.randomUUID()); - return blobClient.uploadFromFile(startFile.getAbsolutePath()) - .then(Mono.just(blobClient)); - })) - - // download data - .flatMap(blobClient -> - blobClient.downloadToFile(new File(folderPath, "endFile" + UUID.randomUUID()).getAbsolutePath())) - - .block(); - - } -} diff --git a/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/ServiceAPITest.groovy b/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/ServiceAPITest.groovy index afb1e8a0c63f4..5aaea46dc7223 100644 --- a/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/ServiceAPITest.groovy +++ b/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/ServiceAPITest.groovy @@ -19,17 +19,16 @@ import com.azure.storage.blob.models.StorageException import com.azure.storage.blob.models.StorageServiceProperties import com.azure.storage.blob.models.StorageServiceStats import com.azure.storage.blob.models.UserDelegationKey +import com.azure.storage.common.credentials.SharedKeyCredential import com.azure.storage.common.policy.RequestRetryOptions -import org.junit.Assume +import com.azure.storage.common.policy.RequestRetryPolicy import java.time.Duration import java.time.OffsetDateTime -import java.time.temporal.TemporalAmount -import java.time.temporal.TemporalUnit class ServiceAPITest extends APISpec { def setup() { - def disabled = new RetentionPolicy().enabled(false) + RetentionPolicy disabled = new RetentionPolicy().enabled(false) primaryBlobServiceClient.setProperties(new StorageServiceProperties() .staticWebsite(new StaticWebsite().enabled(false)) .deleteRetentionPolicy(disabled) @@ -44,19 +43,18 @@ class ServiceAPITest extends APISpec { } def cleanup() { - Assume.assumeTrue("The test only runs in Live mode.", testMode.equalsIgnoreCase("RECORD")) RetentionPolicy disabled = new RetentionPolicy().enabled(false) primaryBlobServiceClient.setProperties(new StorageServiceProperties() - .staticWebsite(new StaticWebsite().enabled(false)) - .deleteRetentionPolicy(disabled) - .cors(null) - .hourMetrics(new Metrics().version("1.0").enabled(false) + .staticWebsite(new StaticWebsite().enabled(false)) + .deleteRetentionPolicy(disabled) + .cors(null) + .hourMetrics(new Metrics().version("1.0").enabled(false) .retentionPolicy(disabled)) - .minuteMetrics(new Metrics().version("1.0").enabled(false) + .minuteMetrics(new Metrics().version("1.0").enabled(false) .retentionPolicy(disabled)) - .logging(new Logging().version("1.0") + .logging(new Logging().version("1.0") .retentionPolicy(disabled)) - .defaultServiceVersion("2018-03-28")) + .defaultServiceVersion("2018-03-28")) } def "List containers"() { @@ -108,8 +106,8 @@ class ServiceAPITest extends APISpec { expect: primaryBlobServiceClient.listContainers(new ListContainersOptions() - .details(new ContainerListDetails().metadata(true)) - .prefix("aaa" + containerPrefix), null) + .details(new ContainerListDetails().metadata(true)) + .prefix("aaa" + containerPrefix), null) .iterator().next().metadata() == metadata // Container with prefix "aaa" will not be cleaned up by normal test cleanup. @@ -164,71 +162,71 @@ class ServiceAPITest extends APISpec { def validatePropsSet(StorageServiceProperties sent, StorageServiceProperties received) { return received.logging().read() == sent.logging().read() && - received.logging().delete() == sent.logging().delete() && - received.logging().write() == sent.logging().write() && - received.logging().version() == sent.logging().version() && - received.logging().retentionPolicy().days() == sent.logging().retentionPolicy().days() && - received.logging().retentionPolicy().enabled() == sent.logging().retentionPolicy().enabled() && - - received.cors().size() == sent.cors().size() && - received.cors().get(0).allowedMethods() == sent.cors().get(0).allowedMethods() && - received.cors().get(0).allowedHeaders() == sent.cors().get(0).allowedHeaders() && - received.cors().get(0).allowedOrigins() == sent.cors().get(0).allowedOrigins() && - received.cors().get(0).exposedHeaders() == sent.cors().get(0).exposedHeaders() && - received.cors().get(0).maxAgeInSeconds() == sent.cors().get(0).maxAgeInSeconds() && - - received.defaultServiceVersion() == sent.defaultServiceVersion() && - - received.hourMetrics().enabled() == sent.hourMetrics().enabled() && - received.hourMetrics().includeAPIs() == sent.hourMetrics().includeAPIs() && - received.hourMetrics().retentionPolicy().enabled() == sent.hourMetrics().retentionPolicy().enabled() && - received.hourMetrics().retentionPolicy().days() == sent.hourMetrics().retentionPolicy().days() && - received.hourMetrics().version() == sent.hourMetrics().version() && - - received.minuteMetrics().enabled() == sent.minuteMetrics().enabled() && - received.minuteMetrics().includeAPIs() == sent.minuteMetrics().includeAPIs() && - received.minuteMetrics().retentionPolicy().enabled() == sent.minuteMetrics().retentionPolicy().enabled() && - received.minuteMetrics().retentionPolicy().days() == sent.minuteMetrics().retentionPolicy().days() && - received.minuteMetrics().version() == sent.minuteMetrics().version() && - - received.deleteRetentionPolicy().enabled() == sent.deleteRetentionPolicy().enabled() && - received.deleteRetentionPolicy().days() == sent.deleteRetentionPolicy().days() && - - received.staticWebsite().enabled() == sent.staticWebsite().enabled() && - received.staticWebsite().indexDocument() == sent.staticWebsite().indexDocument() && - received.staticWebsite().errorDocument404Path() == sent.staticWebsite().errorDocument404Path() + received.logging().delete() == sent.logging().delete() && + received.logging().write() == sent.logging().write() && + received.logging().version() == sent.logging().version() && + received.logging().retentionPolicy().days() == sent.logging().retentionPolicy().days() && + received.logging().retentionPolicy().enabled() == sent.logging().retentionPolicy().enabled() && + + received.cors().size() == sent.cors().size() && + received.cors().get(0).allowedMethods() == sent.cors().get(0).allowedMethods() && + received.cors().get(0).allowedHeaders() == sent.cors().get(0).allowedHeaders() && + received.cors().get(0).allowedOrigins() == sent.cors().get(0).allowedOrigins() && + received.cors().get(0).exposedHeaders() == sent.cors().get(0).exposedHeaders() && + received.cors().get(0).maxAgeInSeconds() == sent.cors().get(0).maxAgeInSeconds() && + + received.defaultServiceVersion() == sent.defaultServiceVersion() && + + received.hourMetrics().enabled() == sent.hourMetrics().enabled() && + received.hourMetrics().includeAPIs() == sent.hourMetrics().includeAPIs() && + received.hourMetrics().retentionPolicy().enabled() == sent.hourMetrics().retentionPolicy().enabled() && + received.hourMetrics().retentionPolicy().days() == sent.hourMetrics().retentionPolicy().days() && + received.hourMetrics().version() == sent.hourMetrics().version() && + + received.minuteMetrics().enabled() == sent.minuteMetrics().enabled() && + received.minuteMetrics().includeAPIs() == sent.minuteMetrics().includeAPIs() && + received.minuteMetrics().retentionPolicy().enabled() == sent.minuteMetrics().retentionPolicy().enabled() && + received.minuteMetrics().retentionPolicy().days() == sent.minuteMetrics().retentionPolicy().days() && + received.minuteMetrics().version() == sent.minuteMetrics().version() && + + received.deleteRetentionPolicy().enabled() == sent.deleteRetentionPolicy().enabled() && + received.deleteRetentionPolicy().days() == sent.deleteRetentionPolicy().days() && + + received.staticWebsite().enabled() == sent.staticWebsite().enabled() && + received.staticWebsite().indexDocument() == sent.staticWebsite().indexDocument() && + received.staticWebsite().errorDocument404Path() == sent.staticWebsite().errorDocument404Path() } def "Set get properties"() { when: RetentionPolicy retentionPolicy = new RetentionPolicy().days(5).enabled(true) Logging logging = new Logging().read(true).version("1.0") - .retentionPolicy(retentionPolicy) + .retentionPolicy(retentionPolicy) ArrayList corsRules = new ArrayList<>() corsRules.add(new CorsRule().allowedMethods("GET,PUT,HEAD") - .allowedOrigins("*") - .allowedHeaders("x-ms-version") - .exposedHeaders("x-ms-client-request-id") - .maxAgeInSeconds(10)) + .allowedOrigins("*") + .allowedHeaders("x-ms-version") + .exposedHeaders("x-ms-client-request-id") + .maxAgeInSeconds(10)) String defaultServiceVersion = "2016-05-31" Metrics hourMetrics = new Metrics().enabled(true).version("1.0") - .retentionPolicy(retentionPolicy).includeAPIs(true) + .retentionPolicy(retentionPolicy).includeAPIs(true) Metrics minuteMetrics = new Metrics().enabled(true).version("1.0") - .retentionPolicy(retentionPolicy).includeAPIs(true) + .retentionPolicy(retentionPolicy).includeAPIs(true) StaticWebsite website = new StaticWebsite().enabled(true) - .indexDocument("myIndex.html") - .errorDocument404Path("custom/error/path.html") + .indexDocument("myIndex.html") + .errorDocument404Path("custom/error/path.html") StorageServiceProperties sentProperties = new StorageServiceProperties() - .logging(logging).cors(corsRules).defaultServiceVersion(defaultServiceVersion) - .minuteMetrics(minuteMetrics).hourMetrics(hourMetrics) - .deleteRetentionPolicy(retentionPolicy) - .staticWebsite(website) + .logging(logging).cors(corsRules).defaultServiceVersion(defaultServiceVersion) + .minuteMetrics(minuteMetrics).hourMetrics(hourMetrics) + .deleteRetentionPolicy(retentionPolicy) + .staticWebsite(website) HttpHeaders headers = primaryBlobServiceClient.setPropertiesWithResponse(sentProperties, null, null).headers() // Service properties may take up to 30s to take effect. If they weren't already in place, wait. - sleep(30 * 1000) + sleepIfRecord(30 * 1000) StorageServiceProperties receivedProperties = primaryBlobServiceClient.getProperties() @@ -244,27 +242,27 @@ class ServiceAPITest extends APISpec { setup: RetentionPolicy retentionPolicy = new RetentionPolicy().days(5).enabled(true) Logging logging = new Logging().read(true).version("1.0") - .retentionPolicy(retentionPolicy) + .retentionPolicy(retentionPolicy) ArrayList corsRules = new ArrayList<>() corsRules.add(new CorsRule().allowedMethods("GET,PUT,HEAD") - .allowedOrigins("*") - .allowedHeaders("x-ms-version") - .exposedHeaders("x-ms-client-request-id") - .maxAgeInSeconds(10)) + .allowedOrigins("*") + .allowedHeaders("x-ms-version") + .exposedHeaders("x-ms-client-request-id") + .maxAgeInSeconds(10)) String defaultServiceVersion = "2016-05-31" Metrics hourMetrics = new Metrics().enabled(true).version("1.0") - .retentionPolicy(retentionPolicy).includeAPIs(true) + .retentionPolicy(retentionPolicy).includeAPIs(true) Metrics minuteMetrics = new Metrics().enabled(true).version("1.0") - .retentionPolicy(retentionPolicy).includeAPIs(true) + .retentionPolicy(retentionPolicy).includeAPIs(true) StaticWebsite website = new StaticWebsite().enabled(true) - .indexDocument("myIndex.html") - .errorDocument404Path("custom/error/path.html") + .indexDocument("myIndex.html") + .errorDocument404Path("custom/error/path.html") StorageServiceProperties sentProperties = new StorageServiceProperties() - .logging(logging).cors(corsRules).defaultServiceVersion(defaultServiceVersion) - .minuteMetrics(minuteMetrics).hourMetrics(hourMetrics) - .deleteRetentionPolicy(retentionPolicy) - .staticWebsite(website) + .logging(logging).cors(corsRules).defaultServiceVersion(defaultServiceVersion) + .minuteMetrics(minuteMetrics).hourMetrics(hourMetrics) + .deleteRetentionPolicy(retentionPolicy) + .staticWebsite(website) expect: primaryBlobServiceClient.setPropertiesWithResponse(sentProperties, null, null).statusCode() == 202 @@ -272,10 +270,7 @@ class ServiceAPITest extends APISpec { def "Set props error"() { when: - new BlobServiceClientBuilder() - .endpoint("https://error.blob.core.windows.net") - .credential(primaryCreds) - .buildClient() + getServiceClient(primaryCredential, "https://error.blob.core.windows.net") .setProperties(new StorageServiceProperties()) then: @@ -289,10 +284,7 @@ class ServiceAPITest extends APISpec { def "Get props error"() { when: - new BlobServiceClientBuilder() - .endpoint("https://error.blob.core.windows.net") - .credential(primaryCreds) - .buildClient() + getServiceClient(primaryCredential, "https://error.blob.core.windows.net") .getProperties() then: @@ -304,7 +296,7 @@ class ServiceAPITest extends APISpec { def start = OffsetDateTime.now() def expiry = start.plusDays(1) - Response response = getOAuthServiceURL().getUserDelegationKeyWithResponse(start, expiry, null, null) + Response response = getOAuthServiceClient().getUserDelegationKeyWithResponse(start, expiry, null, null) expect: response.statusCode() == 200 @@ -322,7 +314,7 @@ class ServiceAPITest extends APISpec { setup: def expiry = OffsetDateTime.now().plusDays(1) - def response = getOAuthServiceURL().getUserDelegationKeyWithResponse(null, expiry, null, null) + def response = getOAuthServiceClient().getUserDelegationKeyWithResponse(null, expiry, null, null) expect: response.statusCode() == 200 @@ -330,7 +322,7 @@ class ServiceAPITest extends APISpec { def "Get UserDelegationKey error"() { when: - getOAuthServiceURL().getUserDelegationKey(start, expiry) + getOAuthServiceClient().getUserDelegationKey(start, expiry) then: thrown(exception) @@ -343,9 +335,8 @@ class ServiceAPITest extends APISpec { def "Get stats"() { setup: - String secondaryEndpoint = String.format("https://%s-secondary.blob.core.windows.net", primaryCreds.accountName()) - BlobServiceClient serviceClient = new BlobServiceClientBuilder().endpoint(secondaryEndpoint) - .credential(primaryCreds).buildClient() + String secondaryEndpoint = String.format("https://%s-secondary.blob.core.windows.net", primaryCredential.accountName()) + BlobServiceClient serviceClient = getServiceClient(primaryCredential, secondaryEndpoint) Response response = serviceClient.getStatisticsWithResponse(null, null) expect: @@ -358,9 +349,9 @@ class ServiceAPITest extends APISpec { def "Get stats min"() { setup: - String secondaryEndpoint = String.format("https://%s-secondary.blob.core.windows.net", primaryCreds.accountName()) - BlobServiceClient serviceClient = new BlobServiceClientBuilder().endpoint(secondaryEndpoint) - .credential(primaryCreds).buildClient() + String secondaryEndpoint = String.format("https://%s-secondary.blob.core.windows.net", primaryCredential.accountName()) + BlobServiceClient serviceClient = getServiceClient(primaryCredential, secondaryEndpoint) + expect: serviceClient.getStatisticsWithResponse(null, null).statusCode() == 200 } @@ -392,9 +383,7 @@ class ServiceAPITest extends APISpec { def "Get account info error"() { when: - BlobServiceClient serviceURL = new BlobServiceClientBuilder() - .endpoint(primaryBlobServiceClient.getAccountUrl().toString()) - .buildClient() + BlobServiceClient serviceURL = getServiceClient((SharedKeyCredential) null, primaryBlobServiceClient.getAccountUrl().toString()) serviceURL.getAccountInfo() then: @@ -406,11 +395,8 @@ class ServiceAPITest extends APISpec { def "Invalid account name"() { setup: URL badURL = new URL("http://fake.blobfake.core.windows.net") - BlobServiceClient client = new BlobServiceClientBuilder() - .endpoint(badURL.toString()) - .credential(primaryCreds) - .retryOptions(new RequestRetryOptions(null, 2, null, null, null, null)) - .buildClient() + BlobServiceClient client = getServiceClient(primaryCredential, badURL.toString(), + new RequestRetryPolicy(new RequestRetryOptions(null, 2, null, null, null, null))) when: client.getProperties() diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockac[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockac[0].json new file mode 100644 index 0000000000000..385e69884ce79 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockac[0].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockac0appendblobapitestappendblockacf1352828cc2e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BC70EB69\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51dfbbb-201e-00c4-0efb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:02 GMT", + "x-ms-client-request-id" : "98dbd902-e22a-4442-b95f-70a9f5a11c3d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockac0appendblobapitestappendblockacf1352828cc2e/javablobappendblockac1appendblobapitestappendblockacf13558413", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BC7867AC\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51dfbde-201e-00c4-27fb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:02 GMT", + "x-ms-client-request-id" : "486d43d0-68dc-4b99-a3d2-3a4ae082c00e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockac0appendblobapitestappendblockacf1352828cc2e/javablobappendblockac1appendblobapitestappendblockacf13558413?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "x-ms-blob-committed-block-count" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:03 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:02 GMT", + "ETag" : "\"0x8D72812BC811C5E\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51dfc03-201e-00c4-47fb-594fb0000000", + "x-ms-client-request-id" : "db1d9c8d-f692-46cc-ad84-80934ccdf14d", + "x-ms-blob-append-offset" : "0" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcappendblockac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51dfc1a-201e-00c4-57fb-594fb0000000", + "Body" : "jtcappendblockacjtcappendblockac0appendblobapitestappendblockacf1352828cc2eFri, 23 Aug 2019 21:42:03 GMT\"0x8D72812BC70EB69\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:02 GMT", + "x-ms-client-request-id" : "2fa56e43-9788-408f-8279-c0acdb74415e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockac0appendblobapitestappendblockacf1352828cc2e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51dfc26-201e-00c4-62fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:02 GMT", + "x-ms-client-request-id" : "90143aab-c05c-433d-8c6b-10e148c742ec" + }, + "Exception" : null + } ], + "variables" : [ "jtcappendblockac0appendblobapitestappendblockacf1352828cc2e", "javablobappendblockac1appendblobapitestappendblockacf13558413" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockac[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockac[1].json new file mode 100644 index 0000000000000..83a4475bae3ec --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockac[1].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockac0appendblobapitestappendblockacbf691513648b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BC936FF6\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51dfc38-201e-00c4-70fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:02 GMT", + "x-ms-client-request-id" : "36dab8fa-5c36-4ad8-8ece-428c0a8d426e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockac0appendblobapitestappendblockacbf691513648b/javablobappendblockac1appendblobapitestappendblockacbf630615c", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BC99B37E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51dfc55-201e-00c4-06fb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:02 GMT", + "x-ms-client-request-id" : "3cb39255-56e9-44da-83e4-dd9ed058e57e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockac0appendblobapitestappendblockacbf691513648b/javablobappendblockac1appendblobapitestappendblockacbf630615c?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "x-ms-blob-committed-block-count" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:03 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:02 GMT", + "ETag" : "\"0x8D72812BCA01DB2\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51dfc66-201e-00c4-17fb-594fb0000000", + "x-ms-client-request-id" : "ac1cbc80-7a32-430c-9218-32d6496af6ef", + "x-ms-blob-append-offset" : "0" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcappendblockac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51dfc79-201e-00c4-29fb-594fb0000000", + "Body" : "jtcappendblockacjtcappendblockac0appendblobapitestappendblockacbf691513648bFri, 23 Aug 2019 21:42:03 GMT\"0x8D72812BC936FF6\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:02 GMT", + "x-ms-client-request-id" : "d783a9d2-57e1-4344-9efc-0d283625f75b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockac0appendblobapitestappendblockacbf691513648b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51dfc8f-201e-00c4-3cfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:02 GMT", + "x-ms-client-request-id" : "692889c7-95c5-43a3-a383-0f5264f85615" + }, + "Exception" : null + } ], + "variables" : [ "jtcappendblockac0appendblobapitestappendblockacbf691513648b", "javablobappendblockac1appendblobapitestappendblockacbf630615c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockac[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockac[2].json new file mode 100644 index 0000000000000..21c3dee72d94d --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockac[2].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockac0appendblobapitestappendblockac86f38198845f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BCB494A0\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51dfcc6-201e-00c4-6dfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:02 GMT", + "x-ms-client-request-id" : "7636894a-53c6-4fce-93ba-ca0fb06d738b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockac0appendblobapitestappendblockac86f38198845f/javablobappendblockac1appendblobapitestappendblockac86f459260", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BCBB2662\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51dfce5-201e-00c4-09fb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:02 GMT", + "x-ms-client-request-id" : "c1e10946-38c9-42ab-a922-2bb05278171b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockac0appendblobapitestappendblockac86f38198845f/javablobappendblockac1appendblobapitestappendblockac86f459260?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "x-ms-blob-committed-block-count" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:03 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:02 GMT", + "ETag" : "\"0x8D72812BCC0F42C\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51dfcf7-201e-00c4-1bfb-594fb0000000", + "x-ms-client-request-id" : "c5b1f835-cdd3-459d-9b3c-4a71c87b64ab", + "x-ms-blob-append-offset" : "0" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcappendblockac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51dfd0b-201e-00c4-2dfb-594fb0000000", + "Body" : "jtcappendblockacjtcappendblockac0appendblobapitestappendblockac86f38198845fFri, 23 Aug 2019 21:42:03 GMT\"0x8D72812BCB494A0\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:02 GMT", + "x-ms-client-request-id" : "05cae1cb-2b9b-421d-be58-9b4db18b21ff", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockac0appendblobapitestappendblockac86f38198845f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51dfd22-201e-00c4-41fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:02 GMT", + "x-ms-client-request-id" : "14977a45-8c32-486d-819c-4d6dc626ba4e" + }, + "Exception" : null + } ], + "variables" : [ "jtcappendblockac0appendblobapitestappendblockac86f38198845f", "javablobappendblockac1appendblobapitestappendblockac86f459260" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockac[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockac[3].json new file mode 100644 index 0000000000000..f3f766b6fd808 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockac[3].json @@ -0,0 +1,139 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockac0appendblobapitestappendblockac5d504103fcad?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BCD14B5E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51dfd37-201e-00c4-52fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:02 GMT", + "x-ms-client-request-id" : "1d485bc4-072a-48e8-bd69-b193ca15aa0b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockac0appendblobapitestappendblockac5d504103fcad/javablobappendblockac1appendblobapitestappendblockac5d5015501", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BCD78EFC\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51dfd64-201e-00c4-77fb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:02 GMT", + "x-ms-client-request-id" : "07b82134-d2b8-425d-8570-f73f28a2cd9b" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockac0appendblobapitestappendblockac5d504103fcad/javablobappendblockac1appendblobapitestappendblockac5d5015501", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "x-ms-blob-committed-block-count" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:03 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:02 GMT", + "x-ms-blob-type" : "AppendBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812BCD78EFC\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:03 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "d51dfd86-201e-00c4-16fb-594fb0000000", + "x-ms-client-request-id" : "f0f6339a-ebe0-4e24-8a37-78d672de4b8d", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockac0appendblobapitestappendblockac5d504103fcad/javablobappendblockac1appendblobapitestappendblockac5d5015501?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "x-ms-blob-committed-block-count" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:03 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:03 GMT", + "ETag" : "\"0x8D72812BCE1F1CF\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51dfdaa-201e-00c4-35fb-594fb0000000", + "x-ms-client-request-id" : "2ec410c3-eeec-4759-9095-fa79e73bb588", + "x-ms-blob-append-offset" : "0" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcappendblockac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51dfdb9-201e-00c4-41fb-594fb0000000", + "Body" : "jtcappendblockacjtcappendblockac0appendblobapitestappendblockac5d504103fcadFri, 23 Aug 2019 21:42:03 GMT\"0x8D72812BCD14B5E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:03 GMT", + "x-ms-client-request-id" : "a7a321c2-1657-4a5c-827c-8eb0d0e45ed4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockac0appendblobapitestappendblockac5d504103fcad?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51dfdc8-201e-00c4-50fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:03 GMT", + "x-ms-client-request-id" : "9c7a9dd0-3b11-4fae-a4b4-94ac8056bc63" + }, + "Exception" : null + } ], + "variables" : [ "jtcappendblockac0appendblobapitestappendblockac5d504103fcad", "javablobappendblockac1appendblobapitestappendblockac5d5015501" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockac[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockac[4].json new file mode 100644 index 0000000000000..32c400780210b --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockac[4].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockac0appendblobapitestappendblockacb15466637006?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BCF381C2\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51dfde9-201e-00c4-6cfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:03 GMT", + "x-ms-client-request-id" : "d1c894d4-8084-4ef0-9da0-e5b9c4d585b4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockac0appendblobapitestappendblockacb15466637006/javablobappendblockac1appendblobapitestappendblockacb1539244f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BCF928FD\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51dfe05-201e-00c4-80fb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:03 GMT", + "x-ms-client-request-id" : "042a5bed-3b66-4942-b04d-f2c01bd289a5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockac0appendblobapitestappendblockacb15466637006/javablobappendblockac1appendblobapitestappendblockacb1539244f?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "x-ms-blob-committed-block-count" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:04 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:03 GMT", + "ETag" : "\"0x8D72812BD02EF6E\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51dfe2a-201e-00c4-20fb-594fb0000000", + "x-ms-client-request-id" : "9084930e-2e1e-46d2-91d7-e8d12e2fcef1", + "x-ms-blob-append-offset" : "0" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcappendblockac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51dfe3d-201e-00c4-32fb-594fb0000000", + "Body" : "jtcappendblockacjtcappendblockac0appendblobapitestappendblockacb15466637006Fri, 23 Aug 2019 21:42:04 GMT\"0x8D72812BCF381C2\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:03 GMT", + "x-ms-client-request-id" : "1d39e738-e5b2-4112-a463-b201f56a46ef", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockac0appendblobapitestappendblockacb15466637006?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51dfe50-201e-00c4-40fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:03 GMT", + "x-ms-client-request-id" : "effb315e-53bd-46f8-868d-ce74360c69a5" + }, + "Exception" : null + } ], + "variables" : [ "jtcappendblockac0appendblobapitestappendblockacb15466637006", "javablobappendblockac1appendblobapitestappendblockacb1539244f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockac[5].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockac[5].json new file mode 100644 index 0000000000000..b785bd1283fa0 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockac[5].json @@ -0,0 +1,129 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockac0appendblobapitestappendblockac0c67483507b7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BD1717F7\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51dfe6d-201e-00c4-57fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:03 GMT", + "x-ms-client-request-id" : "028cdb4e-81da-498a-b50b-884d0cfda053" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockac0appendblobapitestappendblockac0c67483507b7/javablobappendblockac1appendblobapitestappendblockac0c617717f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BD1DF815\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51dfe81-201e-00c4-67fb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:03 GMT", + "x-ms-client-request-id" : "3daa421f-b379-4a29-ac03-3170c77c2f9c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockac0appendblobapitestappendblockac0c67483507b7/javablobappendblockac1appendblobapitestappendblockac0c617717f?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BD1DF815\"", + "x-ms-lease-id" : "21fcc5cb-20c1-4941-9242-68cba7309e1b", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51dfe9f-201e-00c4-01fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:03 GMT", + "x-ms-client-request-id" : "52434120-dd77-40a6-9ad8-267f9d4a176f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockac0appendblobapitestappendblockac0c67483507b7/javablobappendblockac1appendblobapitestappendblockac0c617717f?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "x-ms-blob-committed-block-count" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:04 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:03 GMT", + "ETag" : "\"0x8D72812BD294578\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51dfeaf-201e-00c4-10fb-594fb0000000", + "x-ms-client-request-id" : "4f6eddc1-afa8-4088-9d78-5157a3d3c535", + "x-ms-blob-append-offset" : "0" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcappendblockac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51dfec3-201e-00c4-21fb-594fb0000000", + "Body" : "jtcappendblockacjtcappendblockac0appendblobapitestappendblockac0c67483507b7Fri, 23 Aug 2019 21:42:04 GMT\"0x8D72812BD1717F7\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:03 GMT", + "x-ms-client-request-id" : "4d1041c4-4344-4ed2-afd1-371c48f8da40", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockac0appendblobapitestappendblockac0c67483507b7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51dfed6-201e-00c4-31fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:03 GMT", + "x-ms-client-request-id" : "87afdb5c-2204-408c-87a9-9148c7a2cbe5" + }, + "Exception" : null + } ], + "variables" : [ "jtcappendblockac0appendblobapitestappendblockac0c67483507b7", "javablobappendblockac1appendblobapitestappendblockac0c617717f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockac[6].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockac[6].json new file mode 100644 index 0000000000000..d336906100928 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockac[6].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockac0appendblobapitestappendblockace54314906721?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BD3CF8B6\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51dfef2-201e-00c4-4cfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:03 GMT", + "x-ms-client-request-id" : "639ca640-c548-430f-bd4b-e14e9eb1f780" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockac0appendblobapitestappendblockace54314906721/javablobappendblockac1appendblobapitestappendblockace5418699a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BD4251E7\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51dfeff-201e-00c4-58fb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:03 GMT", + "x-ms-client-request-id" : "b2921f35-e252-4544-a2bb-5b2f6663e144" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockac0appendblobapitestappendblockace54314906721/javablobappendblockac1appendblobapitestappendblockace5418699a?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "x-ms-blob-committed-block-count" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:04 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:03 GMT", + "ETag" : "\"0x8D72812BD47F894\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51dff13-201e-00c4-69fb-594fb0000000", + "x-ms-client-request-id" : "415fc12b-1423-4683-a268-32751930254f", + "x-ms-blob-append-offset" : "0" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcappendblockac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51dff22-201e-00c4-76fb-594fb0000000", + "Body" : "jtcappendblockacjtcappendblockac0appendblobapitestappendblockace54314906721Fri, 23 Aug 2019 21:42:04 GMT\"0x8D72812BD3CF8B6\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:03 GMT", + "x-ms-client-request-id" : "a1a0d09f-d304-4be3-a260-52cbbd9cf315", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockac0appendblobapitestappendblockace54314906721?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51dff39-201e-00c4-09fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:03 GMT", + "x-ms-client-request-id" : "4366792e-0a05-4743-8c9b-4513d96e6bdd" + }, + "Exception" : null + } ], + "variables" : [ "jtcappendblockac0appendblobapitestappendblockace54314906721", "javablobappendblockac1appendblobapitestappendblockace5418699a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockac[7].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockac[7].json new file mode 100644 index 0000000000000..49e009fe2b5f5 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockac[7].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockac0appendblobapitestappendblockac865350906c62?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BD59D695\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51dff58-201e-00c4-28fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:03 GMT", + "x-ms-client-request-id" : "355f03d1-ba9a-471d-88dd-b3965e650b04" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockac0appendblobapitestappendblockac865350906c62/javablobappendblockac1appendblobapitestappendblockac865286263", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BD5FA511\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51dff79-201e-00c4-47fb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:03 GMT", + "x-ms-client-request-id" : "92ae0b4b-3d31-4f0c-92a4-d019a7f96651" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockac0appendblobapitestappendblockac865350906c62/javablobappendblockac1appendblobapitestappendblockac865286263?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "x-ms-blob-committed-block-count" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:04 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:03 GMT", + "ETag" : "\"0x8D72812BD64FD99\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51dff87-201e-00c4-55fb-594fb0000000", + "x-ms-client-request-id" : "76065e1a-7c5b-40ec-9c02-459a244b2aaa", + "x-ms-blob-append-offset" : "0" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcappendblockac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51dff9c-201e-00c4-67fb-594fb0000000", + "Body" : "jtcappendblockacjtcappendblockac0appendblobapitestappendblockac865350906c62Fri, 23 Aug 2019 21:42:04 GMT\"0x8D72812BD59D695\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:03 GMT", + "x-ms-client-request-id" : "28cea2ff-99d6-48f5-a527-ce11ffd016fe", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockac0appendblobapitestappendblockac865350906c62?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51dffb3-201e-00c4-7dfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:03 GMT", + "x-ms-client-request-id" : "818ebf7f-fa86-499f-8f66-cb3d7629e191" + }, + "Exception" : null + } ], + "variables" : [ "jtcappendblockac0appendblobapitestappendblockac865350906c62", "javablobappendblockac1appendblobapitestappendblockac865286263" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockacfail[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockacfail[0].json new file mode 100644 index 0000000000000..d721d2e842f11 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockacfail[0].json @@ -0,0 +1,105 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockacfail0112297783b98d84524acb9e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BD75065D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51dffc8-201e-00c4-11fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:03 GMT", + "x-ms-client-request-id" : "e49562e9-10c1-4eb8-9e34-3088c918a9aa" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockacfail0112297783b98d84524acb9e/javablobappendblockacfail1891355b7dff58b6de40a5", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BD7B231F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51dffda-201e-00c4-1ffb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:04 GMT", + "x-ms-client-request-id" : "8dbb3f74-6a94-4045-9463-57c7068f01fc" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockacfail0112297783b98d84524acb9e/javablobappendblockacfail1891355b7dff58b6de40a5?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "d51dfff0-201e-00c4-35fb-594fb0000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:d51dfff0-201e-00c4-35fb-594fb0000000\nTime:2019-08-23T21:42:05.0080810Z", + "Date" : "Fri, 23 Aug 2019 21:42:04 GMT", + "x-ms-client-request-id" : "eb34d8d3-2dbf-4da0-bab8-fc55efc3887e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcappendblockacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51dfffe-201e-00c4-41fb-594fb0000000", + "Body" : "jtcappendblockacfailjtcappendblockacfail0112297783b98d84524acb9eFri, 23 Aug 2019 21:42:04 GMT\"0x8D72812BD75065D\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:04 GMT", + "x-ms-client-request-id" : "13672463-c5b1-4ff6-9d2e-1c9ceb48fbe1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockacfail0112297783b98d84524acb9e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e0017-201e-00c4-58fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:04 GMT", + "x-ms-client-request-id" : "a9635692-0e61-4af0-ab04-eacb8bdbfd76" + }, + "Exception" : null + } ], + "variables" : [ "jtcappendblockacfail0112297783b98d84524acb9e", "javablobappendblockacfail1891355b7dff58b6de40a5" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockacfail[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockacfail[1].json new file mode 100644 index 0000000000000..51f9c26ae4e0e --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockacfail[1].json @@ -0,0 +1,105 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockacfail02066791f999eb0a8c47a488?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BD936B32\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:05 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e003b-201e-00c4-79fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:04 GMT", + "x-ms-client-request-id" : "d3811927-7b7c-453e-b6aa-ca6acd38ada1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockacfail02066791f999eb0a8c47a488/javablobappendblockacfail161260b08f4d9af1bf4294", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BD9960E3\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:05 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e0055-201e-00c4-10fb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:04 GMT", + "x-ms-client-request-id" : "2d4117f7-d2bf-4bdd-8627-4975a46344e6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockacfail02066791f999eb0a8c47a488/javablobappendblockacfail161260b08f4d9af1bf4294?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "d51e0072-201e-00c4-27fb-594fb0000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:d51e0072-201e-00c4-27fb-594fb0000000\nTime:2019-08-23T21:42:05.2072703Z", + "Date" : "Fri, 23 Aug 2019 21:42:04 GMT", + "x-ms-client-request-id" : "041ffb3c-ba5d-496b-86af-eac82738e8f2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcappendblockacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e007e-201e-00c4-31fb-594fb0000000", + "Body" : "jtcappendblockacfailjtcappendblockacfail02066791f999eb0a8c47a488Fri, 23 Aug 2019 21:42:05 GMT\"0x8D72812BD936B32\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:04 GMT", + "x-ms-client-request-id" : "3fb0d277-8c0c-4ea9-8872-471ffc20c528", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockacfail02066791f999eb0a8c47a488?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e008d-201e-00c4-40fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:04 GMT", + "x-ms-client-request-id" : "aa8b642d-b9c4-4e4f-9dfd-250dcf8bcd71" + }, + "Exception" : null + } ], + "variables" : [ "jtcappendblockacfail02066791f999eb0a8c47a488", "javablobappendblockacfail161260b08f4d9af1bf4294" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockacfail[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockacfail[2].json new file mode 100644 index 0000000000000..ecdd376d5a8fb --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockacfail[2].json @@ -0,0 +1,105 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockacfail0217138579a74f456c408abf?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BDB133A9\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:05 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e00a1-201e-00c4-51fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:04 GMT", + "x-ms-client-request-id" : "472c9531-5e74-40db-b4f7-ff208dfb3fbc" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockacfail0217138579a74f456c408abf/javablobappendblockacfail17860325b0070589b84803", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BDB7507D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:05 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e00c0-201e-00c4-69fb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:04 GMT", + "x-ms-client-request-id" : "88cd52f9-b802-4613-b07f-09092e68076b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockacfail0217138579a74f456c408abf/javablobappendblockacfail17860325b0070589b84803?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "d51e00d0-201e-00c4-79fb-594fb0000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:d51e00d0-201e-00c4-79fb-594fb0000000\nTime:2019-08-23T21:42:05.3984524Z", + "Date" : "Fri, 23 Aug 2019 21:42:04 GMT", + "x-ms-client-request-id" : "c69a5945-5538-4693-8e10-19ca1322a04a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcappendblockacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e00e5-201e-00c4-0bfb-594fb0000000", + "Body" : "jtcappendblockacfailjtcappendblockacfail0217138579a74f456c408abfFri, 23 Aug 2019 21:42:05 GMT\"0x8D72812BDB133A9\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:04 GMT", + "x-ms-client-request-id" : "0392bb8c-3c34-4b62-be32-a9f93e490246", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockacfail0217138579a74f456c408abf?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e00f2-201e-00c4-16fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:04 GMT", + "x-ms-client-request-id" : "fb9c7294-57a5-4f68-b0f3-1119b71aad92" + }, + "Exception" : null + } ], + "variables" : [ "jtcappendblockacfail0217138579a74f456c408abf", "javablobappendblockacfail17860325b0070589b84803" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockacfail[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockacfail[3].json new file mode 100644 index 0000000000000..6e3e3e450f95d --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockacfail[3].json @@ -0,0 +1,136 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockacfail078395c6df0fc48b9d4e5ea3?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BDCD4E06\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:05 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e0103-201e-00c4-25fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:04 GMT", + "x-ms-client-request-id" : "dcec7276-f6b1-4348-8f53-26be6ccd472a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockacfail078395c6df0fc48b9d4e5ea3/javablobappendblockacfail1174090c57e44a22f94f3c", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BDD343CD\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:05 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e0116-201e-00c4-36fb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:04 GMT", + "x-ms-client-request-id" : "e35a6732-27e6-4288-8c92-e8e2a59fc171" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockacfail078395c6df0fc48b9d4e5ea3/javablobappendblockacfail1174090c57e44a22f94f3c", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "x-ms-blob-committed-block-count" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:05 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:04 GMT", + "x-ms-blob-type" : "AppendBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812BDD343CD\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:05 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "d51e0129-201e-00c4-47fb-594fb0000000", + "x-ms-client-request-id" : "e54cc21f-0c63-43ce-a2f1-7b5d103dd552", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockacfail078395c6df0fc48b9d4e5ea3/javablobappendblockacfail1174090c57e44a22f94f3c?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "d51e014c-201e-00c4-60fb-594fb0000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:d51e014c-201e-00c4-60fb-594fb0000000\nTime:2019-08-23T21:42:05.6196636Z", + "Date" : "Fri, 23 Aug 2019 21:42:04 GMT", + "x-ms-client-request-id" : "70377ba5-ee71-48c4-8784-8cd5700f0dec", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcappendblockacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e015d-201e-00c4-6ffb-594fb0000000", + "Body" : "jtcappendblockacfailjtcappendblockacfail078395c6df0fc48b9d4e5ea3Fri, 23 Aug 2019 21:42:05 GMT\"0x8D72812BDCD4E06\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:04 GMT", + "x-ms-client-request-id" : "bd32b487-c94a-4533-80a1-3aca64d675d0", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockacfail078395c6df0fc48b9d4e5ea3?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e016a-201e-00c4-79fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:04 GMT", + "x-ms-client-request-id" : "d5e4122e-a7e9-4642-b51e-46cef8e1c5fc" + }, + "Exception" : null + } ], + "variables" : [ "jtcappendblockacfail078395c6df0fc48b9d4e5ea3", "javablobappendblockacfail1174090c57e44a22f94f3c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockacfail[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockacfail[4].json new file mode 100644 index 0000000000000..02e5b375cdef2 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockacfail[4].json @@ -0,0 +1,126 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockacfail088592e3b9e8335bb4424287?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BDEF362D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:05 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e018a-201e-00c4-14fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:04 GMT", + "x-ms-client-request-id" : "bf565d80-cd47-41d0-b460-981bda3b0c39" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockacfail088592e3b9e8335bb4424287/javablobappendblockacfail1857423ade8109748a4cd6", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BDF5A14B\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:05 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e01a5-201e-00c4-2dfb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:04 GMT", + "x-ms-client-request-id" : "41774422-5a18-469c-a08e-ff1d0c29f52c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockacfail088592e3b9e8335bb4424287/javablobappendblockacfail1857423ade8109748a4cd6?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BDF5A14B\"", + "x-ms-lease-id" : "28321e44-5e9b-4281-a878-75722a3c1ac6", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:05 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e01b6-201e-00c4-3efb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:04 GMT", + "x-ms-client-request-id" : "e564aa03-f408-48a9-8de0-aacb70fd5917" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockacfail088592e3b9e8335bb4424287/javablobappendblockacfail1857423ade8109748a4cd6?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "LeaseIdMismatchWithBlobOperation", + "retry-after" : "0", + "Content-Length" : "264", + "StatusCode" : "412", + "x-ms-request-id" : "d51e01cd-201e-00c4-51fb-594fb0000000", + "Body" : "LeaseIdMismatchWithBlobOperationThe lease ID specified did not match the lease ID for the blob.\nRequestId:d51e01cd-201e-00c4-51fb-594fb0000000\nTime:2019-08-23T21:42:05.8448782Z", + "Date" : "Fri, 23 Aug 2019 21:42:04 GMT", + "x-ms-client-request-id" : "929681b9-cab3-4f91-bf06-c9c2ceb71072", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcappendblockacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e01de-201e-00c4-61fb-594fb0000000", + "Body" : "jtcappendblockacfailjtcappendblockacfail088592e3b9e8335bb4424287Fri, 23 Aug 2019 21:42:05 GMT\"0x8D72812BDEF362D\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:04 GMT", + "x-ms-client-request-id" : "89b958e6-7a7e-45d7-b7cb-0628ae66dfe0", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockacfail088592e3b9e8335bb4424287?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e01ef-201e-00c4-70fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:04 GMT", + "x-ms-client-request-id" : "5790e548-e6a9-4f2f-af27-14616ad8ca1c" + }, + "Exception" : null + } ], + "variables" : [ "jtcappendblockacfail088592e3b9e8335bb4424287", "javablobappendblockacfail1857423ade8109748a4cd6" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockacfail[5].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockacfail[5].json new file mode 100644 index 0000000000000..582c2f24101fa --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockacfail[5].json @@ -0,0 +1,105 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockacfail000610489b68c82206437e9e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BE0FE58D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:05 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e020d-201e-00c4-06fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:05 GMT", + "x-ms-client-request-id" : "4242c99e-7140-4ecd-8bb8-e88e6b942702" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockacfail000610489b68c82206437e9e/javablobappendblockacfail10226792cf6bfe7ff946ba", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BE1650B7\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:05 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e0231-201e-00c4-26fb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:05 GMT", + "x-ms-client-request-id" : "a9f7bd77-ab1e-4a2c-b59c-13b34f17716d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockacfail000610489b68c82206437e9e/javablobappendblockacfail10226792cf6bfe7ff946ba?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "AppendPositionConditionNotMet", + "retry-after" : "0", + "Content-Length" : "250", + "StatusCode" : "412", + "x-ms-request-id" : "d51e024e-201e-00c4-41fb-594fb0000000", + "Body" : "AppendPositionConditionNotMetThe append position condition specified was not met.\nRequestId:d51e024e-201e-00c4-41fb-594fb0000000\nTime:2019-08-23T21:42:06.0270524Z", + "Date" : "Fri, 23 Aug 2019 21:42:05 GMT", + "x-ms-client-request-id" : "5ee5295a-3d39-4750-b3ec-6ba2ef4a8947", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcappendblockacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e025f-201e-00c4-4ffb-594fb0000000", + "Body" : "jtcappendblockacfailjtcappendblockacfail000610489b68c82206437e9eFri, 23 Aug 2019 21:42:05 GMT\"0x8D72812BE0FE58D\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:05 GMT", + "x-ms-client-request-id" : "1cc61c8a-1e64-47de-bfc4-3575aba53fc8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockacfail000610489b68c82206437e9e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e0279-201e-00c4-68fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:05 GMT", + "x-ms-client-request-id" : "c3783b3d-0e79-4962-93d4-2b87cec76877" + }, + "Exception" : null + } ], + "variables" : [ "jtcappendblockacfail000610489b68c82206437e9e", "javablobappendblockacfail10226792cf6bfe7ff946ba" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockacfail[6].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockacfail[6].json new file mode 100644 index 0000000000000..a4052a4160dc8 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockacfail[6].json @@ -0,0 +1,105 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockacfail025173a86ffc4a89fc4a96b7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BE30E31B\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e0293-201e-00c4-01fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:05 GMT", + "x-ms-client-request-id" : "560a0155-a8d4-4ce4-8241-e1757a176439" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockacfail025173a86ffc4a89fc4a96b7/javablobappendblockacfail1740079e125a7683134a1d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BE36B1EF\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e02b1-201e-00c4-15fb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:05 GMT", + "x-ms-client-request-id" : "fec65acb-8c1d-4e03-973d-3fb99978989f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockacfail025173a86ffc4a89fc4a96b7/javablobappendblockacfail1740079e125a7683134a1d?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "MaxBlobSizeConditionNotMet", + "retry-after" : "0", + "Content-Length" : "245", + "StatusCode" : "412", + "x-ms-request-id" : "d51e02cb-201e-00c4-2efb-594fb0000000", + "Body" : "MaxBlobSizeConditionNotMetThe max blob size condition specified was not met.\nRequestId:d51e02cb-201e-00c4-2efb-594fb0000000\nTime:2019-08-23T21:42:06.2362517Z", + "Date" : "Fri, 23 Aug 2019 21:42:05 GMT", + "x-ms-client-request-id" : "add10084-9ebb-4f85-85f5-aefe61bf1a15", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcappendblockacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e02da-201e-00c4-39fb-594fb0000000", + "Body" : "jtcappendblockacfailjtcappendblockacfail025173a86ffc4a89fc4a96b7Fri, 23 Aug 2019 21:42:06 GMT\"0x8D72812BE30E31B\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:05 GMT", + "x-ms-client-request-id" : "19ec7b3f-62a5-4388-8881-205042ae3617", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockacfail025173a86ffc4a89fc4a96b7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e02ec-201e-00c4-48fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:05 GMT", + "x-ms-client-request-id" : "c6c9506f-1cce-4eb8-bf5a-a1e93faa5718" + }, + "Exception" : null + } ], + "variables" : [ "jtcappendblockacfail025173a86ffc4a89fc4a96b7", "javablobappendblockacfail1740079e125a7683134a1d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockdefaults.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockdefaults.json new file mode 100644 index 0000000000000..28daf89575c0a --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockdefaults.json @@ -0,0 +1,169 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockdefaults0532279036b18b1be5435e8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BB9F94DE\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "6d799136-601e-0129-2bfb-590061000000", + "Date" : "Fri, 23 Aug 2019 21:42:01 GMT", + "x-ms-client-request-id" : "ff2a3237-a831-4558-b15f-2cdb7e87fe5a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockdefaults0532279036b18b1be5435e8/javablobappendblockdefaults1145319c64495711f6478", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BBB13D47\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "6d799198-601e-0129-7ffb-590061000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:01 GMT", + "x-ms-client-request-id" : "fba6dce5-2ae5-4762-9962-809d1f92faba" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockdefaults0532279036b18b1be5435e8/javablobappendblockdefaults1145319c64495711f6478?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "x-ms-blob-committed-block-count" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:02 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:01 GMT", + "ETag" : "\"0x8D72812BBBA191A\"", + "Content-Length" : "0", + "x-ms-request-id" : "6d7991af-601e-0129-16fb-590061000000", + "x-ms-client-request-id" : "cb73836b-08e5-4258-9c3e-3212e37db5fc", + "x-ms-blob-append-offset" : "0" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockdefaults0532279036b18b1be5435e8/javablobappendblockdefaults1145319c64495711f6478", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "x-ms-blob-committed-block-count" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:02 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:01 GMT", + "x-ms-blob-type" : "AppendBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "\"0x8D72812BBBA191A\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:01 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "6d799221-601e-0129-7dfb-590061000000", + "Body" : "[100, 101, 102, 97, 117, 108, 116]", + "x-ms-client-request-id" : "c4bd2543-6759-46d5-b715-1f879102f947", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockdefaults0532279036b18b1be5435e8/javablobappendblockdefaults1145319c64495711f6478", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "x-ms-blob-committed-block-count" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:02 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:01 GMT", + "x-ms-blob-type" : "AppendBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812BBBA191A\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:01 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "6d799251-601e-0129-29fb-590061000000", + "x-ms-client-request-id" : "95b541aa-06c3-4e2c-9116-558293586d5c", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcappendblockdefaults&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "6d799282-601e-0129-52fb-590061000000", + "Body" : "jtcappendblockdefaultsjtcappendblockdefaults0532279036b18b1be5435e8Fri, 23 Aug 2019 21:42:01 GMT\"0x8D72812BB9F94DE\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:01 GMT", + "x-ms-client-request-id" : "402a5c48-b2a7-4546-82f2-feca9780c9ef", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockdefaults0532279036b18b1be5435e8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "6d7992a5-601e-0129-70fb-590061000000", + "Date" : "Fri, 23 Aug 2019 21:42:01 GMT", + "x-ms-client-request-id" : "63fbd608-a7e0-4526-9120-749415405d93" + }, + "Exception" : null + } ], + "variables" : [ "jtcappendblockdefaults0532279036b18b1be5435e8", "javablobappendblockdefaults1145319c64495711f6478" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockemptybody.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockemptybody.json new file mode 100644 index 0000000000000..7543623c9fe5b --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockemptybody.json @@ -0,0 +1,105 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockemptybody06277848fcaabf516840538?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BC3D99DD\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51dfadc-201e-00c4-49fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:01 GMT", + "x-ms-client-request-id" : "7cac4723-0eb5-4a3a-9a1c-0097eef79927" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockemptybody06277848fcaabf516840538/javablobappendblockemptybody199600407ab1d47e384a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BC4479B0\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51dfafb-201e-00c4-65fb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:02 GMT", + "x-ms-client-request-id" : "dc7e1030-1a97-4dac-8f57-12097f39bb41" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockemptybody06277848fcaabf516840538/javablobappendblockemptybody199600407ab1d47e384a?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "InvalidHeaderValue", + "retry-after" : "0", + "Content-Length" : "321", + "StatusCode" : "400", + "x-ms-request-id" : "d51dfb23-201e-00c4-07fb-594fb0000000", + "Body" : "InvalidHeaderValueThe value for one of the HTTP headers is not in the correct format.\nRequestId:d51dfb23-201e-00c4-07fb-594fb0000000\nTime:2019-08-23T21:42:02.9731395ZContent-Length0", + "Date" : "Fri, 23 Aug 2019 21:42:02 GMT", + "x-ms-client-request-id" : "1b14a4d6-5f6e-4495-9cb9-8920f0d8de40", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcappendblockemptybody&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51dfb35-201e-00c4-14fb-594fb0000000", + "Body" : "jtcappendblockemptybodyjtcappendblockemptybody06277848fcaabf516840538Fri, 23 Aug 2019 21:42:02 GMT\"0x8D72812BC3D99DD\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:02 GMT", + "x-ms-client-request-id" : "20ea52c8-f2b4-4874-b281-9c4357f5e14b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockemptybody06277848fcaabf516840538?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51dfb40-201e-00c4-1ffb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:02 GMT", + "x-ms-client-request-id" : "700f5ee6-fdc1-41cd-92bf-f8a4e03380bc" + }, + "Exception" : null + } ], + "variables" : [ "jtcappendblockemptybody06277848fcaabf516840538", "javablobappendblockemptybody199600407ab1d47e384a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockerror.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockerror.json new file mode 100644 index 0000000000000..5251ecae0def4 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockerror.json @@ -0,0 +1,105 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockerror0appendblobapitestappendblockerrord5b826373?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BE4BC4A6\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e030b-201e-00c4-62fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:05 GMT", + "x-ms-client-request-id" : "ab949fd3-aff9-4fbb-b07c-894f917fe39c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockerror0appendblobapitestappendblockerrord5b826373/javablobappendblockerror144847589112203b9d40be", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BE51937B\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e032b-201e-00c4-7bfb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:05 GMT", + "x-ms-client-request-id" : "28d6370b-ec87-4e0a-b9a0-1774dfa1ef3e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockerror0appendblobapitestappendblockerrord5b826373/javablobappendblockerror2047269f686eda7f7a4d97?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "BlobNotFound", + "retry-after" : "0", + "Content-Length" : "215", + "StatusCode" : "404", + "x-ms-request-id" : "d51e0341-201e-00c4-11fb-594fb0000000", + "Body" : "BlobNotFoundThe specified blob does not exist.\nRequestId:d51e0341-201e-00c4-11fb-594fb0000000\nTime:2019-08-23T21:42:06.4154223Z", + "Date" : "Fri, 23 Aug 2019 21:42:05 GMT", + "x-ms-client-request-id" : "4f9ba23e-38e7-44a4-b26b-3e34825a2e06", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcappendblockerror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e0363-201e-00c4-2efb-594fb0000000", + "Body" : "jtcappendblockerrorjtcappendblockerror0appendblobapitestappendblockerrord5b826373Fri, 23 Aug 2019 21:42:06 GMT\"0x8D72812BE4BC4A6\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:05 GMT", + "x-ms-client-request-id" : "558960cb-98f0-44a1-b9e0-d201f374a38d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockerror0appendblobapitestappendblockerrord5b826373?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e0372-201e-00c4-3cfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:05 GMT", + "x-ms-client-request-id" : "5603ce96-845e-4685-8877-673662a649db" + }, + "Exception" : null + } ], + "variables" : [ "jtcappendblockerror0appendblobapitestappendblockerrord5b826373", "javablobappendblockerror144847589112203b9d40be", "javablobappendblockerror2047269f686eda7f7a4d97" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurlacdestinationfail[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurlacdestinationfail[0].json new file mode 100644 index 0000000000000..7831fa26c8571 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurlacdestinationfail[0].json @@ -0,0 +1,171 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacdestinationfail041171a315880e8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C1054D63\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e0e42-201e-00c4-45fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:09 GMT", + "x-ms-client-request-id" : "8425bc01-6a08-49c6-98cd-f568af1166c8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacdestinationfail041171a315880e8/javablobappendblockfromurlacdestinationfail1868655d1122d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C10ACF0E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e0e68-201e-00c4-5dfb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:10 GMT", + "x-ms-client-request-id" : "62e08270-ece9-4dac-8492-65d79f30bd7e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacdestinationfail041171a315880e8?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C10FAB91\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e0e85-201e-00c4-71fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:10 GMT", + "x-ms-client-request-id" : "1dcf56ec-de2b-42db-aafd-dc37f10f6a26" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacdestinationfail041171a315880e8/javablobappendblockfromurlacdestinationfail269315e6ff4df", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C114E3B6\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e0e90-201e-00c4-7afb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:10 GMT", + "x-ms-client-request-id" : "ca34d4e3-28f1-4acf-bcd8-7da1d8dbc6cd" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacdestinationfail041171a315880e8/javablobappendblockfromurlacdestinationfail269315e6ff4df?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "x-ms-blob-committed-block-count" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:11 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:10 GMT", + "ETag" : "\"0x8D72812C11A1520\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e0ea2-201e-00c4-0afb-594fb0000000", + "x-ms-client-request-id" : "45543dca-af44-4dd7-b8a6-f355e63501ed", + "x-ms-blob-append-offset" : "0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacdestinationfail041171a315880e8/javablobappendblockfromurlacdestinationfail1868655d1122d?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "253", + "StatusCode" : "412", + "x-ms-request-id" : "d51e0ebf-201e-00c4-21fb-594fb0000000", + "Body" : "\nConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:d51e0ebf-201e-00c4-21fb-594fb0000000\nTime:2019-08-23T21:42:11.0918829Z", + "Date" : "Fri, 23 Aug 2019 21:42:10 GMT", + "x-ms-client-request-id" : "1d3ffc0b-5db2-4b5f-ac06-e018ee7788e4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcappendblockfromurlacdestinationfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e0ee5-201e-00c4-3afb-594fb0000000", + "Body" : "jtcappendblockfromurlacdestinationfailjtcappendblockfromurlacdestinationfail041171a315880e8Fri, 23 Aug 2019 21:42:10 GMT\"0x8D72812C10FAB91\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:10 GMT", + "x-ms-client-request-id" : "b7a38fb7-3b64-4bfe-9429-06bbb6aa7623", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacdestinationfail041171a315880e8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e0efe-201e-00c4-4bfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:10 GMT", + "x-ms-client-request-id" : "4331b0fa-6402-4d74-a923-b2099e695bcf" + }, + "Exception" : null + } ], + "variables" : [ "jtcappendblockfromurlacdestinationfail041171a315880e8", "javablobappendblockfromurlacdestinationfail1868655d1122d", "javablobappendblockfromurlacdestinationfail269315e6ff4df" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurlacdestinationfail[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurlacdestinationfail[1].json new file mode 100644 index 0000000000000..9b92c2ac8e594 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurlacdestinationfail[1].json @@ -0,0 +1,171 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacdestinationfail0643292c3a1ded6?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C130386F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e0f24-201e-00c4-65fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:10 GMT", + "x-ms-client-request-id" : "aaf3e9f6-a5a0-497d-83db-6ae412ab07ed" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacdestinationfail0643292c3a1ded6/javablobappendblockfromurlacdestinationfail136240e01dabb", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C13F80A8\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e0f36-201e-00c4-74fb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:10 GMT", + "x-ms-client-request-id" : "26c81da4-b7e3-4314-949d-af54b86eff5c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacdestinationfail0643292c3a1ded6?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C144D20F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e0f6c-201e-00c4-19fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:10 GMT", + "x-ms-client-request-id" : "7f28f586-2da7-41cc-a8ed-5c3f5f0aafd1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacdestinationfail0643292c3a1ded6/javablobappendblockfromurlacdestinationfail25503751bc87a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C14A31B2\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e0f7e-201e-00c4-29fb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:10 GMT", + "x-ms-client-request-id" : "0069497a-ee19-48b4-9c11-e8ccfc8609e8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacdestinationfail0643292c3a1ded6/javablobappendblockfromurlacdestinationfail25503751bc87a?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "x-ms-blob-committed-block-count" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:11 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:10 GMT", + "ETag" : "\"0x8D72812C14FFF7D\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e0f97-201e-00c4-3afb-594fb0000000", + "x-ms-client-request-id" : "f11a9160-748b-4014-830b-1b62382e635c", + "x-ms-blob-append-offset" : "0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacdestinationfail0643292c3a1ded6/javablobappendblockfromurlacdestinationfail136240e01dabb?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "253", + "StatusCode" : "412", + "x-ms-request-id" : "d51e0fb8-201e-00c4-57fb-594fb0000000", + "Body" : "\nConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:d51e0fb8-201e-00c4-57fb-594fb0000000\nTime:2019-08-23T21:42:11.4442184Z", + "Date" : "Fri, 23 Aug 2019 21:42:10 GMT", + "x-ms-client-request-id" : "d74030bb-80a0-4c03-b6f9-028aaf996909", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcappendblockfromurlacdestinationfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e0fd2-201e-00c4-6efb-594fb0000000", + "Body" : "jtcappendblockfromurlacdestinationfailjtcappendblockfromurlacdestinationfail0643292c3a1ded6Fri, 23 Aug 2019 21:42:11 GMT\"0x8D72812C144D20F\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:10 GMT", + "x-ms-client-request-id" : "14f2050a-9687-4738-a352-14efaa5e9744", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacdestinationfail0643292c3a1ded6?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e0fde-201e-00c4-79fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:10 GMT", + "x-ms-client-request-id" : "10581740-a0c3-419b-8f63-3a9a04e3b129" + }, + "Exception" : null + } ], + "variables" : [ "jtcappendblockfromurlacdestinationfail0643292c3a1ded6", "javablobappendblockfromurlacdestinationfail136240e01dabb", "javablobappendblockfromurlacdestinationfail25503751bc87a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurlacdestinationfail[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurlacdestinationfail[2].json new file mode 100644 index 0000000000000..ca20a96ce1848 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurlacdestinationfail[2].json @@ -0,0 +1,171 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacdestinationfail02105938d269725?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C166E62E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e0fff-201e-00c4-11fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:10 GMT", + "x-ms-client-request-id" : "60089d08-ec84-42d6-9924-a31678dc259b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacdestinationfail02105938d269725/javablobappendblockfromurlacdestinationfail162665523c600", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C16CB656\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e1018-201e-00c4-23fb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:10 GMT", + "x-ms-client-request-id" : "18903f33-9677-494e-9d80-b3ab04b9b6b7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacdestinationfail02105938d269725?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C1716AF3\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e102b-201e-00c4-30fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:10 GMT", + "x-ms-client-request-id" : "af10233f-482c-4f4f-90ad-ece0438b0f1b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacdestinationfail02105938d269725/javablobappendblockfromurlacdestinationfail215808a31a4d9", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C1767CC0\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e1038-201e-00c4-3dfb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:10 GMT", + "x-ms-client-request-id" : "d2fe2270-ed82-4d34-8995-1a5d0fe9c454" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacdestinationfail02105938d269725/javablobappendblockfromurlacdestinationfail215808a31a4d9?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "x-ms-blob-committed-block-count" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:11 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:10 GMT", + "ETag" : "\"0x8D72812C17B5FF7\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e1048-201e-00c4-49fb-594fb0000000", + "x-ms-client-request-id" : "45f71921-22a9-4f6f-a55e-46eeba112733", + "x-ms-blob-append-offset" : "0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacdestinationfail02105938d269725/javablobappendblockfromurlacdestinationfail162665523c600?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "253", + "StatusCode" : "412", + "x-ms-request-id" : "d51e1060-201e-00c4-5ffb-594fb0000000", + "Body" : "\nConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:d51e1060-201e-00c4-5ffb-594fb0000000\nTime:2019-08-23T21:42:11.7184795Z", + "Date" : "Fri, 23 Aug 2019 21:42:10 GMT", + "x-ms-client-request-id" : "f000f513-bdc3-4905-adb5-c7e3246e9a4c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcappendblockfromurlacdestinationfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e106e-201e-00c4-6cfb-594fb0000000", + "Body" : "jtcappendblockfromurlacdestinationfailjtcappendblockfromurlacdestinationfail02105938d269725Fri, 23 Aug 2019 21:42:11 GMT\"0x8D72812C1716AF3\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:10 GMT", + "x-ms-client-request-id" : "87069959-b209-4a97-b122-7336d11a3a6b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacdestinationfail02105938d269725?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e1087-201e-00c4-01fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:10 GMT", + "x-ms-client-request-id" : "153720dc-24b8-48b9-9710-543cd1a6700e" + }, + "Exception" : null + } ], + "variables" : [ "jtcappendblockfromurlacdestinationfail02105938d269725", "javablobappendblockfromurlacdestinationfail162665523c600", "javablobappendblockfromurlacdestinationfail215808a31a4d9" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurlacdestinationfail[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurlacdestinationfail[3].json new file mode 100644 index 0000000000000..92d51dbf3917b --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurlacdestinationfail[3].json @@ -0,0 +1,202 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacdestinationfail048819ad0b2cca1?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C191AA1A\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e1097-201e-00c4-10fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:10 GMT", + "x-ms-client-request-id" : "9c5da7cc-34ec-44b9-93ca-239bc0b4c7a3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacdestinationfail048819ad0b2cca1/javablobappendblockfromurlacdestinationfail112761630e8db", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C197051D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e10ae-201e-00c4-23fb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:10 GMT", + "x-ms-client-request-id" : "f7119b5c-6fc3-4100-9966-54b2e77217d6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacdestinationfail048819ad0b2cca1?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C19BE07E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e10cc-201e-00c4-37fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:10 GMT", + "x-ms-client-request-id" : "79e5c53a-91b5-45fd-8a96-eaebdd6879bf" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacdestinationfail048819ad0b2cca1/javablobappendblockfromurlacdestinationfail112761630e8db", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "x-ms-blob-committed-block-count" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:11 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:10 GMT", + "x-ms-blob-type" : "AppendBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812C197051D\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:11 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "d51e10df-201e-00c4-45fb-594fb0000000", + "x-ms-client-request-id" : "72385fd8-ad75-4871-a581-35d28894f4b7", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacdestinationfail048819ad0b2cca1/javablobappendblockfromurlacdestinationfail2495052b58e5b", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C1A5396C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e10f2-201e-00c4-54fb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:11 GMT", + "x-ms-client-request-id" : "b6fdcfc7-2b08-413e-a238-a4740537ed68" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacdestinationfail048819ad0b2cca1/javablobappendblockfromurlacdestinationfail2495052b58e5b?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "x-ms-blob-committed-block-count" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:12 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:11 GMT", + "ETag" : "\"0x8D72812C1AC671E\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e1100-201e-00c4-61fb-594fb0000000", + "x-ms-client-request-id" : "c6db363f-67d8-4aad-8156-5130f7ee3e2b", + "x-ms-blob-append-offset" : "0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacdestinationfail048819ad0b2cca1/javablobappendblockfromurlacdestinationfail112761630e8db?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "253", + "StatusCode" : "412", + "x-ms-request-id" : "d51e1114-201e-00c4-72fb-594fb0000000", + "Body" : "\nConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:d51e1114-201e-00c4-72fb-594fb0000000\nTime:2019-08-23T21:42:12.0507969Z", + "Date" : "Fri, 23 Aug 2019 21:42:11 GMT", + "x-ms-client-request-id" : "968b16b9-862a-41dd-ac44-5480c14b4ef6", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcappendblockfromurlacdestinationfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e1146-201e-00c4-1bfb-594fb0000000", + "Body" : "jtcappendblockfromurlacdestinationfailjtcappendblockfromurlacdestinationfail048819ad0b2cca1Fri, 23 Aug 2019 21:42:11 GMT\"0x8D72812C19BE07E\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:11 GMT", + "x-ms-client-request-id" : "ab3f2a00-6792-42a9-b965-6c6766a0e222", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacdestinationfail048819ad0b2cca1?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e1162-201e-00c4-32fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:11 GMT", + "x-ms-client-request-id" : "2805cf7f-e7b6-49d2-ad57-f971cfc73d43" + }, + "Exception" : null + } ], + "variables" : [ "jtcappendblockfromurlacdestinationfail048819ad0b2cca1", "javablobappendblockfromurlacdestinationfail112761630e8db", "javablobappendblockfromurlacdestinationfail2495052b58e5b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurlacdestinationfail[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurlacdestinationfail[4].json new file mode 100644 index 0000000000000..8ead4bae3ce9a --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurlacdestinationfail[4].json @@ -0,0 +1,192 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacdestinationfail0810246ea6fcada?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C1C2B125\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e1180-201e-00c4-4cfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:11 GMT", + "x-ms-client-request-id" : "615ca785-d762-40cd-8eae-8a5536bd86c6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacdestinationfail0810246ea6fcada/javablobappendblockfromurlacdestinationfail1634749b4987b", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C1C85A68\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e1194-201e-00c4-5bfb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:11 GMT", + "x-ms-client-request-id" : "deb5ea3e-be74-4dc2-b327-fe7a4a04d6e8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacdestinationfail0810246ea6fcada?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C1CE6E3D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e11b8-201e-00c4-7cfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:11 GMT", + "x-ms-client-request-id" : "063be648-eac4-4084-9fa5-a5556a31ce3f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacdestinationfail0810246ea6fcada/javablobappendblockfromurlacdestinationfail1634749b4987b?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C1C85A68\"", + "x-ms-lease-id" : "07cda507-185a-4e23-a7e4-22119300891c", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e11c8-201e-00c4-0bfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:11 GMT", + "x-ms-client-request-id" : "8f40f271-0d44-46fe-96b1-a3d40442cec0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacdestinationfail0810246ea6fcada/javablobappendblockfromurlacdestinationfail241571bd03e4a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C1D83CCF\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e11da-201e-00c4-1bfb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:11 GMT", + "x-ms-client-request-id" : "cfe22d0e-30bf-4778-afc8-966dcac29cb9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacdestinationfail0810246ea6fcada/javablobappendblockfromurlacdestinationfail241571bd03e4a?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "x-ms-blob-committed-block-count" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:12 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:11 GMT", + "ETag" : "\"0x8D72812C1DD2003\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e11f5-201e-00c4-30fb-594fb0000000", + "x-ms-client-request-id" : "c617cb57-ea6e-4df5-a43b-bccc557366f8", + "x-ms-blob-append-offset" : "0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacdestinationfail0810246ea6fcada/javablobappendblockfromurlacdestinationfail1634749b4987b?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "LeaseIdMismatchWithBlobOperation", + "retry-after" : "0", + "Content-Length" : "265", + "StatusCode" : "412", + "x-ms-request-id" : "d51e1200-201e-00c4-39fb-594fb0000000", + "Body" : "\nLeaseIdMismatchWithBlobOperationThe lease ID specified did not match the lease ID for the blob.\nRequestId:d51e1200-201e-00c4-39fb-594fb0000000\nTime:2019-08-23T21:42:12.3691010Z", + "Date" : "Fri, 23 Aug 2019 21:42:11 GMT", + "x-ms-client-request-id" : "6737d184-8de2-4066-b2c8-b287056e9016", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcappendblockfromurlacdestinationfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e1217-201e-00c4-4bfb-594fb0000000", + "Body" : "jtcappendblockfromurlacdestinationfailjtcappendblockfromurlacdestinationfail0810246ea6fcadaFri, 23 Aug 2019 21:42:12 GMT\"0x8D72812C1CE6E3D\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:11 GMT", + "x-ms-client-request-id" : "69c93902-87cf-4574-90bf-67f71e929a61", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacdestinationfail0810246ea6fcada?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e1230-201e-00c4-60fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:11 GMT", + "x-ms-client-request-id" : "6eeadd29-aacc-42da-9b1e-481a3f4de8bb" + }, + "Exception" : null + } ], + "variables" : [ "jtcappendblockfromurlacdestinationfail0810246ea6fcada", "javablobappendblockfromurlacdestinationfail1634749b4987b", "javablobappendblockfromurlacdestinationfail241571bd03e4a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurlacdestinationfail[5].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurlacdestinationfail[5].json new file mode 100644 index 0000000000000..957a0043e7eac --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurlacdestinationfail[5].json @@ -0,0 +1,171 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacdestinationfail077332330ccc8c4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C1F2F4A9\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e1244-201e-00c4-73fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:11 GMT", + "x-ms-client-request-id" : "da5312ec-6e6e-4f0a-ba7d-57e0ca1a0d3f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacdestinationfail077332330ccc8c4/javablobappendblockfromurlacdestinationfail104458398b3aa", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C1F8EC3A\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e125f-201e-00c4-07fb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:11 GMT", + "x-ms-client-request-id" : "88ad32f9-d62a-435c-aa63-f3ef288c9058" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacdestinationfail077332330ccc8c4?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C200FC05\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e128f-201e-00c4-2cfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:11 GMT", + "x-ms-client-request-id" : "23193af8-584a-4b08-9384-68c4a705de0f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacdestinationfail077332330ccc8c4/javablobappendblockfromurlacdestinationfail224636d006d9c", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C2060ECB\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e12b1-201e-00c4-44fb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:11 GMT", + "x-ms-client-request-id" : "267c6c1c-1087-451d-b015-d3e594365599" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacdestinationfail077332330ccc8c4/javablobappendblockfromurlacdestinationfail224636d006d9c?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "x-ms-blob-committed-block-count" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:12 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:11 GMT", + "ETag" : "\"0x8D72812C20B404A\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e12d7-201e-00c4-67fb-594fb0000000", + "x-ms-client-request-id" : "7de7fccf-15e0-429d-8ea3-1672566679be", + "x-ms-blob-append-offset" : "0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacdestinationfail077332330ccc8c4/javablobappendblockfromurlacdestinationfail104458398b3aa?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "AppendPositionConditionNotMet", + "retry-after" : "0", + "Content-Length" : "251", + "StatusCode" : "412", + "x-ms-request-id" : "d51e12f3-201e-00c4-7ffb-594fb0000000", + "Body" : "\nAppendPositionConditionNotMetThe append position condition specified was not met.\nRequestId:d51e12f3-201e-00c4-7ffb-594fb0000000\nTime:2019-08-23T21:42:12.6643828Z", + "Date" : "Fri, 23 Aug 2019 21:42:11 GMT", + "x-ms-client-request-id" : "b17c267d-0645-40e7-85e5-6cb74d540481", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcappendblockfromurlacdestinationfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e130f-201e-00c4-15fb-594fb0000000", + "Body" : "jtcappendblockfromurlacdestinationfailjtcappendblockfromurlacdestinationfail077332330ccc8c4Fri, 23 Aug 2019 21:42:12 GMT\"0x8D72812C200FC05\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:11 GMT", + "x-ms-client-request-id" : "b2f34715-0784-4615-90cc-cceffb441047", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacdestinationfail077332330ccc8c4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e132b-201e-00c4-30fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:11 GMT", + "x-ms-client-request-id" : "ff1745c3-9280-4091-bec7-ef40c649aacf" + }, + "Exception" : null + } ], + "variables" : [ "jtcappendblockfromurlacdestinationfail077332330ccc8c4", "javablobappendblockfromurlacdestinationfail104458398b3aa", "javablobappendblockfromurlacdestinationfail224636d006d9c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurlacdestinationfail[6].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurlacdestinationfail[6].json new file mode 100644 index 0000000000000..73e1b6ec973ba --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurlacdestinationfail[6].json @@ -0,0 +1,171 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacdestinationfail0374521e066a888?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C220C6A2\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e1343-201e-00c4-46fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:11 GMT", + "x-ms-client-request-id" : "dd86b47a-b0eb-4609-9447-8a92fbd7b3c6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacdestinationfail0374521e066a888/javablobappendblockfromurlacdestinationfail192599fead09e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C22621D5\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e1357-201e-00c4-55fb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:11 GMT", + "x-ms-client-request-id" : "5ce911ba-0066-48bf-a7e2-ba9e0faa3b90" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacdestinationfail0374521e066a888?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C22B2354\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e1363-201e-00c4-5ffb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:11 GMT", + "x-ms-client-request-id" : "f79d5d67-afc6-413e-9c1e-0e0202ac3a50" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacdestinationfail0374521e066a888/javablobappendblockfromurlacdestinationfail284506b9fe166", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C230366A\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e1371-201e-00c4-6bfb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:11 GMT", + "x-ms-client-request-id" : "93c6858c-26f3-4de6-9ca3-963bcab0c255" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacdestinationfail0374521e066a888/javablobappendblockfromurlacdestinationfail284506b9fe166?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "x-ms-blob-committed-block-count" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:12 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:11 GMT", + "ETag" : "\"0x8D72812C23540B5\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e138a-201e-00c4-01fb-594fb0000000", + "x-ms-client-request-id" : "ab5d4f36-2d6c-43dc-9c88-0770ad1cce56", + "x-ms-blob-append-offset" : "0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacdestinationfail0374521e066a888/javablobappendblockfromurlacdestinationfail192599fead09e?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "MaxBlobSizeConditionNotMet", + "retry-after" : "0", + "Content-Length" : "246", + "StatusCode" : "412", + "x-ms-request-id" : "d51e1396-201e-00c4-0cfb-594fb0000000", + "Body" : "\nMaxBlobSizeConditionNotMetThe max blob size condition specified was not met.\nRequestId:d51e1396-201e-00c4-0cfb-594fb0000000\nTime:2019-08-23T21:42:12.9416470Z", + "Date" : "Fri, 23 Aug 2019 21:42:11 GMT", + "x-ms-client-request-id" : "aa63ae69-76bc-4fa5-89ad-3bb77759771e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcappendblockfromurlacdestinationfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e13ad-201e-00c4-1ffb-594fb0000000", + "Body" : "jtcappendblockfromurlacdestinationfailjtcappendblockfromurlacdestinationfail0374521e066a888Fri, 23 Aug 2019 21:42:12 GMT\"0x8D72812C22B2354\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:12 GMT", + "x-ms-client-request-id" : "41e41b8f-94c8-4cf6-9074-2e575eb9a3a7", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacdestinationfail0374521e066a888?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e13b8-201e-00c4-29fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:12 GMT", + "x-ms-client-request-id" : "f0ca6c90-2a5a-463b-8da8-f02b6bb69bf4" + }, + "Exception" : null + } ], + "variables" : [ "jtcappendblockfromurlacdestinationfail0374521e066a888", "javablobappendblockfromurlacdestinationfail192599fead09e", "javablobappendblockfromurlacdestinationfail284506b9fe166" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurlacsourcefail[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurlacsourcefail[0].json new file mode 100644 index 0000000000000..3d2fb88f0b31a --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurlacsourcefail[0].json @@ -0,0 +1,168 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacsourcefail082769641bc139181a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C335876B\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e16fc-201e-00c4-62fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:13 GMT", + "x-ms-client-request-id" : "a75dcc85-32a4-43bb-9cd7-2ce533f8d50a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacsourcefail082769641bc139181a/javablobappendblockfromurlacsourcefail15424556c2150db", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C33AE30C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e1709-201e-00c4-6bfb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:13 GMT", + "x-ms-client-request-id" : "78a9bb55-0b46-492f-a81c-6bba5a3e1494" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacsourcefail082769641bc139181a?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C33FBBAD\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e1722-201e-00c4-7ffb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:13 GMT", + "x-ms-client-request-id" : "fc39f8e7-d913-4321-86e6-1d2c88dc9773" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacsourcefail082769641bc139181a/javablobappendblockfromurlacsourcefail237792c09abdb86", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C34853D4\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e1737-201e-00c4-11fb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:13 GMT", + "x-ms-client-request-id" : "7b63d56a-7a8b-49f8-aa74-27abc0d25fc1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacsourcefail082769641bc139181a/javablobappendblockfromurlacsourcefail237792c09abdb86?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "x-ms-blob-committed-block-count" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:14 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:13 GMT", + "ETag" : "\"0x8D72812C34EE525\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e1757-201e-00c4-2dfb-594fb0000000", + "x-ms-client-request-id" : "a19d87d2-0578-4631-a5eb-22d366501f05", + "x-ms-blob-append-offset" : "0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacsourcefail082769641bc139181a/javablobappendblockfromurlacsourcefail15424556c2150db?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "CannotVerifyCopySource", + "retry-after" : "0", + "StatusCode" : "304", + "x-ms-request-id" : "d51e1767-201e-00c4-38fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:13 GMT", + "x-ms-client-request-id" : "27b42f9e-0196-4009-b080-2a0273303838" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcappendblockfromurlacsourcefail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e1776-201e-00c4-46fb-594fb0000000", + "Body" : "jtcappendblockfromurlacsourcefailjtcappendblockfromurlacsourcefail082769641bc139181aFri, 23 Aug 2019 21:42:14 GMT\"0x8D72812C33FBBAD\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:13 GMT", + "x-ms-client-request-id" : "574826a0-0857-46db-9b71-63af146fccc5", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacsourcefail082769641bc139181a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e178b-201e-00c4-56fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:13 GMT", + "x-ms-client-request-id" : "657e5147-e964-4030-be18-502e539996c6" + }, + "Exception" : null + } ], + "variables" : [ "jtcappendblockfromurlacsourcefail082769641bc139181a", "javablobappendblockfromurlacsourcefail15424556c2150db", "javablobappendblockfromurlacsourcefail237792c09abdb86" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurlacsourcefail[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurlacsourcefail[1].json new file mode 100644 index 0000000000000..10cc85b2d28d5 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurlacsourcefail[1].json @@ -0,0 +1,171 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacsourcefail01880898ab080d8c1f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C3652E92\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e17a5-201e-00c4-6ffb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:13 GMT", + "x-ms-client-request-id" : "5b781a0d-77ac-45e4-9306-c91bc8c4b53f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacsourcefail01880898ab080d8c1f/javablobappendblockfromurlacsourcefail135678d8c0bb4f8", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C36A8A3B\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e17b8-201e-00c4-7ffb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:13 GMT", + "x-ms-client-request-id" : "6ebda43a-acaa-4023-bba9-0d66f7eb1395" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacsourcefail01880898ab080d8c1f?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C36F1450\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e17ca-201e-00c4-11fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:14 GMT", + "x-ms-client-request-id" : "909c974a-f777-49b7-b1b7-5d96cd43b6eb" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacsourcefail01880898ab080d8c1f/javablobappendblockfromurlacsourcefail276371927b7df09", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C374026F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e17e5-201e-00c4-27fb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:14 GMT", + "x-ms-client-request-id" : "97ba687e-951a-4dbb-81b9-c02681e2a45f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacsourcefail01880898ab080d8c1f/javablobappendblockfromurlacsourcefail276371927b7df09?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "x-ms-blob-committed-block-count" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:15 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:14 GMT", + "ETag" : "\"0x8D72812C37933DF\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e1802-201e-00c4-41fb-594fb0000000", + "x-ms-client-request-id" : "cb11a488-62be-4b6d-aff1-c1cee6d4ddef", + "x-ms-blob-append-offset" : "0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacsourcefail01880898ab080d8c1f/javablobappendblockfromurlacsourcefail135678d8c0bb4f8?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "CannotVerifyCopySource", + "retry-after" : "0", + "Content-Length" : "251", + "StatusCode" : "412", + "x-ms-request-id" : "d51e1812-201e-00c4-4efb-594fb0000000", + "Body" : "\nCannotVerifyCopySourceCould not verify the copy source within the specified time.\nRequestId:d51e1812-201e-00c4-4efb-594fb0000000\nTime:2019-08-23T21:42:15.0616685Z", + "Date" : "Fri, 23 Aug 2019 21:42:14 GMT", + "x-ms-client-request-id" : "a0df28a5-82e4-44e2-aa1f-713e65d19bbd", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcappendblockfromurlacsourcefail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e182d-201e-00c4-67fb-594fb0000000", + "Body" : "jtcappendblockfromurlacsourcefailjtcappendblockfromurlacsourcefail01880898ab080d8c1fFri, 23 Aug 2019 21:42:14 GMT\"0x8D72812C36F1450\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:14 GMT", + "x-ms-client-request-id" : "6c1db9e9-968b-4f82-be7f-628e4a9c6091", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacsourcefail01880898ab080d8c1f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e184b-201e-00c4-80fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:14 GMT", + "x-ms-client-request-id" : "d20c397b-ea1f-4b0e-9410-63172affecba" + }, + "Exception" : null + } ], + "variables" : [ "jtcappendblockfromurlacsourcefail01880898ab080d8c1f", "javablobappendblockfromurlacsourcefail135678d8c0bb4f8", "javablobappendblockfromurlacsourcefail276371927b7df09" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurlacsourcefail[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurlacsourcefail[2].json new file mode 100644 index 0000000000000..b8669c024fc6f --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurlacsourcefail[2].json @@ -0,0 +1,171 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacsourcefail077695d098fca54921?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C38FA450\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e186b-201e-00c4-1afb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:14 GMT", + "x-ms-client-request-id" : "ce4c129c-35e8-4f0a-8162-7198d080fb7a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacsourcefail077695d098fca54921/javablobappendblockfromurlacsourcefail14682591bd97d8a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C3957558\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e1889-201e-00c4-30fb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:14 GMT", + "x-ms-client-request-id" : "1f0b5c2a-ae13-4a0d-9b77-5fcbdec3a1f4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacsourcefail077695d098fca54921?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C39A2641\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e189d-201e-00c4-40fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:14 GMT", + "x-ms-client-request-id" : "d152363a-5f8d-4364-88ef-18b2bcbd1e3f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacsourcefail077695d098fca54921/javablobappendblockfromurlacsourcefail272259f804c848d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C39F62D6\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e18aa-201e-00c4-4cfb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:14 GMT", + "x-ms-client-request-id" : "4f6517c3-a926-40c0-98fc-663e0a993995" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacsourcefail077695d098fca54921/javablobappendblockfromurlacsourcefail272259f804c848d?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "x-ms-blob-committed-block-count" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:15 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:14 GMT", + "ETag" : "\"0x8D72812C3A49442\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e18bd-201e-00c4-5dfb-594fb0000000", + "x-ms-client-request-id" : "11b1876e-407d-4bc6-8fc2-74a27ab631a7", + "x-ms-blob-append-offset" : "0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacsourcefail077695d098fca54921/javablobappendblockfromurlacsourcefail14682591bd97d8a?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "CannotVerifyCopySource", + "retry-after" : "0", + "Content-Length" : "251", + "StatusCode" : "412", + "x-ms-request-id" : "d51e18ce-201e-00c4-6dfb-594fb0000000", + "Body" : "\nCannotVerifyCopySourceCould not verify the copy source within the specified time.\nRequestId:d51e18ce-201e-00c4-6dfb-594fb0000000\nTime:2019-08-23T21:42:15.3429376Z", + "Date" : "Fri, 23 Aug 2019 21:42:14 GMT", + "x-ms-client-request-id" : "afd8e598-2fe9-4ee9-8c63-c14ce32e6790", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcappendblockfromurlacsourcefail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e18e4-201e-00c4-7ffb-594fb0000000", + "Body" : "jtcappendblockfromurlacsourcefailjtcappendblockfromurlacsourcefail077695d098fca54921Fri, 23 Aug 2019 21:42:15 GMT\"0x8D72812C39A2641\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:14 GMT", + "x-ms-client-request-id" : "b3302dbc-fa13-46a4-ad4a-48d9ae341e3f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacsourcefail077695d098fca54921?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e18ed-201e-00c4-08fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:14 GMT", + "x-ms-client-request-id" : "413c4bac-b305-427c-949f-8e92e94f7765" + }, + "Exception" : null + } ], + "variables" : [ "jtcappendblockfromurlacsourcefail077695d098fca54921", "javablobappendblockfromurlacsourcefail14682591bd97d8a", "javablobappendblockfromurlacsourcefail272259f804c848d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurlacsourcefail[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurlacsourcefail[3].json new file mode 100644 index 0000000000000..f0d25620385f5 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurlacsourcefail[3].json @@ -0,0 +1,199 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacsourcefail0544760875fa096419?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C3B92F86\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e1904-201e-00c4-1dfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:14 GMT", + "x-ms-client-request-id" : "45034e62-f103-42ca-ba8c-97cc8dbf847e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacsourcefail0544760875fa096419/javablobappendblockfromurlacsourcefail1129889fabf2414", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C3BE6425\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e1910-201e-00c4-27fb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:14 GMT", + "x-ms-client-request-id" : "e575c662-726f-46f2-aac3-56596d837d13" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacsourcefail0544760875fa096419?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C3C314D7\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e192b-201e-00c4-3ffb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:14 GMT", + "x-ms-client-request-id" : "005018f0-e41d-4cc2-91c9-69763e3c98be" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacsourcefail0544760875fa096419/javablobappendblockfromurlacsourcefail299939b94d4a17a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C3C8036B\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e193a-201e-00c4-4bfb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:14 GMT", + "x-ms-client-request-id" : "ca30f48b-9fdd-4f96-83ef-8986d630a12c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacsourcefail0544760875fa096419/javablobappendblockfromurlacsourcefail299939b94d4a17a?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "x-ms-blob-committed-block-count" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:15 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:14 GMT", + "ETag" : "\"0x8D72812C3CCE6A0\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e194d-201e-00c4-5dfb-594fb0000000", + "x-ms-client-request-id" : "fa83343a-da56-4b03-8131-e9216dc211f9", + "x-ms-blob-append-offset" : "0" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacsourcefail0544760875fa096419/javablobappendblockfromurlacsourcefail299939b94d4a17a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "x-ms-blob-committed-block-count" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:15 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:14 GMT", + "x-ms-blob-type" : "AppendBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812C3CCE6A0\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:15 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51e1963-201e-00c4-6ffb-594fb0000000", + "x-ms-client-request-id" : "e2a7d269-fae4-4f49-b257-3725300ce0ec", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacsourcefail0544760875fa096419/javablobappendblockfromurlacsourcefail1129889fabf2414?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "CannotVerifyCopySource", + "retry-after" : "0", + "StatusCode" : "304", + "x-ms-request-id" : "d51e1983-201e-00c4-0afb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:14 GMT", + "x-ms-client-request-id" : "e3ffab75-3f9f-4132-abf1-123cea504554" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcappendblockfromurlacsourcefail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e199d-201e-00c4-1dfb-594fb0000000", + "Body" : "jtcappendblockfromurlacsourcefailjtcappendblockfromurlacsourcefail0544760875fa096419Fri, 23 Aug 2019 21:42:15 GMT\"0x8D72812C3C314D7\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:14 GMT", + "x-ms-client-request-id" : "71a1b4ed-0b0b-43cf-bb96-735ba564391a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlacsourcefail0544760875fa096419?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e19ad-201e-00c4-2bfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:14 GMT", + "x-ms-client-request-id" : "70ff9556-39a3-41f6-8b1a-4a678e5a3106" + }, + "Exception" : null + } ], + "variables" : [ "jtcappendblockfromurlacsourcefail0544760875fa096419", "javablobappendblockfromurlacsourcefail1129889fabf2414", "javablobappendblockfromurlacsourcefail299939b94d4a17a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurldestinationac[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurldestinationac[0].json new file mode 100644 index 0000000000000..360e70ee29fec --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurldestinationac[0].json @@ -0,0 +1,174 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurldestinationac09914546a4ab2d913?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BF6BF9F7\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e0785-201e-00c4-6afb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:07 GMT", + "x-ms-client-request-id" : "523c09b4-8ad8-4b03-a856-17fe46cc5889" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurldestinationac09914546a4ab2d913/javablobappendblockfromurldestinationac144761e8763df94", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BF71F051\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e07a7-201e-00c4-05fb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:07 GMT", + "x-ms-client-request-id" : "750887e2-c648-4671-9063-17b7f48031ab" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurldestinationac09914546a4ab2d913?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BF76CF8D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e07bd-201e-00c4-18fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:07 GMT", + "x-ms-client-request-id" : "4b616c03-3608-4975-a7ef-a51e11b5a1a7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurldestinationac09914546a4ab2d913/javablobappendblockfromurldestinationac274602b47e7befa", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BF7CC864\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e07d1-201e-00c4-2afb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:07 GMT", + "x-ms-client-request-id" : "348634c3-117b-4883-8307-2f2b7cd1a0e7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurldestinationac09914546a4ab2d913/javablobappendblockfromurldestinationac274602b47e7befa?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "x-ms-blob-committed-block-count" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:08 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:07 GMT", + "ETag" : "\"0x8D72812BF81F9D9\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e07ec-201e-00c4-40fb-594fb0000000", + "x-ms-client-request-id" : "3e466b41-a7af-4654-8db8-f48be8dd6e87", + "x-ms-blob-append-offset" : "0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurldestinationac09914546a4ab2d913/javablobappendblockfromurldestinationac144761e8763df94?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-blob-committed-block-count" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:08 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:07 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812BF8BC049\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e0801-201e-00c4-52fb-594fb0000000", + "x-ms-client-request-id" : "0402d9ab-dd98-40da-b493-1fe5a53dfa60", + "x-ms-blob-append-offset" : "0" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcappendblockfromurldestinationac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e0828-201e-00c4-75fb-594fb0000000", + "Body" : "jtcappendblockfromurldestinationacjtcappendblockfromurldestinationac09914546a4ab2d913Fri, 23 Aug 2019 21:42:08 GMT\"0x8D72812BF76CF8D\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:07 GMT", + "x-ms-client-request-id" : "bcdebb5c-66c1-4c0c-bfe6-0b7778f12bc1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurldestinationac09914546a4ab2d913?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e0834-201e-00c4-80fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:07 GMT", + "x-ms-client-request-id" : "9e604f4a-bcc3-4b9d-944e-f19331cce9e6" + }, + "Exception" : null + } ], + "variables" : [ "jtcappendblockfromurldestinationac09914546a4ab2d913", "javablobappendblockfromurldestinationac144761e8763df94", "javablobappendblockfromurldestinationac274602b47e7befa" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurldestinationac[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurldestinationac[1].json new file mode 100644 index 0000000000000..0b29790d010a5 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurldestinationac[1].json @@ -0,0 +1,174 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurldestinationac030101d8a74465bb9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BFA2597D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e0855-201e-00c4-1dfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:07 GMT", + "x-ms-client-request-id" : "33593b8a-5489-49d6-8a7f-28391dc99c8c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurldestinationac030101d8a74465bb9/javablobappendblockfromurldestinationac1117956a547b1f9", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BFA7DAA1\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e0862-201e-00c4-27fb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:07 GMT", + "x-ms-client-request-id" : "702c1c39-34fa-4c11-854d-7c217a26ff94" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurldestinationac030101d8a74465bb9?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BFACB97E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e0873-201e-00c4-35fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:07 GMT", + "x-ms-client-request-id" : "dd88cc91-8f20-458b-8f02-9bfed331d816" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurldestinationac030101d8a74465bb9/javablobappendblockfromurldestinationac2182717306356ad", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BFB28B9C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e0887-201e-00c4-47fb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:07 GMT", + "x-ms-client-request-id" : "b4aa8e89-196a-429a-a07d-49d9bf290f86" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurldestinationac030101d8a74465bb9/javablobappendblockfromurldestinationac2182717306356ad?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "x-ms-blob-committed-block-count" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:08 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:07 GMT", + "ETag" : "\"0x8D72812BFB8808B\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e08a2-201e-00c4-62fb-594fb0000000", + "x-ms-client-request-id" : "9226f921-b9a0-4442-979a-791563afcbbf", + "x-ms-blob-append-offset" : "0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurldestinationac030101d8a74465bb9/javablobappendblockfromurldestinationac1117956a547b1f9?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-blob-committed-block-count" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:08 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:07 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812BFC57C04\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e08bb-201e-00c4-7afb-594fb0000000", + "x-ms-client-request-id" : "e2fac55b-8aa4-490d-9caa-a6eb3fa1282a", + "x-ms-blob-append-offset" : "0" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcappendblockfromurldestinationac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e08e4-201e-00c4-1dfb-594fb0000000", + "Body" : "jtcappendblockfromurldestinationacjtcappendblockfromurldestinationac030101d8a74465bb9Fri, 23 Aug 2019 21:42:08 GMT\"0x8D72812BFACB97E\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:07 GMT", + "x-ms-client-request-id" : "496982b8-087a-45f0-be30-091ab282dcbd", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurldestinationac030101d8a74465bb9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e08f1-201e-00c4-28fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:07 GMT", + "x-ms-client-request-id" : "0a312817-1f3f-4fbf-a8ed-fad4ba90f0b2" + }, + "Exception" : null + } ], + "variables" : [ "jtcappendblockfromurldestinationac030101d8a74465bb9", "javablobappendblockfromurldestinationac1117956a547b1f9", "javablobappendblockfromurldestinationac2182717306356ad" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurldestinationac[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurldestinationac[2].json new file mode 100644 index 0000000000000..62aa8eab27366 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurldestinationac[2].json @@ -0,0 +1,174 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurldestinationac0538115fe179332c2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BFD78041\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e090f-201e-00c4-44fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:07 GMT", + "x-ms-client-request-id" : "abb7f58d-4c0d-4474-8789-36a0dc6e14ff" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurldestinationac0538115fe179332c2/javablobappendblockfromurldestinationac10313987ba391cb", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BFDD9DDE\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e093b-201e-00c4-69fb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:08 GMT", + "x-ms-client-request-id" : "d56157dd-9675-4fd5-b793-fe48aa620c6c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurldestinationac0538115fe179332c2?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BFE33FDD\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e094f-201e-00c4-7cfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:08 GMT", + "x-ms-client-request-id" : "9e6208b2-e66d-40b9-a223-d398c686d1ba" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurldestinationac0538115fe179332c2/javablobappendblockfromurldestinationac2373616bfccb781", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BFE9124E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e0968-201e-00c4-14fb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:08 GMT", + "x-ms-client-request-id" : "2da5e2dd-d367-45a5-86c4-c250021ad93a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurldestinationac0538115fe179332c2/javablobappendblockfromurldestinationac2373616bfccb781?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "x-ms-blob-committed-block-count" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:09 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:08 GMT", + "ETag" : "\"0x8D72812BFEE6AD2\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e0983-201e-00c4-2afb-594fb0000000", + "x-ms-client-request-id" : "073938fb-6a4c-466f-b020-6316124cca88", + "x-ms-blob-append-offset" : "0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurldestinationac0538115fe179332c2/javablobappendblockfromurldestinationac10313987ba391cb?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-blob-committed-block-count" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:09 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:08 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812BFF76DBF\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e09ae-201e-00c4-50fb-594fb0000000", + "x-ms-client-request-id" : "370ca0fa-105c-4fc8-9d0d-170d985e4ea8", + "x-ms-blob-append-offset" : "0" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcappendblockfromurldestinationac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e09cb-201e-00c4-6bfb-594fb0000000", + "Body" : "jtcappendblockfromurldestinationacjtcappendblockfromurldestinationac0538115fe179332c2Fri, 23 Aug 2019 21:42:09 GMT\"0x8D72812BFE33FDD\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:08 GMT", + "x-ms-client-request-id" : "1c452d47-cd89-4f4c-8d72-0d8de8db9b69", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurldestinationac0538115fe179332c2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e09da-201e-00c4-79fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:08 GMT", + "x-ms-client-request-id" : "2b2bf721-b0ea-4aa3-9361-a80d368cd2c5" + }, + "Exception" : null + } ], + "variables" : [ "jtcappendblockfromurldestinationac0538115fe179332c2", "javablobappendblockfromurldestinationac10313987ba391cb", "javablobappendblockfromurldestinationac2373616bfccb781" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurldestinationac[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurldestinationac[3].json new file mode 100644 index 0000000000000..2e75bcc4c7b2d --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurldestinationac[3].json @@ -0,0 +1,205 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurldestinationac008834033f6c2f827?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C007003E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e09f0-201e-00c4-0dfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:08 GMT", + "x-ms-client-request-id" : "4f6e8544-82e6-4c51-905f-f356e151abae" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurldestinationac008834033f6c2f827/javablobappendblockfromurldestinationac179932748f485f6", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C00C8187\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e0a00-201e-00c4-1bfb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:08 GMT", + "x-ms-client-request-id" : "33e4f133-7e77-4358-baea-be3c3ae47f00" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurldestinationac008834033f6c2f827?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C01138A8\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e0a0b-201e-00c4-25fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:08 GMT", + "x-ms-client-request-id" : "9a85fd91-b257-4ed6-9370-8ba36b8cfe4b" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurldestinationac008834033f6c2f827/javablobappendblockfromurldestinationac179932748f485f6", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "x-ms-blob-committed-block-count" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:09 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:08 GMT", + "x-ms-blob-type" : "AppendBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812C00C8187\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:09 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "d51e0a14-201e-00c4-2cfb-594fb0000000", + "x-ms-client-request-id" : "b8533a38-7c24-41ce-ba09-5824d48bac58", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurldestinationac008834033f6c2f827/javablobappendblockfromurldestinationac25572822b62e809", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C01AB5D6\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e0a21-201e-00c4-39fb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:08 GMT", + "x-ms-client-request-id" : "f4e20a27-7f45-42f8-8835-e8b29eef5cd9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurldestinationac008834033f6c2f827/javablobappendblockfromurldestinationac25572822b62e809?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "x-ms-blob-committed-block-count" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:09 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:08 GMT", + "ETag" : "\"0x8D72812C022A706\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e0a49-201e-00c4-5cfb-594fb0000000", + "x-ms-client-request-id" : "a0db3ce8-8646-407e-9b8a-f7286567e0f7", + "x-ms-blob-append-offset" : "0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurldestinationac008834033f6c2f827/javablobappendblockfromurldestinationac179932748f485f6?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-blob-committed-block-count" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:09 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:08 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812C028EA2B\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e0a5f-201e-00c4-6efb-594fb0000000", + "x-ms-client-request-id" : "128cbe77-5a24-41c6-89db-7a28abf0b07d", + "x-ms-blob-append-offset" : "0" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcappendblockfromurldestinationac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e0a80-201e-00c4-0bfb-594fb0000000", + "Body" : "jtcappendblockfromurldestinationacjtcappendblockfromurldestinationac008834033f6c2f827Fri, 23 Aug 2019 21:42:09 GMT\"0x8D72812C01138A8\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:08 GMT", + "x-ms-client-request-id" : "a99e49a1-6b81-4cbb-80ca-0ceb54bd19c7", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurldestinationac008834033f6c2f827?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e0a94-201e-00c4-1cfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:08 GMT", + "x-ms-client-request-id" : "fe76c559-bfe3-43a6-8f71-4d152c4150f4" + }, + "Exception" : null + } ], + "variables" : [ "jtcappendblockfromurldestinationac008834033f6c2f827", "javablobappendblockfromurldestinationac179932748f485f6", "javablobappendblockfromurldestinationac25572822b62e809" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurldestinationac[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurldestinationac[4].json new file mode 100644 index 0000000000000..3ad39599ef9b3 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurldestinationac[4].json @@ -0,0 +1,174 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurldestinationac0648294789e002b85?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C038F1DE\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e0ab5-201e-00c4-39fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:08 GMT", + "x-ms-client-request-id" : "3e82f626-d5ac-449c-a0a6-0214b9172a64" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurldestinationac0648294789e002b85/javablobappendblockfromurldestinationac13752422528dee5", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C03E250A\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e0ad1-201e-00c4-51fb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:08 GMT", + "x-ms-client-request-id" : "671c7b96-208f-4f65-9f61-0928cd5b007f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurldestinationac0648294789e002b85?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C042DBD3\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e0ae1-201e-00c4-60fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:08 GMT", + "x-ms-client-request-id" : "1021732c-60c3-48c6-a361-4af3fe9ad5f3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurldestinationac0648294789e002b85/javablobappendblockfromurldestinationac2388515adbf0109", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C049C0A3\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e0aee-201e-00c4-6cfb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:08 GMT", + "x-ms-client-request-id" : "bd22a002-8ab1-4dd6-abc5-f87599e2fc33" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurldestinationac0648294789e002b85/javablobappendblockfromurldestinationac2388515adbf0109?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "x-ms-blob-committed-block-count" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:09 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:08 GMT", + "ETag" : "\"0x8D72812C0513C89\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e0b0a-201e-00c4-07fb-594fb0000000", + "x-ms-client-request-id" : "a0a9a4be-56a8-43ff-abfb-bd69fbd04535", + "x-ms-blob-append-offset" : "0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurldestinationac0648294789e002b85/javablobappendblockfromurldestinationac13752422528dee5?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-blob-committed-block-count" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:09 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:08 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812C057A6C1\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e0b2d-201e-00c4-27fb-594fb0000000", + "x-ms-client-request-id" : "4da7a7bc-c904-463d-913f-1c8041aedcb3", + "x-ms-blob-append-offset" : "0" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcappendblockfromurldestinationac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e0b45-201e-00c4-3dfb-594fb0000000", + "Body" : "jtcappendblockfromurldestinationacjtcappendblockfromurldestinationac0648294789e002b85Fri, 23 Aug 2019 21:42:09 GMT\"0x8D72812C042DBD3\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:08 GMT", + "x-ms-client-request-id" : "58f4491e-40a3-4d55-9ec2-7a5e7c1f22b2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurldestinationac0648294789e002b85?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e0b50-201e-00c4-47fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:08 GMT", + "x-ms-client-request-id" : "37321e27-28e0-4876-8967-bce935689c51" + }, + "Exception" : null + } ], + "variables" : [ "jtcappendblockfromurldestinationac0648294789e002b85", "javablobappendblockfromurldestinationac13752422528dee5", "javablobappendblockfromurldestinationac2388515adbf0109" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurldestinationac[5].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurldestinationac[5].json new file mode 100644 index 0000000000000..c63ced91828c2 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurldestinationac[5].json @@ -0,0 +1,195 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurldestinationac068734c8c721ada0b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C069356B\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e0b72-201e-00c4-63fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:08 GMT", + "x-ms-client-request-id" : "e087e8c4-3b43-4e62-8ee5-8dd9bb631d4c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurldestinationac068734c8c721ada0b/javablobappendblockfromurldestinationac1885591b741adbc", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C06EB6D3\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e0b88-201e-00c4-77fb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:08 GMT", + "x-ms-client-request-id" : "fbd52947-6db7-442f-9d96-c039aa3bee1b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurldestinationac068734c8c721ada0b?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C0739462\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e0ba9-201e-00c4-14fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:09 GMT", + "x-ms-client-request-id" : "fad9c942-b700-4df1-a948-a5023d4e1046" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurldestinationac068734c8c721ada0b/javablobappendblockfromurldestinationac1885591b741adbc?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C06EB6D3\"", + "x-ms-lease-id" : "a7b888fc-144e-4c80-b543-7763fd87cf5d", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e0bbf-201e-00c4-27fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:09 GMT", + "x-ms-client-request-id" : "6f602676-5c4f-408e-8579-305252e450d8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurldestinationac068734c8c721ada0b/javablobappendblockfromurldestinationac249062e72b7a1c1", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C07DFCD3\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e0bd6-201e-00c4-3dfb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:09 GMT", + "x-ms-client-request-id" : "4599c921-fa79-45e9-af15-25ca35a54b1c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurldestinationac068734c8c721ada0b/javablobappendblockfromurldestinationac249062e72b7a1c1?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "x-ms-blob-committed-block-count" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:10 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:09 GMT", + "ETag" : "\"0x8D72812C08551A5\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e0c07-201e-00c4-6bfb-594fb0000000", + "x-ms-client-request-id" : "c90b1d84-c698-4505-8555-2f72f6a7782f", + "x-ms-blob-append-offset" : "0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurldestinationac068734c8c721ada0b/javablobappendblockfromurldestinationac1885591b741adbc?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-blob-committed-block-count" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:10 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:09 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812C09A8C85\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e0c2f-201e-00c4-10fb-594fb0000000", + "x-ms-client-request-id" : "e207b6a9-cfa3-4bfb-bca3-4fdb76477ce4", + "x-ms-blob-append-offset" : "0" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcappendblockfromurldestinationac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e0c82-201e-00c4-5bfb-594fb0000000", + "Body" : "jtcappendblockfromurldestinationacjtcappendblockfromurldestinationac068734c8c721ada0bFri, 23 Aug 2019 21:42:09 GMT\"0x8D72812C0739462\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:09 GMT", + "x-ms-client-request-id" : "d0a43818-6305-4ecc-8bc5-9a9b283d0b70", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurldestinationac068734c8c721ada0b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e0c98-201e-00c4-71fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:09 GMT", + "x-ms-client-request-id" : "eb21509f-df68-4208-a77f-2d524c4a85cf" + }, + "Exception" : null + } ], + "variables" : [ "jtcappendblockfromurldestinationac068734c8c721ada0b", "javablobappendblockfromurldestinationac1885591b741adbc", "javablobappendblockfromurldestinationac249062e72b7a1c1" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurldestinationac[6].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurldestinationac[6].json new file mode 100644 index 0000000000000..aa3498c1d156d --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurldestinationac[6].json @@ -0,0 +1,174 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurldestinationac006913616eae33bea?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C0AB0970\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e0cb4-201e-00c4-0cfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:09 GMT", + "x-ms-client-request-id" : "e1cf81dc-b00c-4e27-84b6-bfa6045234dc" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurldestinationac006913616eae33bea/javablobappendblockfromurldestinationac1652834c76f9204", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C0B12756\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e0cc6-201e-00c4-1bfb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:09 GMT", + "x-ms-client-request-id" : "c33b70d9-7bfc-42c3-a3b0-52d32376b3ba" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurldestinationac006913616eae33bea?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C0B6047F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e0cdd-201e-00c4-2cfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:09 GMT", + "x-ms-client-request-id" : "2321ecb6-1d49-415d-99ff-09ae7d3f6155" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurldestinationac006913616eae33bea/javablobappendblockfromurldestinationac2221781ac3333a5", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C0BB3BF4\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e0cef-201e-00c4-3bfb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:09 GMT", + "x-ms-client-request-id" : "f16b412b-d62b-4737-9648-2ec30939c93c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurldestinationac006913616eae33bea/javablobappendblockfromurldestinationac2221781ac3333a5?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "x-ms-blob-committed-block-count" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:10 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:09 GMT", + "ETag" : "\"0x8D72812C0C06D57\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e0d01-201e-00c4-4cfb-594fb0000000", + "x-ms-client-request-id" : "25865cee-8709-463f-81a4-9ff8f50ec5c2", + "x-ms-blob-append-offset" : "0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurldestinationac006913616eae33bea/javablobappendblockfromurldestinationac1652834c76f9204?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-blob-committed-block-count" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:10 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:09 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812C0C725BE\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e0d14-201e-00c4-5efb-594fb0000000", + "x-ms-client-request-id" : "3d8459a3-85ee-49cf-a0ae-e715887af58f", + "x-ms-blob-append-offset" : "0" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcappendblockfromurldestinationac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e0d35-201e-00c4-7cfb-594fb0000000", + "Body" : "jtcappendblockfromurldestinationacjtcappendblockfromurldestinationac006913616eae33beaFri, 23 Aug 2019 21:42:10 GMT\"0x8D72812C0B6047F\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:09 GMT", + "x-ms-client-request-id" : "7b431c28-0564-4af6-9547-5e7baf77b03a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurldestinationac006913616eae33bea?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e0d43-201e-00c4-09fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:09 GMT", + "x-ms-client-request-id" : "25dffe16-ea15-4e9e-960f-afbc59870e3a" + }, + "Exception" : null + } ], + "variables" : [ "jtcappendblockfromurldestinationac006913616eae33bea", "javablobappendblockfromurldestinationac1652834c76f9204", "javablobappendblockfromurldestinationac2221781ac3333a5" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurldestinationac[7].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurldestinationac[7].json new file mode 100644 index 0000000000000..78f0477ccc977 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurldestinationac[7].json @@ -0,0 +1,174 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurldestinationac083608579a2f968a8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C0D669C2\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e0d57-201e-00c4-1bfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:09 GMT", + "x-ms-client-request-id" : "204d8a00-9127-435c-bdf8-8dae52137079" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurldestinationac083608579a2f968a8/javablobappendblockfromurldestinationac12216055988f00b", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C0DC398E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e0d6d-201e-00c4-30fb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:09 GMT", + "x-ms-client-request-id" : "5a1e8f52-2918-498f-811f-5bce58089ca0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurldestinationac083608579a2f968a8?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C0E11666\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e0d78-201e-00c4-3afb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:09 GMT", + "x-ms-client-request-id" : "d71a5179-8cd1-41e3-9f88-db732d2c6dc4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurldestinationac083608579a2f968a8/javablobappendblockfromurldestinationac217128096ec7148", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C0E62708\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e0d87-201e-00c4-49fb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:09 GMT", + "x-ms-client-request-id" : "9716b29d-727d-4e05-b1fe-8698adb28498" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurldestinationac083608579a2f968a8/javablobappendblockfromurldestinationac217128096ec7148?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "x-ms-blob-committed-block-count" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:10 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:09 GMT", + "ETag" : "\"0x8D72812C0ECB853\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e0dbc-201e-00c4-65fb-594fb0000000", + "x-ms-client-request-id" : "fcc359e8-6c60-463b-811d-c1182aa662af", + "x-ms-blob-append-offset" : "0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurldestinationac083608579a2f968a8/javablobappendblockfromurldestinationac12216055988f00b?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-blob-committed-block-count" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:10 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:09 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812C0F4F7BE\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e0dcf-201e-00c4-74fb-594fb0000000", + "x-ms-client-request-id" : "083844bd-d631-4e27-9247-fe56e7247d92", + "x-ms-blob-append-offset" : "0" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcappendblockfromurldestinationac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e0dfc-201e-00c4-14fb-594fb0000000", + "Body" : "jtcappendblockfromurldestinationacjtcappendblockfromurldestinationac083608579a2f968a8Fri, 23 Aug 2019 21:42:10 GMT\"0x8D72812C0E11666\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:09 GMT", + "x-ms-client-request-id" : "5968b0fe-7ac8-4115-88f9-25a830f1918e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurldestinationac083608579a2f968a8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e0e1d-201e-00c4-2cfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:09 GMT", + "x-ms-client-request-id" : "868ac213-442d-4717-a8c3-9b9f0dcdda2e" + }, + "Exception" : null + } ], + "variables" : [ "jtcappendblockfromurldestinationac083608579a2f968a8", "javablobappendblockfromurldestinationac12216055988f00b", "javablobappendblockfromurldestinationac217128096ec7148" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurlmd5.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurlmd5.json new file mode 100644 index 0000000000000..e6e4c86141616 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurlmd5.json @@ -0,0 +1,174 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlmd5081948f3d380efc0c742a6?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BF122B45\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e063a-201e-00c4-44fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:06 GMT", + "x-ms-client-request-id" : "a1ec52b8-274a-42b2-96b4-5f7617a3c721" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlmd5081948f3d380efc0c742a6/javablobappendblockfromurlmd5190621ac71abdcd71d4d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BF175E0A\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e0652-201e-00c4-56fb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:06 GMT", + "x-ms-client-request-id" : "1bb6c660-b427-4e69-8e1b-827b980e6873" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlmd5081948f3d380efc0c742a6?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BF1C16B9\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e065c-201e-00c4-5efb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:06 GMT", + "x-ms-client-request-id" : "14d54473-0bd0-4429-8c82-a2dda8a50f24" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlmd5081948f3d380efc0c742a6/javablobappendblockfromurlmd5190621ac71abdcd71d4d?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "Yj/zAeBd1Ow=", + "x-ms-blob-committed-block-count" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:07 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:06 GMT", + "ETag" : "\"0x8D72812BF21C0D3\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e0669-201e-00c4-6bfb-594fb0000000", + "x-ms-client-request-id" : "dc4cdaf5-4b95-49ca-88fb-6ebcdc2c7059", + "x-ms-blob-append-offset" : "0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlmd5081948f3d380efc0c742a6/javablobappendblockfromurlmd52386819a41ce668f124e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BF276788\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e0683-201e-00c4-01fb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:06 GMT", + "x-ms-client-request-id" : "e5f35f33-ca12-4b42-bb97-2ca7eee33394" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlmd5081948f3d380efc0c742a6/javablobappendblockfromurlmd52386819a41ce668f124e?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-blob-committed-block-count" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:07 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:06 GMT", + "Content-MD5" : "zKKfiH1sdrtrpbQ2qhVACQ==", + "ETag" : "\"0x8D72812BF2DD1BC\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e0697-201e-00c4-14fb-594fb0000000", + "x-ms-client-request-id" : "8f6c7114-f8a2-4831-810f-7fd27b4d9d4c", + "x-ms-blob-append-offset" : "0" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcappendblockfromurlmd5&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e06b2-201e-00c4-2efb-594fb0000000", + "Body" : "jtcappendblockfromurlmd5jtcappendblockfromurlmd5081948f3d380efc0c742a6Fri, 23 Aug 2019 21:42:07 GMT\"0x8D72812BF1C16B9\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:06 GMT", + "x-ms-client-request-id" : "0a928b48-847e-4d80-9769-011727c87313", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlmd5081948f3d380efc0c742a6?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e06c9-201e-00c4-43fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:06 GMT", + "x-ms-client-request-id" : "ef54f59d-2c19-4b93-9759-129c432badfd" + }, + "Exception" : null + } ], + "variables" : [ "jtcappendblockfromurlmd5081948f3d380efc0c742a6", "javablobappendblockfromurlmd5190621ac71abdcd71d4d", "5bb94217-41a1-48c3-ba94-689ea3939cb2", "javablobappendblockfromurlmd52386819a41ce668f124e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurlmd5fail.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurlmd5fail.json new file mode 100644 index 0000000000000..76c5390b786e7 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurlmd5fail.json @@ -0,0 +1,171 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlmd5fail0936762ce66247e2e549?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BF3DD9CF\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e06e0-201e-00c4-58fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:06 GMT", + "x-ms-client-request-id" : "bc9e49d7-8359-46b6-9c96-42bfe4425878" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlmd5fail0936762ce66247e2e549/javablobappendblockfromurlmd5fail135212e3798218e7a9", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BF435AD3\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e06f1-201e-00c4-68fb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:07 GMT", + "x-ms-client-request-id" : "283257a4-64e6-4ed5-be9b-f50401c6b0d6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlmd5fail0936762ce66247e2e549?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BF481341\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e06ff-201e-00c4-75fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:07 GMT", + "x-ms-client-request-id" : "7ab00b00-1964-401e-907f-961c4f1b5a01" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlmd5fail0936762ce66247e2e549/javablobappendblockfromurlmd5fail135212e3798218e7a9?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "NQeVCpVA6yM=", + "x-ms-blob-committed-block-count" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:08 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:07 GMT", + "ETag" : "\"0x8D72812BF4CFA1E\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e070e-201e-00c4-01fb-594fb0000000", + "x-ms-client-request-id" : "1e59a75a-eb7e-4b74-a4b1-b9cb72dfa30a", + "x-ms-blob-append-offset" : "0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlmd5fail0936762ce66247e2e549/javablobappendblockfromurlmd5fail270285c836106ce992", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BF5252A9\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e0721-201e-00c4-11fb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:07 GMT", + "x-ms-client-request-id" : "ff8b3c86-bd89-4256-905d-34b338fe506d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlmd5fail0936762ce66247e2e549/javablobappendblockfromurlmd5fail270285c836106ce992?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "Md5Mismatch", + "retry-after" : "0", + "Content-Length" : "278", + "StatusCode" : "400", + "x-ms-request-id" : "d51e0740-201e-00c4-2efb-594fb0000000", + "Body" : "\nMd5MismatchThe MD5 value specified in the request did not match with the MD5 value calculated by the server.\nRequestId:d51e0740-201e-00c4-2efb-594fb0000000\nTime:2019-08-23T21:42:08.1170452Z", + "Date" : "Fri, 23 Aug 2019 21:42:07 GMT", + "x-ms-client-request-id" : "2c2f0715-0176-4639-9b06-33214ac13df4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcappendblockfromurlmd5fail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e0759-201e-00c4-45fb-594fb0000000", + "Body" : "jtcappendblockfromurlmd5failjtcappendblockfromurlmd5fail0936762ce66247e2e549Fri, 23 Aug 2019 21:42:07 GMT\"0x8D72812BF481341\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:07 GMT", + "x-ms-client-request-id" : "c8827966-bdc9-423a-8a5c-0f0c9a64779a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlmd5fail0936762ce66247e2e549?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e0763-201e-00c4-4cfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:07 GMT", + "x-ms-client-request-id" : "9fa97e3f-cb1f-4890-ad52-c5951bfa2041" + }, + "Exception" : null + } ], + "variables" : [ "jtcappendblockfromurlmd5fail0936762ce66247e2e549", "javablobappendblockfromurlmd5fail135212e3798218e7a9", "197bfc37-2c0a-4d58-b1eb-b6c8ad6a1cf4", "javablobappendblockfromurlmd5fail270285c836106ce992" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurlmin.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurlmin.json new file mode 100644 index 0000000000000..ddcc5af0f7846 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurlmin.json @@ -0,0 +1,174 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlmin085817dab08a4d55004f91?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BE69B448\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e038f-201e-00c4-55fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:05 GMT", + "x-ms-client-request-id" : "5ef47973-a246-410b-b4d0-524115402ce8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlmin085817dab08a4d55004f91/javablobappendblockfromurlmin132123b883c0edb0124f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BE6F5C03\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e039f-201e-00c4-64fb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:05 GMT", + "x-ms-client-request-id" : "cb805eca-2d97-473e-a051-c757e2aa6ee1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlmin085817dab08a4d55004f91?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BE7883AD\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e03b8-201e-00c4-7cfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:05 GMT", + "x-ms-client-request-id" : "f7e85a38-f5a2-4021-bd97-951453b1bc51" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlmin085817dab08a4d55004f91/javablobappendblockfromurlmin132123b883c0edb0124f?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6MASCbUMJ/U=", + "x-ms-blob-committed-block-count" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:06 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:05 GMT", + "ETag" : "\"0x8D72812BE7F3E6A\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e03c8-201e-00c4-0afb-594fb0000000", + "x-ms-client-request-id" : "b16d8403-c4d6-4f5a-88a2-5b24934c3304", + "x-ms-blob-append-offset" : "0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlmin085817dab08a4d55004f91/javablobappendblockfromurlmin25501558a255b7d4494f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BE85F6D0\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e03e0-201e-00c4-21fb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:05 GMT", + "x-ms-client-request-id" : "d602dd31-d3ec-4a52-829b-f0f28f0b96be" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlmin085817dab08a4d55004f91/javablobappendblockfromurlmin25501558a255b7d4494f?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-blob-committed-block-count" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:06 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:06 GMT", + "Content-MD5" : "kjTiztM2IqeeTL5UfVmaXA==", + "ETag" : "\"0x8D72812BEA93EF2\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e0415-201e-00c4-51fb-594fb0000000", + "x-ms-client-request-id" : "85eb16e0-9a42-4225-a9ca-fcd6123a5bc7", + "x-ms-blob-append-offset" : "0" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcappendblockfromurlmin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e0502-201e-00c4-29fb-594fb0000000", + "Body" : "jtcappendblockfromurlminjtcappendblockfromurlmin085817dab08a4d55004f91Fri, 23 Aug 2019 21:42:06 GMT\"0x8D72812BE7883AD\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:06 GMT", + "x-ms-client-request-id" : "432068e7-beeb-4011-9ffd-505f6492245d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlmin085817dab08a4d55004f91?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e051e-201e-00c4-41fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:06 GMT", + "x-ms-client-request-id" : "ab0bd0de-b150-4616-9d33-9bfbfdedac36" + }, + "Exception" : null + } ], + "variables" : [ "jtcappendblockfromurlmin085817dab08a4d55004f91", "javablobappendblockfromurlmin132123b883c0edb0124f", "8104f593-9d73-47e5-8e51-16decc674cbd", "javablobappendblockfromurlmin25501558a255b7d4494f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurlrange.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurlrange.json new file mode 100644 index 0000000000000..1a9ea855b95ba --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurlrange.json @@ -0,0 +1,204 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlrange0127097cb0f6e7e2af4e6?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BECD9779\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e0536-201e-00c4-57fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:06 GMT", + "x-ms-client-request-id" : "08f63057-9b00-43aa-b599-bd4b30c097aa" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlrange0127097cb0f6e7e2af4e6/javablobappendblockfromurlrange1662772ca2ab14f3324", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BED49F4A\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e0556-201e-00c4-74fb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:06 GMT", + "x-ms-client-request-id" : "2f22a3d1-c54c-439a-b2b1-581d21d85376" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlrange0127097cb0f6e7e2af4e6?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BED9A6A9\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e0569-201e-00c4-05fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:06 GMT", + "x-ms-client-request-id" : "e6721153-2334-485e-bc69-e4876534a910" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlrange0127097cb0f6e7e2af4e6/javablobappendblockfromurlrange1662772ca2ab14f3324?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "NdDf45blxaU=", + "x-ms-blob-committed-block-count" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:07 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:06 GMT", + "ETag" : "\"0x8D72812BEDF2938\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e0583-201e-00c4-1cfb-594fb0000000", + "x-ms-client-request-id" : "2629231f-2c64-428c-943e-d4233ee2fd8f", + "x-ms-blob-append-offset" : "0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlrange0127097cb0f6e7e2af4e6/javablobappendblockfromurlrange215562565e7708e4434", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BEE4F700\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e0598-201e-00c4-30fb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:06 GMT", + "x-ms-client-request-id" : "5091ad0f-0efc-4f78-b4ad-0c79cab2ae91" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlrange0127097cb0f6e7e2af4e6/javablobappendblockfromurlrange215562565e7708e4434?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-blob-committed-block-count" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:07 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:06 GMT", + "Content-MD5" : "8/Tbpgav/nXFAq2xZ27WTQ==", + "ETag" : "\"0x8D72812BEEF0B96\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e05ac-201e-00c4-41fb-594fb0000000", + "x-ms-client-request-id" : "53260968-e51b-4541-961c-973d7d093be5", + "x-ms-blob-append-offset" : "0" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlrange0127097cb0f6e7e2af4e6/javablobappendblockfromurlrange215562565e7708e4434", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "x-ms-blob-committed-block-count" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:07 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:06 GMT", + "x-ms-blob-type" : "AppendBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "\"0x8D72812BEEF0B96\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:07 GMT", + "Content-Length" : "1024", + "x-ms-request-id" : "d51e05c9-201e-00c4-5dfb-594fb0000000", + "Body" : "[-124, 6, 77, -78, 26, -9, 61, -76, 97, -100, -111, -13, -96, 6, -122, 84, -93, 115, -66, 13, -13, 87, 30, -79, 1, -11, 69, 45, -110, -63, 39, -91, 1, 13, -121, -41, -38, 102, -45, -35, 75, -126, 90, 74, 30, 27, -74, 9, 19, 58, -122, 82, 56, 2, -57, 87, 101, -59, 44, 5, 17, -8, -32, -93, 27, -10, -18, -81, -15, 119, -115, 108, -67, -40, -65, 37, -98, -99, -46, -92, -87, -40, 52, 17, -112, -67, 40, -77, 41, 22, -54, -113, -71, -58, 115, -19, 100, -94, -94, 113, -62, 119, 74, -128, 80, 123, 116, -116, -91, 58, 75, -83, 10, 82, 70, 85, 8, -123, 106, 83, 71, 112, -127, 115, -52, -72, -89, -107, -75, 5, 27, 123, -88, -1, -82, -11, 126, -44, -58, -86, -50, 77, 92, -30, 95, 44, 25, -112, -28, -22, -3, 97, -35, 117, 65, 27, -37, 101, 68, -67, -89, -53, 89, -12, 110, -1, 95, -82, 41, 86, -58, 102, 69, 48, 70, 15, -44, -35, 1, 3, 26, 75, 95, 69, -84, 98, -72, -86, 80, 40, -33, 45, 26, 12, 119, 53, -43, -105, -125, -15, 21, -126, 111, -87, 76, -41, -81, -104, 28, 73, -81, -86, -43, -51, -71, -24, -100, 28, 104, 39, -26, 35, 57, 20, -78, 15, -127, -104, 17, -59, -110, -8, 105, -126, 32, -31, -70, -62, 78, 95, -21, 73, -14, 126, -13, 57, 25, -78, 54, -44, -5, 28, 43, -100, -25, -36, 85, 36, -32, 104, 76, -39, -59, 115, 50, 82, -40, -57, 118, 59, 46, 61, 123, 81, 58, 106, -120, -105, 19, 29, 40, 53, -127, -83, 5, -101, 64, 52, -82, -127, -80, -10, 34, -57, -91, 48, -32, 117, 2, -122, 1, -30, 47, -12, 8, 19, 89, -76, 89, -94, 20, 3, -59, 38, 103, -80, 42, -25, -59, -113, -83, 61, -60, 112, 36, 60, -116, 20, -56, 67, -47, -32, -22, -116, -97, -35, 84, 64, 95, -68, 98, 12, -75, -43, -125, 28, 100, 61, -90, 74, -120, 116, 5, 81, 63, 12, 85, -117, 28, 76, -96, -68, 104, 65, 87, 119, -12, 11, 36, 86, -92, -59, 81, -112, -57, 114, 123, -10, -91, -62, 89, 41, 61, -29, -83, -85, -1, 44, -80, 103, -1, -25, 5, -12, 91, 8, -126, -65, 25, -39, -64, 120, 75, 76, 8, -44, 5, -59, -20, 113, -19, -113, 118, 103, 0, -16, 96, 89, 67, -74, -97, 110, 107, 30, -8, 8, 63, -49, 58, 53, -40, 12, 119, 96, -41, -51, 31, 27, -121, 23, -72, 41, 119, -110, 6, -96, -4, -112, 29, -74, 62, 103, -123, -126, 68, 16, 93, -82, 79, -16, 94, 120, 59, -32, 25, 86, -97, 50, 95, -55, 106, -35, -27, 38, -44, -41, 99, -85, 115, 28, -89, -78, -108, 43, 54, -11, -37, 63, 123, 67, 118, -22, 102, 103, 12, 36, 123, 63, 55, 13, 72, -75, 96, -78, 29, 1, 20, 80, -67, 117, -31, -61, 5, 41, -29, -109, 122, -126, -101, -34, 127, 124, 33, -2, -38, -35, -70, -71, -9, -69, 28, -75, -116, 74, -7, -125, 46, -113, -30, 49, -104, 37, 51, -105, 3, 65, -43, 62, -114, 26, 37, -74, -8, -102, -66, -83, -40, -62, 80, 95, -23, 80, 59, -38, -110, 124, -25, 38, -117, 39, 123, 85, 76, -110, 76, 64, -80, -28, 109, -41, -94, 124, -79, -72, 92, 54, -48, -94, -110, 103, 72, -120, 51, -90, 25, -113, -12, -120, -98, 22, -54, 112, -109, -43, -124, 10, 86, -76, -34, 68, 124, 113, 91, -95, -73, 51, -126, -108, -27, -42, -50, 53, 96, -98, -71, -46, -63, -17, 1, -118, -11, -64, 36, -62, -97, 71, -64, 106, -116, -115, -90, 109, 108, 121, 83, -11, 38, 55, 38, -110, -12, -59, 100, -82, -59, -114, -26, -72, -74, 123, 59, -39, -70, -118, -7, 19, 19, -25, -45, -125, -115, -99, -31, -22, -27, 32, -108, 99, -66, 2, 105, 27, -40, -35, -60, -73, 49, -7, 38, 115, -120, -15, -38, 65, 97, -83, 73, -128, 124, 33, 101, -47, 90, -115, -81, 124, -22, 45, 33, 48, 74, 50, 78, 52, -11, 84, 109, 60, -48, -81, 106, -48, -39, -6, 72, 3, 49, 41, 59, 83, -92, 11, 114, -128, -116, 13, -12, -37, 102, 86, 110, -94, -46, -16, 62, -111, 72, 16, 119, 25, 13, 120, -89, -32, -24, 63, -93, -93, -90, 74, -102, -85, 10, 106, -56, -59, 110, 46, -42, -114, 103, -34, -30, 127, 5, -78, -123, -65, 94, 71, 10, 93, -96, 37, 86, -111, -20, -119, 63, -110, -23, -84, 82, -85, 105, 33, -115, -124, 3, -11, 65, -51, 99, 3, 92, 86, 100, -48, -45, -35, -8, 34, -27, -44, 115, 58, -10, 89, -39, 115, 33, -102, -124, 54, -8, 55, 29, 22, -72, 68, 34, 39, 99, 117, 80, -37, -85, -106, 1, -10, -69, -28, 95, -87, -40, -20, 59, 47, -122, -8, 94, -55, -123, 36, -54, 72, 64, 75, -110, -69, -109, 121, 48, -106, 48, 16, 109, -78, 21, 127, -42, 100, 55, 127, -88, -23, 74, -35, -35, 105, 11, 62, 49, 28, 88, 75, -114, 61, -124, -45, 31, -41, 64, 24, 44, -27, -33, -27, -4, -98, -47, -43, -5, 10, 34, 115, 105, 125, -77, 41, -3, -81, 16, -21, -19, 71, -66, -69, 32, 90, 68, 36, -21, 67, 48, 126, 2, -28, 106, 34, 94, -10, -115, 115, 79, -50, -68, -103, -90, 38, 35, 111, 74, -107, 33, -100, 49, -107, -115, 104, -80, -111, -96, -10, -71, -41, -83, -89, 109, 31, 18, 10, 49, -117, -24, -99, 80, -94, 42, 104, -14, -123, -70, -126, 109, -2, 79, -58, -83, -20, -47, 12, -125, -52, -32, -7, -45, -30, 81, -74, -47, 49, -38, 61, -127, 32, -7, 49, 61, -54, -12, 7, 8, -93, 46, -32, -92, 82, -81, -61, 81, 19, 70, 126, -86, -20, -19, -13, 85, 39, -115, -57, -44, -74]", + "x-ms-client-request-id" : "a0d013db-1590-4aec-83c9-832d97d3a150", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcappendblockfromurlrange&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e0622-201e-00c4-2dfb-594fb0000000", + "Body" : "jtcappendblockfromurlrangejtcappendblockfromurlrange0127097cb0f6e7e2af4e6Fri, 23 Aug 2019 21:42:07 GMT\"0x8D72812BED9A6A9\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:06 GMT", + "x-ms-client-request-id" : "c42a4fd6-564a-4aab-84d9-8163b800b301", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlrange0127097cb0f6e7e2af4e6?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e062e-201e-00c4-39fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:06 GMT", + "x-ms-client-request-id" : "bf505990-3ffa-4119-89f4-6e0e638a35a6" + }, + "Exception" : null + } ], + "variables" : [ "jtcappendblockfromurlrange0127097cb0f6e7e2af4e6", "javablobappendblockfromurlrange1662772ca2ab14f3324", "f508448f-87f5-4bfc-98fb-bce818ef9832", "javablobappendblockfromurlrange215562565e7708e4434" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurlsourceac[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurlsourceac[0].json new file mode 100644 index 0000000000000..4c73ab71987b5 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurlsourceac[0].json @@ -0,0 +1,174 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlsourceac0565101dd0ed4cf6cf4d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C24AC711\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e13d2-201e-00c4-42fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:12 GMT", + "x-ms-client-request-id" : "37d4cde9-6c04-42b2-aac9-1d06c329721f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlsourceac0565101dd0ed4cf6cf4d/javablobappendblockfromurlsourceac179374015d4603780", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C250979D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e13f4-201e-00c4-5ffb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:12 GMT", + "x-ms-client-request-id" : "dffd1d53-277c-4824-9e2b-2365990fafc7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlsourceac0565101dd0ed4cf6cf4d?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C25571C3\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e1409-201e-00c4-6ffb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:12 GMT", + "x-ms-client-request-id" : "38859b02-698d-4f52-b397-f35986cce9ac" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlsourceac0565101dd0ed4cf6cf4d/javablobappendblockfromurlsourceac291446d2f4cb97dd1", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C25A8520\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e1418-201e-00c4-7cfb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:12 GMT", + "x-ms-client-request-id" : "887e37d0-fa7f-4269-a102-81e5c59b407d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlsourceac0565101dd0ed4cf6cf4d/javablobappendblockfromurlsourceac291446d2f4cb97dd1?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "x-ms-blob-committed-block-count" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:13 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:12 GMT", + "ETag" : "\"0x8D72812C25F8F70\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e1426-201e-00c4-09fb-594fb0000000", + "x-ms-client-request-id" : "f20bc5db-551d-403a-9738-fbbf19779dd1", + "x-ms-blob-append-offset" : "0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlsourceac0565101dd0ed4cf6cf4d/javablobappendblockfromurlsourceac179374015d4603780?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-blob-committed-block-count" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:13 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:12 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812C26BA054\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e1439-201e-00c4-17fb-594fb0000000", + "x-ms-client-request-id" : "a67d9635-79b0-4870-820e-9d76410b6dbf", + "x-ms-blob-append-offset" : "0" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcappendblockfromurlsourceac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e145e-201e-00c4-35fb-594fb0000000", + "Body" : "jtcappendblockfromurlsourceacjtcappendblockfromurlsourceac0565101dd0ed4cf6cf4dFri, 23 Aug 2019 21:42:13 GMT\"0x8D72812C25571C3\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:12 GMT", + "x-ms-client-request-id" : "e4a181ae-fb73-4ba2-b3e9-47f80d30fb56", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlsourceac0565101dd0ed4cf6cf4d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e1468-201e-00c4-3efb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:12 GMT", + "x-ms-client-request-id" : "5a65343b-fda8-42ac-8ca7-94305a10fed3" + }, + "Exception" : null + } ], + "variables" : [ "jtcappendblockfromurlsourceac0565101dd0ed4cf6cf4d", "javablobappendblockfromurlsourceac179374015d4603780", "javablobappendblockfromurlsourceac291446d2f4cb97dd1" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurlsourceac[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurlsourceac[1].json new file mode 100644 index 0000000000000..9212868c25af5 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurlsourceac[1].json @@ -0,0 +1,174 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlsourceac076465129c57aeb56a41?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C27D06E8\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e1480-201e-00c4-4ffb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:12 GMT", + "x-ms-client-request-id" : "966c387d-4ea8-4d9a-ada0-dd67bdc745d9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlsourceac076465129c57aeb56a41/javablobappendblockfromurlsourceac125357b1658b4cc64", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C2826238\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e1490-201e-00c4-5afb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:12 GMT", + "x-ms-client-request-id" : "a81878f1-93e4-46d4-8465-0d35d494aa9e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlsourceac076465129c57aeb56a41?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C28714F7\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e149e-201e-00c4-67fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:12 GMT", + "x-ms-client-request-id" : "d57c42c8-5113-403e-a8d0-f91ca7dd3f42" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlsourceac076465129c57aeb56a41/javablobappendblockfromurlsourceac288161a09c755a357", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C28C28AC\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e14ae-201e-00c4-74fb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:12 GMT", + "x-ms-client-request-id" : "bfb68311-fbb9-408b-bcec-f4c7173eb272" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlsourceac076465129c57aeb56a41/javablobappendblockfromurlsourceac288161a09c755a357?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "x-ms-blob-committed-block-count" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:13 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:12 GMT", + "ETag" : "\"0x8D72812C29132EF\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e14bf-201e-00c4-7efb-594fb0000000", + "x-ms-client-request-id" : "ae081570-6fff-4798-a967-113eb63152d5", + "x-ms-blob-append-offset" : "0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlsourceac076465129c57aeb56a41/javablobappendblockfromurlsourceac125357b1658b4cc64?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-blob-committed-block-count" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:13 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:12 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812C29A840B\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e14d4-201e-00c4-0dfb-594fb0000000", + "x-ms-client-request-id" : "302a5ea8-cd29-4dac-ae7f-9f31ffcd5e36", + "x-ms-blob-append-offset" : "0" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcappendblockfromurlsourceac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e14f7-201e-00c4-28fb-594fb0000000", + "Body" : "jtcappendblockfromurlsourceacjtcappendblockfromurlsourceac076465129c57aeb56a41Fri, 23 Aug 2019 21:42:13 GMT\"0x8D72812C28714F7\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:12 GMT", + "x-ms-client-request-id" : "da96f238-8f4b-4ee1-a2ac-0f80640569d7", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlsourceac076465129c57aeb56a41?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e150a-201e-00c4-37fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:12 GMT", + "x-ms-client-request-id" : "03092aa9-9403-4378-8055-b6ce757973c1" + }, + "Exception" : null + } ], + "variables" : [ "jtcappendblockfromurlsourceac076465129c57aeb56a41", "javablobappendblockfromurlsourceac125357b1658b4cc64", "javablobappendblockfromurlsourceac288161a09c755a357" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurlsourceac[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurlsourceac[2].json new file mode 100644 index 0000000000000..7ee09850b41fd --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurlsourceac[2].json @@ -0,0 +1,174 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlsourceac02298895310b3c99c84b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C2AAB1B3\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e151d-201e-00c4-48fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:12 GMT", + "x-ms-client-request-id" : "b2358a74-5508-4ca1-bc55-514998147967" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlsourceac02298895310b3c99c84b/javablobappendblockfromurlsourceac1536709920f85d9b9", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C2B00D26\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e1530-201e-00c4-59fb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:12 GMT", + "x-ms-client-request-id" : "794b3b83-e487-4d3f-922e-1b1c099a9e0e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlsourceac02298895310b3c99c84b?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C2B4E6A6\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e1539-201e-00c4-62fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:12 GMT", + "x-ms-client-request-id" : "f0fdef81-c475-4988-98b0-35b4cc352d2c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlsourceac02298895310b3c99c84b/javablobappendblockfromurlsourceac24493674faee56293", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C2B9D383\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e1548-201e-00c4-6ffb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:12 GMT", + "x-ms-client-request-id" : "e5a1e391-87bc-49c7-9a0f-36f92e275233" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlsourceac02298895310b3c99c84b/javablobappendblockfromurlsourceac24493674faee56293?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "x-ms-blob-committed-block-count" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:13 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:12 GMT", + "ETag" : "\"0x8D72812C2BF04EF\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e1553-201e-00c4-78fb-594fb0000000", + "x-ms-client-request-id" : "f0c458c3-86e3-4acd-81b5-bc083d63bf55", + "x-ms-blob-append-offset" : "0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlsourceac02298895310b3c99c84b/javablobappendblockfromurlsourceac1536709920f85d9b9?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-blob-committed-block-count" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:13 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:12 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812C2C6F627\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e155f-201e-00c4-03fb-594fb0000000", + "x-ms-client-request-id" : "b8783f86-b281-4dcd-8838-9c24ebbdd5ae", + "x-ms-blob-append-offset" : "0" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcappendblockfromurlsourceac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e1575-201e-00c4-15fb-594fb0000000", + "Body" : "jtcappendblockfromurlsourceacjtcappendblockfromurlsourceac02298895310b3c99c84bFri, 23 Aug 2019 21:42:13 GMT\"0x8D72812C2B4E6A6\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:12 GMT", + "x-ms-client-request-id" : "044b6fec-2f16-4105-80f4-2f95e920f2aa", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlsourceac02298895310b3c99c84b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e1586-201e-00c4-24fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:12 GMT", + "x-ms-client-request-id" : "fc85aa81-f849-49c0-90cd-b330874fbed7" + }, + "Exception" : null + } ], + "variables" : [ "jtcappendblockfromurlsourceac02298895310b3c99c84b", "javablobappendblockfromurlsourceac1536709920f85d9b9", "javablobappendblockfromurlsourceac24493674faee56293" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurlsourceac[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurlsourceac[3].json new file mode 100644 index 0000000000000..297721a35320b --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurlsourceac[3].json @@ -0,0 +1,205 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlsourceac07433322cce97bdd494c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C2D6D591\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e159f-201e-00c4-3bfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:13 GMT", + "x-ms-client-request-id" : "97675b9e-0049-4f4a-af88-c1616e5efb91" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlsourceac07433322cce97bdd494c/javablobappendblockfromurlsourceac1192262ed501118a4", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C2DC581D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e15b8-201e-00c4-4efb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:13 GMT", + "x-ms-client-request-id" : "01d69a05-e936-4bcd-a9d4-6caaaef979f2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlsourceac07433322cce97bdd494c?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C2E10A46\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e15cc-201e-00c4-5efb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:13 GMT", + "x-ms-client-request-id" : "590c1e81-b41b-42ae-bd7a-f80c34d955e7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlsourceac07433322cce97bdd494c/javablobappendblockfromurlsourceac2448571746a49130b", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C2E61E88\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e15ed-201e-00c4-7bfb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:13 GMT", + "x-ms-client-request-id" : "820aa9cb-ecf8-40c5-8e04-ae44ad5b9b67" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlsourceac07433322cce97bdd494c/javablobappendblockfromurlsourceac2448571746a49130b?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "x-ms-blob-committed-block-count" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:14 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:13 GMT", + "ETag" : "\"0x8D72812C2EC136E\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e1614-201e-00c4-1efb-594fb0000000", + "x-ms-client-request-id" : "c54fbc7c-d075-445f-9b78-6e3cf56a4092", + "x-ms-blob-append-offset" : "0" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlsourceac07433322cce97bdd494c/javablobappendblockfromurlsourceac2448571746a49130b", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "x-ms-blob-committed-block-count" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:14 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:13 GMT", + "x-ms-blob-type" : "AppendBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812C2EC136E\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:14 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51e1625-201e-00c4-2cfb-594fb0000000", + "x-ms-client-request-id" : "c8b93f42-4396-4b27-89f9-ff105b93e9f5", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlsourceac07433322cce97bdd494c/javablobappendblockfromurlsourceac1192262ed501118a4?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-blob-committed-block-count" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:14 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:13 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812C2F6763B\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e1637-201e-00c4-3afb-594fb0000000", + "x-ms-client-request-id" : "1c1bc676-9abf-470e-8f61-ea8187b72001", + "x-ms-blob-append-offset" : "0" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcappendblockfromurlsourceac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e1650-201e-00c4-4dfb-594fb0000000", + "Body" : "jtcappendblockfromurlsourceacjtcappendblockfromurlsourceac07433322cce97bdd494cFri, 23 Aug 2019 21:42:14 GMT\"0x8D72812C2E10A46\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:13 GMT", + "x-ms-client-request-id" : "db7ac78e-9c55-4dcd-a16e-f50ed4714472", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlsourceac07433322cce97bdd494c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e165c-201e-00c4-58fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:13 GMT", + "x-ms-client-request-id" : "ce466797-1e07-4fd2-8bdc-e3e7eaefd715" + }, + "Exception" : null + } ], + "variables" : [ "jtcappendblockfromurlsourceac07433322cce97bdd494c", "javablobappendblockfromurlsourceac1192262ed501118a4", "javablobappendblockfromurlsourceac2448571746a49130b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurlsourceac[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurlsourceac[4].json new file mode 100644 index 0000000000000..69b0ca5ba6047 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockfromurlsourceac[4].json @@ -0,0 +1,174 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlsourceac09899932983928dca046?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C3074031\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e1674-201e-00c4-6bfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:13 GMT", + "x-ms-client-request-id" : "fe60063f-b30f-407f-bf35-9adaf929b2e3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlsourceac09899932983928dca046/javablobappendblockfromurlsourceac1652897691421885b", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C30C9BC6\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e1684-201e-00c4-78fb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:13 GMT", + "x-ms-client-request-id" : "01cb1320-68b9-48bd-8c8a-2ae908865b73" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlsourceac09899932983928dca046?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C31174A2\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e1692-201e-00c4-03fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:13 GMT", + "x-ms-client-request-id" : "305dbfc1-6196-40ca-b8e9-a53187866e5c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlsourceac09899932983928dca046/javablobappendblockfromurlsourceac219758e60ded28888", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C316893A\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e1699-201e-00c4-09fb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:13 GMT", + "x-ms-client-request-id" : "450d953f-f7f7-4d54-aefc-2b4eadee4c27" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlsourceac09899932983928dca046/javablobappendblockfromurlsourceac219758e60ded28888?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "x-ms-blob-committed-block-count" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:14 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:13 GMT", + "ETag" : "\"0x8D72812C31BBAA2\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e16a7-201e-00c4-17fb-594fb0000000", + "x-ms-client-request-id" : "92d92081-be8f-44ff-938a-a8bfd6afdf37", + "x-ms-blob-append-offset" : "0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlsourceac09899932983928dca046/javablobappendblockfromurlsourceac1652897691421885b?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-blob-committed-block-count" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:14 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:13 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812C3258108\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e16ba-201e-00c4-27fb-594fb0000000", + "x-ms-client-request-id" : "e04eee7a-3f63-4742-860a-2e2a8a489a41", + "x-ms-blob-append-offset" : "0" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcappendblockfromurlsourceac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e16db-201e-00c4-44fb-594fb0000000", + "Body" : "jtcappendblockfromurlsourceacjtcappendblockfromurlsourceac09899932983928dca046Fri, 23 Aug 2019 21:42:14 GMT\"0x8D72812C31174A2\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:13 GMT", + "x-ms-client-request-id" : "8b56191c-7e19-4c29-94b0-7b98684e0163", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockfromurlsourceac09899932983928dca046?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e16e6-201e-00c4-4ffb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:13 GMT", + "x-ms-client-request-id" : "553f4b1e-4db7-4c57-a365-47e57176d749" + }, + "Exception" : null + } ], + "variables" : [ "jtcappendblockfromurlsourceac09899932983928dca046", "javablobappendblockfromurlsourceac1652897691421885b", "javablobappendblockfromurlsourceac219758e60ded28888" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockia[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockia[0].json new file mode 100644 index 0000000000000..e4ba3521b4bfe --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockia[0].json @@ -0,0 +1,588 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockia0appendblobapitestappendblockia4af37022318f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BBE401D7\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "6d7992cd-601e-0129-13fb-590061000000", + "Date" : "Fri, 23 Aug 2019 21:42:01 GMT", + "x-ms-client-request-id" : "26744750-2232-4dc0-953b-85ee9875d487" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockia0appendblobapitestappendblockia4af37022318f/javablobappendblockia1appendblobapitestappendblockia4af157646", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BBEA5CA5\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "6d7992f0-601e-0129-35fb-590061000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:01 GMT", + "x-ms-client-request-id" : "b292d5fe-bad0-4171-8579-70a04d8d6e06" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockia0appendblobapitestappendblockia4af37022318f/javablobappendblockia1appendblobapitestappendblockia4af157646?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : null, + "Exception" : { + "Throwable" : { + "cause" : null, + "stackTrace" : [ { + "methodName" : "lambda$null$1", + "fileName" : "AppendBlobClient.java", + "lineNumber" : 172, + "className" : "com.azure.storage.blob.AppendBlobClient", + "nativeMethod" : false + }, { + "methodName" : "call", + "fileName" : "MonoCallable.java", + "lineNumber" : 91, + "className" : "reactor.core.publisher.MonoCallable", + "nativeMethod" : false + }, { + "methodName" : "drain", + "fileName" : "FluxConcatMap.java", + "lineNumber" : 402, + "className" : "reactor.core.publisher.FluxConcatMap$ConcatMapImmediate", + "nativeMethod" : false + }, { + "methodName" : "onNext", + "fileName" : "FluxConcatMap.java", + "lineNumber" : 244, + "className" : "reactor.core.publisher.FluxConcatMap$ConcatMapImmediate", + "nativeMethod" : false + }, { + "methodName" : "onNext", + "fileName" : "FluxMapFuseable.java", + "lineNumber" : 121, + "className" : "reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber", + "nativeMethod" : false + }, { + "methodName" : "request", + "fileName" : "FluxJust.java", + "lineNumber" : 99, + "className" : "reactor.core.publisher.FluxJust$WeakScalarSubscription", + "nativeMethod" : false + }, { + "methodName" : "request", + "fileName" : "FluxMapFuseable.java", + "lineNumber" : 162, + "className" : "reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber", + "nativeMethod" : false + }, { + "methodName" : "onSubscribe", + "fileName" : "FluxConcatMap.java", + "lineNumber" : 229, + "className" : "reactor.core.publisher.FluxConcatMap$ConcatMapImmediate", + "nativeMethod" : false + }, { + "methodName" : "onSubscribe", + "fileName" : "FluxMapFuseable.java", + "lineNumber" : 90, + "className" : "reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber", + "nativeMethod" : false + }, { + "methodName" : "subscribe", + "fileName" : "FluxJust.java", + "lineNumber" : 70, + "className" : "reactor.core.publisher.FluxJust", + "nativeMethod" : false + }, { + "methodName" : "subscribe", + "fileName" : "FluxMapFuseable.java", + "lineNumber" : 63, + "className" : "reactor.core.publisher.FluxMapFuseable", + "nativeMethod" : false + }, { + "methodName" : "subscribe", + "fileName" : "FluxConcatMap.java", + "lineNumber" : 121, + "className" : "reactor.core.publisher.FluxConcatMap", + "nativeMethod" : false + }, { + "methodName" : "subscribe", + "fileName" : "Flux.java", + "lineNumber" : 7921, + "className" : "reactor.core.publisher.Flux", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "FluxSubscribeOn.java", + "lineNumber" : 194, + "className" : "reactor.core.publisher.FluxSubscribeOn$SubscribeOnSubscriber", + "nativeMethod" : false + }, { + "methodName" : "call", + "fileName" : "WorkerTask.java", + "lineNumber" : 84, + "className" : "reactor.core.scheduler.WorkerTask", + "nativeMethod" : false + }, { + "methodName" : "call", + "fileName" : "WorkerTask.java", + "lineNumber" : 37, + "className" : "reactor.core.scheduler.WorkerTask", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "FutureTask.java", + "lineNumber" : 266, + "className" : "java.util.concurrent.FutureTask", + "nativeMethod" : false + }, { + "methodName" : "access$201", + "fileName" : "ScheduledThreadPoolExecutor.java", + "lineNumber" : 180, + "className" : "java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "ScheduledThreadPoolExecutor.java", + "lineNumber" : 293, + "className" : "java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask", + "nativeMethod" : false + }, { + "methodName" : "runWorker", + "fileName" : "ThreadPoolExecutor.java", + "lineNumber" : 1149, + "className" : "java.util.concurrent.ThreadPoolExecutor", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "ThreadPoolExecutor.java", + "lineNumber" : 624, + "className" : "java.util.concurrent.ThreadPoolExecutor$Worker", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "Thread.java", + "lineNumber" : 748, + "className" : "java.lang.Thread", + "nativeMethod" : false + } ], + "message" : null, + "localizedMessage" : null, + "suppressed" : [ { + "cause" : null, + "stackTrace" : [ { + "methodName" : "blockingGet", + "fileName" : "BlockingSingleSubscriber.java", + "lineNumber" : 93, + "className" : "reactor.core.publisher.BlockingSingleSubscriber", + "nativeMethod" : false + }, { + "methodName" : "block", + "fileName" : "Mono.java", + "lineNumber" : 1494, + "className" : "reactor.core.publisher.Mono", + "nativeMethod" : false + }, { + "methodName" : "blockWithOptionalTimeout", + "fileName" : "Utility.java", + "lineNumber" : 235, + "className" : "com.azure.storage.common.Utility", + "nativeMethod" : false + }, { + "methodName" : "appendBlockWithResponse", + "fileName" : "AppendBlobClient.java", + "lineNumber" : 179, + "className" : "com.azure.storage.blob.AppendBlobClient", + "nativeMethod" : false + }, { + "methodName" : "appendBlock", + "fileName" : "AppendBlobClient.java", + "lineNumber" : 144, + "className" : "com.azure.storage.blob.AppendBlobClient", + "nativeMethod" : false + }, { + "methodName" : "invoke0", + "fileName" : "NativeMethodAccessorImpl.java", + "lineNumber" : -2, + "className" : "sun.reflect.NativeMethodAccessorImpl", + "nativeMethod" : true + }, { + "methodName" : "invoke", + "fileName" : "NativeMethodAccessorImpl.java", + "lineNumber" : 62, + "className" : "sun.reflect.NativeMethodAccessorImpl", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "DelegatingMethodAccessorImpl.java", + "lineNumber" : 43, + "className" : "sun.reflect.DelegatingMethodAccessorImpl", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "Method.java", + "lineNumber" : 498, + "className" : "java.lang.reflect.Method", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "PojoMetaMethodSite.java", + "lineNumber" : 213, + "className" : "org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrap", + "nativeMethod" : false + }, { + "methodName" : "call", + "fileName" : "PojoMetaMethodSite.java", + "lineNumber" : 56, + "className" : "org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite", + "nativeMethod" : false + }, { + "methodName" : "defaultCall", + "fileName" : "CallSiteArray.java", + "lineNumber" : 48, + "className" : "org.codehaus.groovy.runtime.callsite.CallSiteArray", + "nativeMethod" : false + }, { + "methodName" : "call", + "fileName" : "AbstractCallSite.java", + "lineNumber" : 113, + "className" : "org.codehaus.groovy.runtime.callsite.AbstractCallSite", + "nativeMethod" : false + }, { + "methodName" : "call", + "fileName" : "AbstractCallSite.java", + "lineNumber" : 133, + "className" : "org.codehaus.groovy.runtime.callsite.AbstractCallSite", + "nativeMethod" : false + }, { + "methodName" : "$spock_feature_1_8", + "fileName" : "AppendBlobAPITest.groovy", + "lineNumber" : 186, + "className" : "com.azure.storage.blob.AppendBlobAPITest", + "nativeMethod" : false + }, { + "methodName" : "invoke0", + "fileName" : "NativeMethodAccessorImpl.java", + "lineNumber" : -2, + "className" : "sun.reflect.NativeMethodAccessorImpl", + "nativeMethod" : true + }, { + "methodName" : "invoke", + "fileName" : "NativeMethodAccessorImpl.java", + "lineNumber" : 62, + "className" : "sun.reflect.NativeMethodAccessorImpl", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "DelegatingMethodAccessorImpl.java", + "lineNumber" : 43, + "className" : "sun.reflect.DelegatingMethodAccessorImpl", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "Method.java", + "lineNumber" : 498, + "className" : "java.lang.reflect.Method", + "nativeMethod" : false + }, { + "methodName" : "invokeMethod", + "fileName" : "ReflectionUtil.java", + "lineNumber" : 188, + "className" : "org.spockframework.util.ReflectionUtil", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "MethodInfo.java", + "lineNumber" : 84, + "className" : "org.spockframework.runtime.model.MethodInfo", + "nativeMethod" : false + }, { + "methodName" : "invokeRaw", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 481, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 464, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "runFeatureMethod", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 406, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "doRunIteration", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 324, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 309, + "className" : "org.spockframework.runtime.BaseSpecRunner$6", + "nativeMethod" : false + }, { + "methodName" : "invokeRaw", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 481, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 464, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "runIteration", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 288, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "initializeAndRunIteration", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 278, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "runIterations", + "fileName" : "ParameterizedSpecRunner.java", + "lineNumber" : 139, + "className" : "org.spockframework.runtime.ParameterizedSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "runParameterizedFeature", + "fileName" : "ParameterizedSpecRunner.java", + "lineNumber" : 41, + "className" : "org.spockframework.runtime.ParameterizedSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "doRunFeature", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 262, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 246, + "className" : "org.spockframework.runtime.BaseSpecRunner$5", + "nativeMethod" : false + }, { + "methodName" : "invokeRaw", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 481, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 464, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "runFeature", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 238, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "runFeatures", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 188, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "doRunSpec", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 98, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 84, + "className" : "org.spockframework.runtime.BaseSpecRunner$1", + "nativeMethod" : false + }, { + "methodName" : "invokeRaw", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 481, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 464, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "runSpec", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 76, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 67, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "Sputnik.java", + "lineNumber" : 63, + "className" : "org.spockframework.runtime.Sputnik", + "nativeMethod" : false + }, { + "methodName" : "runChild", + "fileName" : "Suite.java", + "lineNumber" : 128, + "className" : "org.junit.runners.Suite", + "nativeMethod" : false + }, { + "methodName" : "runChild", + "fileName" : "Suite.java", + "lineNumber" : 27, + "className" : "org.junit.runners.Suite", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "ParentRunner.java", + "lineNumber" : 290, + "className" : "org.junit.runners.ParentRunner$3", + "nativeMethod" : false + }, { + "methodName" : "schedule", + "fileName" : "ParentRunner.java", + "lineNumber" : 71, + "className" : "org.junit.runners.ParentRunner$1", + "nativeMethod" : false + }, { + "methodName" : "runChildren", + "fileName" : "ParentRunner.java", + "lineNumber" : 288, + "className" : "org.junit.runners.ParentRunner", + "nativeMethod" : false + }, { + "methodName" : "access$000", + "fileName" : "ParentRunner.java", + "lineNumber" : 58, + "className" : "org.junit.runners.ParentRunner", + "nativeMethod" : false + }, { + "methodName" : "evaluate", + "fileName" : "ParentRunner.java", + "lineNumber" : 268, + "className" : "org.junit.runners.ParentRunner$2", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "ParentRunner.java", + "lineNumber" : 363, + "className" : "org.junit.runners.ParentRunner", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "JUnitCore.java", + "lineNumber" : 137, + "className" : "org.junit.runner.JUnitCore", + "nativeMethod" : false + }, { + "methodName" : "startRunnerWithArgs", + "fileName" : "JUnit4IdeaTestRunner.java", + "lineNumber" : 68, + "className" : "com.intellij.junit4.JUnit4IdeaTestRunner", + "nativeMethod" : false + }, { + "methodName" : "startRunnerWithArgs", + "fileName" : "IdeaTestRunner.java", + "lineNumber" : 47, + "className" : "com.intellij.rt.execution.junit.IdeaTestRunner$Repeater", + "nativeMethod" : false + }, { + "methodName" : "prepareStreamsAndStart", + "fileName" : "JUnitStarter.java", + "lineNumber" : 242, + "className" : "com.intellij.rt.execution.junit.JUnitStarter", + "nativeMethod" : false + }, { + "methodName" : "main", + "fileName" : "JUnitStarter.java", + "lineNumber" : 70, + "className" : "com.intellij.rt.execution.junit.JUnitStarter", + "nativeMethod" : false + } ], + "message" : "#block terminated with an error", + "localizedMessage" : "#block terminated with an error", + "suppressed" : [ ] + } ] + }, + "ClassName" : "java.lang.NullPointerException" + } + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcappendblockia&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "6baa9caf-201e-00e6-46fb-592186000000", + "Body" : "jtcappendblockiajtcappendblockia0appendblobapitestappendblockia4af37022318fFri, 23 Aug 2019 21:42:02 GMT\"0x8D72812BBE401D7\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:02 GMT", + "x-ms-client-request-id" : "7a36b96d-49ea-4b1a-b857-2ca34a284dd6", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockia0appendblobapitestappendblockia4af37022318f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "6baa9ccc-201e-00e6-5afb-592186000000", + "Date" : "Fri, 23 Aug 2019 21:42:02 GMT", + "x-ms-client-request-id" : "780e02d9-c53f-424e-bf9b-a4f97e4dd8d1" + }, + "Exception" : null + } ], + "variables" : [ "jtcappendblockia0appendblobapitestappendblockia4af37022318f", "javablobappendblockia1appendblobapitestappendblockia4af157646" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockia[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockia[1].json new file mode 100644 index 0000000000000..8c6622558c46d --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockia[1].json @@ -0,0 +1,594 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockia0appendblobapitestappendblockia7ca414448f80?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BC13BAFE\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "6baa9ce9-201e-00e6-72fb-592186000000", + "Date" : "Fri, 23 Aug 2019 21:42:02 GMT", + "x-ms-client-request-id" : "0ae57179-a9b0-4cf9-a361-29838e2d97f7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockia0appendblobapitestappendblockia7ca414448f80/javablobappendblockia1appendblobapitestappendblockia7ca63356c", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BC19B5B8\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "6baa9cfa-201e-00e6-80fb-592186000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:02 GMT", + "x-ms-client-request-id" : "74918ef5-6b1b-4551-b99d-ef7a0c415e0d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockia0appendblobapitestappendblockia7ca414448f80/javablobappendblockia1appendblobapitestappendblockia7ca63356c?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : null, + "Exception" : { + "Throwable" : { + "cause" : null, + "stackTrace" : [ { + "methodName" : "read", + "fileName" : "ByteArrayInputStream.java", + "lineNumber" : 180, + "className" : "java.io.ByteArrayInputStream", + "nativeMethod" : false + }, { + "methodName" : "lambda$null$1", + "fileName" : "AppendBlobClient.java", + "lineNumber" : 172, + "className" : "com.azure.storage.blob.AppendBlobClient", + "nativeMethod" : false + }, { + "methodName" : "call", + "fileName" : "MonoCallable.java", + "lineNumber" : 91, + "className" : "reactor.core.publisher.MonoCallable", + "nativeMethod" : false + }, { + "methodName" : "drain", + "fileName" : "FluxConcatMap.java", + "lineNumber" : 402, + "className" : "reactor.core.publisher.FluxConcatMap$ConcatMapImmediate", + "nativeMethod" : false + }, { + "methodName" : "onNext", + "fileName" : "FluxConcatMap.java", + "lineNumber" : 244, + "className" : "reactor.core.publisher.FluxConcatMap$ConcatMapImmediate", + "nativeMethod" : false + }, { + "methodName" : "onNext", + "fileName" : "FluxMapFuseable.java", + "lineNumber" : 121, + "className" : "reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber", + "nativeMethod" : false + }, { + "methodName" : "request", + "fileName" : "FluxJust.java", + "lineNumber" : 99, + "className" : "reactor.core.publisher.FluxJust$WeakScalarSubscription", + "nativeMethod" : false + }, { + "methodName" : "request", + "fileName" : "FluxMapFuseable.java", + "lineNumber" : 162, + "className" : "reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber", + "nativeMethod" : false + }, { + "methodName" : "onSubscribe", + "fileName" : "FluxConcatMap.java", + "lineNumber" : 229, + "className" : "reactor.core.publisher.FluxConcatMap$ConcatMapImmediate", + "nativeMethod" : false + }, { + "methodName" : "onSubscribe", + "fileName" : "FluxMapFuseable.java", + "lineNumber" : 90, + "className" : "reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber", + "nativeMethod" : false + }, { + "methodName" : "subscribe", + "fileName" : "FluxJust.java", + "lineNumber" : 70, + "className" : "reactor.core.publisher.FluxJust", + "nativeMethod" : false + }, { + "methodName" : "subscribe", + "fileName" : "FluxMapFuseable.java", + "lineNumber" : 63, + "className" : "reactor.core.publisher.FluxMapFuseable", + "nativeMethod" : false + }, { + "methodName" : "subscribe", + "fileName" : "FluxConcatMap.java", + "lineNumber" : 121, + "className" : "reactor.core.publisher.FluxConcatMap", + "nativeMethod" : false + }, { + "methodName" : "subscribe", + "fileName" : "Flux.java", + "lineNumber" : 7921, + "className" : "reactor.core.publisher.Flux", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "FluxSubscribeOn.java", + "lineNumber" : 194, + "className" : "reactor.core.publisher.FluxSubscribeOn$SubscribeOnSubscriber", + "nativeMethod" : false + }, { + "methodName" : "call", + "fileName" : "WorkerTask.java", + "lineNumber" : 84, + "className" : "reactor.core.scheduler.WorkerTask", + "nativeMethod" : false + }, { + "methodName" : "call", + "fileName" : "WorkerTask.java", + "lineNumber" : 37, + "className" : "reactor.core.scheduler.WorkerTask", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "FutureTask.java", + "lineNumber" : 266, + "className" : "java.util.concurrent.FutureTask", + "nativeMethod" : false + }, { + "methodName" : "access$201", + "fileName" : "ScheduledThreadPoolExecutor.java", + "lineNumber" : 180, + "className" : "java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "ScheduledThreadPoolExecutor.java", + "lineNumber" : 293, + "className" : "java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask", + "nativeMethod" : false + }, { + "methodName" : "runWorker", + "fileName" : "ThreadPoolExecutor.java", + "lineNumber" : 1149, + "className" : "java.util.concurrent.ThreadPoolExecutor", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "ThreadPoolExecutor.java", + "lineNumber" : 624, + "className" : "java.util.concurrent.ThreadPoolExecutor$Worker", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "Thread.java", + "lineNumber" : 748, + "className" : "java.lang.Thread", + "nativeMethod" : false + } ], + "message" : null, + "localizedMessage" : null, + "suppressed" : [ { + "cause" : null, + "stackTrace" : [ { + "methodName" : "blockingGet", + "fileName" : "BlockingSingleSubscriber.java", + "lineNumber" : 93, + "className" : "reactor.core.publisher.BlockingSingleSubscriber", + "nativeMethod" : false + }, { + "methodName" : "block", + "fileName" : "Mono.java", + "lineNumber" : 1494, + "className" : "reactor.core.publisher.Mono", + "nativeMethod" : false + }, { + "methodName" : "blockWithOptionalTimeout", + "fileName" : "Utility.java", + "lineNumber" : 235, + "className" : "com.azure.storage.common.Utility", + "nativeMethod" : false + }, { + "methodName" : "appendBlockWithResponse", + "fileName" : "AppendBlobClient.java", + "lineNumber" : 179, + "className" : "com.azure.storage.blob.AppendBlobClient", + "nativeMethod" : false + }, { + "methodName" : "appendBlock", + "fileName" : "AppendBlobClient.java", + "lineNumber" : 144, + "className" : "com.azure.storage.blob.AppendBlobClient", + "nativeMethod" : false + }, { + "methodName" : "invoke0", + "fileName" : "NativeMethodAccessorImpl.java", + "lineNumber" : -2, + "className" : "sun.reflect.NativeMethodAccessorImpl", + "nativeMethod" : true + }, { + "methodName" : "invoke", + "fileName" : "NativeMethodAccessorImpl.java", + "lineNumber" : 62, + "className" : "sun.reflect.NativeMethodAccessorImpl", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "DelegatingMethodAccessorImpl.java", + "lineNumber" : 43, + "className" : "sun.reflect.DelegatingMethodAccessorImpl", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "Method.java", + "lineNumber" : 498, + "className" : "java.lang.reflect.Method", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "PojoMetaMethodSite.java", + "lineNumber" : 213, + "className" : "org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrap", + "nativeMethod" : false + }, { + "methodName" : "call", + "fileName" : "PojoMetaMethodSite.java", + "lineNumber" : 56, + "className" : "org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite", + "nativeMethod" : false + }, { + "methodName" : "defaultCall", + "fileName" : "CallSiteArray.java", + "lineNumber" : 48, + "className" : "org.codehaus.groovy.runtime.callsite.CallSiteArray", + "nativeMethod" : false + }, { + "methodName" : "call", + "fileName" : "PojoMetaMethodSite.java", + "lineNumber" : 58, + "className" : "org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite", + "nativeMethod" : false + }, { + "methodName" : "call", + "fileName" : "AbstractCallSite.java", + "lineNumber" : 133, + "className" : "org.codehaus.groovy.runtime.callsite.AbstractCallSite", + "nativeMethod" : false + }, { + "methodName" : "$spock_feature_1_8", + "fileName" : "AppendBlobAPITest.groovy", + "lineNumber" : 186, + "className" : "com.azure.storage.blob.AppendBlobAPITest", + "nativeMethod" : false + }, { + "methodName" : "invoke0", + "fileName" : "NativeMethodAccessorImpl.java", + "lineNumber" : -2, + "className" : "sun.reflect.NativeMethodAccessorImpl", + "nativeMethod" : true + }, { + "methodName" : "invoke", + "fileName" : "NativeMethodAccessorImpl.java", + "lineNumber" : 62, + "className" : "sun.reflect.NativeMethodAccessorImpl", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "DelegatingMethodAccessorImpl.java", + "lineNumber" : 43, + "className" : "sun.reflect.DelegatingMethodAccessorImpl", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "Method.java", + "lineNumber" : 498, + "className" : "java.lang.reflect.Method", + "nativeMethod" : false + }, { + "methodName" : "invokeMethod", + "fileName" : "ReflectionUtil.java", + "lineNumber" : 188, + "className" : "org.spockframework.util.ReflectionUtil", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "MethodInfo.java", + "lineNumber" : 84, + "className" : "org.spockframework.runtime.model.MethodInfo", + "nativeMethod" : false + }, { + "methodName" : "invokeRaw", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 481, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 464, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "runFeatureMethod", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 406, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "doRunIteration", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 324, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 309, + "className" : "org.spockframework.runtime.BaseSpecRunner$6", + "nativeMethod" : false + }, { + "methodName" : "invokeRaw", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 481, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 464, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "runIteration", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 288, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "initializeAndRunIteration", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 278, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "runIterations", + "fileName" : "ParameterizedSpecRunner.java", + "lineNumber" : 139, + "className" : "org.spockframework.runtime.ParameterizedSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "runParameterizedFeature", + "fileName" : "ParameterizedSpecRunner.java", + "lineNumber" : 41, + "className" : "org.spockframework.runtime.ParameterizedSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "doRunFeature", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 262, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 246, + "className" : "org.spockframework.runtime.BaseSpecRunner$5", + "nativeMethod" : false + }, { + "methodName" : "invokeRaw", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 481, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 464, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "runFeature", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 238, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "runFeatures", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 188, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "doRunSpec", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 98, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 84, + "className" : "org.spockframework.runtime.BaseSpecRunner$1", + "nativeMethod" : false + }, { + "methodName" : "invokeRaw", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 481, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 464, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "runSpec", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 76, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 67, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "Sputnik.java", + "lineNumber" : 63, + "className" : "org.spockframework.runtime.Sputnik", + "nativeMethod" : false + }, { + "methodName" : "runChild", + "fileName" : "Suite.java", + "lineNumber" : 128, + "className" : "org.junit.runners.Suite", + "nativeMethod" : false + }, { + "methodName" : "runChild", + "fileName" : "Suite.java", + "lineNumber" : 27, + "className" : "org.junit.runners.Suite", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "ParentRunner.java", + "lineNumber" : 290, + "className" : "org.junit.runners.ParentRunner$3", + "nativeMethod" : false + }, { + "methodName" : "schedule", + "fileName" : "ParentRunner.java", + "lineNumber" : 71, + "className" : "org.junit.runners.ParentRunner$1", + "nativeMethod" : false + }, { + "methodName" : "runChildren", + "fileName" : "ParentRunner.java", + "lineNumber" : 288, + "className" : "org.junit.runners.ParentRunner", + "nativeMethod" : false + }, { + "methodName" : "access$000", + "fileName" : "ParentRunner.java", + "lineNumber" : 58, + "className" : "org.junit.runners.ParentRunner", + "nativeMethod" : false + }, { + "methodName" : "evaluate", + "fileName" : "ParentRunner.java", + "lineNumber" : 268, + "className" : "org.junit.runners.ParentRunner$2", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "ParentRunner.java", + "lineNumber" : 363, + "className" : "org.junit.runners.ParentRunner", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "JUnitCore.java", + "lineNumber" : 137, + "className" : "org.junit.runner.JUnitCore", + "nativeMethod" : false + }, { + "methodName" : "startRunnerWithArgs", + "fileName" : "JUnit4IdeaTestRunner.java", + "lineNumber" : 68, + "className" : "com.intellij.junit4.JUnit4IdeaTestRunner", + "nativeMethod" : false + }, { + "methodName" : "startRunnerWithArgs", + "fileName" : "IdeaTestRunner.java", + "lineNumber" : 47, + "className" : "com.intellij.rt.execution.junit.IdeaTestRunner$Repeater", + "nativeMethod" : false + }, { + "methodName" : "prepareStreamsAndStart", + "fileName" : "JUnitStarter.java", + "lineNumber" : 242, + "className" : "com.intellij.rt.execution.junit.JUnitStarter", + "nativeMethod" : false + }, { + "methodName" : "main", + "fileName" : "JUnitStarter.java", + "lineNumber" : 70, + "className" : "com.intellij.rt.execution.junit.JUnitStarter", + "nativeMethod" : false + } ], + "message" : "#block terminated with an error", + "localizedMessage" : "#block terminated with an error", + "suppressed" : [ ] + } ] + }, + "ClassName" : "java.lang.IndexOutOfBoundsException" + } + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcappendblockia&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51dfaad-201e-00c4-1efb-594fb0000000", + "Body" : "jtcappendblockiajtcappendblockia0appendblobapitestappendblockia7ca414448f80Fri, 23 Aug 2019 21:42:02 GMT\"0x8D72812BC13BAFE\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:01 GMT", + "x-ms-client-request-id" : "93d86c22-9188-44e9-b171-b82b63e08163", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockia0appendblobapitestappendblockia7ca414448f80?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51dfac7-201e-00c4-36fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:01 GMT", + "x-ms-client-request-id" : "f5c973de-64e9-4869-8cc0-9cb7ba6b280c" + }, + "Exception" : null + } ], + "variables" : [ "jtcappendblockia0appendblobapitestappendblockia7ca414448f80", "javablobappendblockia1appendblobapitestappendblockia7ca63356c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockmin.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockmin.json new file mode 100644 index 0000000000000..e799173da01b9 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblockmin.json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockmin0appendblobapitestappendblockmine3a16335851?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72740128BCBCA\"", + "Last-Modified" : "Thu, 22 Aug 2019 20:34:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ec04d2bf-101e-00c7-8028-594cb7000000", + "Date" : "Thu, 22 Aug 2019 20:34:02 GMT", + "x-ms-client-request-id" : "ff23cdf3-3769-4bdb-88c5-3e6a5ceb0b62" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockmin0appendblobapitestappendblockmine3a16335851/javablobappendblockmin1appendblobapitestappendblockmine3a65767", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72740129253C8\"", + "Last-Modified" : "Thu, 22 Aug 2019 20:34:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ec04d2d8-101e-00c7-1228-594cb7000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Thu, 22 Aug 2019 20:34:03 GMT", + "x-ms-client-request-id" : "d1f2b9d4-d398-4e88-854c-4e8c7d40e2b2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockmin0appendblobapitestappendblockmine3a16335851/javablobappendblockmin1appendblobapitestappendblockmine3a65767?comp=appendblock", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "x-ms-blob-committed-block-count" : "1", + "Last-Modified" : "Thu, 22 Aug 2019 20:34:04 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Thu, 22 Aug 2019 20:34:03 GMT", + "ETag" : "\"0x8D7274012A1246F\"", + "Content-Length" : "0", + "x-ms-request-id" : "ec04d30b-101e-00c7-3928-594cb7000000", + "x-ms-client-request-id" : "ea0e33c8-285c-43c0-9ed5-37a16da1057d", + "x-ms-blob-append-offset" : "0" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcappendblockmin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ec04d31b-101e-00c7-4728-594cb7000000", + "Body" : "jtcappendblockminjtcappendblockmin0appendblobapitestappendblockmine3a16335851Thu, 22 Aug 2019 20:34:03 GMT\"0x8D72740128BCBCA\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Thu, 22 Aug 2019 20:34:03 GMT", + "x-ms-client-request-id" : "780a8629-0384-4bf9-b64e-c86151495212", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblockmin0appendblobapitestappendblockmine3a16335851?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "ec04d368-101e-00c7-0928-594cb7000000", + "Date" : "Thu, 22 Aug 2019 20:34:03 GMT", + "x-ms-client-request-id" : "4f5b9840-65f1-477b-a806-ddd82c25ac07" + }, + "Exception" : null + } ], + "variables" : [ "jtcappendblockmin0appendblobapitestappendblockmine3a16335851", "javablobappendblockmin1appendblobapitestappendblockmine3a65767" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblocknullbody.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblocknullbody.json new file mode 100644 index 0000000000000..58425c88b98fc --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestappendblocknullbody.json @@ -0,0 +1,83 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblocknullbody030833b463d023d9ae44008?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BC5A2988\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51dfb65-201e-00c4-41fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:02 GMT", + "x-ms-client-request-id" : "6766c8c2-8486-433d-a023-6bb05e777252" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblocknullbody030833b463d023d9ae44008/javablobappendblocknullbody18522523a60a05727841d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BC5FF7B0\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51dfb78-201e-00c4-51fb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:02 GMT", + "x-ms-client-request-id" : "8fc6047a-f610-4800-b196-ed9d9a7b45d0" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcappendblocknullbody&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51dfb8e-201e-00c4-66fb-594fb0000000", + "Body" : "jtcappendblocknullbodyjtcappendblocknullbody030833b463d023d9ae44008Fri, 23 Aug 2019 21:42:03 GMT\"0x8D72812BC5A2988\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:02 GMT", + "x-ms-client-request-id" : "568f8d8c-9021-468e-b636-54f17ca7ee00", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcappendblocknullbody030833b463d023d9ae44008?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51dfba5-201e-00c4-79fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:02 GMT", + "x-ms-client-request-id" : "4364d693-8f74-453f-a8b4-0313ec7f7c0b" + }, + "Exception" : null + } ], + "variables" : [ "jtcappendblocknullbody030833b463d023d9ae44008", "javablobappendblocknullbody18522523a60a05727841d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestcreateac[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestcreateac[0].json new file mode 100644 index 0000000000000..cb45668840f17 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestcreateac[0].json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateac0appendblobapitestcreateacd9660941813224e73?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BA0554DD\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:41:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "6d798816-601e-0129-0cfb-590061000000", + "Date" : "Fri, 23 Aug 2019 21:41:58 GMT", + "x-ms-client-request-id" : "9171fa0c-ae15-46cb-9518-78b447e84bad" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateac0appendblobapitestcreateacd9660941813224e73/javablobcreateac1appendblobapitestcreateacd9657732b3677e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BA0BB0F6\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:41:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "6d798840-601e-0129-2dfb-590061000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:41:58 GMT", + "x-ms-client-request-id" : "b5165348-7af1-4fde-be91-424ce5486b0c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateac0appendblobapitestcreateacd9660941813224e73/javablobcreateac1appendblobapitestcreateacd9657732b3677e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BA137B20\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:41:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "6d798872-601e-0129-5bfb-590061000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:41:58 GMT", + "x-ms-client-request-id" : "50a38dce-57f8-44e1-93dd-8ea60816bb0d" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccreateac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "6d798893-601e-0129-78fb-590061000000", + "Body" : "jtccreateacjtccreateac0appendblobapitestcreateacd9660941813224e73Fri, 23 Aug 2019 21:41:59 GMT\"0x8D72812BA0554DD\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:41:58 GMT", + "x-ms-client-request-id" : "1e452790-f38c-4a97-b60c-9ff339eb188a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateac0appendblobapitestcreateacd9660941813224e73?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "6d7988ab-601e-0129-0ffb-590061000000", + "Date" : "Fri, 23 Aug 2019 21:41:58 GMT", + "x-ms-client-request-id" : "e4e85e2f-9a56-4079-97c8-c0e13d8a48bb" + }, + "Exception" : null + } ], + "variables" : [ "jtccreateac0appendblobapitestcreateacd9660941813224e73", "javablobcreateac1appendblobapitestcreateacd9657732b3677e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestcreateac[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestcreateac[1].json new file mode 100644 index 0000000000000..3696752dd4796 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestcreateac[1].json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateac0appendblobapitestcreateac95277866c0c9b9d04?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BA293970\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:41:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "6d7988d6-601e-0129-35fb-590061000000", + "Date" : "Fri, 23 Aug 2019 21:41:58 GMT", + "x-ms-client-request-id" : "61b32c7f-60d6-4a12-afc1-1c1c11c0f50f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateac0appendblobapitestcreateac95277866c0c9b9d04/javablobcreateac1appendblobapitestcreateac952869130328c7", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BA2F6E70\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:41:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "6d79890c-601e-0129-67fb-590061000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:41:58 GMT", + "x-ms-client-request-id" : "4b3b1b9e-35ee-49e8-8fcb-fdb94fc527a4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateac0appendblobapitestcreateac95277866c0c9b9d04/javablobcreateac1appendblobapitestcreateac952869130328c7", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BA34EE05\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:41:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "6d798933-601e-0129-08fb-590061000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:41:58 GMT", + "x-ms-client-request-id" : "64a01ddd-d03a-431c-b57d-a7c107f38538" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccreateac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "6d798947-601e-0129-1bfb-590061000000", + "Body" : "jtccreateacjtccreateac0appendblobapitestcreateac95277866c0c9b9d04Fri, 23 Aug 2019 21:41:59 GMT\"0x8D72812BA293970\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:41:58 GMT", + "x-ms-client-request-id" : "678051be-edf8-4351-b86b-34b51c8ee7c8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateac0appendblobapitestcreateac95277866c0c9b9d04?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "6d798967-601e-0129-39fb-590061000000", + "Date" : "Fri, 23 Aug 2019 21:41:58 GMT", + "x-ms-client-request-id" : "c81ef295-b8d0-49c6-abd8-d1f28c99f5df" + }, + "Exception" : null + } ], + "variables" : [ "jtccreateac0appendblobapitestcreateac95277866c0c9b9d04", "javablobcreateac1appendblobapitestcreateac952869130328c7" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestcreateac[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestcreateac[2].json new file mode 100644 index 0000000000000..0fbd721c21377 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestcreateac[2].json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateac0appendblobapitestcreateacae404882b1359c5a1?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BA45F05F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:41:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "6d798997-601e-0129-63fb-590061000000", + "Date" : "Fri, 23 Aug 2019 21:41:58 GMT", + "x-ms-client-request-id" : "e444f6df-f494-4d33-a58c-1303a05fa85f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateac0appendblobapitestcreateacae404882b1359c5a1/javablobcreateac1appendblobapitestcreateacae4548721111ed", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BA4D36F2\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:41:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "6d7989bd-601e-0129-06fb-590061000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:41:58 GMT", + "x-ms-client-request-id" : "c7082010-2f67-41c6-aaa9-e0f84e12c165" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateac0appendblobapitestcreateacae404882b1359c5a1/javablobcreateac1appendblobapitestcreateacae4548721111ed", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BA541662\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:41:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "6d7989e4-601e-0129-29fb-590061000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:41:58 GMT", + "x-ms-client-request-id" : "ed35d18f-ee35-4fd4-9d1e-887b7e664538" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccreateac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "6d798a02-601e-0129-42fb-590061000000", + "Body" : "jtccreateacjtccreateac0appendblobapitestcreateacae404882b1359c5a1Fri, 23 Aug 2019 21:41:59 GMT\"0x8D72812BA45F05F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:41:58 GMT", + "x-ms-client-request-id" : "c1ee50e6-60ad-43fb-8173-62f3b00862ff", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateac0appendblobapitestcreateacae404882b1359c5a1?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "6d798a1e-601e-0129-5cfb-590061000000", + "Date" : "Fri, 23 Aug 2019 21:41:59 GMT", + "x-ms-client-request-id" : "84f2bdba-1fe7-4234-948d-f8ed2b54e0fd" + }, + "Exception" : null + } ], + "variables" : [ "jtccreateac0appendblobapitestcreateacae404882b1359c5a1", "javablobcreateac1appendblobapitestcreateacae4548721111ed" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestcreateac[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestcreateac[3].json new file mode 100644 index 0000000000000..9beca5c4261c4 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestcreateac[3].json @@ -0,0 +1,135 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateac0appendblobapitestcreateac69d65816af3448177?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BA6518E9\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:41:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "6d798a48-601e-0129-04fb-590061000000", + "Date" : "Fri, 23 Aug 2019 21:41:59 GMT", + "x-ms-client-request-id" : "1fa42c01-1e86-403e-a0e8-b90bfc07b7e0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateac0appendblobapitestcreateac69d65816af3448177/javablobcreateac1appendblobapitestcreateac69d478637c9f8f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BA6B74AD\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:41:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "6d798a68-601e-0129-1dfb-590061000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:41:59 GMT", + "x-ms-client-request-id" : "71b8a283-4339-4efc-bdbc-c0b1807fd611" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateac0appendblobapitestcreateac69d65816af3448177/javablobcreateac1appendblobapitestcreateac69d478637c9f8f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "x-ms-blob-committed-block-count" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:41:59 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:41:59 GMT", + "x-ms-blob-type" : "AppendBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812BA6B74AD\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:41:59 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "6d798a9b-601e-0129-50fb-590061000000", + "x-ms-client-request-id" : "8c859797-1174-44a5-99b1-249487e36bd7", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateac0appendblobapitestcreateac69d65816af3448177/javablobcreateac1appendblobapitestcreateac69d478637c9f8f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BA782201\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:41:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "6d798ab3-601e-0129-66fb-590061000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:41:59 GMT", + "x-ms-client-request-id" : "1823f424-a2c5-4e58-afaa-354c3266f7c2" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccreateac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "6d798aca-601e-0129-7afb-590061000000", + "Body" : "jtccreateacjtccreateac0appendblobapitestcreateac69d65816af3448177Fri, 23 Aug 2019 21:41:59 GMT\"0x8D72812BA6518E9\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:41:59 GMT", + "x-ms-client-request-id" : "9d50b2dc-c209-4492-ad68-55f9da60dc3a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateac0appendblobapitestcreateac69d65816af3448177?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "6d798ae3-601e-0129-10fb-590061000000", + "Date" : "Fri, 23 Aug 2019 21:41:59 GMT", + "x-ms-client-request-id" : "06e6d007-0a96-4b4d-b42a-c87263183ab7" + }, + "Exception" : null + } ], + "variables" : [ "jtccreateac0appendblobapitestcreateac69d65816af3448177", "javablobcreateac1appendblobapitestcreateac69d478637c9f8f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestcreateac[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestcreateac[4].json new file mode 100644 index 0000000000000..31fd045821227 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestcreateac[4].json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateac0appendblobapitestcreateac5e7154570f4222afe?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BA8AD2C5\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "6d798b0e-601e-0129-39fb-590061000000", + "Date" : "Fri, 23 Aug 2019 21:41:59 GMT", + "x-ms-client-request-id" : "8dd656b5-80f0-4ff9-897d-3ee183d4eef0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateac0appendblobapitestcreateac5e7154570f4222afe/javablobcreateac1appendblobapitestcreateac5e7733849ec12e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BA917C9B\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "6d798b41-601e-0129-63fb-590061000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:41:59 GMT", + "x-ms-client-request-id" : "ba16a696-5cd0-4a7b-a3bc-c0522c887980" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateac0appendblobapitestcreateac5e7154570f4222afe/javablobcreateac1appendblobapitestcreateac5e7733849ec12e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BA974A71\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "6d798b62-601e-0129-03fb-590061000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:41:59 GMT", + "x-ms-client-request-id" : "13639a6f-5d9c-4ed3-ac1b-26209d7612a6" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccreateac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "6d798b7d-601e-0129-1bfb-590061000000", + "Body" : "jtccreateacjtccreateac0appendblobapitestcreateac5e7154570f4222afeFri, 23 Aug 2019 21:42:00 GMT\"0x8D72812BA8AD2C5\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:41:59 GMT", + "x-ms-client-request-id" : "f10b13c7-e16f-4d7e-8806-d074da190806", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateac0appendblobapitestcreateac5e7154570f4222afe?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "6d798b95-601e-0129-32fb-590061000000", + "Date" : "Fri, 23 Aug 2019 21:41:59 GMT", + "x-ms-client-request-id" : "ebc58a48-373c-4a21-94a5-91e59fafe1f4" + }, + "Exception" : null + } ], + "variables" : [ "jtccreateac0appendblobapitestcreateac5e7154570f4222afe", "javablobcreateac1appendblobapitestcreateac5e7733849ec12e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestcreateac[5].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestcreateac[5].json new file mode 100644 index 0000000000000..92e54bf6397b9 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestcreateac[5].json @@ -0,0 +1,125 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateac0appendblobapitestcreateac81234402fe49e13ff?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BAA9D433\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "6d798bb9-601e-0129-52fb-590061000000", + "Date" : "Fri, 23 Aug 2019 21:41:59 GMT", + "x-ms-client-request-id" : "6ba3f75a-794f-4fbc-a938-c9625cc9395c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateac0appendblobapitestcreateac81234402fe49e13ff/javablobcreateac1appendblobapitestcreateac8122206812db51", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BAC2F907\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "6d798c55-601e-0129-59fb-590061000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:41:59 GMT", + "x-ms-client-request-id" : "7be00a42-cd7e-4022-87e3-581c0f30808b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateac0appendblobapitestcreateac81234402fe49e13ff/javablobcreateac1appendblobapitestcreateac8122206812db51?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BAC2F907\"", + "x-ms-lease-id" : "50824915-4540-411e-899a-556c05bcd695", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "6d798c77-601e-0129-76fb-590061000000", + "Date" : "Fri, 23 Aug 2019 21:41:59 GMT", + "x-ms-client-request-id" : "29d5392e-e223-4bd2-bc1e-3e1e4516d1a0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateac0appendblobapitestcreateac81234402fe49e13ff/javablobcreateac1appendblobapitestcreateac8122206812db51", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BACE9497\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "6d798c97-601e-0129-12fb-590061000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:41:59 GMT", + "x-ms-client-request-id" : "415e4b9b-4009-4011-9d34-3066358fa213" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccreateac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "6d798cc2-601e-0129-38fb-590061000000", + "Body" : "jtccreateacjtccreateac0appendblobapitestcreateac81234402fe49e13ffFri, 23 Aug 2019 21:42:00 GMT\"0x8D72812BAA9D433\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:41:59 GMT", + "x-ms-client-request-id" : "3f742003-2624-439b-b1d2-2e6f010aa302", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateac0appendblobapitestcreateac81234402fe49e13ff?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "6d798cd9-601e-0129-4efb-590061000000", + "Date" : "Fri, 23 Aug 2019 21:41:59 GMT", + "x-ms-client-request-id" : "f5e49546-b19d-417f-b5b9-d9d5b7fef6cb" + }, + "Exception" : null + } ], + "variables" : [ "jtccreateac0appendblobapitestcreateac81234402fe49e13ff", "javablobcreateac1appendblobapitestcreateac8122206812db51" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestcreateacfail[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestcreateacfail[0].json new file mode 100644 index 0000000000000..aca65ac3a5540 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestcreateacfail[0].json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateacfail0appendblobapitestcreateacfail2b63445034d5e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BAE05B22\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "6d798cfb-601e-0129-70fb-590061000000", + "Date" : "Fri, 23 Aug 2019 21:41:59 GMT", + "x-ms-client-request-id" : "e0cf5b1e-b3b0-4387-bd7d-21f869da94bc" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateacfail0appendblobapitestcreateacfail2b63445034d5e/javablobcreateacfail1appendblobapitestcreateacfail2b61107586", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BAE66831\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "6d798d22-601e-0129-0ffb-590061000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:41:59 GMT", + "x-ms-client-request-id" : "df900ae7-b53e-4877-a870-ae76c9fb36b3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateacfail0appendblobapitestcreateacfail2b63445034d5e/javablobcreateacfail1appendblobapitestcreateacfail2b61107586", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "6d798d3c-601e-0129-27fb-590061000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:6d798d3c-601e-0129-27fb-590061000000\nTime:2019-08-23T21:42:00.6763199Z", + "Date" : "Fri, 23 Aug 2019 21:41:59 GMT", + "x-ms-client-request-id" : "d2ae49cf-9cc5-4f80-a683-4f93a906608d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccreateacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "6d798d66-601e-0129-4bfb-590061000000", + "Body" : "jtccreateacfailjtccreateacfail0appendblobapitestcreateacfail2b63445034d5eFri, 23 Aug 2019 21:42:00 GMT\"0x8D72812BAE05B22\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:41:59 GMT", + "x-ms-client-request-id" : "e6aac312-2ab3-42ad-a2ba-b1f3b33b8dbe", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateacfail0appendblobapitestcreateacfail2b63445034d5e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "6d798d76-601e-0129-5bfb-590061000000", + "Date" : "Fri, 23 Aug 2019 21:42:00 GMT", + "x-ms-client-request-id" : "74be1295-74dc-49b1-885d-4f8ca1578980" + }, + "Exception" : null + } ], + "variables" : [ "jtccreateacfail0appendblobapitestcreateacfail2b63445034d5e", "javablobcreateacfail1appendblobapitestcreateacfail2b61107586" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestcreateacfail[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestcreateacfail[1].json new file mode 100644 index 0000000000000..503c3c67a0839 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestcreateacfail[1].json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateacfail0appendblobapitestcreateacfaile9413821bc4e3?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BB197AB1\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "6d798e2c-601e-0129-80fb-590061000000", + "Date" : "Fri, 23 Aug 2019 21:42:00 GMT", + "x-ms-client-request-id" : "3a6f1c5e-6940-4e14-a0be-dad751d8418a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateacfail0appendblobapitestcreateacfaile9413821bc4e3/javablobcreateacfail1appendblobapitestcreateacfaile94989715d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BB252E5C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "6d798e64-601e-0129-31fb-590061000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:00 GMT", + "x-ms-client-request-id" : "1be68cbc-d6c3-4ed3-98f3-abaaf7284817" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateacfail0appendblobapitestcreateacfaile9413821bc4e3/javablobcreateacfail1appendblobapitestcreateacfaile94989715d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "6d798e93-601e-0129-5bfb-590061000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:6d798e93-601e-0129-5bfb-590061000000\nTime:2019-08-23T21:42:01.0867185Z", + "Date" : "Fri, 23 Aug 2019 21:42:00 GMT", + "x-ms-client-request-id" : "7e404773-00d4-4017-928d-f95577714430", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccreateacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "6d798eb6-601e-0129-7efb-590061000000", + "Body" : "jtccreateacfailjtccreateacfail0appendblobapitestcreateacfaile9413821bc4e3Fri, 23 Aug 2019 21:42:00 GMT\"0x8D72812BB197AB1\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:00 GMT", + "x-ms-client-request-id" : "c9355a1e-74fa-4047-a516-bc8b6c6753f5", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateacfail0appendblobapitestcreateacfaile9413821bc4e3?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "6d798edc-601e-0129-20fb-590061000000", + "Date" : "Fri, 23 Aug 2019 21:42:00 GMT", + "x-ms-client-request-id" : "c52a0d3d-1620-4f11-a196-a7a1d542e7be" + }, + "Exception" : null + } ], + "variables" : [ "jtccreateacfail0appendblobapitestcreateacfaile9413821bc4e3", "javablobcreateacfail1appendblobapitestcreateacfaile94989715d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestcreateacfail[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestcreateacfail[2].json new file mode 100644 index 0000000000000..55d37d6fdafa8 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestcreateacfail[2].json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateacfail0appendblobapitestcreateacfail181285762ba23?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BB3BB12B\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "6d798f0e-601e-0129-4cfb-590061000000", + "Date" : "Fri, 23 Aug 2019 21:42:00 GMT", + "x-ms-client-request-id" : "90ae30c5-caf3-490e-af50-d6e50d2fc70a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateacfail0appendblobapitestcreateacfail181285762ba23/javablobcreateacfail1appendblobapitestcreateacfail181194454d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BB42336E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "6d798f3a-601e-0129-74fb-590061000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:00 GMT", + "x-ms-client-request-id" : "305d7ad3-8d27-430a-b755-761b67ed7155" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateacfail0appendblobapitestcreateacfail181285762ba23/javablobcreateacfail1appendblobapitestcreateacfail181194454d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "6d798f73-601e-0129-24fb-590061000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:6d798f73-601e-0129-24fb-590061000000\nTime:2019-08-23T21:42:01.2919173Z", + "Date" : "Fri, 23 Aug 2019 21:42:00 GMT", + "x-ms-client-request-id" : "c5b4e47c-05d6-47b5-82fc-f17f2d9d5959", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccreateacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "6d798f8c-601e-0129-3afb-590061000000", + "Body" : "jtccreateacfailjtccreateacfail0appendblobapitestcreateacfail181285762ba23Fri, 23 Aug 2019 21:42:01 GMT\"0x8D72812BB3BB12B\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:00 GMT", + "x-ms-client-request-id" : "6e56edb5-a9c0-42a0-b11d-c6030719b86c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateacfail0appendblobapitestcreateacfail181285762ba23?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "6d798fa3-601e-0129-4ffb-590061000000", + "Date" : "Fri, 23 Aug 2019 21:42:00 GMT", + "x-ms-client-request-id" : "90f40576-d24c-4483-8ed8-7ee06570bca2" + }, + "Exception" : null + } ], + "variables" : [ "jtccreateacfail0appendblobapitestcreateacfail181285762ba23", "javablobcreateacfail1appendblobapitestcreateacfail181194454d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestcreateacfail[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestcreateacfail[3].json new file mode 100644 index 0000000000000..968c9d0bec4e8 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestcreateacfail[3].json @@ -0,0 +1,135 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateacfail0appendblobapitestcreateacfail60180758cc15d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BB5A3D41\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "6d798fc2-601e-0129-6afb-590061000000", + "Date" : "Fri, 23 Aug 2019 21:42:00 GMT", + "x-ms-client-request-id" : "c420c0ab-6636-4d11-a34a-4fdd92d2ffd4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateacfail0appendblobapitestcreateacfail60180758cc15d/javablobcreateacfail1appendblobapitestcreateacfail6010415535", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BB6442BE\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "6d799005-601e-0129-20fb-590061000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:00 GMT", + "x-ms-client-request-id" : "43fd546d-76e5-4360-843a-b7b9ea8d9449" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateacfail0appendblobapitestcreateacfail60180758cc15d/javablobcreateacfail1appendblobapitestcreateacfail6010415535", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "x-ms-blob-committed-block-count" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:01 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:00 GMT", + "x-ms-blob-type" : "AppendBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812BB6442BE\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:01 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "6d799025-601e-0129-3dfb-590061000000", + "x-ms-client-request-id" : "8312edc8-6010-4367-b67b-352981672595", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateacfail0appendblobapitestcreateacfail60180758cc15d/javablobcreateacfail1appendblobapitestcreateacfail6010415535", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "6d799046-601e-0129-5afb-590061000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:6d799046-601e-0129-5afb-590061000000\nTime:2019-08-23T21:42:01.5371554Z", + "Date" : "Fri, 23 Aug 2019 21:42:00 GMT", + "x-ms-client-request-id" : "dbb16a7b-c7a7-48a7-9cc8-0f28c9919447", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccreateacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "6d79905c-601e-0129-6dfb-590061000000", + "Body" : "jtccreateacfailjtccreateacfail0appendblobapitestcreateacfail60180758cc15dFri, 23 Aug 2019 21:42:01 GMT\"0x8D72812BB5A3D41\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:00 GMT", + "x-ms-client-request-id" : "4bdd48b8-0945-4321-b892-14aaeeba4aac", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateacfail0appendblobapitestcreateacfail60180758cc15d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "6d799075-601e-0129-01fb-590061000000", + "Date" : "Fri, 23 Aug 2019 21:42:00 GMT", + "x-ms-client-request-id" : "6f782788-a7e8-4fde-bc5b-63bdd7a26b9c" + }, + "Exception" : null + } ], + "variables" : [ "jtccreateacfail0appendblobapitestcreateacfail60180758cc15d", "javablobcreateacfail1appendblobapitestcreateacfail6010415535" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestcreateacfail[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestcreateacfail[4].json new file mode 100644 index 0000000000000..ad403068236c8 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestcreateacfail[4].json @@ -0,0 +1,125 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateacfail0appendblobapitestcreateacfailc1921082feafd?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BB806C5D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "6d79909e-601e-0129-24fb-590061000000", + "Date" : "Fri, 23 Aug 2019 21:42:00 GMT", + "x-ms-client-request-id" : "277ab02c-67bd-43d4-8466-ff723e4b4785" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateacfail0appendblobapitestcreateacfailc1921082feafd/javablobcreateacfail1appendblobapitestcreateacfailc197637765", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BB862B05\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "6d7990b9-601e-0129-3cfb-590061000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:00 GMT", + "x-ms-client-request-id" : "87e6f78a-ded3-4b4d-bc70-9c3b4dd270ab" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateacfail0appendblobapitestcreateacfailc1921082feafd/javablobcreateacfail1appendblobapitestcreateacfailc197637765?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812BB862B05\"", + "x-ms-lease-id" : "33882a5e-2ed0-4ba2-8f7b-1aa6f0718503", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "6d7990d0-601e-0129-50fb-590061000000", + "Date" : "Fri, 23 Aug 2019 21:42:00 GMT", + "x-ms-client-request-id" : "343ac19a-cea5-4558-889c-ff41e68c931e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateacfail0appendblobapitestcreateacfailc1921082feafd/javablobcreateacfail1appendblobapitestcreateacfailc197637765", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "LeaseIdMismatchWithBlobOperation", + "retry-after" : "0", + "Content-Length" : "264", + "StatusCode" : "412", + "x-ms-request-id" : "6d7990e9-601e-0129-67fb-590061000000", + "Body" : "LeaseIdMismatchWithBlobOperationThe lease ID specified did not match the lease ID for the blob.\nRequestId:6d7990e9-601e-0129-67fb-590061000000\nTime:2019-08-23T21:42:01.7523644Z", + "Date" : "Fri, 23 Aug 2019 21:42:01 GMT", + "x-ms-client-request-id" : "77098749-09e3-4510-b73d-b4efcc799ef6", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccreateacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "6d7990f9-601e-0129-76fb-590061000000", + "Body" : "jtccreateacfailjtccreateacfail0appendblobapitestcreateacfailc1921082feafdFri, 23 Aug 2019 21:42:01 GMT\"0x8D72812BB806C5D\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:01 GMT", + "x-ms-client-request-id" : "b9fc7d67-103e-47b0-885c-d68dcb05bd6f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateacfail0appendblobapitestcreateacfailc1921082feafd?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "6d79910f-601e-0129-0bfb-590061000000", + "Date" : "Fri, 23 Aug 2019 21:42:01 GMT", + "x-ms-client-request-id" : "09177c85-450f-42c4-b632-bcea96489f6b" + }, + "Exception" : null + } ], + "variables" : [ "jtccreateacfail0appendblobapitestcreateacfailc1921082feafd", "javablobcreateacfail1appendblobapitestcreateacfailc197637765" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestcreatedefaults.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestcreatedefaults.json new file mode 100644 index 0000000000000..9ca7f9ebe783b --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestcreatedefaults.json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatedefaults0appendblobapitestcreatedefaults519946763c5?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812B8BA8130\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:41:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "6d797f1f-601e-0129-22fb-590061000000", + "Date" : "Fri, 23 Aug 2019 21:41:56 GMT", + "x-ms-client-request-id" : "bc4bdfdb-c2e2-4440-81e8-6f6ea2858084" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatedefaults0appendblobapitestcreatedefaults519946763c5/javablobcreatedefaults1appendblobapitestcreatedefaults51901065", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812B8DB98DF\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:41:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "6d797fe2-601e-0129-4ffb-590061000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:41:56 GMT", + "x-ms-client-request-id" : "fd5c02c8-bd05-47f9-9a5f-c0735de6c247" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatedefaults0appendblobapitestcreatedefaults519946763c5/javablobcreatedefaults1appendblobapitestcreatedefaults51901065", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812B8E49BC3\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:41:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "6d79801b-601e-0129-04fb-590061000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:41:56 GMT", + "x-ms-client-request-id" : "92d664f2-fa7d-47ee-9f7b-749c315581a0" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccreatedefaults&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "6d798072-601e-0129-53fb-590061000000", + "Body" : "jtccreatedefaultsjtccreatedefaults0appendblobapitestcreatedefaults519946763c5Fri, 23 Aug 2019 21:41:56 GMT\"0x8D72812B8BA8130\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:41:56 GMT", + "x-ms-client-request-id" : "c40e9677-4b7a-46b6-ad2e-9ba53ff3940a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatedefaults0appendblobapitestcreatedefaults519946763c5?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "6d7980f8-601e-0129-49fb-590061000000", + "Date" : "Fri, 23 Aug 2019 21:41:56 GMT", + "x-ms-client-request-id" : "cd139530-a882-4d45-9802-b90aa15940c0" + }, + "Exception" : null + } ], + "variables" : [ "jtccreatedefaults0appendblobapitestcreatedefaults519946763c5", "javablobcreatedefaults1appendblobapitestcreatedefaults51901065" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestcreateerror.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestcreateerror.json new file mode 100644 index 0000000000000..70cfccd63a978 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestcreateerror.json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateerror0appendblobapitestcreateerror2d6647750748a7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812B9391F95\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:41:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "6d798299-601e-0129-32fb-590061000000", + "Date" : "Fri, 23 Aug 2019 21:41:57 GMT", + "x-ms-client-request-id" : "b3399829-5ee5-4a9b-b78a-aa0a6926984b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateerror0appendblobapitestcreateerror2d6647750748a7/javablobcreateerror1appendblobapitestcreateerror2d6654263e2", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812B9403FC0\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:41:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "6d7982d4-601e-0129-64fb-590061000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:41:57 GMT", + "x-ms-client-request-id" : "870453e1-b575-4f4c-b033-c4aaf2f77429" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateerror0appendblobapitestcreateerror2d6647750748a7/javablobcreateerror1appendblobapitestcreateerror2d6654263e2", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "6d79830d-601e-0129-1afb-590061000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:6d79830d-601e-0129-1afb-590061000000\nTime:2019-08-23T21:41:57.9206415Z", + "Date" : "Fri, 23 Aug 2019 21:41:57 GMT", + "x-ms-client-request-id" : "767ebe50-a4fe-4d79-b29e-79e5e865770a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccreateerror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "6d798344-601e-0129-4cfb-590061000000", + "Body" : "jtccreateerrorjtccreateerror0appendblobapitestcreateerror2d6647750748a7Fri, 23 Aug 2019 21:41:57 GMT\"0x8D72812B9391F95\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:41:57 GMT", + "x-ms-client-request-id" : "63dbdc2e-cc27-480d-86ce-2d16bcec424e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateerror0appendblobapitestcreateerror2d6647750748a7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "6d79835f-601e-0129-64fb-590061000000", + "Date" : "Fri, 23 Aug 2019 21:41:57 GMT", + "x-ms-client-request-id" : "53b3e54a-4972-4fb2-97ea-c1038d19e3b9" + }, + "Exception" : null + } ], + "variables" : [ "jtccreateerror0appendblobapitestcreateerror2d6647750748a7", "javablobcreateerror1appendblobapitestcreateerror2d6654263e2" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestcreateheaders[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestcreateheaders[0].json new file mode 100644 index 0000000000000..6dfdf74fb3f4b --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestcreateheaders[0].json @@ -0,0 +1,135 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateheaders0appendblobapitestcreateheaders198607973c3b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812B95DC7B4\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:41:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "6d7983ca-601e-0129-3cfb-590061000000", + "Date" : "Fri, 23 Aug 2019 21:41:57 GMT", + "x-ms-client-request-id" : "b5edd7e3-28d1-4853-bf0d-a28f67c9ef36" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateheaders0appendblobapitestcreateheaders198607973c3b/javablobcreateheaders1appendblobapitestcreateheaders19865364e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812B9689227\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:41:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "6d7983fe-601e-0129-65fb-590061000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:41:57 GMT", + "x-ms-client-request-id" : "6561fbaa-b202-4d69-bd35-30dadc156fce" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateheaders0appendblobapitestcreateheaders198607973c3b/javablobcreateheaders1appendblobapitestcreateheaders19865364e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812B970AA7B\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:41:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "6d798448-601e-0129-26fb-590061000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:41:57 GMT", + "x-ms-client-request-id" : "710147d7-bf86-47d4-8ef3-0110612ae213" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateheaders0appendblobapitestcreateheaders198607973c3b/javablobcreateheaders1appendblobapitestcreateheaders19865364e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "x-ms-blob-committed-block-count" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:41:58 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:41:57 GMT", + "x-ms-blob-type" : "AppendBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812B970AA7B\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:41:58 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "6d798483-601e-0129-5afb-590061000000", + "x-ms-client-request-id" : "ba012168-928d-4a8f-a885-913ae9036d1b", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccreateheaders&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "6d7984bf-601e-0129-10fb-590061000000", + "Body" : "jtccreateheadersjtccreateheaders0appendblobapitestcreateheaders198607973c3bFri, 23 Aug 2019 21:41:58 GMT\"0x8D72812B95DC7B4\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:41:57 GMT", + "x-ms-client-request-id" : "3ba32c09-2032-4f0e-b291-058163975a73", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateheaders0appendblobapitestcreateheaders198607973c3b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "6d7984f0-601e-0129-3dfb-590061000000", + "Date" : "Fri, 23 Aug 2019 21:41:57 GMT", + "x-ms-client-request-id" : "561978e7-177e-42f0-9926-659fac7971b4" + }, + "Exception" : null + } ], + "variables" : [ "jtccreateheaders0appendblobapitestcreateheaders198607973c3b", "javablobcreateheaders1appendblobapitestcreateheaders19865364e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestcreateheaders[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestcreateheaders[1].json new file mode 100644 index 0000000000000..13e851866ce52 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestcreateheaders[1].json @@ -0,0 +1,140 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateheaders0appendblobapitestcreateheaders59e45422b63f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812B9982008\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:41:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "6d79856b-601e-0129-2dfb-590061000000", + "Date" : "Fri, 23 Aug 2019 21:41:57 GMT", + "x-ms-client-request-id" : "55f47d7a-ceb2-4c01-abb7-6b8dd94b3228" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateheaders0appendblobapitestcreateheaders59e45422b63f/javablobcreateheaders1appendblobapitestcreateheaders59e18224a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812B99EA39C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:41:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "6d798598-601e-0129-55fb-590061000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:41:57 GMT", + "x-ms-client-request-id" : "cdda618d-62ac-4c55-9757-36ad354cdbed" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateheaders0appendblobapitestcreateheaders59e45422b63f/javablobcreateheaders1appendblobapitestcreateheaders59e18224a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812B9A44A44\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:41:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "6d7985b3-601e-0129-6dfb-590061000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:41:57 GMT", + "x-ms-client-request-id" : "aa7b8d18-6dea-4ddd-bf1a-8f8824683d49" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateheaders0appendblobapitestcreateheaders59e45422b63f/javablobcreateheaders1appendblobapitestcreateheaders59e18224a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:41:58 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-blob-type" : "AppendBlob", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "Content-Encoding" : "encoding", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:41:58 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "6d7985d9-601e-0129-0efb-590061000000", + "Content-Type" : "type", + "x-ms-version" : "2019-02-02", + "x-ms-blob-committed-block-count" : "0", + "Date" : "Fri, 23 Aug 2019 21:41:57 GMT", + "Content-MD5" : "d2grV20xOEQwejFENEUrUEUyNTJnZz09", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "Cache-Control" : "control", + "ETag" : "\"0x8D72812B9A44A44\"", + "Content-Disposition" : "disposition", + "x-ms-client-request-id" : "41b2e34d-3b8b-4bb0-abf6-7b2bfebe0713", + "Content-Language" : "language" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccreateheaders&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "6d798604-601e-0129-30fb-590061000000", + "Body" : "jtccreateheadersjtccreateheaders0appendblobapitestcreateheaders59e45422b63fFri, 23 Aug 2019 21:41:58 GMT\"0x8D72812B9982008\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:41:57 GMT", + "x-ms-client-request-id" : "687a559c-6d90-44a0-912d-54b78db9d1f7", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateheaders0appendblobapitestcreateheaders59e45422b63f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "6d798621-601e-0129-4afb-590061000000", + "Date" : "Fri, 23 Aug 2019 21:41:57 GMT", + "x-ms-client-request-id" : "04466ad6-da23-4404-ab15-be6520f83c04" + }, + "Exception" : null + } ], + "variables" : [ "jtccreateheaders0appendblobapitestcreateheaders59e45422b63f", "javablobcreateheaders1appendblobapitestcreateheaders59e18224a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestcreatemetadata[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestcreatemetadata[0].json new file mode 100644 index 0000000000000..f7bff8481f2f9 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestcreatemetadata[0].json @@ -0,0 +1,135 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatemetadata0appendblobapitestcreatemetadataee744119272?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812B9BB683D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:41:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "6d798648-601e-0129-6bfb-590061000000", + "Date" : "Fri, 23 Aug 2019 21:41:57 GMT", + "x-ms-client-request-id" : "955aa9ff-4f55-45bc-ae13-c68f527910d1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatemetadata0appendblobapitestcreatemetadataee744119272/javablobcreatemetadata1appendblobapitestcreatemetadataee713374", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812B9C19D7C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:41:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "6d798674-601e-0129-13fb-590061000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:41:57 GMT", + "x-ms-client-request-id" : "a49a1d4a-a49d-4929-9c7a-caffc119d2c2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatemetadata0appendblobapitestcreatemetadataee744119272/javablobcreatemetadata1appendblobapitestcreatemetadataee713374", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812B9C855EC\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:41:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "6d79869e-601e-0129-3bfb-590061000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:41:58 GMT", + "x-ms-client-request-id" : "79440e83-bcc4-4d14-af9a-8996a38395b0" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatemetadata0appendblobapitestcreatemetadataee744119272/javablobcreatemetadata1appendblobapitestcreatemetadataee713374", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "x-ms-blob-committed-block-count" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:41:58 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:41:58 GMT", + "x-ms-blob-type" : "AppendBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812B9C855EC\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:41:58 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "6d7986c9-601e-0129-64fb-590061000000", + "x-ms-client-request-id" : "b66fb255-11e8-4eca-b3b8-ee8d475b2145", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccreatemetadata&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "6d7986e9-601e-0129-03fb-590061000000", + "Body" : "jtccreatemetadatajtccreatemetadata0appendblobapitestcreatemetadataee744119272Fri, 23 Aug 2019 21:41:58 GMT\"0x8D72812B9BB683D\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:41:58 GMT", + "x-ms-client-request-id" : "dd5e1423-6fed-45a0-ba1d-956b0ae3c730", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatemetadata0appendblobapitestcreatemetadataee744119272?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "6d798705-601e-0129-1efb-590061000000", + "Date" : "Fri, 23 Aug 2019 21:41:58 GMT", + "x-ms-client-request-id" : "66dd505c-5e28-48d1-b8e3-06441bde76d1" + }, + "Exception" : null + } ], + "variables" : [ "jtccreatemetadata0appendblobapitestcreatemetadataee744119272", "javablobcreatemetadata1appendblobapitestcreatemetadataee713374" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestcreatemetadata[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestcreatemetadata[1].json new file mode 100644 index 0000000000000..ef845475fa103 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestcreatemetadata[1].json @@ -0,0 +1,137 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatemetadata0appendblobapitestcreatemetadata1c198476679?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812B9E34571\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:41:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "6d798744-601e-0129-54fb-590061000000", + "Date" : "Fri, 23 Aug 2019 21:41:58 GMT", + "x-ms-client-request-id" : "08952c17-b501-4050-be8b-637aad671894" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatemetadata0appendblobapitestcreatemetadata1c198476679/javablobcreatemetadata1appendblobapitestcreatemetadata1c110304", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812B9E97A94\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:41:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "6d79876b-601e-0129-78fb-590061000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:41:58 GMT", + "x-ms-client-request-id" : "82fefe82-22b5-4b8c-b058-54a5d59d24b4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatemetadata0appendblobapitestcreatemetadata1c198476679/javablobcreatemetadata1appendblobapitestcreatemetadata1c110304", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812B9EEABFA\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:41:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "6d798780-601e-0129-0dfb-590061000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:41:58 GMT", + "x-ms-client-request-id" : "58d5a5d5-b83a-40ef-9b4b-57fdcb6c031e" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatemetadata0appendblobapitestcreatemetadata1c198476679/javablobcreatemetadata1appendblobapitestcreatemetadata1c110304", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "x-ms-blob-committed-block-count" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:41:59 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:41:58 GMT", + "x-ms-meta-foo" : "bar", + "x-ms-blob-type" : "AppendBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812B9EEABFA\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:41:58 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "6d7987ac-601e-0129-2ffb-590061000000", + "x-ms-meta-fizz" : "buzz", + "x-ms-client-request-id" : "5fa92194-1287-451a-88a7-6e160dcdc2a1", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccreatemetadata&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "6d7987d1-601e-0129-4dfb-590061000000", + "Body" : "jtccreatemetadatajtccreatemetadata0appendblobapitestcreatemetadata1c198476679Fri, 23 Aug 2019 21:41:58 GMT\"0x8D72812B9E34571\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:41:58 GMT", + "x-ms-client-request-id" : "978af2df-1ebd-4aea-b8e1-46538dc2ff95", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatemetadata0appendblobapitestcreatemetadata1c198476679?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "6d7987ee-601e-0129-68fb-590061000000", + "Date" : "Fri, 23 Aug 2019 21:41:58 GMT", + "x-ms-client-request-id" : "e36be220-86d9-4baa-beba-335745416127" + }, + "Exception" : null + } ], + "variables" : [ "jtccreatemetadata0appendblobapitestcreatemetadata1c198476679", "javablobcreatemetadata1appendblobapitestcreatemetadata1c110304" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestcreatemin.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestcreatemin.json new file mode 100644 index 0000000000000..266ec16e3097c --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/AppendBlobAPITestcreatemin.json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatemin0appendblobapitestcreatemin560913496b26c71a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812B91673C7\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:41:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "6d79817a-601e-0129-31fb-590061000000", + "Date" : "Fri, 23 Aug 2019 21:41:56 GMT", + "x-ms-client-request-id" : "df7d4ea7-9e93-4eab-918f-ea1e1330032b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatemin0appendblobapitestcreatemin560913496b26c71a/javablobcreatemin1appendblobapitestcreatemin5608721101651", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812B9211759\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:41:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "6d7981cf-601e-0129-7bfb-590061000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:41:56 GMT", + "x-ms-client-request-id" : "a0b847a6-3f9a-4749-91a9-7f4afa6fbb05" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatemin0appendblobapitestcreatemin560913496b26c71a/javablobcreatemin1appendblobapitestcreatemin5608721101651", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812B92696F7\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:41:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "6d798202-601e-0129-28fb-590061000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:41:56 GMT", + "x-ms-client-request-id" : "de66fa04-b6ed-4ce9-99c9-9254cdfcd3df" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccreatemin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "6d79822a-601e-0129-4dfb-590061000000", + "Body" : "jtccreateminjtccreatemin0appendblobapitestcreatemin560913496b26c71aFri, 23 Aug 2019 21:41:57 GMT\"0x8D72812B91673C7\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:41:57 GMT", + "x-ms-client-request-id" : "e99b69ee-05c0-4300-a1b6-573b03c9b08f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatemin0appendblobapitestcreatemin560913496b26c71a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "6d79824a-601e-0129-6afb-590061000000", + "Date" : "Fri, 23 Aug 2019 21:41:57 GMT", + "x-ms-client-request-id" : "47645bdc-1f6d-4f00-9713-f5df44a14cdc" + }, + "Exception" : null + } ], + "variables" : [ "jtccreatemin0appendblobapitestcreatemin560913496b26c71a", "javablobcreatemin1appendblobapitestcreatemin5608721101651" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestabortcopy.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestabortcopy.json new file mode 100644 index 0000000000000..d7881a2b966b9 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestabortcopy.json @@ -0,0 +1,209 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcabortcopy0blobapitestabortcopya4935034722a2924024?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E4CF2E61\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e9a5c-201e-00c4-26fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:10 GMT", + "x-ms-client-request-id" : "b4a4b1a1-0999-4fd9-8e6b-265ac6a9fa0e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcabortcopy0blobapitestabortcopya4935034722a2924024/javablobabortcopy1blobapitestabortcopya49652744ef48667", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:10 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:10 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E4D5F690\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e9a74-201e-00c4-38fb-594fb0000000", + "x-ms-client-request-id" : "2fb605d1-11a7-4053-a6b7-122ef7863b15" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcabortcopy0blobapitestabortcopya4935034722a2924024/javablobabortcopy1blobapitestabortcopya49652744ef48667", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "h1rQvAqGnCI=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:11 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:11 GMT", + "Content-MD5" : "+NsM7W99GzoH97577yyB3w==", + "ETag" : "\"0x8D72812E51978D8\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e9a99-201e-00c4-50fb-594fb0000000", + "x-ms-client-request-id" : "22e4b6be-dc00-4551-9754-619732902fe1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcabortcopy0blobapitestabortcopya4935034722a2924024?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E54CD44E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e9c63-201e-00c4-3ffb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:11 GMT", + "x-ms-client-request-id" : "392300fa-3b96-4a19-b29a-5edbd0c55178" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/javablobabortcopy2blobapitestabortcopya495152493b4d1d9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E55199AE\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "1d06e875-f01e-0012-03fb-59fb37000000", + "Date" : "Fri, 23 Aug 2019 21:43:10 GMT", + "x-ms-client-request-id" : "ad2166fc-3c45-4986-91e0-6b4bdae74703" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/javablobabortcopy2blobapitestabortcopya495152493b4d1d9/javablobabortcopy3blobapitestabortcopya4992047d15ad1a6", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-copy-id" : "56e8696d-b5bb-498b-82b0-097555ac7b74", + "ETag" : "\"0x8D72812E5585BDB\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "x-ms-copy-status" : "pending", + "StatusCode" : "202", + "x-ms-request-id" : "1d06e87e-f01e-0012-0afb-59fb37000000", + "Date" : "Fri, 23 Aug 2019 21:43:10 GMT", + "x-ms-client-request-id" : "04980a15-5591-42a2-bdea-68b33b68930b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/javablobabortcopy2blobapitestabortcopya495152493b4d1d9/javablobabortcopy3blobapitestabortcopya4992047d15ad1a6?copyid=56e8696d-b5bb-498b-82b0-097555ac7b74&comp=copy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "204", + "x-ms-request-id" : "1d06e895-f01e-0012-1efb-59fb37000000", + "Date" : "Fri, 23 Aug 2019 21:43:10 GMT", + "x-ms-client-request-id" : "ad212636-6f0a-45c9-8c29-1963e4efa4d1" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/javablobabortcopy2blobapitestabortcopya495152493b4d1d9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "1d06e8ab-f01e-0012-31fb-59fb37000000", + "Date" : "Fri, 23 Aug 2019 21:43:10 GMT", + "x-ms-client-request-id" : "3cd7cb8e-fdef-4f9b-9989-9dcfc6f41690" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcabortcopy&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e9cc4-201e-00c4-09fb-594fb0000000", + "Body" : "jtcabortcopyjtcabortcopy0blobapitestabortcopya4935034722a2924024Fri, 23 Aug 2019 21:43:11 GMT\"0x8D72812E54CD44E\"unlockedavailableblob$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:11 GMT", + "x-ms-client-request-id" : "e3cad0c1-cf9a-4ba9-8baa-92e7a42399c8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcabortcopy0blobapitestabortcopya4935034722a2924024?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e9cce-201e-00c4-12fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:11 GMT", + "x-ms-client-request-id" : "50028a44-e828-4181-b024-591984ec673a" + }, + "Exception" : null + } ], + "variables" : [ "jtcabortcopy0blobapitestabortcopya4935034722a2924024", "javablobabortcopy1blobapitestabortcopya49652744ef48667", "70fdb11b-668d-4f1b-9c07-4c48ec7215f5", "javablobabortcopy2blobapitestabortcopya495152493b4d1d9", "javablobabortcopy3blobapitestabortcopya4992047d15ad1a6" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestabortcopyerror.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestabortcopyerror.json new file mode 100644 index 0000000000000..2ceaaef24a485 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestabortcopyerror.json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcabortcopyerror0blobapitestabortcopyerrorc8575987042cfe?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E6A7480F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51ea0e1-201e-00c4-51fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:14 GMT", + "x-ms-client-request-id" : "3d59f750-dd28-49f4-8cee-f07b782d4be5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcabortcopyerror0blobapitestabortcopyerrorc8575987042cfe/javablobabortcopyerror1blobapitestabortcopyerrorc8555796d24", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:14 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:14 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E6AE5F19\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51ea106-201e-00c4-72fb-594fb0000000", + "x-ms-client-request-id" : "8b9b6563-a613-414f-981e-ebbd2e24b6e5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcabortcopyerror0blobapitestabortcopyerrorc8575987042cfe/javablobabortcopyerror2blobapitestabortcopyerrorc8541929234?copyid=id&comp=copy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "InvalidQueryParameterValue", + "retry-after" : "0", + "Content-Length" : "412", + "StatusCode" : "400", + "x-ms-request-id" : "d51ea127-201e-00c4-0afb-594fb0000000", + "Body" : "InvalidQueryParameterValueValue for one of the query parameters specified in the request URI is invalid.\nRequestId:d51ea127-201e-00c4-0afb-594fb0000000\nTime:2019-08-23T21:43:14.1310353Zcopyididcopyid needs to be valid Guid.", + "Date" : "Fri, 23 Aug 2019 21:43:14 GMT", + "x-ms-client-request-id" : "b1a3e364-79aa-4d66-8060-e28e080f0e05", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcabortcopyerror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51ea138-201e-00c4-18fb-594fb0000000", + "Body" : "jtcabortcopyerrorjtcabortcopyerror0blobapitestabortcopyerrorc8575987042cfeFri, 23 Aug 2019 21:43:14 GMT\"0x8D72812E6A7480F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:14 GMT", + "x-ms-client-request-id" : "cb7f5ae5-7ab6-4e29-b068-2c8fcdb8f6ec", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcabortcopyerror0blobapitestabortcopyerrorc8575987042cfe?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51ea14a-201e-00c4-23fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:14 GMT", + "x-ms-client-request-id" : "0e3cb31f-be85-4860-9dd2-6c5ce14cb330" + }, + "Exception" : null + } ], + "variables" : [ "jtcabortcopyerror0blobapitestabortcopyerrorc8575987042cfe", "javablobabortcopyerror1blobapitestabortcopyerrorc8555796d24", "javablobabortcopyerror2blobapitestabortcopyerrorc8541929234" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestabortcopylease.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestabortcopylease.json new file mode 100644 index 0000000000000..0c071354dcf9b --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestabortcopylease.json @@ -0,0 +1,254 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcabortcopylease0blobapitestabortcopylease9e5285223c4999?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E604296C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e9eea-201e-00c4-3cfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:12 GMT", + "x-ms-client-request-id" : "f61c822d-5889-4a2f-a498-dd62bd6be4cc" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcabortcopylease0blobapitestabortcopylease9e5285223c4999/javablobabortcopylease1blobapitestabortcopylease9e58265702e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:13 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:13 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E6099237\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e9f04-201e-00c4-4ffb-594fb0000000", + "x-ms-client-request-id" : "a66f8a37-a276-43b6-86a5-d1f03765c725" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcabortcopylease0blobapitestabortcopylease9e5285223c4999/javablobabortcopylease1blobapitestabortcopylease9e58265702e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "ittLQiuwPhc=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:13 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:13 GMT", + "Content-MD5" : "nIdceyCZT6GEieUlrMT16w==", + "ETag" : "\"0x8D72812E64D1470\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e9f34-201e-00c4-74fb-594fb0000000", + "x-ms-client-request-id" : "a4eff794-9f32-40b7-b58f-f6db359ff07a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcabortcopylease0blobapitestabortcopylease9e5285223c4999?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E6597B7D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e9ff6-201e-00c4-12fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:13 GMT", + "x-ms-client-request-id" : "0e934008-f252-4e3d-ad79-281fcd63e990" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/jtcabortcopylease2blobapitestabortcopylease9e5595849d2e3a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E65E1B87\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "1d06ed40-f01e-0012-42fb-59fb37000000", + "Date" : "Fri, 23 Aug 2019 21:43:12 GMT", + "x-ms-client-request-id" : "a481ac14-0d2b-420f-ae7c-8e245790d278" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/jtcabortcopylease2blobapitestabortcopylease9e5595849d2e3a/javablobabortcopylease3blobapitestabortcopylease9e563408086", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:13 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:12 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E663A4D4\"", + "Content-Length" : "0", + "x-ms-request-id" : "1d06ed55-f01e-0012-53fb-59fb37000000", + "x-ms-client-request-id" : "f4cdc0c0-32a8-43d7-b9a4-2965f6e18113" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/jtcabortcopylease2blobapitestabortcopylease9e5595849d2e3a/javablobabortcopylease3blobapitestabortcopylease9e563408086?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E663A4D4\"", + "x-ms-lease-id" : "9c7fb76a-1d94-4835-9eb4-8c5f7adc8a23", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "1d06ed74-f01e-0012-6efb-59fb37000000", + "Date" : "Fri, 23 Aug 2019 21:43:12 GMT", + "x-ms-client-request-id" : "91027cfb-6a62-43e1-82ee-4d06f326a9e3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/jtcabortcopylease2blobapitestabortcopylease9e5595849d2e3a/javablobabortcopylease3blobapitestabortcopylease9e563408086", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-copy-id" : "f55384be-4b8b-41d0-b880-19e6582a82c6", + "ETag" : "\"0x8D72812E672C3BA\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "x-ms-copy-status" : "pending", + "StatusCode" : "202", + "x-ms-request-id" : "1d06ed91-f01e-0012-07fb-59fb37000000", + "Date" : "Fri, 23 Aug 2019 21:43:12 GMT", + "x-ms-client-request-id" : "790e518c-ffc0-4216-8076-cc403585375e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/jtcabortcopylease2blobapitestabortcopylease9e5595849d2e3a/javablobabortcopylease3blobapitestabortcopylease9e563408086?copyid=f55384be-4b8b-41d0-b880-19e6582a82c6&comp=copy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "204", + "x-ms-request-id" : "1d06edb3-f01e-0012-22fb-59fb37000000", + "Date" : "Fri, 23 Aug 2019 21:43:12 GMT", + "x-ms-client-request-id" : "3986f883-9ceb-461d-92b7-dee92bfc59b6" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/jtcabortcopylease2blobapitestabortcopylease9e5595849d2e3a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "1d06edc4-f01e-0012-32fb-59fb37000000", + "Date" : "Fri, 23 Aug 2019 21:43:12 GMT", + "x-ms-client-request-id" : "f0204d0e-7a2e-4c7c-91fa-3cede214e8fe" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcabortcopylease&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51ea077-201e-00c4-78fb-594fb0000000", + "Body" : "jtcabortcopyleasejtcabortcopylease0blobapitestabortcopylease9e5285223c4999Fri, 23 Aug 2019 21:43:13 GMT\"0x8D72812E6597B7D\"unlockedavailableblob$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:13 GMT", + "x-ms-client-request-id" : "bce01c37-a404-48e2-a82a-28f693adffbc", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcabortcopylease0blobapitestabortcopylease9e5285223c4999?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51ea083-201e-00c4-03fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:13 GMT", + "x-ms-client-request-id" : "3ec44c33-c599-40b5-ace9-65230cd636af" + }, + "Exception" : null + } ], + "variables" : [ "jtcabortcopylease0blobapitestabortcopylease9e5285223c4999", "javablobabortcopylease1blobapitestabortcopylease9e58265702e", "a9da6487-54a0-40c1-90a8-fde06106d82b", "jtcabortcopylease2blobapitestabortcopylease9e5595849d2e3a", "javablobabortcopylease3blobapitestabortcopylease9e563408086" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestabortcopyleasefail.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestabortcopyleasefail.json new file mode 100644 index 0000000000000..8ef7708e900a4 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestabortcopyleasefail.json @@ -0,0 +1,257 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcabortcopyleasefail0blobapitestabortcopyleasefailc84743271a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E3D044DB\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e96d6-201e-00c4-2cfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:09 GMT", + "x-ms-client-request-id" : "e68bd503-ebf1-46be-8439-84930563921c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcabortcopyleasefail0blobapitestabortcopyleasefailc84743271a/javablobabortcopyleasefail102383a3f8fbaf6124442", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:09 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:09 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E3D5D3D1\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e96ed-201e-00c4-3ffb-594fb0000000", + "x-ms-client-request-id" : "ccaa86d8-d3a1-43f5-8b5a-4c205f90c33a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcabortcopyleasefail0blobapitestabortcopyleasefailc84743271a/javablobabortcopyleasefail102383a3f8fbaf6124442", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "MblHV1a5das=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:09 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:09 GMT", + "Content-MD5" : "j8JRMZfVP1hT2G3e7yRrvQ==", + "ETag" : "\"0x8D72812E41BA07F\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e9724-201e-00c4-6ffb-594fb0000000", + "x-ms-client-request-id" : "c2ec4d02-3d34-4bc0-917b-2b99af171c54" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcabortcopyleasefail0blobapitestabortcopyleasefailc84743271a?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E4208FB1\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e9827-201e-00c4-5efb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:09 GMT", + "x-ms-client-request-id" : "180d8a9e-d88b-4e41-b938-8b60d424298b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/javablobabortcopyleasefail260532e01166b803dd42a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E43A66DA\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "1d06e3f6-f01e-0012-7cfb-59fb37000000", + "Date" : "Fri, 23 Aug 2019 21:43:09 GMT", + "x-ms-client-request-id" : "8090df8f-975f-4aa7-891d-71b0ef731478" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/javablobabortcopyleasefail260532e01166b803dd42a/javablobabortcopyleasefail347215ea337870cebb465", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:10 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:09 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E44FD2BF\"", + "Content-Length" : "0", + "x-ms-request-id" : "1d06e440-f01e-0012-41fb-59fb37000000", + "x-ms-client-request-id" : "7b786cf6-0808-41d2-afdc-d33b1903462e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/javablobabortcopyleasefail260532e01166b803dd42a/javablobabortcopyleasefail347215ea337870cebb465?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E44FD2BF\"", + "x-ms-lease-id" : "d39387c4-4663-4663-80e8-77fac9387beb", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "1d06e455-f01e-0012-54fb-59fb37000000", + "Date" : "Fri, 23 Aug 2019 21:43:09 GMT", + "x-ms-client-request-id" : "51b4e60d-81d9-4b6a-a3ee-99112ca8470e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/javablobabortcopyleasefail260532e01166b803dd42a/javablobabortcopyleasefail347215ea337870cebb465", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-copy-id" : "44b028d7-4125-464b-961f-69748100d74c", + "ETag" : "\"0x8D72812E4A95353\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "x-ms-copy-status" : "pending", + "StatusCode" : "202", + "x-ms-request-id" : "1d06e462-f01e-0012-60fb-59fb37000000", + "Date" : "Fri, 23 Aug 2019 21:43:09 GMT", + "x-ms-client-request-id" : "7869a851-a8a2-40ba-aff6-ddb0acd6942e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/javablobabortcopyleasefail260532e01166b803dd42a/javablobabortcopyleasefail347215ea337870cebb465?copyid=44b028d7-4125-464b-961f-69748100d74c&comp=copy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "LeaseIdMismatchWithBlobOperation", + "retry-after" : "0", + "Content-Length" : "264", + "StatusCode" : "412", + "x-ms-request-id" : "1d06e54f-f01e-0012-34fb-59fb37000000", + "Body" : "LeaseIdMismatchWithBlobOperationThe lease ID specified did not match the lease ID for the blob.\nRequestId:1d06e54f-f01e-0012-34fb-59fb37000000\nTime:2019-08-23T21:43:10.7436918Z", + "Date" : "Fri, 23 Aug 2019 21:43:09 GMT", + "x-ms-client-request-id" : "a36c44de-46f5-4948-aa16-4ded3c4e1531", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/javablobabortcopyleasefail260532e01166b803dd42a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "1d06e55f-f01e-0012-43fb-59fb37000000", + "Date" : "Fri, 23 Aug 2019 21:43:09 GMT", + "x-ms-client-request-id" : "d8a7bee8-17e1-4340-a8e2-2bf79283dd58" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcabortcopyleasefail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e9a0a-201e-00c4-6ffb-594fb0000000", + "Body" : "jtcabortcopyleasefailjtcabortcopyleasefail0blobapitestabortcopyleasefailc84743271aFri, 23 Aug 2019 21:43:09 GMT\"0x8D72812E4208FB1\"unlockedavailableblob$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:10 GMT", + "x-ms-client-request-id" : "5f187f00-7a7b-4b35-a205-9e50129f6320", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcabortcopyleasefail0blobapitestabortcopyleasefailc84743271a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e9a15-201e-00c4-76fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:10 GMT", + "x-ms-client-request-id" : "530443ba-a884-4bff-b2cd-07009f84df34" + }, + "Exception" : null + } ], + "variables" : [ "jtcabortcopyleasefail0blobapitestabortcopyleasefailc84743271a", "javablobabortcopyleasefail102383a3f8fbaf6124442", "f28e5a2a-14cf-4ced-8750-5dd485730955", "javablobabortcopyleasefail260532e01166b803dd42a", "javablobabortcopyleasefail347215ea337870cebb465" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestabortcopymin.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestabortcopymin.json new file mode 100644 index 0000000000000..397cefb12915b --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestabortcopymin.json @@ -0,0 +1,191 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcabortcopymin0blobapitestabortcopymindbd12404f55859c2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E571625B\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e9ce8-201e-00c4-28fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:12 GMT", + "x-ms-client-request-id" : "5e04d109-7cef-4bff-b0b5-4af92767720d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcabortcopymin0blobapitestabortcopymindbd12404f55859c2/javablobabortcopymin1blobapitestabortcopymindbd70449390b9", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:12 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:12 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E576F230\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e9cef-201e-00c4-2cfb-594fb0000000", + "x-ms-client-request-id" : "153e52c9-a4f4-45b2-8de0-305617ab9ec8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcabortcopymin0blobapitestabortcopymindbd12404f55859c2/javablobabortcopymin1blobapitestabortcopymindbd70449390b9", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "HFYNvJ7oO/U=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:12 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:12 GMT", + "Content-MD5" : "hqLQ96XkCqMzmCA0DHGo2Q==", + "ETag" : "\"0x8D72812E5D220E7\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e9d21-201e-00c4-50fb-594fb0000000", + "x-ms-client-request-id" : "a047fd76-7e71-4a75-ad41-6fa0a6366b1a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcabortcopymin0blobapitestabortcopymindbd12404f55859c2?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E5D81E9E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e9e74-201e-00c4-57fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:12 GMT", + "x-ms-client-request-id" : "aca6926b-5cf4-455b-be15-84af3bbed01c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/javablobabortcopymin2blobapitestabortcopymindbd95286e023c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E5E06832\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "1d06eafd-f01e-0012-4afb-59fb37000000", + "Date" : "Fri, 23 Aug 2019 21:43:11 GMT", + "x-ms-client-request-id" : "d734cecf-0f49-424b-9236-8bdcb50da1e4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/javablobabortcopymin2blobapitestabortcopymindbd95286e023c/javablobabortcopymin3blobapitestabortcopymindbd04915f1cb7", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-copy-id" : "442dfc3d-fd32-4bd4-b64f-c545c9a4ff95", + "ETag" : "\"0x8D72812E5EF69BD\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "x-ms-copy-status" : "pending", + "StatusCode" : "202", + "x-ms-request-id" : "1d06eb0a-f01e-0012-53fb-59fb37000000", + "Date" : "Fri, 23 Aug 2019 21:43:11 GMT", + "x-ms-client-request-id" : "96988cd9-7497-41a7-9fcd-aac1197159f5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/javablobabortcopymin2blobapitestabortcopymindbd95286e023c/javablobabortcopymin3blobapitestabortcopymindbd04915f1cb7?copyid=442dfc3d-fd32-4bd4-b64f-c545c9a4ff95&comp=copy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "204", + "x-ms-request-id" : "1d06eb40-f01e-0012-80fb-59fb37000000", + "Date" : "Fri, 23 Aug 2019 21:43:11 GMT", + "x-ms-client-request-id" : "eff82d68-8e97-47f1-8ac8-ad13761c198a" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcabortcopymin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e9ec0-201e-00c4-1bfb-594fb0000000", + "Body" : "jtcabortcopyminjtcabortcopymin0blobapitestabortcopymindbd12404f55859c2Fri, 23 Aug 2019 21:43:12 GMT\"0x8D72812E5D81E9E\"unlockedavailableblob$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:12 GMT", + "x-ms-client-request-id" : "7bda2991-348f-4d8f-a64a-6cf43203516c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcabortcopymin0blobapitestabortcopymindbd12404f55859c2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e9ed0-201e-00c4-28fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:12 GMT", + "x-ms-client-request-id" : "f99578cd-11d6-4c1d-87df-b75b5c9294ab" + }, + "Exception" : null + } ], + "variables" : [ "jtcabortcopymin0blobapitestabortcopymindbd12404f55859c2", "javablobabortcopymin1blobapitestabortcopymindbd70449390b9", "86db8229-5319-4210-9f21-394ca5b5084d", "javablobabortcopymin2blobapitestabortcopymindbd95286e023c", "javablobabortcopymin3blobapitestabortcopymindbd04915f1cb7" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestacquirelease[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestacquirelease[0].json new file mode 100644 index 0000000000000..ca8b4bae509d8 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestacquirelease[0].json @@ -0,0 +1,139 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquirelease0blobapitestacquirelease85579462454876ae?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812CC32C44E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e3cf9-201e-00c4-51fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:28 GMT", + "x-ms-client-request-id" : "5bf30fd0-d0a8-40a4-82e6-455e88d88bb1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquirelease0blobapitestacquirelease85579462454876ae/javablobacquirelease1blobapitestacquirelease855869620435b", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:29 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:28 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812CC382318\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e3d14-201e-00c4-66fb-594fb0000000", + "x-ms-client-request-id" : "ac2aa2ee-043e-4abd-8f2c-0b317b311bf7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquirelease0blobapitestacquirelease85579462454876ae/javablobacquirelease1blobapitestacquirelease855869620435b?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812CC382318\"", + "x-ms-lease-id" : "6ce1e19d-5839-4a9d-a9cd-aab389b2a248", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e3d24-201e-00c4-73fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:28 GMT", + "x-ms-client-request-id" : "e34d83ca-29b5-4587-8a05-1db555e823fc" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquirelease0blobapitestacquirelease85579462454876ae/javablobacquirelease1blobapitestacquirelease855869620435b", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "locked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "leased", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:29 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:28 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812CC382318\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:29 GMT", + "x-ms-lease-duration" : "infinite", + "Content-Length" : "7", + "x-ms-request-id" : "d51e3d38-201e-00c4-04fb-594fb0000000", + "x-ms-client-request-id" : "576a1a22-5021-420c-8946-21cf12e33313", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcacquirelease&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e3d4f-201e-00c4-18fb-594fb0000000", + "Body" : "jtcacquireleasejtcacquirelease0blobapitestacquirelease85579462454876aeFri, 23 Aug 2019 21:42:29 GMT\"0x8D72812CC32C44E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:28 GMT", + "x-ms-client-request-id" : "dcee8de8-d0f1-4486-9261-f170ca551f2f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquirelease0blobapitestacquirelease85579462454876ae?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e3d62-201e-00c4-29fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:28 GMT", + "x-ms-client-request-id" : "e5854c3a-dc9b-440f-bfd3-3b5dab885ae7" + }, + "Exception" : null + } ], + "variables" : [ "jtcacquirelease0blobapitestacquirelease85579462454876ae", "javablobacquirelease1blobapitestacquirelease855869620435b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestacquirelease[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestacquirelease[1].json new file mode 100644 index 0000000000000..0c701cd8ece39 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestacquirelease[1].json @@ -0,0 +1,139 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquirelease0blobapitestacquirelease38b95758d135b5d1?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812CC5065B6\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e3d76-201e-00c4-3afb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:28 GMT", + "x-ms-client-request-id" : "57d074e4-ecdc-40f1-b662-900b49481042" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquirelease0blobapitestacquirelease38b95758d135b5d1/javablobacquirelease1blobapitestacquirelease38b37510790de", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:29 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:28 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812CC55EB9F\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e3d8e-201e-00c4-4dfb-594fb0000000", + "x-ms-client-request-id" : "22901a63-6116-4e40-8753-05755df7fdb6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquirelease0blobapitestacquirelease38b95758d135b5d1/javablobacquirelease1blobapitestacquirelease38b37510790de?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812CC55EB9F\"", + "x-ms-lease-id" : "665a5a5f-f62f-42da-b145-40dbc713ce4d", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e3da3-201e-00c4-61fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:28 GMT", + "x-ms-client-request-id" : "c05483a1-17fd-4130-ace8-4f31e867fd51" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquirelease0blobapitestacquirelease38b95758d135b5d1/javablobacquirelease1blobapitestacquirelease38b37510790de", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "locked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "leased", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:29 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:28 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812CC55EB9F\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:29 GMT", + "x-ms-lease-duration" : "fixed", + "Content-Length" : "7", + "x-ms-request-id" : "d51e3dbc-201e-00c4-75fb-594fb0000000", + "x-ms-client-request-id" : "cf58c688-e5a2-4522-9f48-a5de7c4a04bf", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcacquirelease&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e3dca-201e-00c4-01fb-594fb0000000", + "Body" : "jtcacquireleasejtcacquirelease0blobapitestacquirelease38b95758d135b5d1Fri, 23 Aug 2019 21:42:29 GMT\"0x8D72812CC5065B6\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:29 GMT", + "x-ms-client-request-id" : "9b880185-8f46-4bb8-bb06-56ff87b73692", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquirelease0blobapitestacquirelease38b95758d135b5d1?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e3ddc-201e-00c4-0ffb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:29 GMT", + "x-ms-client-request-id" : "3c468796-af17-48c1-9fe6-904e4688e71d" + }, + "Exception" : null + } ], + "variables" : [ "jtcacquirelease0blobapitestacquirelease38b95758d135b5d1", "javablobacquirelease1blobapitestacquirelease38b37510790de" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestacquirelease[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestacquirelease[2].json new file mode 100644 index 0000000000000..1466ea3b00125 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestacquirelease[2].json @@ -0,0 +1,139 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquirelease0blobapitestacquireleasea6005710afb21033?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812CC709FD4\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e3e15-201e-00c4-40fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:29 GMT", + "x-ms-client-request-id" : "93cdd403-1b56-4c09-92d6-d5e1c3b00a99" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquirelease0blobapitestacquireleasea6005710afb21033/javablobacquirelease1blobapitestacquireleasea604772846ef9", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:30 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:29 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812CC7673EA\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e3e3a-201e-00c4-5dfb-594fb0000000", + "x-ms-client-request-id" : "6ba4d971-128b-4d70-80a6-fce567b2d0d7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquirelease0blobapitestacquireleasea6005710afb21033/javablobacquirelease1blobapitestacquireleasea604772846ef9?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812CC7673EA\"", + "x-ms-lease-id" : "4b763d9f-2164-46af-a857-589bb9c96f72", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e3e5a-201e-00c4-77fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:29 GMT", + "x-ms-client-request-id" : "ae1a11e9-d2ab-4e97-b142-5191541932be" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquirelease0blobapitestacquireleasea6005710afb21033/javablobacquirelease1blobapitestacquireleasea604772846ef9", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "locked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "leased", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:30 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:29 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812CC7673EA\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:30 GMT", + "x-ms-lease-duration" : "infinite", + "Content-Length" : "7", + "x-ms-request-id" : "d51e3e72-201e-00c4-0dfb-594fb0000000", + "x-ms-client-request-id" : "c218a1e7-f083-4182-9078-7fce538ae0c2", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcacquirelease&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e3e7f-201e-00c4-19fb-594fb0000000", + "Body" : "jtcacquireleasejtcacquirelease0blobapitestacquireleasea6005710afb21033Fri, 23 Aug 2019 21:42:30 GMT\"0x8D72812CC709FD4\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:29 GMT", + "x-ms-client-request-id" : "9c52dded-6caf-448b-bd22-b08faa44d903", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquirelease0blobapitestacquireleasea6005710afb21033?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e3e98-201e-00c4-2ffb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:29 GMT", + "x-ms-client-request-id" : "deb3b7bd-d32e-411e-995d-c003e85e6da6" + }, + "Exception" : null + } ], + "variables" : [ "jtcacquirelease0blobapitestacquireleasea6005710afb21033", "javablobacquirelease1blobapitestacquireleasea604772846ef9" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestacquireleaseac[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestacquireleaseac[0].json new file mode 100644 index 0000000000000..00b5e40c3f70f --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestacquireleaseac[0].json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseac0blobapitestacquireleaseacfd55508419ecc3?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812CCB97A76\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e3f5a-201e-00c4-5cfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:29 GMT", + "x-ms-client-request-id" : "283a8e0d-5617-4266-9c93-b9bdca6331d8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseac0blobapitestacquireleaseacfd55508419ecc3/javablobacquireleaseac1blobapitestacquireleaseacfd530989054", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:30 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:29 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812CCBF2785\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e3f82-201e-00c4-7efb-594fb0000000", + "x-ms-client-request-id" : "18b9112c-e6e4-42e7-804b-044e7acdaad4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseac0blobapitestacquireleaseacfd55508419ecc3/javablobacquireleaseac1blobapitestacquireleaseacfd530989054?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812CCBF2785\"", + "x-ms-lease-id" : "6dea3a21-b439-49dc-a295-ef946c5583e6", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e3fa4-201e-00c4-1cfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:29 GMT", + "x-ms-client-request-id" : "2e6a04b6-7fa4-43fd-80d0-71bd6b4c4523" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcacquireleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e3fb6-201e-00c4-2bfb-594fb0000000", + "Body" : "jtcacquireleaseacjtcacquireleaseac0blobapitestacquireleaseacfd55508419ecc3Fri, 23 Aug 2019 21:42:30 GMT\"0x8D72812CCB97A76\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:29 GMT", + "x-ms-client-request-id" : "0806d701-c790-4e79-ab5e-f45cfd5dcc75", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseac0blobapitestacquireleaseacfd55508419ecc3?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e3fcc-201e-00c4-3efb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:29 GMT", + "x-ms-client-request-id" : "c8cdc8d6-6e92-4faf-8c76-1efc46b90130" + }, + "Exception" : null + } ], + "variables" : [ "jtcacquireleaseac0blobapitestacquireleaseacfd55508419ecc3", "javablobacquireleaseac1blobapitestacquireleaseacfd530989054" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestacquireleaseac[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestacquireleaseac[1].json new file mode 100644 index 0000000000000..2f90b446a7d55 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestacquireleaseac[1].json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseac0blobapitestacquireleaseac51d452346d166b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812CCD434EB\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e3fe7-201e-00c4-58fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:29 GMT", + "x-ms-client-request-id" : "f10b2be2-4bae-4770-b413-4f714b16cfa2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseac0blobapitestacquireleaseac51d452346d166b/javablobacquireleaseac1blobapitestacquireleaseac51d0223214c", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:30 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:29 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812CCEAFD49\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e4031-201e-00c4-10fb-594fb0000000", + "x-ms-client-request-id" : "f9beb8ac-cdfc-47a4-a8e4-0d8b1d3b1e10" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseac0blobapitestacquireleaseac51d452346d166b/javablobacquireleaseac1blobapitestacquireleaseac51d0223214c?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812CCEAFD49\"", + "x-ms-lease-id" : "80e1841a-2405-4d30-b5bd-48fdcc4a705c", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e4053-201e-00c4-2dfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:29 GMT", + "x-ms-client-request-id" : "f4e4c496-f50a-4add-bd92-69c8a0c64c89" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcacquireleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e4071-201e-00c4-46fb-594fb0000000", + "Body" : "jtcacquireleaseacjtcacquireleaseac0blobapitestacquireleaseac51d452346d166bFri, 23 Aug 2019 21:42:30 GMT\"0x8D72812CCD434EB\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:29 GMT", + "x-ms-client-request-id" : "47f070f8-3b91-4647-b340-903d16836eb8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseac0blobapitestacquireleaseac51d452346d166b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e4087-201e-00c4-57fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:30 GMT", + "x-ms-client-request-id" : "a4d20627-214b-4230-b0a9-ea3a90046cf2" + }, + "Exception" : null + } ], + "variables" : [ "jtcacquireleaseac0blobapitestacquireleaseac51d452346d166b", "javablobacquireleaseac1blobapitestacquireleaseac51d0223214c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestacquireleaseac[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestacquireleaseac[2].json new file mode 100644 index 0000000000000..b8f3e7e73da85 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestacquireleaseac[2].json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseac0blobapitestacquireleaseaccc571792bf5e8e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812CD02A345\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e40b3-201e-00c4-7cfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:30 GMT", + "x-ms-client-request-id" : "ebc63839-b69c-4eb1-b4d4-3c4e57125fab" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseac0blobapitestacquireleaseaccc571792bf5e8e/javablobacquireleaseac1blobapitestacquireleaseaccc504244e37", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:31 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:30 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812CD0A25BE\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e40d6-201e-00c4-19fb-594fb0000000", + "x-ms-client-request-id" : "b4fb3d64-8068-4a83-9bf4-e9045a58b3eb" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseac0blobapitestacquireleaseaccc571792bf5e8e/javablobacquireleaseac1blobapitestacquireleaseaccc504244e37?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812CD0A25BE\"", + "x-ms-lease-id" : "27293376-d536-486c-9ee7-bdde1982bd3c", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e40f5-201e-00c4-33fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:30 GMT", + "x-ms-client-request-id" : "6fae056f-b6af-4390-b761-8fb22bbb95c4" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcacquireleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e4119-201e-00c4-50fb-594fb0000000", + "Body" : "jtcacquireleaseacjtcacquireleaseac0blobapitestacquireleaseaccc571792bf5e8eFri, 23 Aug 2019 21:42:31 GMT\"0x8D72812CD02A345\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:30 GMT", + "x-ms-client-request-id" : "3dfcad3f-fb3d-45fd-917f-fc5b68bd37b3", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseac0blobapitestacquireleaseaccc571792bf5e8e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e4144-201e-00c4-76fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:30 GMT", + "x-ms-client-request-id" : "a63a7f6e-b724-4417-98fd-bddb245c58e6" + }, + "Exception" : null + } ], + "variables" : [ "jtcacquireleaseac0blobapitestacquireleaseaccc571792bf5e8e", "javablobacquireleaseac1blobapitestacquireleaseaccc504244e37" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestacquireleaseac[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestacquireleaseac[3].json new file mode 100644 index 0000000000000..dfea126941caa --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestacquireleaseac[3].json @@ -0,0 +1,138 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseac0blobapitestacquireleaseac96d83855a71f01?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812CD1FF66E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e4166-201e-00c4-14fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:30 GMT", + "x-ms-client-request-id" : "a94dc5e8-3588-49aa-a4fc-ba2d73e180f5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseac0blobapitestacquireleaseac96d83855a71f01/javablobacquireleaseac1blobapitestacquireleaseac96d41702219", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:31 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:30 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812CD255584\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e4187-201e-00c4-32fb-594fb0000000", + "x-ms-client-request-id" : "8e264940-181e-4c97-a4d2-14e9c4136a62" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseac0blobapitestacquireleaseac96d83855a71f01/javablobacquireleaseac1blobapitestacquireleaseac96d41702219", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:31 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:30 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812CD255584\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:31 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51e41b7-201e-00c4-5bfb-594fb0000000", + "x-ms-client-request-id" : "04ec3333-e7a5-4bf4-990a-4419f47bc3cd", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseac0blobapitestacquireleaseac96d83855a71f01/javablobacquireleaseac1blobapitestacquireleaseac96d41702219?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812CD255584\"", + "x-ms-lease-id" : "936f8985-512e-460f-a443-befb5f970b1c", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e41d6-201e-00c4-75fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:30 GMT", + "x-ms-client-request-id" : "b0e30e67-15f1-471a-b7cc-6c1a9cde1b5d" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcacquireleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e41f1-201e-00c4-0efb-594fb0000000", + "Body" : "jtcacquireleaseacjtcacquireleaseac0blobapitestacquireleaseac96d83855a71f01Fri, 23 Aug 2019 21:42:31 GMT\"0x8D72812CD1FF66E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:30 GMT", + "x-ms-client-request-id" : "c584366f-79c2-4980-a6c0-7a0043a827dd", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseac0blobapitestacquireleaseac96d83855a71f01?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e420b-201e-00c4-26fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:30 GMT", + "x-ms-client-request-id" : "1a6f4aff-cd5f-4ea3-8a42-3217f13dfcf7" + }, + "Exception" : null + } ], + "variables" : [ "jtcacquireleaseac0blobapitestacquireleaseac96d83855a71f01", "javablobacquireleaseac1blobapitestacquireleaseac96d41702219" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestacquireleaseac[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestacquireleaseac[4].json new file mode 100644 index 0000000000000..e430c7c460465 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestacquireleaseac[4].json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseac0blobapitestacquireleaseac940259972a026d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812CD42C92A\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e4240-201e-00c4-57fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:30 GMT", + "x-ms-client-request-id" : "cacaf6f7-dc07-4c6f-8780-c92ad6c926d3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseac0blobapitestacquireleaseac940259972a026d/javablobacquireleaseac1blobapitestacquireleaseac9401957317a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:31 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:30 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812CD482869\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e4257-201e-00c4-6cfb-594fb0000000", + "x-ms-client-request-id" : "957118a3-979d-4374-ab77-f2bf2c9df818" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseac0blobapitestacquireleaseac940259972a026d/javablobacquireleaseac1blobapitestacquireleaseac9401957317a?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812CD482869\"", + "x-ms-lease-id" : "89b0cb1f-9eb1-4ef2-8bd8-412692d35f20", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e4270-201e-00c4-03fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:30 GMT", + "x-ms-client-request-id" : "592f67ed-730b-4d7f-9a5a-7b88d415b172" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcacquireleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e4282-201e-00c4-12fb-594fb0000000", + "Body" : "jtcacquireleaseacjtcacquireleaseac0blobapitestacquireleaseac940259972a026dFri, 23 Aug 2019 21:42:31 GMT\"0x8D72812CD42C92A\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:30 GMT", + "x-ms-client-request-id" : "6daa959f-3b62-4cf5-9331-75cc3ef19079", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseac0blobapitestacquireleaseac940259972a026d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e4292-201e-00c4-22fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:30 GMT", + "x-ms-client-request-id" : "be8bc96a-9c24-45af-9699-e11412742dfa" + }, + "Exception" : null + } ], + "variables" : [ "jtcacquireleaseac0blobapitestacquireleaseac940259972a026d", "javablobacquireleaseac1blobapitestacquireleaseac9401957317a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestacquireleaseacfail[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestacquireleaseacfail[0].json new file mode 100644 index 0000000000000..d4296000e57d0 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestacquireleaseacfail[0].json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseacfail0blobapitestacquireleaseacfailbff174771a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812CD5B8763\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e42ae-201e-00c4-3afb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:30 GMT", + "x-ms-client-request-id" : "edc043c8-ff7f-4422-8136-d492609a0434" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseacfail0blobapitestacquireleaseacfailbff174771a/javablobacquireleaseacfail1354168905dcd705ff43d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:31 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:30 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812CD624687\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e42c4-201e-00c4-4efb-594fb0000000", + "x-ms-client-request-id" : "0784dff9-224a-4321-8ab7-dc78b797a8bd" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseacfail0blobapitestacquireleaseacfailbff174771a/javablobacquireleaseacfail1354168905dcd705ff43d?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "d51e42de-201e-00c4-62fb-594fb0000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:d51e42de-201e-00c4-62fb-594fb0000000\nTime:2019-08-23T21:42:31.6835339Z", + "Date" : "Fri, 23 Aug 2019 21:42:30 GMT", + "x-ms-client-request-id" : "63e9b687-931f-42dd-95d9-6b69d48668b8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcacquireleaseacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e42ec-201e-00c4-70fb-594fb0000000", + "Body" : "jtcacquireleaseacfailjtcacquireleaseacfail0blobapitestacquireleaseacfailbff174771aFri, 23 Aug 2019 21:42:31 GMT\"0x8D72812CD5B8763\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:30 GMT", + "x-ms-client-request-id" : "a1dc2d19-df5a-4d05-8d59-16d7bf4b8c29", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseacfail0blobapitestacquireleaseacfailbff174771a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e42f7-201e-00c4-7bfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:30 GMT", + "x-ms-client-request-id" : "0850d33b-dab5-4b43-a31d-22033a0d4ff7" + }, + "Exception" : null + } ], + "variables" : [ "jtcacquireleaseacfail0blobapitestacquireleaseacfailbff174771a", "javablobacquireleaseacfail1354168905dcd705ff43d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestacquireleaseacfail[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestacquireleaseacfail[1].json new file mode 100644 index 0000000000000..f07843548ab88 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestacquireleaseacfail[1].json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseacfail0blobapitestacquireleaseacfailba7411827b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812CD75CC83\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e430a-201e-00c4-0cfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:30 GMT", + "x-ms-client-request-id" : "4c691ae5-a0cb-4d02-b16c-235fdbebee0d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseacfail0blobapitestacquireleaseacfailba7411827b/javablobacquireleaseacfail10171250bae8d4e78542c", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:31 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:30 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812CD7B52FE\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e4325-201e-00c4-22fb-594fb0000000", + "x-ms-client-request-id" : "59884a4d-3f7b-43a3-bd48-739f7f1ea249" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseacfail0blobapitestacquireleaseacfailba7411827b/javablobacquireleaseacfail10171250bae8d4e78542c?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "d51e4342-201e-00c4-39fb-594fb0000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:d51e4342-201e-00c4-39fb-594fb0000000\nTime:2019-08-23T21:42:31.8486912Z", + "Date" : "Fri, 23 Aug 2019 21:42:30 GMT", + "x-ms-client-request-id" : "81e31f21-8554-4296-9221-d723e25fe4be", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcacquireleaseacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e434f-201e-00c4-43fb-594fb0000000", + "Body" : "jtcacquireleaseacfailjtcacquireleaseacfail0blobapitestacquireleaseacfailba7411827bFri, 23 Aug 2019 21:42:31 GMT\"0x8D72812CD75CC83\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:30 GMT", + "x-ms-client-request-id" : "1345951d-f36f-4576-9d53-d911337f2c25", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseacfail0blobapitestacquireleaseacfailba7411827b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e4360-201e-00c4-52fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:30 GMT", + "x-ms-client-request-id" : "c52027a7-9526-45f9-b341-559694613ae4" + }, + "Exception" : null + } ], + "variables" : [ "jtcacquireleaseacfail0blobapitestacquireleaseacfailba7411827b", "javablobacquireleaseacfail10171250bae8d4e78542c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestacquireleaseacfail[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestacquireleaseacfail[2].json new file mode 100644 index 0000000000000..7a077b67c2903 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestacquireleaseacfail[2].json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseacfail0blobapitestacquireleaseacfaild0c444592e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812CD8EB1CA\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e437b-201e-00c4-6cfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:30 GMT", + "x-ms-client-request-id" : "964c4306-8bc4-4398-b67e-1d80a7d90756" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseacfail0blobapitestacquireleaseacfaild0c444592e/javablobacquireleaseacfail1649534b2e3822f04e4f6", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:31 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:31 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812CD941135\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e4396-201e-00c4-04fb-594fb0000000", + "x-ms-client-request-id" : "a9f186d5-ac26-4cc1-b1e5-dd8c7b2ac423" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseacfail0blobapitestacquireleaseacfaild0c444592e/javablobacquireleaseacfail1649534b2e3822f04e4f6?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "d51e43ba-201e-00c4-21fb-594fb0000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:d51e43ba-201e-00c4-21fb-594fb0000000\nTime:2019-08-23T21:42:32.0048405Z", + "Date" : "Fri, 23 Aug 2019 21:42:31 GMT", + "x-ms-client-request-id" : "aef54ed5-2207-48ef-b047-25c38a37f7ab", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcacquireleaseacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e43d3-201e-00c4-33fb-594fb0000000", + "Body" : "jtcacquireleaseacfailjtcacquireleaseacfail0blobapitestacquireleaseacfaild0c444592eFri, 23 Aug 2019 21:42:31 GMT\"0x8D72812CD8EB1CA\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:31 GMT", + "x-ms-client-request-id" : "c24c1f7f-0a34-4bab-8dfe-0e956f47e0b4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseacfail0blobapitestacquireleaseacfaild0c444592e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e43e6-201e-00c4-43fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:31 GMT", + "x-ms-client-request-id" : "55f533b7-1f81-4f79-93a2-f926073a4e92" + }, + "Exception" : null + } ], + "variables" : [ "jtcacquireleaseacfail0blobapitestacquireleaseacfaild0c444592e", "javablobacquireleaseacfail1649534b2e3822f04e4f6" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestacquireleaseacfail[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestacquireleaseacfail[3].json new file mode 100644 index 0000000000000..be08736e07adf --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestacquireleaseacfail[3].json @@ -0,0 +1,138 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseacfail0blobapitestacquireleaseacfailb3170711b0?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812CDA721C6\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:32 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e4403-201e-00c4-5bfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:31 GMT", + "x-ms-client-request-id" : "68b811cc-8bf3-4262-aa29-ea3b16798ac0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseacfail0blobapitestacquireleaseacfailb3170711b0/javablobacquireleaseacfail144762c491b73d335445f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:32 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:31 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812CDAD1D97\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e4415-201e-00c4-68fb-594fb0000000", + "x-ms-client-request-id" : "cfc88282-8bc1-419c-9d14-e5241f302435" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseacfail0blobapitestacquireleaseacfailb3170711b0/javablobacquireleaseacfail144762c491b73d335445f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:32 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:31 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812CDAD1D97\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:32 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51e4431-201e-00c4-80fb-594fb0000000", + "x-ms-client-request-id" : "52535656-ab2c-40fd-a9b3-172aa697e8f8", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseacfail0blobapitestacquireleaseacfailb3170711b0/javablobacquireleaseacfail144762c491b73d335445f?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "d51e444b-201e-00c4-1afb-594fb0000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:d51e444b-201e-00c4-1afb-594fb0000000\nTime:2019-08-23T21:42:32.2010272Z", + "Date" : "Fri, 23 Aug 2019 21:42:31 GMT", + "x-ms-client-request-id" : "c9977e93-2b88-4cd4-baaa-be97cf445373", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcacquireleaseacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e4461-201e-00c4-2ffb-594fb0000000", + "Body" : "jtcacquireleaseacfailjtcacquireleaseacfail0blobapitestacquireleaseacfailb3170711b0Fri, 23 Aug 2019 21:42:32 GMT\"0x8D72812CDA721C6\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:31 GMT", + "x-ms-client-request-id" : "51e71f3f-3513-42e4-98ac-f6183545a387", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseacfail0blobapitestacquireleaseacfailb3170711b0?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e4473-201e-00c4-41fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:31 GMT", + "x-ms-client-request-id" : "e9dcdb01-1066-4a47-ae11-62dad2e6b41e" + }, + "Exception" : null + } ], + "variables" : [ "jtcacquireleaseacfail0blobapitestacquireleaseacfailb3170711b0", "javablobacquireleaseacfail144762c491b73d335445f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestacquireleaseerror.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestacquireleaseerror.json new file mode 100644 index 0000000000000..1196fab548287 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestacquireleaseerror.json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseerror0blobapitestacquireleaseerrorb43019734e2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812CDC4EA30\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:32 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e449a-201e-00c4-66fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:31 GMT", + "x-ms-client-request-id" : "e10622cb-eb18-447c-949d-3dea2f4b7b6d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseerror0blobapitestacquireleaseerrorb43019734e2/javablobacquireleaseerror1blobapitestacquireleaseerrorb4358406", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:32 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:31 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812CDCA70CF\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e44b5-201e-00c4-7dfb-594fb0000000", + "x-ms-client-request-id" : "4d66b108-ca0a-4da7-9f0f-af71da672aa4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseerror0blobapitestacquireleaseerrorb43019734e2/javablobacquireleaseerror2blobapitestacquireleaseerrorb4352986?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "BlobNotFound", + "retry-after" : "0", + "Content-Length" : "215", + "StatusCode" : "404", + "x-ms-request-id" : "d51e44e1-201e-00c4-22fb-594fb0000000", + "Body" : "BlobNotFoundThe specified blob does not exist.\nRequestId:d51e44e1-201e-00c4-22fb-594fb0000000\nTime:2019-08-23T21:42:32.3952124Z", + "Date" : "Fri, 23 Aug 2019 21:42:31 GMT", + "x-ms-client-request-id" : "291d46ec-8e42-4617-ad56-6f27256851ab", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcacquireleaseerror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e44f2-201e-00c4-33fb-594fb0000000", + "Body" : "jtcacquireleaseerrorjtcacquireleaseerror0blobapitestacquireleaseerrorb43019734e2Fri, 23 Aug 2019 21:42:32 GMT\"0x8D72812CDC4EA30\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:31 GMT", + "x-ms-client-request-id" : "4eef1114-9169-4d1f-bad0-9e0dd1bf56e0", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseerror0blobapitestacquireleaseerrorb43019734e2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e4503-201e-00c4-44fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:31 GMT", + "x-ms-client-request-id" : "5902c758-e532-4e57-9a1f-30158d7d8445" + }, + "Exception" : null + } ], + "variables" : [ "jtcacquireleaseerror0blobapitestacquireleaseerrorb43019734e2", "javablobacquireleaseerror1blobapitestacquireleaseerrorb4358406", "javablobacquireleaseerror2blobapitestacquireleaseerrorb4352986" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestacquireleasemin.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestacquireleasemin.json new file mode 100644 index 0000000000000..531722099e4da --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestacquireleasemin.json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleasemin0blobapitestacquireleasemin2b40585344f53?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812CC94F99A\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e3ec6-201e-00c4-56fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:29 GMT", + "x-ms-client-request-id" : "075bdbd1-8488-4f61-8531-0fad266279f1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleasemin0blobapitestacquireleasemin2b40585344f53/javablobacquireleasemin1blobapitestacquireleasemin2b4048313f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:30 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:29 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812CCA3D0A1\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e3f13-201e-00c4-19fb-594fb0000000", + "x-ms-client-request-id" : "5c0a2e68-b996-4de2-a8b5-94529d0d4f21" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleasemin0blobapitestacquireleasemin2b40585344f53/javablobacquireleasemin1blobapitestacquireleasemin2b4048313f?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812CCA3D0A1\"", + "x-ms-lease-id" : "70da0f51-b20d-4e36-a6f3-9d08c882fc8f", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e3f2a-201e-00c4-2ffb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:29 GMT", + "x-ms-client-request-id" : "b62a63cd-7dc4-4582-9c5f-c0ee5e70efc2" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcacquireleasemin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e3f39-201e-00c4-3efb-594fb0000000", + "Body" : "jtcacquireleaseminjtcacquireleasemin0blobapitestacquireleasemin2b40585344f53Fri, 23 Aug 2019 21:42:30 GMT\"0x8D72812CC94F99A\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:29 GMT", + "x-ms-client-request-id" : "0c16fc77-5a39-4d58-b382-c8f2b1ae26f2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleasemin0blobapitestacquireleasemin2b40585344f53?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e3f4e-201e-00c4-50fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:29 GMT", + "x-ms-client-request-id" : "128b2375-1133-472d-afc6-56eeb9bfbdef" + }, + "Exception" : null + } ], + "variables" : [ "jtcacquireleasemin0blobapitestacquireleasemin2b40585344f53", "javablobacquireleasemin1blobapitestacquireleasemin2b4048313f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestblobdeleteerror.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestblobdeleteerror.json new file mode 100644 index 0000000000000..37c4e8e4891d2 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestblobdeleteerror.json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobdeleteerror0blobapitestblobdeleteerrore4f7201752027?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812ED718ACE\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51eb7b5-201e-00c4-60fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:25 GMT", + "x-ms-client-request-id" : "16d22e92-cee1-4719-9426-b35df82488a4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobdeleteerror0blobapitestblobdeleteerrore4f7201752027/javablobblobdeleteerror1blobapitestblobdeleteerrore4f9522209", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:25 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:25 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812ED78565E\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51eb7c8-201e-00c4-72fb-594fb0000000", + "x-ms-client-request-id" : "98360cf8-6d01-465a-9716-c57d32d66687" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobdeleteerror0blobapitestblobdeleteerrore4f7201752027/javablobblobdeleteerror2blobapitestblobdeleteerrore4f6111107", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "BlobNotFound", + "retry-after" : "0", + "Content-Length" : "215", + "StatusCode" : "404", + "x-ms-request-id" : "d51eb7e1-201e-00c4-08fb-594fb0000000", + "Body" : "BlobNotFoundThe specified blob does not exist.\nRequestId:d51eb7e1-201e-00c4-08fb-594fb0000000\nTime:2019-08-23T21:43:25.5168941Z", + "Date" : "Fri, 23 Aug 2019 21:43:25 GMT", + "x-ms-client-request-id" : "1e96fcc9-45ff-4dd7-b7c8-158318c5f6ae", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcblobdeleteerror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51eb7eb-201e-00c4-12fb-594fb0000000", + "Body" : "jtcblobdeleteerrorjtcblobdeleteerror0blobapitestblobdeleteerrore4f7201752027Fri, 23 Aug 2019 21:43:25 GMT\"0x8D72812ED718ACE\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:25 GMT", + "x-ms-client-request-id" : "1db553d5-1367-4c29-bccb-9d8e12e9e5f6", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobdeleteerror0blobapitestblobdeleteerrore4f7201752027?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51eb7f8-201e-00c4-1efb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:25 GMT", + "x-ms-client-request-id" : "d4cb61d1-673d-4630-a1b6-6ee05027c798" + }, + "Exception" : null + } ], + "variables" : [ "jtcblobdeleteerror0blobapitestblobdeleteerrore4f7201752027", "javablobblobdeleteerror1blobapitestblobdeleteerrore4f9522209", "javablobblobdeleteerror2blobapitestblobdeleteerrore4f6111107" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestbreaklease[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestbreaklease[0].json new file mode 100644 index 0000000000000..f8aa991ec309b --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestbreaklease[0].json @@ -0,0 +1,159 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreaklease0blobapitestbreaklease66493738f83692565c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DA8AF0F6\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e7543-201e-00c4-64fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:52 GMT", + "x-ms-client-request-id" : "50302840-a412-44d0-8ed7-6c50fbcfb582" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreaklease0blobapitestbreaklease66493738f83692565c/javablobbreaklease1blobapitestbreaklease66458790cf335de", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:53 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:52 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812DA90A39B\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e7559-201e-00c4-77fb-594fb0000000", + "x-ms-client-request-id" : "702e0702-f1bd-4f71-829d-f20576aeabe4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreaklease0blobapitestbreaklease66493738f83692565c/javablobbreaklease1blobapitestbreaklease66458790cf335de?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DA90A39B\"", + "x-ms-lease-id" : "4d4873f6-a085-4ab2-9403-35bbfdb1350d", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e756c-201e-00c4-06fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:52 GMT", + "x-ms-client-request-id" : "c3cc7abf-c667-49ba-9d03-2d9671a57a41" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreaklease0blobapitestbreaklease66493738f83692565c/javablobbreaklease1blobapitestbreaklease66458790cf335de?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DA90A39B\"", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e757a-201e-00c4-13fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:52 GMT", + "x-ms-client-request-id" : "72d38bba-846b-43ba-8307-da908e31ec65" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreaklease0blobapitestbreaklease66493738f83692565c/javablobbreaklease1blobapitestbreaklease66458790cf335de", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "broken", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:53 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:52 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812DA90A39B\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:53 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51e7580-201e-00c4-19fb-594fb0000000", + "x-ms-client-request-id" : "31536ea1-9e11-4ebb-901c-80884a249092", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcbreaklease&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e7591-201e-00c4-27fb-594fb0000000", + "Body" : "jtcbreakleasejtcbreaklease0blobapitestbreaklease66493738f83692565cFri, 23 Aug 2019 21:42:53 GMT\"0x8D72812DA8AF0F6\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:52 GMT", + "x-ms-client-request-id" : "1b4f6293-ca99-4134-b0f0-2aca3566c036", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreaklease0blobapitestbreaklease66493738f83692565c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e759b-201e-00c4-31fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:52 GMT", + "x-ms-client-request-id" : "df521209-bdad-46e6-a27e-f0606d91a129" + }, + "Exception" : null + } ], + "variables" : [ "jtcbreaklease0blobapitestbreaklease66493738f83692565c", "javablobbreaklease1blobapitestbreaklease66458790cf335de", "4d4873f6-a085-4ab2-9403-35bbfdb1350d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestbreaklease[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestbreaklease[1].json new file mode 100644 index 0000000000000..0e83eac581058 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestbreaklease[1].json @@ -0,0 +1,159 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreaklease0blobapitestbreakleaseb1110847b6fc9e39a5?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DAAE6013\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e75a3-201e-00c4-38fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:52 GMT", + "x-ms-client-request-id" : "622e0633-5999-4a0f-967b-7a3096280c11" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreaklease0blobapitestbreakleaseb1110847b6fc9e39a5/javablobbreaklease1blobapitestbreakleaseb1152559e5eec6e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:54 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:53 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812DAB4881D\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e75ab-201e-00c4-3ffb-594fb0000000", + "x-ms-client-request-id" : "132549d0-64c3-4e7c-9769-984ec8878931" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreaklease0blobapitestbreakleaseb1110847b6fc9e39a5/javablobbreaklease1blobapitestbreakleaseb1152559e5eec6e?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DAB4881D\"", + "x-ms-lease-id" : "92cafa1f-1e92-4228-a36e-d5ef70432487", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e75c5-201e-00c4-55fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:53 GMT", + "x-ms-client-request-id" : "68c1d98b-8bc1-4c71-8c4f-30e5726c5e8b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreaklease0blobapitestbreakleaseb1110847b6fc9e39a5/javablobbreaklease1blobapitestbreakleaseb1152559e5eec6e?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DAB4881D\"", + "x-ms-lease-time" : "20", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e75db-201e-00c4-68fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:53 GMT", + "x-ms-client-request-id" : "d212ddfd-f4da-4d9f-96e3-b393092e480b" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreaklease0blobapitestbreakleaseb1110847b6fc9e39a5/javablobbreaklease1blobapitestbreakleaseb1152559e5eec6e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "locked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "breaking", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:54 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:53 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812DAB4881D\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:54 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51e75f3-201e-00c4-7dfb-594fb0000000", + "x-ms-client-request-id" : "2745ebcc-6272-4f4e-b479-abf82412c8fb", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcbreaklease&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e7602-201e-00c4-0afb-594fb0000000", + "Body" : "jtcbreakleasejtcbreaklease0blobapitestbreakleaseb1110847b6fc9e39a5Fri, 23 Aug 2019 21:42:53 GMT\"0x8D72812DAAE6013\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:53 GMT", + "x-ms-client-request-id" : "881d940f-8941-4718-8591-edd6266aa9c5", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreaklease0blobapitestbreakleaseb1110847b6fc9e39a5?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e760f-201e-00c4-16fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:53 GMT", + "x-ms-client-request-id" : "d303495a-cfba-4da2-835b-effddf15f82a" + }, + "Exception" : null + } ], + "variables" : [ "jtcbreaklease0blobapitestbreakleaseb1110847b6fc9e39a5", "javablobbreaklease1blobapitestbreakleaseb1152559e5eec6e", "92cafa1f-1e92-4228-a36e-d5ef70432487" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestbreaklease[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestbreaklease[2].json new file mode 100644 index 0000000000000..b9fbbc7ce16f0 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestbreaklease[2].json @@ -0,0 +1,159 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreaklease0blobapitestbreakleasef0f320645c09a3c667?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DAD10BC6\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e7626-201e-00c4-29fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:53 GMT", + "x-ms-client-request-id" : "68cb7021-3ca4-4552-bafe-05a3c29d64c7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreaklease0blobapitestbreakleasef0f320645c09a3c667/javablobbreaklease1blobapitestbreakleasef0f4374709bb320", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:54 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:53 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812DAD6BE84\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e7633-201e-00c4-33fb-594fb0000000", + "x-ms-client-request-id" : "878ff518-d111-4c33-9036-f6cee0e6cce2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreaklease0blobapitestbreakleasef0f320645c09a3c667/javablobbreaklease1blobapitestbreakleasef0f4374709bb320?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DAD6BE84\"", + "x-ms-lease-id" : "899a8dca-5cb6-48dd-9114-5549418c3918", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e763e-201e-00c4-3cfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:53 GMT", + "x-ms-client-request-id" : "b4d1bd75-f9fb-42aa-a681-dcb130201db8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreaklease0blobapitestbreakleasef0f320645c09a3c667/javablobbreaklease1blobapitestbreakleasef0f4374709bb320?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DAD6BE84\"", + "x-ms-lease-time" : "15", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e764b-201e-00c4-47fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:53 GMT", + "x-ms-client-request-id" : "f0c3bb60-da93-41b4-93c9-1c4398679e44" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreaklease0blobapitestbreakleasef0f320645c09a3c667/javablobbreaklease1blobapitestbreakleasef0f4374709bb320", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "locked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "breaking", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:54 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:53 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812DAD6BE84\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:54 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51e765c-201e-00c4-57fb-594fb0000000", + "x-ms-client-request-id" : "f0b2471e-61f8-40c9-bfb1-7e848fa34b21", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcbreaklease&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e7667-201e-00c4-60fb-594fb0000000", + "Body" : "jtcbreakleasejtcbreaklease0blobapitestbreakleasef0f320645c09a3c667Fri, 23 Aug 2019 21:42:54 GMT\"0x8D72812DAD10BC6\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:53 GMT", + "x-ms-client-request-id" : "bc03341a-6036-4d9b-94db-ff99e69719de", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreaklease0blobapitestbreakleasef0f320645c09a3c667?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e766d-201e-00c4-65fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:53 GMT", + "x-ms-client-request-id" : "3c420700-d9ee-48e9-a1db-ed92a8064b1b" + }, + "Exception" : null + } ], + "variables" : [ "jtcbreaklease0blobapitestbreakleasef0f320645c09a3c667", "javablobbreaklease1blobapitestbreakleasef0f4374709bb320", "899a8dca-5cb6-48dd-9114-5549418c3918" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestbreakleaseac[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestbreakleaseac[0].json new file mode 100644 index 0000000000000..bcb4649b34c24 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestbreakleaseac[0].json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseac0blobapitestbreakleaseac35f31111c780d138?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DB152A43\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e76c7-201e-00c4-38fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:53 GMT", + "x-ms-client-request-id" : "7da71b90-c560-4389-9c07-47c97462a8b4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseac0blobapitestbreakleaseac35f31111c780d138/javablobbreakleaseac1blobapitestbreakleaseac35f53343b1cea", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:54 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:53 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812DB1BA09D\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e76d4-201e-00c4-42fb-594fb0000000", + "x-ms-client-request-id" : "d236b30f-1600-4f6a-bdac-157ed70f3c5b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseac0blobapitestbreakleaseac35f31111c780d138/javablobbreakleaseac1blobapitestbreakleaseac35f53343b1cea?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DB1BA09D\"", + "x-ms-lease-id" : "f1710955-1aa9-4cc6-9a75-de2e2620df60", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e76dc-201e-00c4-4afb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:53 GMT", + "x-ms-client-request-id" : "fdac5a7b-b46a-4bd5-b475-61c293e08c3a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseac0blobapitestbreakleaseac35f31111c780d138/javablobbreakleaseac1blobapitestbreakleaseac35f53343b1cea?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DB1BA09D\"", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e76e1-201e-00c4-4ffb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:53 GMT", + "x-ms-client-request-id" : "fc287136-164a-432d-b5c6-861d291fd09c" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcbreakleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e76e7-201e-00c4-55fb-594fb0000000", + "Body" : "jtcbreakleaseacjtcbreakleaseac0blobapitestbreakleaseac35f31111c780d138Fri, 23 Aug 2019 21:42:54 GMT\"0x8D72812DB152A43\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:53 GMT", + "x-ms-client-request-id" : "701378a9-05f4-461c-b6ba-e9336a3b4cd8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseac0blobapitestbreakleaseac35f31111c780d138?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e76f1-201e-00c4-5dfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:53 GMT", + "x-ms-client-request-id" : "b70279c3-d2bd-4d66-acdd-c7fcfb16dc76" + }, + "Exception" : null + } ], + "variables" : [ "jtcbreakleaseac0blobapitestbreakleaseac35f31111c780d138", "javablobbreakleaseac1blobapitestbreakleaseac35f53343b1cea" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestbreakleaseac[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestbreakleaseac[1].json new file mode 100644 index 0000000000000..89beae35ac259 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestbreakleaseac[1].json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseac0blobapitestbreakleaseace851746088e7e79f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DB4B147F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e7732-201e-00c4-18fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:54 GMT", + "x-ms-client-request-id" : "0dca7dc1-a3c3-47da-b29d-cade1423376b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseac0blobapitestbreakleaseace851746088e7e79f/javablobbreakleaseac1blobapitestbreakleaseace8556603a4400", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:55 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:54 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812DB520037\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e7748-201e-00c4-29fb-594fb0000000", + "x-ms-client-request-id" : "707233bf-e3a9-4a85-99cc-d37af7ab5ece" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseac0blobapitestbreakleaseace851746088e7e79f/javablobbreakleaseac1blobapitestbreakleaseace8556603a4400?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DB520037\"", + "x-ms-lease-id" : "e37b7ad2-05e4-4230-b474-cb238ed867de", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e7766-201e-00c4-45fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:54 GMT", + "x-ms-client-request-id" : "eebda213-becb-425c-922b-f518966b6885" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseac0blobapitestbreakleaseace851746088e7e79f/javablobbreakleaseac1blobapitestbreakleaseace8556603a4400?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DB520037\"", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e7797-201e-00c4-6efb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:54 GMT", + "x-ms-client-request-id" : "f1748161-4df1-474d-90c7-cfbf61f929a0" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcbreakleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e77a4-201e-00c4-7afb-594fb0000000", + "Body" : "jtcbreakleaseacjtcbreakleaseac0blobapitestbreakleaseace851746088e7e79fFri, 23 Aug 2019 21:42:54 GMT\"0x8D72812DB4B147F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:54 GMT", + "x-ms-client-request-id" : "68acb37f-8f0e-4baf-973e-9cf8acb7e032", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseac0blobapitestbreakleaseace851746088e7e79f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e77ac-201e-00c4-01fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:54 GMT", + "x-ms-client-request-id" : "5ce2bb15-7845-4d85-a9db-813f99930543" + }, + "Exception" : null + } ], + "variables" : [ "jtcbreakleaseac0blobapitestbreakleaseace851746088e7e79f", "javablobbreakleaseac1blobapitestbreakleaseace8556603a4400" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestbreakleaseac[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestbreakleaseac[2].json new file mode 100644 index 0000000000000..e98cfdfa3f8e1 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestbreakleaseac[2].json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseac0blobapitestbreakleaseaca6b2232901baaeef?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DB74033E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e77c6-201e-00c4-16fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:54 GMT", + "x-ms-client-request-id" : "b1c0a8d6-930c-4e69-8352-a2016f1e75b9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseac0blobapitestbreakleaseaca6b2232901baaeef/javablobbreakleaseac1blobapitestbreakleaseaca6b6902787eaa", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:55 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:54 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812DB79B638\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e77da-201e-00c4-24fb-594fb0000000", + "x-ms-client-request-id" : "66f2c859-421d-47e8-8a9d-fe3a4b563b7d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseac0blobapitestbreakleaseaca6b2232901baaeef/javablobbreakleaseac1blobapitestbreakleaseaca6b6902787eaa?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DB79B638\"", + "x-ms-lease-id" : "8ff74604-369c-4eb2-8d8f-6992f4f02cf7", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e77e7-201e-00c4-30fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:54 GMT", + "x-ms-client-request-id" : "5d30fc51-0c60-434b-98c1-34b725a8991e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseac0blobapitestbreakleaseaca6b2232901baaeef/javablobbreakleaseac1blobapitestbreakleaseaca6b6902787eaa?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DB79B638\"", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e77ff-201e-00c4-43fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:54 GMT", + "x-ms-client-request-id" : "74df1882-4899-4d19-b46d-9efdc3d54d5e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcbreakleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e7818-201e-00c4-54fb-594fb0000000", + "Body" : "jtcbreakleaseacjtcbreakleaseac0blobapitestbreakleaseaca6b2232901baaeefFri, 23 Aug 2019 21:42:55 GMT\"0x8D72812DB74033E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:54 GMT", + "x-ms-client-request-id" : "11786fa6-ee94-449f-8d99-86fe7a7e7417", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseac0blobapitestbreakleaseaca6b2232901baaeef?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e781d-201e-00c4-59fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:54 GMT", + "x-ms-client-request-id" : "a2dff09c-5d99-47b9-947e-2ede3cd807ba" + }, + "Exception" : null + } ], + "variables" : [ "jtcbreakleaseac0blobapitestbreakleaseaca6b2232901baaeef", "javablobbreakleaseac1blobapitestbreakleaseaca6b6902787eaa" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestbreakleaseac[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestbreakleaseac[3].json new file mode 100644 index 0000000000000..109ddeb607081 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestbreakleaseac[3].json @@ -0,0 +1,159 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseac0blobapitestbreakleaseacfca6082567e2b25c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DB9F155D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e7854-201e-00c4-06fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:54 GMT", + "x-ms-client-request-id" : "e73b4686-5557-43dd-987a-243b28e5e4b4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseac0blobapitestbreakleaseacfca6082567e2b25c/javablobbreakleaseac1blobapitestbreakleaseacfca721495f014", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:55 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:54 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812DBA4532A\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e7864-201e-00c4-13fb-594fb0000000", + "x-ms-client-request-id" : "19e6ecdd-6f03-4989-8963-8c0aa715a977" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseac0blobapitestbreakleaseacfca6082567e2b25c/javablobbreakleaseac1blobapitestbreakleaseacfca721495f014", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:55 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:54 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812DBA4532A\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:55 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51e7870-201e-00c4-1cfb-594fb0000000", + "x-ms-client-request-id" : "0057f368-b290-45ed-8ffb-1e6d425108b7", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseac0blobapitestbreakleaseacfca6082567e2b25c/javablobbreakleaseac1blobapitestbreakleaseacfca721495f014?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DBA4532A\"", + "x-ms-lease-id" : "48ed948b-1a9d-45e0-b04b-3078596c7dfd", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e787c-201e-00c4-27fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:54 GMT", + "x-ms-client-request-id" : "7dce2d27-be6c-41d6-9c38-a76a6376cfca" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseac0blobapitestbreakleaseacfca6082567e2b25c/javablobbreakleaseac1blobapitestbreakleaseacfca721495f014?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DBA4532A\"", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e788b-201e-00c4-35fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:54 GMT", + "x-ms-client-request-id" : "f0a15c8d-28c3-4a08-9bf8-0882b8cf65c3" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcbreakleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e7896-201e-00c4-3dfb-594fb0000000", + "Body" : "jtcbreakleaseacjtcbreakleaseac0blobapitestbreakleaseacfca6082567e2b25cFri, 23 Aug 2019 21:42:55 GMT\"0x8D72812DB9F155D\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:54 GMT", + "x-ms-client-request-id" : "01193186-58e0-4a3e-9586-7409ebe55586", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseac0blobapitestbreakleaseacfca6082567e2b25c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e789d-201e-00c4-43fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:54 GMT", + "x-ms-client-request-id" : "59804776-f8aa-439e-84e6-0df1e9b39a79" + }, + "Exception" : null + } ], + "variables" : [ "jtcbreakleaseac0blobapitestbreakleaseacfca6082567e2b25c", "javablobbreakleaseac1blobapitestbreakleaseacfca721495f014" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestbreakleaseac[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestbreakleaseac[4].json new file mode 100644 index 0000000000000..4d76e63133ca4 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestbreakleaseac[4].json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseac0blobapitestbreakleaseac39008963a874fa92?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DBC0D66D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e78b5-201e-00c4-55fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:54 GMT", + "x-ms-client-request-id" : "01099999-dfbd-47bf-a245-3bba965538a9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseac0blobapitestbreakleaseac39008963a874fa92/javablobbreakleaseac1blobapitestbreakleaseac390514953d89e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:55 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:54 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812DBC61439\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e78c3-201e-00c4-5ffb-594fb0000000", + "x-ms-client-request-id" : "2648e3f2-80e8-48ac-ab42-5687ea8fb45c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseac0blobapitestbreakleaseac39008963a874fa92/javablobbreakleaseac1blobapitestbreakleaseac390514953d89e?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DBC61439\"", + "x-ms-lease-id" : "04588e7d-d10b-4ed0-80a9-62128896eb01", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e78dc-201e-00c4-71fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:54 GMT", + "x-ms-client-request-id" : "d9368eb0-4945-4f80-b64e-22a1d845a517" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseac0blobapitestbreakleaseac39008963a874fa92/javablobbreakleaseac1blobapitestbreakleaseac390514953d89e?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DBC61439\"", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e78f6-201e-00c4-02fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:54 GMT", + "x-ms-client-request-id" : "96afa079-bc85-4c07-8673-7339ec1e39b6" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcbreakleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e7918-201e-00c4-1efb-594fb0000000", + "Body" : "jtcbreakleaseacjtcbreakleaseac0blobapitestbreakleaseac39008963a874fa92Fri, 23 Aug 2019 21:42:55 GMT\"0x8D72812DBC0D66D\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:54 GMT", + "x-ms-client-request-id" : "849b1bc4-3ce8-41dc-9ebd-629bf65ea9b5", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseac0blobapitestbreakleaseac39008963a874fa92?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e792a-201e-00c4-2cfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:54 GMT", + "x-ms-client-request-id" : "c91bf77f-98fd-4c25-ae5c-f9d047f95f85" + }, + "Exception" : null + } ], + "variables" : [ "jtcbreakleaseac0blobapitestbreakleaseac39008963a874fa92", "javablobbreakleaseac1blobapitestbreakleaseac390514953d89e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestbreakleaseacfail[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestbreakleaseacfail[0].json new file mode 100644 index 0000000000000..b74e6e33aaa4d --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestbreakleaseacfail[0].json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseacfail0blobapitestbreakleaseacfail03a87436e44e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DBDF1439\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e7945-201e-00c4-41fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:54 GMT", + "x-ms-client-request-id" : "2bc86cbc-2a3a-4975-9b89-d8c879bc8743" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseacfail0blobapitestbreakleaseacfail03a87436e44e/javablobbreakleaseacfail1blobapitestbreakleaseacfail03a249080", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:55 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:55 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812DBE4791D\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e7955-201e-00c4-4efb-594fb0000000", + "x-ms-client-request-id" : "19ab81d6-4b64-441a-859f-d289fb88c938" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseacfail0blobapitestbreakleaseacfail03a87436e44e/javablobbreakleaseacfail1blobapitestbreakleaseacfail03a249080?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DBE4791D\"", + "x-ms-lease-id" : "f7f06f6e-98ec-4da2-a12b-55c0b6e5df7e", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e796b-201e-00c4-5dfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:55 GMT", + "x-ms-client-request-id" : "571df0ee-f2d2-41ab-af96-7164cbb6a465" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseacfail0blobapitestbreakleaseacfail03a87436e44e/javablobbreakleaseacfail1blobapitestbreakleaseacfail03a249080?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "d51e7988-201e-00c4-75fb-594fb0000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:d51e7988-201e-00c4-75fb-594fb0000000\nTime:2019-08-23T21:42:56.0587869Z", + "Date" : "Fri, 23 Aug 2019 21:42:55 GMT", + "x-ms-client-request-id" : "ca3ca592-c447-43ac-acbb-e7c76f5c25ba", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcbreakleaseacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e79a5-201e-00c4-06fb-594fb0000000", + "Body" : "jtcbreakleaseacfailjtcbreakleaseacfail0blobapitestbreakleaseacfail03a87436e44eFri, 23 Aug 2019 21:42:55 GMT\"0x8D72812DBDF1439\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:55 GMT", + "x-ms-client-request-id" : "086da072-4493-4621-8006-0a70b0c11f7a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseacfail0blobapitestbreakleaseacfail03a87436e44e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e79b3-201e-00c4-10fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:55 GMT", + "x-ms-client-request-id" : "45867f70-0a1e-4294-94f5-f338da891472" + }, + "Exception" : null + } ], + "variables" : [ "jtcbreakleaseacfail0blobapitestbreakleaseacfail03a87436e44e", "javablobbreakleaseacfail1blobapitestbreakleaseacfail03a249080" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestbreakleaseacfail[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestbreakleaseacfail[1].json new file mode 100644 index 0000000000000..bd575bc24677a --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestbreakleaseacfail[1].json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseacfail0blobapitestbreakleaseacfailfbc93079d1e6?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DBFDEE58\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e79d4-201e-00c4-29fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:55 GMT", + "x-ms-client-request-id" : "b8efdfcd-8e00-4d8c-acec-17e4571a8c8b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseacfail0blobapitestbreakleaseacfailfbc93079d1e6/javablobbreakleaseacfail1blobapitestbreakleaseacfailfbc304180", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:56 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:55 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812DC037A6D\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e79ef-201e-00c4-39fb-594fb0000000", + "x-ms-client-request-id" : "bfa7b2b8-8f72-455e-a8dc-265bef09a75b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseacfail0blobapitestbreakleaseacfailfbc93079d1e6/javablobbreakleaseacfail1blobapitestbreakleaseacfailfbc304180?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DC037A6D\"", + "x-ms-lease-id" : "c626c763-9867-4d1d-99ed-205e6f042dd9", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e7a0d-201e-00c4-4bfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:55 GMT", + "x-ms-client-request-id" : "999960c6-8674-46d7-8ee5-ed305063ad8e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseacfail0blobapitestbreakleaseacfailfbc93079d1e6/javablobbreakleaseacfail1blobapitestbreakleaseacfailfbc304180?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "d51e7a1e-201e-00c4-57fb-594fb0000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:d51e7a1e-201e-00c4-57fb-594fb0000000\nTime:2019-08-23T21:42:56.2669855Z", + "Date" : "Fri, 23 Aug 2019 21:42:55 GMT", + "x-ms-client-request-id" : "d81afe59-bb3a-4654-8e57-0e1b0de0ffcc", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcbreakleaseacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e7a31-201e-00c4-65fb-594fb0000000", + "Body" : "jtcbreakleaseacfailjtcbreakleaseacfail0blobapitestbreakleaseacfailfbc93079d1e6Fri, 23 Aug 2019 21:42:56 GMT\"0x8D72812DBFDEE58\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:55 GMT", + "x-ms-client-request-id" : "2e936170-79f2-48cf-83e9-5f8790cd45d6", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseacfail0blobapitestbreakleaseacfailfbc93079d1e6?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e7a47-201e-00c4-75fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:55 GMT", + "x-ms-client-request-id" : "5bd73ef5-6315-4223-a47b-8e8d36d6bf03" + }, + "Exception" : null + } ], + "variables" : [ "jtcbreakleaseacfail0blobapitestbreakleaseacfailfbc93079d1e6", "javablobbreakleaseacfail1blobapitestbreakleaseacfailfbc304180" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestbreakleaseacfail[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestbreakleaseacfail[2].json new file mode 100644 index 0000000000000..2b1e618a8430c --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestbreakleaseacfail[2].json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseacfail0blobapitestbreakleaseacfaild73818101dbf?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DC1CA169\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e7a5f-201e-00c4-05fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:55 GMT", + "x-ms-client-request-id" : "f6e2c050-8338-47e9-aa2d-79da2ca29284" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseacfail0blobapitestbreakleaseacfaild73818101dbf/javablobbreakleaseacfail1blobapitestbreakleaseacfaild7307452e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:56 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:55 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812DC22066E\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e7a76-201e-00c4-16fb-594fb0000000", + "x-ms-client-request-id" : "11c69a70-8abf-4065-86bc-a548e9d3e41b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseacfail0blobapitestbreakleaseacfaild73818101dbf/javablobbreakleaseacfail1blobapitestbreakleaseacfaild7307452e?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DC22066E\"", + "x-ms-lease-id" : "bd5f0af4-0abf-4d86-abcc-bccef3d8671d", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e7a89-201e-00c4-29fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:55 GMT", + "x-ms-client-request-id" : "c458b4fd-be30-4817-aa0c-ac8c051796bc" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseacfail0blobapitestbreakleaseacfaild73818101dbf/javablobbreakleaseacfail1blobapitestbreakleaseacfaild7307452e?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "d51e7a9e-201e-00c4-3bfb-594fb0000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:d51e7a9e-201e-00c4-3bfb-594fb0000000\nTime:2019-08-23T21:42:56.4601700Z", + "Date" : "Fri, 23 Aug 2019 21:42:55 GMT", + "x-ms-client-request-id" : "4db0471b-6510-4e04-989f-0f63f8a57af6", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcbreakleaseacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e7aac-201e-00c4-47fb-594fb0000000", + "Body" : "jtcbreakleaseacfailjtcbreakleaseacfail0blobapitestbreakleaseacfaild73818101dbfFri, 23 Aug 2019 21:42:56 GMT\"0x8D72812DC1CA169\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:55 GMT", + "x-ms-client-request-id" : "6e7d9d6e-164d-477e-a70a-98d3ad85299f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseacfail0blobapitestbreakleaseacfaild73818101dbf?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e7abc-201e-00c4-52fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:55 GMT", + "x-ms-client-request-id" : "3682751f-4649-4b0c-93e6-b24e0e9974ba" + }, + "Exception" : null + } ], + "variables" : [ "jtcbreakleaseacfail0blobapitestbreakleaseacfaild73818101dbf", "javablobbreakleaseacfail1blobapitestbreakleaseacfaild7307452e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestbreakleaseacfail[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestbreakleaseacfail[3].json new file mode 100644 index 0000000000000..68f85b559e9f2 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestbreakleaseacfail[3].json @@ -0,0 +1,159 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseacfail0blobapitestbreakleaseacfailbb4896095297?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DC39F48D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e7ade-201e-00c4-6bfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:55 GMT", + "x-ms-client-request-id" : "297a828b-e625-4204-9df2-13e80531abef" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseacfail0blobapitestbreakleaseacfailbb4896095297/javablobbreakleaseacfail1blobapitestbreakleaseacfailbb4388895", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:56 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:55 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812DC3FCEEC\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e7af7-201e-00c4-7efb-594fb0000000", + "x-ms-client-request-id" : "12293cf3-461d-4d10-aa10-e71770134a9c" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseacfail0blobapitestbreakleaseacfailbb4896095297/javablobbreakleaseacfail1blobapitestbreakleaseacfailbb4388895", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:56 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:55 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812DC3FCEEC\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:56 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51e7b00-201e-00c4-04fb-594fb0000000", + "x-ms-client-request-id" : "8878537c-6a8b-4fcf-bfc1-bcc98e2f0b9b", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseacfail0blobapitestbreakleaseacfailbb4896095297/javablobbreakleaseacfail1blobapitestbreakleaseacfailbb4388895?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DC3FCEEC\"", + "x-ms-lease-id" : "dd37cfbb-6b14-434b-a175-0bd1d8ef8f3c", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e7b13-201e-00c4-10fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:55 GMT", + "x-ms-client-request-id" : "4b197af8-f54d-4639-8266-797d81335970" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseacfail0blobapitestbreakleaseacfailbb4896095297/javablobbreakleaseacfail1blobapitestbreakleaseacfailbb4388895?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "d51e7b1a-201e-00c4-16fb-594fb0000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:d51e7b1a-201e-00c4-16fb-594fb0000000\nTime:2019-08-23T21:42:56.6803800Z", + "Date" : "Fri, 23 Aug 2019 21:42:55 GMT", + "x-ms-client-request-id" : "40a48cf1-fd34-4b2a-847b-1ea51060b805", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcbreakleaseacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e7b23-201e-00c4-1cfb-594fb0000000", + "Body" : "jtcbreakleaseacfailjtcbreakleaseacfail0blobapitestbreakleaseacfailbb4896095297Fri, 23 Aug 2019 21:42:56 GMT\"0x8D72812DC39F48D\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:55 GMT", + "x-ms-client-request-id" : "47c874d7-0387-48e2-9d70-d54437913631", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseacfail0blobapitestbreakleaseacfailbb4896095297?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e7b2c-201e-00c4-25fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:55 GMT", + "x-ms-client-request-id" : "776a8299-079a-4456-bb2d-fc46e7b417da" + }, + "Exception" : null + } ], + "variables" : [ "jtcbreakleaseacfail0blobapitestbreakleaseacfailbb4896095297", "javablobbreakleaseacfail1blobapitestbreakleaseacfailbb4388895" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestbreakleaseerror.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestbreakleaseerror.json new file mode 100644 index 0000000000000..3a47bf84c7a54 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestbreakleaseerror.json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseerror0blobapitestbreakleaseerror3dd30237eeb24?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DC5D63C2\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e7b48-201e-00c4-3ffb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:55 GMT", + "x-ms-client-request-id" : "82ac3f01-70e0-4d13-a946-f0fdc6beccfa" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseerror0blobapitestbreakleaseerror3dd30237eeb24/javablobbreakleaseerror1blobapitestbreakleaseerror3dd856841d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:56 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:55 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812DC62C8DA\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e7b57-201e-00c4-4afb-594fb0000000", + "x-ms-client-request-id" : "05cbddfe-cb74-4dd3-912f-ae67fb70b616" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseerror0blobapitestbreakleaseerror3dd30237eeb24/javablobbreakleaseerror2blobapitestbreakleaseerror3dd70615e6?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "BlobNotFound", + "retry-after" : "0", + "Content-Length" : "215", + "StatusCode" : "404", + "x-ms-request-id" : "d51e7b68-201e-00c4-59fb-594fb0000000", + "Body" : "BlobNotFoundThe specified blob does not exist.\nRequestId:d51e7b68-201e-00c4-59fb-594fb0000000\nTime:2019-08-23T21:42:56.8515430Z", + "Date" : "Fri, 23 Aug 2019 21:42:55 GMT", + "x-ms-client-request-id" : "47812b5c-10ab-48f5-8061-66644554a6d5", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcbreakleaseerror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e7b84-201e-00c4-6dfb-594fb0000000", + "Body" : "jtcbreakleaseerrorjtcbreakleaseerror0blobapitestbreakleaseerror3dd30237eeb24Fri, 23 Aug 2019 21:42:56 GMT\"0x8D72812DC5D63C2\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:55 GMT", + "x-ms-client-request-id" : "6bc00f08-4cdf-4df4-9f55-dc96badf5965", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseerror0blobapitestbreakleaseerror3dd30237eeb24?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e7b99-201e-00c4-7dfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:55 GMT", + "x-ms-client-request-id" : "aecd5d25-fefa-4ff4-8125-6cfebc2ce70e" + }, + "Exception" : null + } ], + "variables" : [ "jtcbreakleaseerror0blobapitestbreakleaseerror3dd30237eeb24", "javablobbreakleaseerror1blobapitestbreakleaseerror3dd856841d", "javablobbreakleaseerror2blobapitestbreakleaseerror3dd70615e6" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestbreakleasemin.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestbreakleasemin.json new file mode 100644 index 0000000000000..1f895a2481dd6 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestbreakleasemin.json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleasemin0blobapitestbreakleaseminb81955105102bfe?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DAF761D0\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e767a-201e-00c4-72fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:53 GMT", + "x-ms-client-request-id" : "24fda4a2-8dd1-4bed-813d-e3400d1adbce" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleasemin0blobapitestbreakleaseminb81955105102bfe/javablobbreakleasemin1blobapitestbreakleaseminb8173397cb82", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:54 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:53 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812DAFCED85\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e768b-201e-00c4-80fb-594fb0000000", + "x-ms-client-request-id" : "4ac70d23-fb50-498d-9533-a322999f746a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleasemin0blobapitestbreakleaseminb81955105102bfe/javablobbreakleasemin1blobapitestbreakleaseminb8173397cb82?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DAFCED85\"", + "x-ms-lease-id" : "58cfed97-a7bf-41db-bbdc-9d76d137acc1", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e7692-201e-00c4-07fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:53 GMT", + "x-ms-client-request-id" : "5c909438-6ba7-4035-bd0a-665eded52809" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleasemin0blobapitestbreakleaseminb81955105102bfe/javablobbreakleasemin1blobapitestbreakleaseminb8173397cb82?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DAFCED85\"", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e76a6-201e-00c4-19fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:53 GMT", + "x-ms-client-request-id" : "236c5f21-270e-4fd4-b57c-3c84a9bad99b" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcbreakleasemin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e76ad-201e-00c4-20fb-594fb0000000", + "Body" : "jtcbreakleaseminjtcbreakleasemin0blobapitestbreakleaseminb81955105102bfeFri, 23 Aug 2019 21:42:54 GMT\"0x8D72812DAF761D0\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:53 GMT", + "x-ms-client-request-id" : "802ff6ef-a71d-4426-9aab-7152936b0230", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleasemin0blobapitestbreakleaseminb81955105102bfe?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e76b7-201e-00c4-2afb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:53 GMT", + "x-ms-client-request-id" : "9cfe5d73-d2f9-40db-9e25-0e8aad6d3054" + }, + "Exception" : null + } ], + "variables" : [ "jtcbreakleasemin0blobapitestbreakleaseminb81955105102bfe", "javablobbreakleasemin1blobapitestbreakleaseminb8173397cb82" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestchangelease.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestchangelease.json new file mode 100644 index 0000000000000..da5c2c7bae0d1 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestchangelease.json @@ -0,0 +1,148 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangelease0blobapitestchangeleasec3c23454fd010080b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DC758586\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e7ba2-201e-00c4-06fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:55 GMT", + "x-ms-client-request-id" : "43274394-19f5-4d27-a00a-d1d648115d56" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangelease0blobapitestchangeleasec3c23454fd010080b/javablobchangelease1blobapitestchangeleasec3c84087b45e92", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:56 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:55 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812DC7AC38B\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e7bc8-201e-00c4-25fb-594fb0000000", + "x-ms-client-request-id" : "d13d9b8f-1183-4c49-978e-cb42b5f16b9c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangelease0blobapitestchangeleasec3c23454fd010080b/javablobchangelease1blobapitestchangeleasec3c84087b45e92?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DC7AC38B\"", + "x-ms-lease-id" : "c938f896-5b28-46fa-a590-90132d3bd066", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e7bdc-201e-00c4-38fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:56 GMT", + "x-ms-client-request-id" : "0740fd85-c1b1-491f-a930-0fb30e775c96" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangelease0blobapitestchangeleasec3c23454fd010080b/javablobchangelease1blobapitestchangeleasec3c84087b45e92?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DC7AC38B\"", + "x-ms-lease-id" : "fa8d231b-19d7-43cf-bc66-a902a9250e2e", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e7bf5-201e-00c4-4bfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:56 GMT", + "x-ms-client-request-id" : "4d148442-f19b-41c7-be28-cff50673d59a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangelease0blobapitestchangeleasec3c23454fd010080b/javablobchangelease1blobapitestchangeleasec3c84087b45e92?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DC7AC38B\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e7c14-201e-00c4-62fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:56 GMT", + "x-ms-client-request-id" : "10bcb655-256c-462a-a160-d273d00afc7d" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcchangelease&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e7c29-201e-00c4-74fb-594fb0000000", + "Body" : "jtcchangeleasejtcchangelease0blobapitestchangeleasec3c23454fd010080bFri, 23 Aug 2019 21:42:56 GMT\"0x8D72812DC758586\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:56 GMT", + "x-ms-client-request-id" : "c58dc285-7c0f-44e1-b445-c1369320d4ce", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangelease0blobapitestchangeleasec3c23454fd010080b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e7c4c-201e-00c4-0efb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:56 GMT", + "x-ms-client-request-id" : "68f9647b-c5e6-4962-8c03-eb491da53694" + }, + "Exception" : null + } ], + "variables" : [ "jtcchangelease0blobapitestchangeleasec3c23454fd010080b", "javablobchangelease1blobapitestchangeleasec3c84087b45e92", "c938f896-5b28-46fa-a590-90132d3bd066", "fa8d231b-19d7-43cf-bc66-a902a9250e2e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestchangeleaseac[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestchangeleaseac[0].json new file mode 100644 index 0000000000000..3d5bc138b5f5a --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestchangeleaseac[0].json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseac0blobapitestchangeleaseacd8428479a88ed30?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DCC27FC4\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e7d0e-201e-00c4-3bfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:56 GMT", + "x-ms-client-request-id" : "2d8e08ee-1a60-4038-89f2-5d550d9d8bc9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseac0blobapitestchangeleaseacd8428479a88ed30/javablobchangeleaseac1blobapitestchangeleaseacd845077741f8", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:57 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:56 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812DCC7E50E\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e7d2f-201e-00c4-55fb-594fb0000000", + "x-ms-client-request-id" : "eace583e-1e82-4ca8-8a96-ab4c16ac923c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseac0blobapitestchangeleaseacd8428479a88ed30/javablobchangeleaseac1blobapitestchangeleaseacd845077741f8?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DCC7E50E\"", + "x-ms-lease-id" : "55307e44-1290-40e0-a5ee-b1539361c055", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e7d51-201e-00c4-71fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:56 GMT", + "x-ms-client-request-id" : "22e658fb-ee89-4b36-9034-fc84fcc6c1a1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseac0blobapitestchangeleaseacd8428479a88ed30/javablobchangeleaseac1blobapitestchangeleaseacd845077741f8?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DCC7E50E\"", + "x-ms-lease-id" : "13612a81-9560-4755-8d47-30a15f5905a9", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e7d65-201e-00c4-02fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:56 GMT", + "x-ms-client-request-id" : "d5455d00-8581-4217-83e0-52a395c03fc8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcchangeleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e7d76-201e-00c4-12fb-594fb0000000", + "Body" : "jtcchangeleaseacjtcchangeleaseac0blobapitestchangeleaseacd8428479a88ed30Fri, 23 Aug 2019 21:42:57 GMT\"0x8D72812DCC27FC4\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:56 GMT", + "x-ms-client-request-id" : "eb01b0ca-9549-4858-bed7-9977170bb2f2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseac0blobapitestchangeleaseacd8428479a88ed30?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e7d80-201e-00c4-1afb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:56 GMT", + "x-ms-client-request-id" : "abfcb3de-ff65-408c-86c8-88eb53f28f37" + }, + "Exception" : null + } ], + "variables" : [ "jtcchangeleaseac0blobapitestchangeleaseacd8428479a88ed30", "javablobchangeleaseac1blobapitestchangeleaseacd845077741f8", "13612a81-9560-4755-8d47-30a15f5905a9" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestchangeleaseac[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestchangeleaseac[1].json new file mode 100644 index 0000000000000..66e4fe5c9d450 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestchangeleaseac[1].json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseac0blobapitestchangeleaseacb3b54000b8f96da?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DCDF84BE\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e7d95-201e-00c4-2efb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:56 GMT", + "x-ms-client-request-id" : "71d12a0d-9fe1-4c29-b8b9-1e27e0aadb26" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseac0blobapitestchangeleaseacb3b54000b8f96da/javablobchangeleaseac1blobapitestchangeleaseacb3b5255785f0", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:57 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:56 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812DCE53839\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e7da8-201e-00c4-3efb-594fb0000000", + "x-ms-client-request-id" : "5f8f0648-0b1b-40a3-b9fe-fdb6476e106b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseac0blobapitestchangeleaseacb3b54000b8f96da/javablobchangeleaseac1blobapitestchangeleaseacb3b5255785f0?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DCE53839\"", + "x-ms-lease-id" : "f02e8cad-6b05-4c3e-aa91-32a2ed943a50", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e7db7-201e-00c4-4bfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:56 GMT", + "x-ms-client-request-id" : "5aff1b58-e73b-4d7a-a665-6ecd2a4cc9ca" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseac0blobapitestchangeleaseacb3b54000b8f96da/javablobchangeleaseac1blobapitestchangeleaseacb3b5255785f0?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DCE53839\"", + "x-ms-lease-id" : "7727a458-2a0b-4d9b-9053-eb4466a7284c", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e7dc2-201e-00c4-55fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:56 GMT", + "x-ms-client-request-id" : "5cc91d74-4159-41cb-a21e-dda3e9625ad9" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcchangeleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e7dd2-201e-00c4-61fb-594fb0000000", + "Body" : "jtcchangeleaseacjtcchangeleaseac0blobapitestchangeleaseacb3b54000b8f96daFri, 23 Aug 2019 21:42:57 GMT\"0x8D72812DCDF84BE\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:56 GMT", + "x-ms-client-request-id" : "a914dde2-bee6-419a-971b-9e80bfcc8066", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseac0blobapitestchangeleaseacb3b54000b8f96da?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e7de0-201e-00c4-6bfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:56 GMT", + "x-ms-client-request-id" : "75e29ffe-8372-4481-8d1a-803d87a6e9b4" + }, + "Exception" : null + } ], + "variables" : [ "jtcchangeleaseac0blobapitestchangeleaseacb3b54000b8f96da", "javablobchangeleaseac1blobapitestchangeleaseacb3b5255785f0", "7727a458-2a0b-4d9b-9053-eb4466a7284c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestchangeleaseac[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestchangeleaseac[2].json new file mode 100644 index 0000000000000..3bd9359844db0 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestchangeleaseac[2].json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseac0blobapitestchangeleaseac3c628843727b3ba?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DD008247\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e7dfd-201e-00c4-02fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:56 GMT", + "x-ms-client-request-id" : "9032e53a-4d4b-4019-8c5f-dc1999d08b37" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseac0blobapitestchangeleaseac3c628843727b3ba/javablobchangeleaseac1blobapitestchangeleaseac3c6722415efd", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:57 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:56 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812DD05E7A4\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e7e0b-201e-00c4-0ffb-594fb0000000", + "x-ms-client-request-id" : "852498cc-a569-47bc-8c2d-f9023e6b0015" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseac0blobapitestchangeleaseac3c628843727b3ba/javablobchangeleaseac1blobapitestchangeleaseac3c6722415efd?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DD05E7A4\"", + "x-ms-lease-id" : "a4e58dc5-6b9e-40b2-b98b-31e987498242", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e7e19-201e-00c4-1cfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:56 GMT", + "x-ms-client-request-id" : "086176fa-e2c4-4592-9c5f-2efc046cd2c4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseac0blobapitestchangeleaseac3c628843727b3ba/javablobchangeleaseac1blobapitestchangeleaseac3c6722415efd?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DD05E7A4\"", + "x-ms-lease-id" : "3b62c1ec-acfd-4226-a801-792fc138158e", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e7e27-201e-00c4-29fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:56 GMT", + "x-ms-client-request-id" : "5604069a-e4d3-4b3e-9f3c-e38b4a32d30f" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcchangeleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e7e2e-201e-00c4-30fb-594fb0000000", + "Body" : "jtcchangeleaseacjtcchangeleaseac0blobapitestchangeleaseac3c628843727b3baFri, 23 Aug 2019 21:42:57 GMT\"0x8D72812DD008247\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:56 GMT", + "x-ms-client-request-id" : "0aa4b892-311e-4e2b-b6ef-f70ef37fac8f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseac0blobapitestchangeleaseac3c628843727b3ba?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e7e3c-201e-00c4-3dfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:57 GMT", + "x-ms-client-request-id" : "3d673710-bb82-49d2-bed6-8c5a93e71aff" + }, + "Exception" : null + } ], + "variables" : [ "jtcchangeleaseac0blobapitestchangeleaseac3c628843727b3ba", "javablobchangeleaseac1blobapitestchangeleaseac3c6722415efd", "3b62c1ec-acfd-4226-a801-792fc138158e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestchangeleaseac[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestchangeleaseac[3].json new file mode 100644 index 0000000000000..07d071c4b09f1 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestchangeleaseac[3].json @@ -0,0 +1,159 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseac0blobapitestchangeleaseac976693539768c69?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DD1E4ABF\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e7e49-201e-00c4-48fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:57 GMT", + "x-ms-client-request-id" : "51b4e661-86f9-43d6-aadc-0a0a8bc0a247" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseac0blobapitestchangeleaseac976693539768c69/javablobchangeleaseac1blobapitestchangeleaseac976332301de9", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:58 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:57 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812DD244C89\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e7e7b-201e-00c4-6cfb-594fb0000000", + "x-ms-client-request-id" : "6c6b880b-ba64-4526-96f8-7bee34d38c58" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseac0blobapitestchangeleaseac976693539768c69/javablobchangeleaseac1blobapitestchangeleaseac976332301de9", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:58 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:57 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812DD244C89\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:58 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51e7e91-201e-00c4-80fb-594fb0000000", + "x-ms-client-request-id" : "9727fdfd-230c-45d6-8ddf-726fbaa5ea8f", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseac0blobapitestchangeleaseac976693539768c69/javablobchangeleaseac1blobapitestchangeleaseac976332301de9?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DD244C89\"", + "x-ms-lease-id" : "2bf7d3ad-4362-4161-8321-abc55ea4d7c7", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e7ea2-201e-00c4-0ffb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:57 GMT", + "x-ms-client-request-id" : "d512657f-b8ec-4127-b8f0-e61ffa5aee74" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseac0blobapitestchangeleaseac976693539768c69/javablobchangeleaseac1blobapitestchangeleaseac976332301de9?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DD244C89\"", + "x-ms-lease-id" : "ffcee0b1-a52e-43a9-b2cc-70f792e01284", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e7eb6-201e-00c4-1dfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:57 GMT", + "x-ms-client-request-id" : "c70dd6c7-d8a0-4cbc-9c32-0ace88357600" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcchangeleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e7ec3-201e-00c4-27fb-594fb0000000", + "Body" : "jtcchangeleaseacjtcchangeleaseac0blobapitestchangeleaseac976693539768c69Fri, 23 Aug 2019 21:42:58 GMT\"0x8D72812DD1E4ABF\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:57 GMT", + "x-ms-client-request-id" : "a35d2d7c-a27c-4475-912f-84c505cb18f8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseac0blobapitestchangeleaseac976693539768c69?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e7ed3-201e-00c4-32fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:57 GMT", + "x-ms-client-request-id" : "974cfe1d-b411-4a81-9e97-51a689c1e0fc" + }, + "Exception" : null + } ], + "variables" : [ "jtcchangeleaseac0blobapitestchangeleaseac976693539768c69", "javablobchangeleaseac1blobapitestchangeleaseac976332301de9", "ffcee0b1-a52e-43a9-b2cc-70f792e01284" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestchangeleaseac[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestchangeleaseac[4].json new file mode 100644 index 0000000000000..3c51dd87ef400 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestchangeleaseac[4].json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseac0blobapitestchangeleaseacdaf89315ddbb131?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DD40CF4D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e7ee2-201e-00c4-3ffb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:57 GMT", + "x-ms-client-request-id" : "a74bbd65-deb9-4d55-b35f-b8b46970610d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseac0blobapitestchangeleaseacdaf89315ddbb131/javablobchangeleaseac1blobapitestchangeleaseacdaf55853e53f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:58 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:57 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812DD465BDD\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e7ef1-201e-00c4-4afb-594fb0000000", + "x-ms-client-request-id" : "7168d908-239d-4bfe-97af-37e11ba1b0c7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseac0blobapitestchangeleaseacdaf89315ddbb131/javablobchangeleaseac1blobapitestchangeleaseacdaf55853e53f?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DD465BDD\"", + "x-ms-lease-id" : "0e3505e0-7fc8-4b28-9085-b6a6b0517bff", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e7f03-201e-00c4-56fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:57 GMT", + "x-ms-client-request-id" : "dbfcb3d6-5194-4fa0-bf4f-9c4ba7deee38" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseac0blobapitestchangeleaseacdaf89315ddbb131/javablobchangeleaseac1blobapitestchangeleaseacdaf55853e53f?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DD465BDD\"", + "x-ms-lease-id" : "7b176c86-f394-4d8c-8aa4-904f5647c99a", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e7f12-201e-00c4-62fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:57 GMT", + "x-ms-client-request-id" : "c2486ec0-87c6-43dd-99a1-79b2b50c37c3" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcchangeleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e7f20-201e-00c4-6dfb-594fb0000000", + "Body" : "jtcchangeleaseacjtcchangeleaseac0blobapitestchangeleaseacdaf89315ddbb131Fri, 23 Aug 2019 21:42:58 GMT\"0x8D72812DD40CF4D\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:57 GMT", + "x-ms-client-request-id" : "dcba8bdb-40d5-45a7-acb0-4b30113dd876", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseac0blobapitestchangeleaseacdaf89315ddbb131?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e7f2f-201e-00c4-7afb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:57 GMT", + "x-ms-client-request-id" : "a12b0907-661d-4d2d-b539-da4b7069f2fb" + }, + "Exception" : null + } ], + "variables" : [ "jtcchangeleaseac0blobapitestchangeleaseacdaf89315ddbb131", "javablobchangeleaseac1blobapitestchangeleaseacdaf55853e53f", "7b176c86-f394-4d8c-8aa4-904f5647c99a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestchangeleaseacfail[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestchangeleaseacfail[0].json new file mode 100644 index 0000000000000..bdd29333655fe --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestchangeleaseacfail[0].json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseacfail0blobapitestchangeleaseacfailcfb119934f1?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DD5F3431\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e7f45-201e-00c4-0cfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:57 GMT", + "x-ms-client-request-id" : "c6d56054-0937-4d31-8d42-09d64b51f5dc" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseacfail0blobapitestchangeleaseacfailcfb119934f1/javablobchangeleaseacfail1blobapitestchangeleaseacfailcfb46970", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:58 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:57 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812DD647285\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e7f62-201e-00c4-21fb-594fb0000000", + "x-ms-client-request-id" : "8acd9139-4dcf-484c-abd1-45172d0284c6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseacfail0blobapitestchangeleaseacfailcfb119934f1/javablobchangeleaseacfail1blobapitestchangeleaseacfailcfb46970?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DD647285\"", + "x-ms-lease-id" : "9ad34831-be60-4d09-9698-8231ff458cd4", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e7f73-201e-00c4-31fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:57 GMT", + "x-ms-client-request-id" : "449b5cad-5b47-4cbd-bfe0-46cec31660ba" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseacfail0blobapitestchangeleaseacfailcfb119934f1/javablobchangeleaseacfail1blobapitestchangeleaseacfailcfb46970?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "d51e7f87-201e-00c4-43fb-594fb0000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:d51e7f87-201e-00c4-43fb-594fb0000000\nTime:2019-08-23T21:42:58.5691833Z", + "Date" : "Fri, 23 Aug 2019 21:42:57 GMT", + "x-ms-client-request-id" : "86fe392d-fbf3-41f8-ab32-872b2cf7848a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcchangeleaseacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e7f97-201e-00c4-4ffb-594fb0000000", + "Body" : "jtcchangeleaseacfailjtcchangeleaseacfail0blobapitestchangeleaseacfailcfb119934f1Fri, 23 Aug 2019 21:42:58 GMT\"0x8D72812DD5F3431\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:57 GMT", + "x-ms-client-request-id" : "83bbe626-291f-48c1-9ac7-061667697f5d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseacfail0blobapitestchangeleaseacfailcfb119934f1?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e7fa1-201e-00c4-57fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:57 GMT", + "x-ms-client-request-id" : "e2c67fd3-5226-41fa-a853-b20cadc9e588" + }, + "Exception" : null + } ], + "variables" : [ "jtcchangeleaseacfail0blobapitestchangeleaseacfailcfb119934f1", "javablobchangeleaseacfail1blobapitestchangeleaseacfailcfb46970", "b09692ff-f063-4f29-a887-23166c8856d1" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestchangeleaseacfail[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestchangeleaseacfail[1].json new file mode 100644 index 0000000000000..18570d47971a8 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestchangeleaseacfail[1].json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseacfail0blobapitestchangeleaseacfail0873590189a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DD7BEB04\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e7fbf-201e-00c4-6efb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:57 GMT", + "x-ms-client-request-id" : "4b0c8d46-4789-406a-9adb-611c626138eb" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseacfail0blobapitestchangeleaseacfail0873590189a/javablobchangeleaseacfail1blobapitestchangeleaseacfail08721426", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:58 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:57 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812DD812957\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e7fd2-201e-00c4-7ffb-594fb0000000", + "x-ms-client-request-id" : "cdd34e19-670f-4fbc-b359-82ef621d31e9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseacfail0blobapitestchangeleaseacfail0873590189a/javablobchangeleaseacfail1blobapitestchangeleaseacfail08721426?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DD812957\"", + "x-ms-lease-id" : "f95f88d6-5ec4-4058-b2b6-0aceaac252fe", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e7fea-201e-00c4-13fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:57 GMT", + "x-ms-client-request-id" : "181d83b9-8504-4c01-b9a4-085128ea5a16" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseacfail0blobapitestchangeleaseacfail0873590189a/javablobchangeleaseacfail1blobapitestchangeleaseacfail08721426?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "d51e7ff8-201e-00c4-1ffb-594fb0000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:d51e7ff8-201e-00c4-1ffb-594fb0000000\nTime:2019-08-23T21:42:58.7603666Z", + "Date" : "Fri, 23 Aug 2019 21:42:57 GMT", + "x-ms-client-request-id" : "74492290-d4a9-4ff2-a259-9044255de197", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcchangeleaseacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e8005-201e-00c4-29fb-594fb0000000", + "Body" : "jtcchangeleaseacfailjtcchangeleaseacfail0blobapitestchangeleaseacfail0873590189aFri, 23 Aug 2019 21:42:58 GMT\"0x8D72812DD7BEB04\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:57 GMT", + "x-ms-client-request-id" : "04e4ab3e-92bd-4e49-ae28-05b9741e5696", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseacfail0blobapitestchangeleaseacfail0873590189a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e8012-201e-00c4-36fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:57 GMT", + "x-ms-client-request-id" : "0811cd86-4455-432e-bde3-6e6e8ca0ada2" + }, + "Exception" : null + } ], + "variables" : [ "jtcchangeleaseacfail0blobapitestchangeleaseacfail0873590189a", "javablobchangeleaseacfail1blobapitestchangeleaseacfail08721426", "e932759c-67d3-45c7-9c5c-854c063f78b7" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestchangeleaseacfail[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestchangeleaseacfail[2].json new file mode 100644 index 0000000000000..7db079baf23ca --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestchangeleaseacfail[2].json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseacfail0blobapitestchangeleaseacfail4f9448142d4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DD996550\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e801d-201e-00c4-40fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:57 GMT", + "x-ms-client-request-id" : "3a3e52c6-326d-4cd0-9f4d-4ec53e70e32d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseacfail0blobapitestchangeleaseacfail4f9448142d4/javablobchangeleaseacfail1blobapitestchangeleaseacfail4f936364", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:58 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:57 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812DDA694D5\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e8053-201e-00c4-6bfb-594fb0000000", + "x-ms-client-request-id" : "5eaa5e9d-7693-4945-820c-809ca8b02ce2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseacfail0blobapitestchangeleaseacfail4f9448142d4/javablobchangeleaseacfail1blobapitestchangeleaseacfail4f936364?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DDA694D5\"", + "x-ms-lease-id" : "751aae25-2b75-46fc-bbf7-05f20dff0ca0", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e8062-201e-00c4-76fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:58 GMT", + "x-ms-client-request-id" : "9cbff398-d6e7-46cf-9ee4-4a309a38992a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseacfail0blobapitestchangeleaseacfail4f9448142d4/javablobchangeleaseacfail1blobapitestchangeleaseacfail4f936364?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "d51e807b-201e-00c4-08fb-594fb0000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:d51e807b-201e-00c4-08fb-594fb0000000\nTime:2019-08-23T21:42:59.0216171Z", + "Date" : "Fri, 23 Aug 2019 21:42:58 GMT", + "x-ms-client-request-id" : "4fa0d208-2353-47a5-ba6b-1875c97330b1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcchangeleaseacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e808f-201e-00c4-19fb-594fb0000000", + "Body" : "jtcchangeleaseacfailjtcchangeleaseacfail0blobapitestchangeleaseacfail4f9448142d4Fri, 23 Aug 2019 21:42:58 GMT\"0x8D72812DD996550\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:58 GMT", + "x-ms-client-request-id" : "081fd11b-c1d8-4944-82e2-c782c628c1f1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseacfail0blobapitestchangeleaseacfail4f9448142d4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e80b3-201e-00c4-3bfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:58 GMT", + "x-ms-client-request-id" : "32c21271-bcc2-4cd0-9330-de33fbd973bb" + }, + "Exception" : null + } ], + "variables" : [ "jtcchangeleaseacfail0blobapitestchangeleaseacfail4f9448142d4", "javablobchangeleaseacfail1blobapitestchangeleaseacfail4f936364", "06b7b968-f27b-4a7e-812d-5c736a5f41a0" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestchangeleaseacfail[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestchangeleaseacfail[3].json new file mode 100644 index 0000000000000..3654e98323bc2 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestchangeleaseacfail[3].json @@ -0,0 +1,159 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseacfail0blobapitestchangeleaseacfail03a07760695?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DDC1426E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e80d5-201e-00c4-56fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:58 GMT", + "x-ms-client-request-id" : "2ffa8347-88ec-4fce-95bd-87a2641c807b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseacfail0blobapitestchangeleaseacfail03a07760695/javablobchangeleaseacfail1blobapitestchangeleaseacfail03a66051", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:59 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:58 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812DDC680C3\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e80ec-201e-00c4-6bfb-594fb0000000", + "x-ms-client-request-id" : "d274fbd5-f800-461a-a507-f259950d5e6e" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseacfail0blobapitestchangeleaseacfail03a07760695/javablobchangeleaseacfail1blobapitestchangeleaseacfail03a66051", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:59 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:58 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812DDC680C3\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:59 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51e8120-201e-00c4-19fb-594fb0000000", + "x-ms-client-request-id" : "941d6f8c-169b-4c81-9cd9-7f9154f8e5e0", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseacfail0blobapitestchangeleaseacfail03a07760695/javablobchangeleaseacfail1blobapitestchangeleaseacfail03a66051?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DDC680C3\"", + "x-ms-lease-id" : "dda04556-2cba-4ecf-a740-1db7b37d22b2", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e8131-201e-00c4-28fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:58 GMT", + "x-ms-client-request-id" : "31f9e4a4-0ad3-42b0-8af6-153062264c9b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseacfail0blobapitestchangeleaseacfail03a07760695/javablobchangeleaseacfail1blobapitestchangeleaseacfail03a66051?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "d51e814a-201e-00c4-3ffb-594fb0000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:d51e814a-201e-00c4-3ffb-594fb0000000\nTime:2019-08-23T21:42:59.2688546Z", + "Date" : "Fri, 23 Aug 2019 21:42:58 GMT", + "x-ms-client-request-id" : "74e581df-e4aa-4141-a56f-87fd4a5e6c55", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcchangeleaseacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e8160-201e-00c4-52fb-594fb0000000", + "Body" : "jtcchangeleaseacfailjtcchangeleaseacfail0blobapitestchangeleaseacfail03a07760695Fri, 23 Aug 2019 21:42:59 GMT\"0x8D72812DDC1426E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:58 GMT", + "x-ms-client-request-id" : "9e9d36f4-5dbd-44e9-8ee3-b73215801af4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseacfail0blobapitestchangeleaseacfail03a07760695?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e8178-201e-00c4-66fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:58 GMT", + "x-ms-client-request-id" : "925866e4-c20d-4a23-9ebb-905bee531e2f" + }, + "Exception" : null + } ], + "variables" : [ "jtcchangeleaseacfail0blobapitestchangeleaseacfail03a07760695", "javablobchangeleaseacfail1blobapitestchangeleaseacfail03a66051", "840e4a68-7fb2-41cf-a90c-ce38b62828b2" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestchangeleaseerror.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestchangeleaseerror.json new file mode 100644 index 0000000000000..b320b482c290f --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestchangeleaseerror.json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseerror0blobapitestchangeleaseerror9f4489730a5c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DDE686CD\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e818e-201e-00c4-7afb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:58 GMT", + "x-ms-client-request-id" : "b05a1013-05b8-4446-bdcf-33b122af925a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseerror0blobapitestchangeleaseerror9f4489730a5c/javablobchangeleaseerror1blobapitestchangeleaseerror9f409854d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:59 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:58 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812DDEC3A75\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e81a6-201e-00c4-0afb-594fb0000000", + "x-ms-client-request-id" : "1ed6642b-3695-421b-a96d-b234f6fa06df" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseerror0blobapitestchangeleaseerror9f4489730a5c/javablobchangeleaseerror2blobapitestchangeleaseerror9f482509a?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "InvalidHeaderValue", + "retry-after" : "0", + "Content-Length" : "321", + "StatusCode" : "400", + "x-ms-request-id" : "d51e81b6-201e-00c4-16fb-594fb0000000", + "Body" : "InvalidHeaderValueThe value for one of the HTTP headers is not in the correct format.\nRequestId:d51e81b6-201e-00c4-16fb-594fb0000000\nTime:2019-08-23T21:42:59.4270051Zx-ms-lease-idid", + "Date" : "Fri, 23 Aug 2019 21:42:58 GMT", + "x-ms-client-request-id" : "d34122f8-62b5-47f5-9d38-87cba5ab803f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcchangeleaseerror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e81c2-201e-00c4-22fb-594fb0000000", + "Body" : "jtcchangeleaseerrorjtcchangeleaseerror0blobapitestchangeleaseerror9f4489730a5cFri, 23 Aug 2019 21:42:59 GMT\"0x8D72812DDE686CD\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:58 GMT", + "x-ms-client-request-id" : "5b99a16b-9837-4b19-8074-b278695d8b19", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseerror0blobapitestchangeleaseerror9f4489730a5c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e81d1-201e-00c4-2ffb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:58 GMT", + "x-ms-client-request-id" : "1cd15974-564c-4837-a855-736f03a412e3" + }, + "Exception" : null + } ], + "variables" : [ "jtcchangeleaseerror0blobapitestchangeleaseerror9f4489730a5c", "javablobchangeleaseerror1blobapitestchangeleaseerror9f409854d", "javablobchangeleaseerror2blobapitestchangeleaseerror9f482509a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestchangeleasemin.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestchangeleasemin.json new file mode 100644 index 0000000000000..f651f093a27df --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestchangeleasemin.json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleasemin0blobapitestchangeleaseminf33762356b3a60?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DC9AF0F2\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e7c79-201e-00c4-38fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:56 GMT", + "x-ms-client-request-id" : "7be70fc0-746d-45e8-a5c6-05c173a17cd5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleasemin0blobapitestchangeleaseminf33762356b3a60/javablobchangeleasemin1blobapitestchangeleaseminf33759088cc", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:57 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:56 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812DCA8E3BF\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e7c8a-201e-00c4-45fb-594fb0000000", + "x-ms-client-request-id" : "4ce6d954-7c94-49d8-8cea-62d9da3294ba" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleasemin0blobapitestchangeleaseminf33762356b3a60/javablobchangeleasemin1blobapitestchangeleaseminf33759088cc?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DCA8E3BF\"", + "x-ms-lease-id" : "f5d32903-d505-49ce-a47d-37b6a91e799e", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e7cc5-201e-00c4-78fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:56 GMT", + "x-ms-client-request-id" : "081e3d91-f347-43a1-8562-3838a390eeb2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleasemin0blobapitestchangeleaseminf33762356b3a60/javablobchangeleasemin1blobapitestchangeleaseminf33759088cc?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DCA8E3BF\"", + "x-ms-lease-id" : "2e1eb4f5-df3c-4d24-b3d4-bf33622025fb", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e7cda-201e-00c4-0cfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:56 GMT", + "x-ms-client-request-id" : "47e01149-93f4-43d6-8cf6-907e48ac230d" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcchangeleasemin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e7ce8-201e-00c4-1afb-594fb0000000", + "Body" : "jtcchangeleaseminjtcchangeleasemin0blobapitestchangeleaseminf33762356b3a60Fri, 23 Aug 2019 21:42:57 GMT\"0x8D72812DC9AF0F2\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:56 GMT", + "x-ms-client-request-id" : "430135b4-c3b8-4d60-a551-a70febe92e3a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleasemin0blobapitestchangeleaseminf33762356b3a60?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e7cf9-201e-00c4-29fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:56 GMT", + "x-ms-client-request-id" : "ae1acdf8-109c-4fed-94fc-552ec4efd000" + }, + "Exception" : null + } ], + "variables" : [ "jtcchangeleasemin0blobapitestchangeleaseminf33762356b3a60", "javablobchangeleasemin1blobapitestchangeleaseminf33759088cc", "2e1eb4f5-df3c-4d24-b3d4-bf33622025fb" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopy.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopy.json new file mode 100644 index 0000000000000..e1a8ee0c00716 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopy.json @@ -0,0 +1,180 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopy0blobapitestcopy644037372b023d188f464ba3?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DFEE204F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e88a0-201e-00c4-7cfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:02 GMT", + "x-ms-client-request-id" : "e02de813-ccba-4640-a2a6-eb0839d2e779" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopy0blobapitestcopy644037372b023d188f464ba3/javablobcopy1blobapitestcopy64495624c21a943d31344", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:02 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:02 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812DFF5D140\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e88be-201e-00c4-15fb-594fb0000000", + "x-ms-client-request-id" : "224facc2-93b5-4768-a970-ca890235d6cc" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopy0blobapitestcopy644037372b023d188f464ba3/javablobcopy2blobapitestcopy64454016587a18c9c3af4", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-copy-id" : "3434b4fb-dc8c-435c-89c5-191d3492d2c2", + "ETag" : "\"0x8D72812DFFE37C7\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "x-ms-copy-status" : "success", + "StatusCode" : "202", + "x-ms-request-id" : "d51e88db-201e-00c4-2cfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:02 GMT", + "x-ms-client-request-id" : "7a2cf3ae-b143-478d-8f29-b4e80422dbbc" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopy0blobapitestcopy644037372b023d188f464ba3/javablobcopy2blobapitestcopy64454016587a18c9c3af4", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:02 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-blob-type" : "BlockBlob", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:43:02 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51e88f7-201e-00c4-46fb-594fb0000000", + "Content-Type" : "application/octet-stream", + "x-ms-version" : "2019-02-02", + "x-ms-copy-id" : "3434b4fb-dc8c-435c-89c5-191d3492d2c2", + "x-ms-copy-source" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopy0blobapitestcopy644037372b023d188f464ba3/javablobcopy1blobapitestcopy64495624c21a943d31344", + "x-ms-copy-progress" : "7/7", + "Date" : "Fri, 23 Aug 2019 21:43:02 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "x-ms-copy-completion-time" : "Fri, 23 Aug 2019 21:43:02 GMT", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "\"0x8D72812DFFE37C7\"", + "x-ms-copy-status" : "success", + "x-ms-client-request-id" : "f9e02d58-ce70-49d8-86f8-f894698089ec" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopy0blobapitestcopy644037372b023d188f464ba3/javablobcopy2blobapitestcopy64454016587a18c9c3af4", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:02 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-blob-type" : "BlockBlob", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:43:02 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51e8911-201e-00c4-5efb-594fb0000000", + "Content-Type" : "application/octet-stream", + "x-ms-version" : "2019-02-02", + "x-ms-copy-id" : "3434b4fb-dc8c-435c-89c5-191d3492d2c2", + "x-ms-copy-source" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopy0blobapitestcopy644037372b023d188f464ba3/javablobcopy1blobapitestcopy64495624c21a943d31344", + "x-ms-copy-progress" : "7/7", + "Date" : "Fri, 23 Aug 2019 21:43:02 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "x-ms-copy-completion-time" : "Fri, 23 Aug 2019 21:43:02 GMT", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "\"0x8D72812DFFE37C7\"", + "x-ms-copy-status" : "success", + "x-ms-client-request-id" : "458d69a8-a02b-4ec8-8b90-8b57ceea29e0" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccopy&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e8934-201e-00c4-7efb-594fb0000000", + "Body" : "jtccopyjtccopy0blobapitestcopy644037372b023d188f464ba3Fri, 23 Aug 2019 21:43:02 GMT\"0x8D72812DFEE204F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:02 GMT", + "x-ms-client-request-id" : "43001fff-ac4b-4a7d-9d6f-5c653c1e8ac2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopy0blobapitestcopy644037372b023d188f464ba3?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e8940-201e-00c4-0afb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:02 GMT", + "x-ms-client-request-id" : "b1943d3e-efdd-4613-b72b-932f541f308f" + }, + "Exception" : null + } ], + "variables" : [ "jtccopy0blobapitestcopy644037372b023d188f464ba3", "javablobcopy1blobapitestcopy64495624c21a943d31344", "javablobcopy2blobapitestcopy64454016587a18c9c3af4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopydestac[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopydestac[0].json new file mode 100644 index 0000000000000..f4cc68ab3c882 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopydestac[0].json @@ -0,0 +1,132 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopydestac0blobapitestcopydestacf05344540564946f6b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E1B285DE\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:05 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e8f29-201e-00c4-1cfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:05 GMT", + "x-ms-client-request-id" : "fa9692a6-f2f6-48eb-a616-2b9b6c931b1a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopydestac0blobapitestcopydestacf05344540564946f6b/javablobcopydestac1blobapitestcopydestacf0520623dd8beb3", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:05 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:05 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E1B8B07A\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e8f3a-201e-00c4-2afb-594fb0000000", + "x-ms-client-request-id" : "98dea5f2-514f-4fc4-a5f3-adf8e19dd5f6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopydestac0blobapitestcopydestacf05344540564946f6b/javablobcopydestac2blobapitestcopydestacf0535922b348f4d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:05 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:05 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E1C18C47\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e8f50-201e-00c4-3efb-594fb0000000", + "x-ms-client-request-id" : "fd1141e7-b7d0-4138-bdef-749567b0f574" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopydestac0blobapitestcopydestacf05344540564946f6b/javablobcopydestac2blobapitestcopydestacf0535922b348f4d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-copy-id" : "75f9c6eb-0055-428d-ac30-b95759287a93", + "ETag" : "\"0x8D72812E1C7CF68\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:05 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "x-ms-copy-status" : "success", + "StatusCode" : "202", + "x-ms-request-id" : "d51e8f5c-201e-00c4-47fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:05 GMT", + "x-ms-client-request-id" : "440fef1e-c737-4e79-8c2c-99861124af23" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccopydestac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e8f6c-201e-00c4-53fb-594fb0000000", + "Body" : "jtccopydestacjtccopydestac0blobapitestcopydestacf05344540564946f6bFri, 23 Aug 2019 21:43:05 GMT\"0x8D72812E1B285DE\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:05 GMT", + "x-ms-client-request-id" : "1796d6a2-aeaf-4dbd-a5d7-17f3f8293024", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopydestac0blobapitestcopydestacf05344540564946f6b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e8f76-201e-00c4-5afb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:05 GMT", + "x-ms-client-request-id" : "da00abaa-9c7b-4f0f-8bc3-d94e2ac83515" + }, + "Exception" : null + } ], + "variables" : [ "jtccopydestac0blobapitestcopydestacf05344540564946f6b", "javablobcopydestac1blobapitestcopydestacf0520623dd8beb3", "javablobcopydestac2blobapitestcopydestacf0535922b348f4d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopydestac[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopydestac[1].json new file mode 100644 index 0000000000000..09c941878603c --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopydestac[1].json @@ -0,0 +1,132 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopydestac0blobapitestcopydestac77762468988884db61?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E1D77C09\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:05 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e8f89-201e-00c4-6bfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:05 GMT", + "x-ms-client-request-id" : "28e16705-85f9-40f2-ac2f-fc09b841986e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopydestac0blobapitestcopydestac77762468988884db61/javablobcopydestac1blobapitestcopydestac77714165d6ee57e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:06 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:06 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E1DE6A35\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e8fa6-201e-00c4-02fb-594fb0000000", + "x-ms-client-request-id" : "4c9baac4-4cb1-4bec-b407-2202a71dd14c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopydestac0blobapitestcopydestac77762468988884db61/javablobcopydestac2blobapitestcopydestac777355164fabf1b", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:06 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:06 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E1E410E1\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e8fb9-201e-00c4-13fb-594fb0000000", + "x-ms-client-request-id" : "4ef086b1-4a80-4df1-8123-df52b296a099" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopydestac0blobapitestcopydestac77762468988884db61/javablobcopydestac2blobapitestcopydestac777355164fabf1b", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-copy-id" : "ed694d4a-8d8f-4116-80cb-0f8f8db3b9c1", + "ETag" : "\"0x8D72812E1F09710\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "x-ms-copy-status" : "success", + "StatusCode" : "202", + "x-ms-request-id" : "d51e8fd1-201e-00c4-2afb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:06 GMT", + "x-ms-client-request-id" : "f23aa601-8888-433e-9d11-6434b7b2040b" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccopydestac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e9002-201e-00c4-51fb-594fb0000000", + "Body" : "jtccopydestacjtccopydestac0blobapitestcopydestac77762468988884db61Fri, 23 Aug 2019 21:43:05 GMT\"0x8D72812E1D77C09\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:06 GMT", + "x-ms-client-request-id" : "6fea53a9-bb55-4ca5-a4ac-523af444b8e0", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopydestac0blobapitestcopydestac77762468988884db61?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e9014-201e-00c4-5efb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:06 GMT", + "x-ms-client-request-id" : "b63419bf-3bfe-44ef-8327-c787b7847833" + }, + "Exception" : null + } ], + "variables" : [ "jtccopydestac0blobapitestcopydestac77762468988884db61", "javablobcopydestac1blobapitestcopydestac77714165d6ee57e", "javablobcopydestac2blobapitestcopydestac777355164fabf1b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopydestac[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopydestac[2].json new file mode 100644 index 0000000000000..4f8bcd6e38f0e --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopydestac[2].json @@ -0,0 +1,132 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopydestac0blobapitestcopydestac28e60586516e9f9aad?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E1FFF574\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e902d-201e-00c4-6ffb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:06 GMT", + "x-ms-client-request-id" : "eaa5f7f2-d0d7-45b8-a44b-0aec1c994439" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopydestac0blobapitestcopydestac28e60586516e9f9aad/javablobcopydestac1blobapitestcopydestac28e119430394c8a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:06 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:06 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E205D1F9\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e904a-201e-00c4-09fb-594fb0000000", + "x-ms-client-request-id" : "278f38ba-1e97-408b-877a-ab57ed7f7ff3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopydestac0blobapitestcopydestac28e60586516e9f9aad/javablobcopydestac2blobapitestcopydestac28e007673b6ef6c", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:06 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:06 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E20CFFAF\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e905c-201e-00c4-19fb-594fb0000000", + "x-ms-client-request-id" : "d0ac7e3c-99fe-4097-8dcf-dc3114f41289" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopydestac0blobapitestcopydestac28e60586516e9f9aad/javablobcopydestac2blobapitestcopydestac28e007673b6ef6c", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-copy-id" : "4198e6da-d20f-4f1b-b721-a653a8c00381", + "ETag" : "\"0x8D72812E212F497\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "x-ms-copy-status" : "success", + "StatusCode" : "202", + "x-ms-request-id" : "d51e9070-201e-00c4-2afb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:06 GMT", + "x-ms-client-request-id" : "326bb727-637f-46b9-ac5b-feb7ba618fc3" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccopydestac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e90ac-201e-00c4-5efb-594fb0000000", + "Body" : "jtccopydestacjtccopydestac0blobapitestcopydestac28e60586516e9f9aadFri, 23 Aug 2019 21:43:06 GMT\"0x8D72812E1FFF574\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:06 GMT", + "x-ms-client-request-id" : "9b1a1364-cafb-474e-a69d-9aba0e4720d3", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopydestac0blobapitestcopydestac28e60586516e9f9aad?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e90b8-201e-00c4-6afb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:06 GMT", + "x-ms-client-request-id" : "3d944a10-82f6-4ce7-8d6a-27315406faf2" + }, + "Exception" : null + } ], + "variables" : [ "jtccopydestac0blobapitestcopydestac28e60586516e9f9aad", "javablobcopydestac1blobapitestcopydestac28e119430394c8a", "javablobcopydestac2blobapitestcopydestac28e007673b6ef6c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopydestac[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopydestac[3].json new file mode 100644 index 0000000000000..74f3b5b9d18a0 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopydestac[3].json @@ -0,0 +1,163 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopydestac0blobapitestcopydestac0f570039e7183f2b26?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E22DC772\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e90d0-201e-00c4-7ffb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:06 GMT", + "x-ms-client-request-id" : "c34d3528-1a6c-401f-b589-5cc9c5156be1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopydestac0blobapitestcopydestac0f570039e7183f2b26/javablobcopydestac1blobapitestcopydestac0f596746239378f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:06 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:06 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E23355C6\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e90e6-201e-00c4-13fb-594fb0000000", + "x-ms-client-request-id" : "10c4b41e-309b-4359-9377-457fc2e84016" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopydestac0blobapitestcopydestac0f570039e7183f2b26/javablobcopydestac2blobapitestcopydestac0f540728c7e94be", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:06 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:06 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E2392393\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e90fb-201e-00c4-27fb-594fb0000000", + "x-ms-client-request-id" : "29d0371a-3348-427b-912e-a17f523c7c02" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopydestac0blobapitestcopydestac0f570039e7183f2b26/javablobcopydestac2blobapitestcopydestac0f540728c7e94be", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:06 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:43:06 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812E2392393\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:43:06 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51e910d-201e-00c4-38fb-594fb0000000", + "x-ms-client-request-id" : "84e2e461-45e1-4abd-8d0f-5821ad2cef2f", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopydestac0blobapitestcopydestac0f570039e7183f2b26/javablobcopydestac2blobapitestcopydestac0f540728c7e94be", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-copy-id" : "0de6c3b5-a365-4a65-84e8-9f1949c57533", + "ETag" : "\"0x8D72812E2593698\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "x-ms-copy-status" : "success", + "StatusCode" : "202", + "x-ms-request-id" : "d51e9123-201e-00c4-4cfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:06 GMT", + "x-ms-client-request-id" : "54aef301-0bef-42e3-9958-f3b7fdc83323" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccopydestac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e9175-201e-00c4-14fb-594fb0000000", + "Body" : "jtccopydestacjtccopydestac0blobapitestcopydestac0f570039e7183f2b26Fri, 23 Aug 2019 21:43:06 GMT\"0x8D72812E22DC772\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:06 GMT", + "x-ms-client-request-id" : "2c4c1ded-c75d-43b7-b6a4-3b5f11f20619", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopydestac0blobapitestcopydestac0f570039e7183f2b26?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e917f-201e-00c4-1efb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:06 GMT", + "x-ms-client-request-id" : "54a0aa17-fe5b-4d2f-a7cd-367c38dc98c9" + }, + "Exception" : null + } ], + "variables" : [ "jtccopydestac0blobapitestcopydestac0f570039e7183f2b26", "javablobcopydestac1blobapitestcopydestac0f596746239378f", "javablobcopydestac2blobapitestcopydestac0f540728c7e94be" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopydestac[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopydestac[4].json new file mode 100644 index 0000000000000..5d901b865b0aa --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopydestac[4].json @@ -0,0 +1,132 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopydestac0blobapitestcopydestacdaf9694068ee1c4594?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E2697F6B\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e919a-201e-00c4-34fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:06 GMT", + "x-ms-client-request-id" : "436a5336-7267-48a6-8a6f-aae46b3cd633" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopydestac0blobapitestcopydestacdaf9694068ee1c4594/javablobcopydestac1blobapitestcopydestacdaf569612150898", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:06 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:06 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E26FAA45\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e91af-201e-00c4-46fb-594fb0000000", + "x-ms-client-request-id" : "35dde9d1-0da0-414a-b5c7-12c8d50e6452" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopydestac0blobapitestcopydestacdaf9694068ee1c4594/javablobcopydestac2blobapitestcopydestacdaf900288d5d547", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:07 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:07 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E27550FB\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e91c9-201e-00c4-5dfb-594fb0000000", + "x-ms-client-request-id" : "9ddb8c60-13fd-44c0-87a4-4a6252023d64" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopydestac0blobapitestcopydestacdaf9694068ee1c4594/javablobcopydestac2blobapitestcopydestacdaf900288d5d547", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-copy-id" : "ff82dec3-6169-4943-b155-e131c3fdb79e", + "ETag" : "\"0x8D72812E28C12E4\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "x-ms-copy-status" : "success", + "StatusCode" : "202", + "x-ms-request-id" : "d51e91d9-201e-00c4-6bfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:07 GMT", + "x-ms-client-request-id" : "3838bde0-d72a-457b-8093-f41964dedaf3" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccopydestac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e9249-201e-00c4-4efb-594fb0000000", + "Body" : "jtccopydestacjtccopydestac0blobapitestcopydestacdaf9694068ee1c4594Fri, 23 Aug 2019 21:43:06 GMT\"0x8D72812E2697F6B\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:07 GMT", + "x-ms-client-request-id" : "803d2af4-365c-4db7-a453-32b05df598a1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopydestac0blobapitestcopydestacdaf9694068ee1c4594?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e9256-201e-00c4-59fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:07 GMT", + "x-ms-client-request-id" : "b11cbce4-63a1-460b-b7d9-cc11346366c0" + }, + "Exception" : null + } ], + "variables" : [ "jtccopydestac0blobapitestcopydestacdaf9694068ee1c4594", "javablobcopydestac1blobapitestcopydestacdaf569612150898", "javablobcopydestac2blobapitestcopydestacdaf900288d5d547" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopydestac[5].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopydestac[5].json new file mode 100644 index 0000000000000..1c09a6584e347 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopydestac[5].json @@ -0,0 +1,153 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopydestac0blobapitestcopydestac501742370bd9a61f2f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E29ECD41\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e9265-201e-00c4-68fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:07 GMT", + "x-ms-client-request-id" : "a82cc541-834c-4886-8904-6f749d0e4440" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopydestac0blobapitestcopydestac501742370bd9a61f2f/javablobcopydestac1blobapitestcopydestac50155971d1e8576", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:07 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:07 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E2A5BBAC\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e928a-201e-00c4-03fb-594fb0000000", + "x-ms-client-request-id" : "4d2807fe-b6c5-45f9-bff0-54da00b0aa24" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopydestac0blobapitestcopydestac501742370bd9a61f2f/javablobcopydestac2blobapitestcopydestac50133499b472ec1", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:07 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:07 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E2AAED1C\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e929f-201e-00c4-14fb-594fb0000000", + "x-ms-client-request-id" : "06c024eb-d972-4ca9-b4de-9f00f9c2d8db" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopydestac0blobapitestcopydestac501742370bd9a61f2f/javablobcopydestac2blobapitestcopydestac50133499b472ec1?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E2AAED1C\"", + "x-ms-lease-id" : "92411295-9330-4dfe-860c-93a1cbfdb545", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e92b1-201e-00c4-23fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:07 GMT", + "x-ms-client-request-id" : "06f887c5-7c9b-482a-8af1-80525cc87f72" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopydestac0blobapitestcopydestac501742370bd9a61f2f/javablobcopydestac2blobapitestcopydestac50133499b472ec1", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-copy-id" : "1f1bd02a-6cae-4448-aab8-c607387f5481", + "ETag" : "\"0x8D72812E2B63A7E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "x-ms-copy-status" : "success", + "StatusCode" : "202", + "x-ms-request-id" : "d51e92c0-201e-00c4-2ffb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:07 GMT", + "x-ms-client-request-id" : "36cf13ed-a06f-4132-bc7b-0ae62080d546" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccopydestac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e92d8-201e-00c4-46fb-594fb0000000", + "Body" : "jtccopydestacjtccopydestac0blobapitestcopydestac501742370bd9a61f2fFri, 23 Aug 2019 21:43:07 GMT\"0x8D72812E29ECD41\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:07 GMT", + "x-ms-client-request-id" : "6aca7206-96bb-4042-92f5-c3f8f2f33d58", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopydestac0blobapitestcopydestac501742370bd9a61f2f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e92ee-201e-00c4-56fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:07 GMT", + "x-ms-client-request-id" : "141f7927-974d-4fa4-b5f7-351420ec6144" + }, + "Exception" : null + } ], + "variables" : [ "jtccopydestac0blobapitestcopydestac501742370bd9a61f2f", "javablobcopydestac1blobapitestcopydestac50155971d1e8576", "javablobcopydestac2blobapitestcopydestac50133499b472ec1" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopydestacfail[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopydestacfail[0].json new file mode 100644 index 0000000000000..06b8fe76e44ef --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopydestacfail[0].json @@ -0,0 +1,131 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopydestacfail0blobapitestcopydestacfail81a02906a5de06?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E2EED590\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e9382-201e-00c4-55fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:07 GMT", + "x-ms-client-request-id" : "f56f75a3-a55f-4924-a646-53f6daf8ebc2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopydestacfail0blobapitestcopydestacfail81a02906a5de06/javablobcopydestacfail1blobapitestcopydestacfail81a03069efc", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:07 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:07 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E2F46434\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e9396-201e-00c4-64fb-594fb0000000", + "x-ms-client-request-id" : "0d3e0007-4756-4f9e-a923-70cf35857f2e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopydestacfail0blobapitestcopydestacfail81a02906a5de06/javablobcopydestacfail2blobapitestcopydestacfail81a253514e4", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:07 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:07 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E2FA31FD\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e93af-201e-00c4-78fb-594fb0000000", + "x-ms-client-request-id" : "5c8fb535-3862-4def-938e-1670fb95351a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopydestacfail0blobapitestcopydestacfail81a02906a5de06/javablobcopydestacfail2blobapitestcopydestacfail81a253514e4", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "TargetConditionNotMet", + "retry-after" : "0", + "Content-Length" : "265", + "StatusCode" : "412", + "x-ms-request-id" : "d51e93c5-201e-00c4-0dfb-594fb0000000", + "Body" : "TargetConditionNotMetThe target condition specified using HTTP conditional header(s) is not met.\nRequestId:d51e93c5-201e-00c4-0dfb-594fb0000000\nTime:2019-08-23T21:43:07.9571410Z", + "Date" : "Fri, 23 Aug 2019 21:43:07 GMT", + "x-ms-client-request-id" : "20a0839b-8189-4d49-9e70-d24b290112d1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccopydestacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e93f8-201e-00c4-36fb-594fb0000000", + "Body" : "jtccopydestacfailjtccopydestacfail0blobapitestcopydestacfail81a02906a5de06Fri, 23 Aug 2019 21:43:07 GMT\"0x8D72812E2EED590\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:07 GMT", + "x-ms-client-request-id" : "0a7b0c39-5f5f-4565-8a87-16bb41aa433e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopydestacfail0blobapitestcopydestacfail81a02906a5de06?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e940b-201e-00c4-45fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:08 GMT", + "x-ms-client-request-id" : "c009a771-7c60-4982-b5ed-a302550b586e" + }, + "Exception" : null + } ], + "variables" : [ "jtccopydestacfail0blobapitestcopydestacfail81a02906a5de06", "javablobcopydestacfail1blobapitestcopydestacfail81a03069efc", "javablobcopydestacfail2blobapitestcopydestacfail81a253514e4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopydestacfail[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopydestacfail[1].json new file mode 100644 index 0000000000000..51b5efe572f61 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopydestacfail[1].json @@ -0,0 +1,131 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopydestacfail0blobapitestcopydestacfaileaa076898b3446?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E31579CD\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e9423-201e-00c4-57fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:08 GMT", + "x-ms-client-request-id" : "ba7cbf6f-15cc-4e63-910f-99a94863e98a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopydestacfail0blobapitestcopydestacfaileaa076898b3446/javablobcopydestacfail1blobapitestcopydestacfaileaa33297d8a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:08 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:08 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E31C1A35\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e943f-201e-00c4-6ffb-594fb0000000", + "x-ms-client-request-id" : "740ff74e-fe02-4f95-9ce8-0ef59bd7bd1a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopydestacfail0blobapitestcopydestacfaileaa076898b3446/javablobcopydestacfail2blobapitestcopydestacfaileaa993258ea", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:08 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:08 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E32172B3\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e9447-201e-00c4-76fb-594fb0000000", + "x-ms-client-request-id" : "8ae30993-ef1d-43ac-8e02-da0b776ab5ca" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopydestacfail0blobapitestcopydestacfaileaa076898b3446/javablobcopydestacfail2blobapitestcopydestacfaileaa993258ea", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "TargetConditionNotMet", + "retry-after" : "0", + "Content-Length" : "265", + "StatusCode" : "412", + "x-ms-request-id" : "d51e9454-201e-00c4-02fb-594fb0000000", + "Body" : "TargetConditionNotMetThe target condition specified using HTTP conditional header(s) is not met.\nRequestId:d51e9454-201e-00c4-02fb-594fb0000000\nTime:2019-08-23T21:43:08.1763499Z", + "Date" : "Fri, 23 Aug 2019 21:43:08 GMT", + "x-ms-client-request-id" : "eabe36d5-f716-4d59-b142-bc96855ddb5d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccopydestacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e946a-201e-00c4-14fb-594fb0000000", + "Body" : "jtccopydestacfailjtccopydestacfail0blobapitestcopydestacfaileaa076898b3446Fri, 23 Aug 2019 21:43:08 GMT\"0x8D72812E31579CD\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:08 GMT", + "x-ms-client-request-id" : "3c13b3e4-856c-4caa-8352-9a12f03ca192", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopydestacfail0blobapitestcopydestacfaileaa076898b3446?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e9475-201e-00c4-1efb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:08 GMT", + "x-ms-client-request-id" : "2921637c-4a52-414a-ae7c-13615dd284fb" + }, + "Exception" : null + } ], + "variables" : [ "jtccopydestacfail0blobapitestcopydestacfaileaa076898b3446", "javablobcopydestacfail1blobapitestcopydestacfaileaa33297d8a", "javablobcopydestacfail2blobapitestcopydestacfaileaa993258ea" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopydestacfail[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopydestacfail[2].json new file mode 100644 index 0000000000000..3e074e64a7352 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopydestacfail[2].json @@ -0,0 +1,131 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopydestacfail0blobapitestcopydestacfaila1670664a96ce9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E3369E72\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e9491-201e-00c4-33fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:08 GMT", + "x-ms-client-request-id" : "10fd5c92-d0fe-44c9-bcfe-3e96b1d1354f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopydestacfail0blobapitestcopydestacfaila1670664a96ce9/javablobcopydestacfail1blobapitestcopydestacfaila1604072f2d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:08 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:08 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E33C2D31\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e94a2-201e-00c4-41fb-594fb0000000", + "x-ms-client-request-id" : "e1c4b33b-41d0-4ae7-9909-2223219a83f8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopydestacfail0blobapitestcopydestacfaila1670664a96ce9/javablobcopydestacfail2blobapitestcopydestacfaila1658505b35", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:08 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:08 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E34185AF\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e94b9-201e-00c4-54fb-594fb0000000", + "x-ms-client-request-id" : "a9b37cab-5ca9-4755-9911-f13d1e8c22e1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopydestacfail0blobapitestcopydestacfaila1670664a96ce9/javablobcopydestacfail2blobapitestcopydestacfaila1658505b35", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "TargetConditionNotMet", + "retry-after" : "0", + "Content-Length" : "265", + "StatusCode" : "412", + "x-ms-request-id" : "d51e94d8-201e-00c4-6efb-594fb0000000", + "Body" : "TargetConditionNotMetThe target condition specified using HTTP conditional header(s) is not met.\nRequestId:d51e94d8-201e-00c4-6efb-594fb0000000\nTime:2019-08-23T21:43:08.3975611Z", + "Date" : "Fri, 23 Aug 2019 21:43:08 GMT", + "x-ms-client-request-id" : "d1b8d7ee-805b-41ad-b770-6b6bd82198ed", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccopydestacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e94e9-201e-00c4-7bfb-594fb0000000", + "Body" : "jtccopydestacfailjtccopydestacfail0blobapitestcopydestacfaila1670664a96ce9Fri, 23 Aug 2019 21:43:08 GMT\"0x8D72812E3369E72\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:08 GMT", + "x-ms-client-request-id" : "20824fcc-3209-467b-985b-d305f06c8d26", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopydestacfail0blobapitestcopydestacfaila1670664a96ce9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e94fc-201e-00c4-0cfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:08 GMT", + "x-ms-client-request-id" : "a3c0bec3-efee-4b46-a0a3-e31a80dfcb41" + }, + "Exception" : null + } ], + "variables" : [ "jtccopydestacfail0blobapitestcopydestacfaila1670664a96ce9", "javablobcopydestacfail1blobapitestcopydestacfaila1604072f2d", "javablobcopydestacfail2blobapitestcopydestacfaila1658505b35" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopydestacfail[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopydestacfail[3].json new file mode 100644 index 0000000000000..accfea2f0923a --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopydestacfail[3].json @@ -0,0 +1,162 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopydestacfail0blobapitestcopydestacfail65885493c31a11?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E3574DD2\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e950b-201e-00c4-1afb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:08 GMT", + "x-ms-client-request-id" : "f3c26adb-b49b-4d6e-b540-c0798a2d39f5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopydestacfail0blobapitestcopydestacfail65885493c31a11/javablobcopydestacfail1blobapitestcopydestacfail6585283489a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:08 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:08 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E3804BDA\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e95a2-201e-00c4-1ffb-594fb0000000", + "x-ms-client-request-id" : "7671d226-5c0a-4093-838b-4b0820cc0041" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopydestacfail0blobapitestcopydestacfail65885493c31a11/javablobcopydestacfail2blobapitestcopydestacfail65880859f1f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:08 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:08 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E385A453\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e95b4-201e-00c4-2ffb-594fb0000000", + "x-ms-client-request-id" : "b816ed7f-1b6a-46c3-83c3-acbbc6c661e0" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopydestacfail0blobapitestcopydestacfail65885493c31a11/javablobcopydestacfail2blobapitestcopydestacfail65880859f1f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:08 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:43:08 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812E385A453\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:43:08 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51e95be-201e-00c4-37fb-594fb0000000", + "x-ms-client-request-id" : "65360435-8510-40d3-841c-2f6308e81454", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopydestacfail0blobapitestcopydestacfail65885493c31a11/javablobcopydestacfail2blobapitestcopydestacfail65880859f1f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "TargetConditionNotMet", + "retry-after" : "0", + "Content-Length" : "265", + "StatusCode" : "412", + "x-ms-request-id" : "d51e95ca-201e-00c4-42fb-594fb0000000", + "Body" : "TargetConditionNotMetThe target condition specified using HTTP conditional header(s) is not met.\nRequestId:d51e95ca-201e-00c4-42fb-594fb0000000\nTime:2019-08-23T21:43:08.8690105Z", + "Date" : "Fri, 23 Aug 2019 21:43:08 GMT", + "x-ms-client-request-id" : "47f04129-9126-4cbf-844a-abdb59ec7ce0", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccopydestacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e95da-201e-00c4-4ffb-594fb0000000", + "Body" : "jtccopydestacfailjtccopydestacfail0blobapitestcopydestacfail65885493c31a11Fri, 23 Aug 2019 21:43:08 GMT\"0x8D72812E3574DD2\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:08 GMT", + "x-ms-client-request-id" : "5e3136b3-eb93-43f9-9fa5-7000d5dfe215", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopydestacfail0blobapitestcopydestacfail65885493c31a11?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e95e1-201e-00c4-56fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:08 GMT", + "x-ms-client-request-id" : "43e91bb9-ee9d-4f51-b60f-0dc8c99e592d" + }, + "Exception" : null + } ], + "variables" : [ "jtccopydestacfail0blobapitestcopydestacfail65885493c31a11", "javablobcopydestacfail1blobapitestcopydestacfail6585283489a", "javablobcopydestacfail2blobapitestcopydestacfail65880859f1f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopydestacfail[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopydestacfail[4].json new file mode 100644 index 0000000000000..58a2778961abc --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopydestacfail[4].json @@ -0,0 +1,152 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopydestacfail0blobapitestcopydestacfail19f781578958bd?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E39F3DD9\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e95ef-201e-00c4-64fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:08 GMT", + "x-ms-client-request-id" : "51269222-ef41-4a8b-9d84-dd114f5b468d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopydestacfail0blobapitestcopydestacfail19f781578958bd/javablobcopydestacfail1blobapitestcopydestacfail19f58689f43", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:08 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:09 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E3A4A599\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e9600-201e-00c4-71fb-594fb0000000", + "x-ms-client-request-id" : "bfc2b2ed-9a71-432c-b123-a94c39ab5f30" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopydestacfail0blobapitestcopydestacfail19f781578958bd/javablobcopydestacfail2blobapitestcopydestacfail19f76465cc7", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:09 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:09 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E3AD0C1B\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e9624-201e-00c4-13fb-594fb0000000", + "x-ms-client-request-id" : "583c8844-3bb4-4688-8e16-220cf013c723" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopydestacfail0blobapitestcopydestacfail19f781578958bd/javablobcopydestacfail2blobapitestcopydestacfail19f76465cc7?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E3AD0C1B\"", + "x-ms-lease-id" : "55b5ce06-587b-405d-9051-13f7f0d3ad46", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e9641-201e-00c4-2ffb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:09 GMT", + "x-ms-client-request-id" : "4d3f964c-cbd0-4469-8ffe-12460dc73fc2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopydestacfail0blobapitestcopydestacfail19f781578958bd/javablobcopydestacfail2blobapitestcopydestacfail19f76465cc7", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "LeaseIdMismatchWithBlobOperation", + "retry-after" : "0", + "Content-Length" : "264", + "StatusCode" : "412", + "x-ms-request-id" : "d51e9660-201e-00c4-4cfb-594fb0000000", + "Body" : "LeaseIdMismatchWithBlobOperationThe lease ID specified did not match the lease ID for the blob.\nRequestId:d51e9660-201e-00c4-4cfb-594fb0000000\nTime:2019-08-23T21:43:09.1232534Z", + "Date" : "Fri, 23 Aug 2019 21:43:09 GMT", + "x-ms-client-request-id" : "1ec98b03-0b65-4394-b5ee-db97f03dd4d3", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccopydestacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e9673-201e-00c4-5ffb-594fb0000000", + "Body" : "jtccopydestacfailjtccopydestacfail0blobapitestcopydestacfail19f781578958bdFri, 23 Aug 2019 21:43:08 GMT\"0x8D72812E39F3DD9\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:09 GMT", + "x-ms-client-request-id" : "343da8de-b545-4761-9ed8-eca1ce8ab17f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopydestacfail0blobapitestcopydestacfail19f781578958bd?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e968c-201e-00c4-73fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:09 GMT", + "x-ms-client-request-id" : "563a6324-c571-456b-805b-00452b0c4867" + }, + "Exception" : null + } ], + "variables" : [ "jtccopydestacfail0blobapitestcopydestacfail19f781578958bd", "javablobcopydestacfail1blobapitestcopydestacfail19f58689f43", "javablobcopydestacfail2blobapitestcopydestacfail19f76465cc7" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopyerror.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopyerror.json new file mode 100644 index 0000000000000..1b18b504b7a0e --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopyerror.json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopyerror0blobapitestcopyerrorcd251410586b6aca30f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E68ADF88\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51ea093-201e-00c4-11fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:13 GMT", + "x-ms-client-request-id" : "814f1436-9a1a-4d20-962e-d0d4ecfe86b0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopyerror0blobapitestcopyerrorcd251410586b6aca30f/javablobcopyerror1blobapitestcopyerrorcd20797646b68acc", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:13 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:13 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E692B9FD\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51ea0a4-201e-00c4-1ffb-594fb0000000", + "x-ms-client-request-id" : "e1dccd78-638a-45df-8f78-8e7ba8391fea" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopyerror0blobapitestcopyerrorcd251410586b6aca30f/javablobcopyerror2blobapitestcopyerrorcd22580012ca7ea3", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "CannotVerifyCopySource", + "retry-after" : "0", + "Content-Length" : "229", + "StatusCode" : "404", + "x-ms-request-id" : "d51ea0b7-201e-00c4-30fb-594fb0000000", + "Body" : "CannotVerifyCopySourceThe specified resource does not exist.\nRequestId:d51ea0b7-201e-00c4-30fb-594fb0000000\nTime:2019-08-23T21:43:13.9478609Z", + "Date" : "Fri, 23 Aug 2019 21:43:13 GMT", + "x-ms-client-request-id" : "1bc9ef8d-5a14-4cd6-bcb5-b644d337dbc7", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccopyerror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51ea0ca-201e-00c4-3dfb-594fb0000000", + "Body" : "jtccopyerrorjtccopyerror0blobapitestcopyerrorcd251410586b6aca30fFri, 23 Aug 2019 21:43:13 GMT\"0x8D72812E68ADF88\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:13 GMT", + "x-ms-client-request-id" : "94c96970-c10e-4177-920e-57d649df3e37", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopyerror0blobapitestcopyerrorcd251410586b6aca30f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51ea0ce-201e-00c4-41fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:13 GMT", + "x-ms-client-request-id" : "54f47e37-394a-4c5c-a83e-b9a31c634a96" + }, + "Exception" : null + } ], + "variables" : [ "jtccopyerror0blobapitestcopyerrorcd251410586b6aca30f", "javablobcopyerror1blobapitestcopyerrorcd20797646b68acc", "javablobcopyerror2blobapitestcopyerrorcd22580012ca7ea3" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopymetadata[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopymetadata[0].json new file mode 100644 index 0000000000000..144b9b551c338 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopymetadata[0].json @@ -0,0 +1,144 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopymetadata0blobapitestcopymetadatae3c8456926436abf?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E0323ED0\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e89bb-201e-00c4-78fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:03 GMT", + "x-ms-client-request-id" : "aaa5e8bf-fd42-49c8-8c0f-7a15b50ad60f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopymetadata0blobapitestcopymetadatae3c8456926436abf/javablobcopymetadata1blobapitestcopymetadatae3c41042ebe8d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:03 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:03 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E0390541\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e89d3-201e-00c4-0ffb-594fb0000000", + "x-ms-client-request-id" : "74743a37-8a2d-4ea8-9dcf-7846dccc559f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopymetadata0blobapitestcopymetadatae3c8456926436abf/javablobcopymetadata2blobapitestcopymetadatae3c60857aa81b", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-copy-id" : "79bd32ab-bada-46b9-83d5-c404e4138a19", + "ETag" : "\"0x8D72812E0467609\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "x-ms-copy-status" : "success", + "StatusCode" : "202", + "x-ms-request-id" : "d51e89df-201e-00c4-1afb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:03 GMT", + "x-ms-client-request-id" : "07792ce3-94a2-4ad2-82fd-289eb0a6cee8" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopymetadata0blobapitestcopymetadatae3c8456926436abf/javablobcopymetadata2blobapitestcopymetadatae3c60857aa81b", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:03 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-blob-type" : "BlockBlob", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:43:03 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51e8a07-201e-00c4-3afb-594fb0000000", + "Content-Type" : "application/octet-stream", + "x-ms-version" : "2019-02-02", + "x-ms-copy-id" : "79bd32ab-bada-46b9-83d5-c404e4138a19", + "x-ms-copy-source" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopymetadata0blobapitestcopymetadatae3c8456926436abf/javablobcopymetadata1blobapitestcopymetadatae3c41042ebe8d", + "x-ms-copy-progress" : "7/7", + "Date" : "Fri, 23 Aug 2019 21:43:03 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "x-ms-copy-completion-time" : "Fri, 23 Aug 2019 21:43:03 GMT", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "\"0x8D72812E0467609\"", + "x-ms-copy-status" : "success", + "x-ms-client-request-id" : "9a4d0bf9-bb12-4e2b-8727-bddf950e4608" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccopymetadata&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e8a13-201e-00c4-46fb-594fb0000000", + "Body" : "jtccopymetadatajtccopymetadata0blobapitestcopymetadatae3c8456926436abfFri, 23 Aug 2019 21:43:03 GMT\"0x8D72812E0323ED0\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:03 GMT", + "x-ms-client-request-id" : "8e61a256-7a14-4f76-be38-3d26e027d313", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopymetadata0blobapitestcopymetadatae3c8456926436abf?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e8a25-201e-00c4-55fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:03 GMT", + "x-ms-client-request-id" : "d068fed3-1e15-42df-88f6-386a2aaa120e" + }, + "Exception" : null + } ], + "variables" : [ "jtccopymetadata0blobapitestcopymetadatae3c8456926436abf", "javablobcopymetadata1blobapitestcopymetadatae3c41042ebe8d", "javablobcopymetadata2blobapitestcopymetadatae3c60857aa81b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopymetadata[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopymetadata[1].json new file mode 100644 index 0000000000000..4f01446084df6 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopymetadata[1].json @@ -0,0 +1,146 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopymetadata0blobapitestcopymetadataab108326a735e1cd?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E0597F78\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e8a3c-201e-00c4-68fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:03 GMT", + "x-ms-client-request-id" : "b6de64a9-b5c2-43a0-a0d0-9c512a49a845" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopymetadata0blobapitestcopymetadataab108326a735e1cd/javablobcopymetadata1blobapitestcopymetadataab183156403f2", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:03 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:03 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E05FA98C\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e8a47-201e-00c4-72fb-594fb0000000", + "x-ms-client-request-id" : "dcb730ed-7e30-4892-95f9-f3497662dac6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopymetadata0blobapitestcopymetadataab108326a735e1cd/javablobcopymetadata2blobapitestcopymetadataab1348097e80d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-copy-id" : "6f6d9249-df36-45bc-9e32-bb3d5ae188ba", + "ETag" : "\"0x8D72812E06613BF\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "x-ms-copy-status" : "success", + "StatusCode" : "202", + "x-ms-request-id" : "d51e8a5e-201e-00c4-07fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:03 GMT", + "x-ms-client-request-id" : "60071d78-61fc-475b-ae63-1ebfd173af2d" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopymetadata0blobapitestcopymetadataab108326a735e1cd/javablobcopymetadata2blobapitestcopymetadataab1348097e80d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:03 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-blob-type" : "BlockBlob", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:43:03 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51e8a76-201e-00c4-1cfb-594fb0000000", + "x-ms-meta-fizz" : "buzz", + "Content-Type" : "application/octet-stream", + "x-ms-version" : "2019-02-02", + "x-ms-copy-id" : "6f6d9249-df36-45bc-9e32-bb3d5ae188ba", + "x-ms-copy-source" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopymetadata0blobapitestcopymetadataab108326a735e1cd/javablobcopymetadata1blobapitestcopymetadataab183156403f2", + "x-ms-copy-progress" : "7/7", + "Date" : "Fri, 23 Aug 2019 21:43:03 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "x-ms-meta-foo" : "bar", + "x-ms-copy-completion-time" : "Fri, 23 Aug 2019 21:43:03 GMT", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "\"0x8D72812E06613BF\"", + "x-ms-copy-status" : "success", + "x-ms-client-request-id" : "b5077856-df15-46de-bcf3-b0ff31333e55" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccopymetadata&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e8a82-201e-00c4-26fb-594fb0000000", + "Body" : "jtccopymetadatajtccopymetadata0blobapitestcopymetadataab108326a735e1cdFri, 23 Aug 2019 21:43:03 GMT\"0x8D72812E0597F78\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:03 GMT", + "x-ms-client-request-id" : "0a5c01f2-d617-40f9-b614-2ce112605485", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopymetadata0blobapitestcopymetadataab108326a735e1cd?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e8a8c-201e-00c4-2efb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:03 GMT", + "x-ms-client-request-id" : "ff49085b-8f19-4e20-8d5a-30e4a88a8874" + }, + "Exception" : null + } ], + "variables" : [ "jtccopymetadata0blobapitestcopymetadataab108326a735e1cd", "javablobcopymetadata1blobapitestcopymetadataab183156403f2", "javablobcopymetadata2blobapitestcopymetadataab1348097e80d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopymin.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopymin.json new file mode 100644 index 0000000000000..95fc38b6d9d13 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopymin.json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopymin0blobapitestcopymin09d0880413e48ec419454?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E01699C7\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e894f-201e-00c4-18fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:03 GMT", + "x-ms-client-request-id" : "14c9e6f3-a5dc-4c34-a301-0613539eab77" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopymin0blobapitestcopymin09d0880413e48ec419454/javablobcopymin1blobapitestcopymin09d415751ecc378f6f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:03 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:03 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E01D390D\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e8966-201e-00c4-2cfb-594fb0000000", + "x-ms-client-request-id" : "c3022e73-aade-4d05-b352-03d18eaade69" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopymin0blobapitestcopymin09d0880413e48ec419454/javablobcopymin1blobapitestcopymin09d415751ecc378f6f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-copy-id" : "84705f0c-e9e1-4337-a4a7-4b05b1c4a2ed", + "ETag" : "\"0x8D72812E0232DFB\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "x-ms-copy-status" : "success", + "StatusCode" : "202", + "x-ms-request-id" : "d51e8985-201e-00c4-47fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:03 GMT", + "x-ms-client-request-id" : "55df1bfb-5c29-486e-b0f1-23c673af1851" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccopymin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e8996-201e-00c4-55fb-594fb0000000", + "Body" : "jtccopyminjtccopymin0blobapitestcopymin09d0880413e48ec419454Fri, 23 Aug 2019 21:43:03 GMT\"0x8D72812E01699C7\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:03 GMT", + "x-ms-client-request-id" : "9e4625c9-0e13-48bd-b52e-02603c485385", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopymin0blobapitestcopymin09d0880413e48ec419454?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e89ab-201e-00c4-69fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:03 GMT", + "x-ms-client-request-id" : "6fe6d543-ffc9-4a63-82c1-d8ce4e6ab075" + }, + "Exception" : null + } ], + "variables" : [ "jtccopymin0blobapitestcopymin09d0880413e48ec419454", "javablobcopymin1blobapitestcopymin09d415751ecc378f6f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopysourceac[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopysourceac[0].json new file mode 100644 index 0000000000000..a9c85bb4961cd --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopysourceac[0].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopysourceac0blobapitestcopysourceacc2d494917cde68aa?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E089EA18\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e8aca-201e-00c4-5efb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:03 GMT", + "x-ms-client-request-id" : "5a8bb24d-c745-4ef0-8d40-728a979a8387" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopysourceac0blobapitestcopysourceacc2d494917cde68aa/javablobcopysourceac1blobapitestcopysourceacc2d39211ccc8b", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:03 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:03 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E090627F\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e8aea-201e-00c4-75fb-594fb0000000", + "x-ms-client-request-id" : "fdc894d5-b3c7-4a03-9045-f96827e932c2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopysourceac0blobapitestcopysourceacc2d494917cde68aa/javablobcopysourceac2blobapitestcopysourceacc2d323348a797", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-copy-id" : "8e9c3d8f-d714-487c-a724-69a6924f34e6", + "ETag" : "\"0x8D72812E0967E7F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "x-ms-copy-status" : "success", + "StatusCode" : "202", + "x-ms-request-id" : "d51e8afc-201e-00c4-03fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:03 GMT", + "x-ms-client-request-id" : "73dcf8a6-5cd2-40d7-b456-cd6d94eb88bf" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccopysourceac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e8b0e-201e-00c4-14fb-594fb0000000", + "Body" : "jtccopysourceacjtccopysourceac0blobapitestcopysourceacc2d494917cde68aaFri, 23 Aug 2019 21:43:03 GMT\"0x8D72812E089EA18\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:03 GMT", + "x-ms-client-request-id" : "4e05d77b-226e-47ca-86c7-9abd76c9beba", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopysourceac0blobapitestcopysourceacc2d494917cde68aa?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e8b1d-201e-00c4-21fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:03 GMT", + "x-ms-client-request-id" : "85199bc4-e565-4fcb-85fc-f2a673e169b3" + }, + "Exception" : null + } ], + "variables" : [ "jtccopysourceac0blobapitestcopysourceacc2d494917cde68aa", "javablobcopysourceac1blobapitestcopysourceacc2d39211ccc8b", "javablobcopysourceac2blobapitestcopysourceacc2d323348a797" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopysourceac[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopysourceac[1].json new file mode 100644 index 0000000000000..9aa33fcd1a149 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopysourceac[1].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopysourceac0blobapitestcopysourceac5cd52512a5f3ff0e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E0A7B299\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e8b2b-201e-00c4-2dfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:03 GMT", + "x-ms-client-request-id" : "8835dfa9-0be4-4723-8d79-62ec5267b2ae" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopysourceac0blobapitestcopysourceac5cd52512a5f3ff0e/javablobcopysourceac1blobapitestcopysourceac5cd59664f0db3", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:04 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:04 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E0ACF227\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e8b42-201e-00c4-42fb-594fb0000000", + "x-ms-client-request-id" : "986fdc60-e354-4a60-89bf-3bd70c5dbc98" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopysourceac0blobapitestcopysourceac5cd52512a5f3ff0e/javablobcopysourceac2blobapitestcopysourceac5cd64460aa276", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-copy-id" : "bceeb8f6-6a2e-4c47-83f3-f29fa5393863", + "ETag" : "\"0x8D72812E0B33548\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "x-ms-copy-status" : "success", + "StatusCode" : "202", + "x-ms-request-id" : "d51e8b5d-201e-00c4-58fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:04 GMT", + "x-ms-client-request-id" : "7c0588f1-5ca5-49e9-be81-6379239bba02" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccopysourceac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e8b89-201e-00c4-7cfb-594fb0000000", + "Body" : "jtccopysourceacjtccopysourceac0blobapitestcopysourceac5cd52512a5f3ff0eFri, 23 Aug 2019 21:43:03 GMT\"0x8D72812E0A7B299\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:04 GMT", + "x-ms-client-request-id" : "2dba4dd9-a4d7-4ce4-af48-337e3288ec43", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopysourceac0blobapitestcopysourceac5cd52512a5f3ff0e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e8b96-201e-00c4-06fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:04 GMT", + "x-ms-client-request-id" : "909cea93-097d-4b07-bcfd-9dc432cb61f2" + }, + "Exception" : null + } ], + "variables" : [ "jtccopysourceac0blobapitestcopysourceac5cd52512a5f3ff0e", "javablobcopysourceac1blobapitestcopysourceac5cd59664f0db3", "javablobcopysourceac2blobapitestcopysourceac5cd64460aa276" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopysourceac[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopysourceac[2].json new file mode 100644 index 0000000000000..73357334c9266 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopysourceac[2].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopysourceac0blobapitestcopysourceaccf4085146edff460?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E0C553E7\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e8baf-201e-00c4-1afb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:04 GMT", + "x-ms-client-request-id" : "5ce6dd5a-91e7-4470-8668-af942e830a7a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopysourceac0blobapitestcopysourceaccf4085146edff460/javablobcopysourceac1blobapitestcopysourceaccf490687ccbad", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:04 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:04 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E0D51D72\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e8bf1-201e-00c4-52fb-594fb0000000", + "x-ms-client-request-id" : "c668dcc4-b8d8-4aa4-9038-b67db5103772" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopysourceac0blobapitestcopysourceaccf4085146edff460/javablobcopysourceac2blobapitestcopysourceaccf483346e4c24", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-copy-id" : "51eb5e95-9ca5-4f92-8d26-1c3df01e2953", + "ETag" : "\"0x8D72812E0DB608E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "x-ms-copy-status" : "success", + "StatusCode" : "202", + "x-ms-request-id" : "d51e8c00-201e-00c4-5dfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:04 GMT", + "x-ms-client-request-id" : "eb0e83b9-3618-4385-8760-0e0383519f59" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccopysourceac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e8c1a-201e-00c4-73fb-594fb0000000", + "Body" : "jtccopysourceacjtccopysourceac0blobapitestcopysourceaccf4085146edff460Fri, 23 Aug 2019 21:43:04 GMT\"0x8D72812E0C553E7\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:04 GMT", + "x-ms-client-request-id" : "82cf8eeb-026a-40fc-bf74-78d72232d64d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopysourceac0blobapitestcopysourceaccf4085146edff460?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e8c37-201e-00c4-0bfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:04 GMT", + "x-ms-client-request-id" : "f2339aa7-c615-4d70-a0bc-e0560fa5716f" + }, + "Exception" : null + } ], + "variables" : [ "jtccopysourceac0blobapitestcopysourceaccf4085146edff460", "javablobcopysourceac1blobapitestcopysourceaccf490687ccbad", "javablobcopysourceac2blobapitestcopysourceaccf483346e4c24" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopysourceac[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopysourceac[3].json new file mode 100644 index 0000000000000..1f60a2a239e09 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopysourceac[3].json @@ -0,0 +1,139 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopysourceac0blobapitestcopysourceac5ba5231009d95b17?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E0F2B088\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e8c54-201e-00c4-23fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:04 GMT", + "x-ms-client-request-id" : "4daa9da2-07e0-45dc-9e25-322203f8de83" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopysourceac0blobapitestcopysourceac5ba5231009d95b17/javablobcopysourceac1blobapitestcopysourceac5ba51047614f2", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:04 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:04 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E0F8B3C2\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e8c6c-201e-00c4-34fb-594fb0000000", + "x-ms-client-request-id" : "d5a1a9ff-578d-45f8-a14e-87d53328fc33" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopysourceac0blobapitestcopysourceac5ba5231009d95b17/javablobcopysourceac1blobapitestcopysourceac5ba51047614f2", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:04 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:43:04 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812E0F8B3C2\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:43:04 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51e8c7b-201e-00c4-41fb-594fb0000000", + "x-ms-client-request-id" : "5021479a-b422-4934-8bde-03f2322798a3", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopysourceac0blobapitestcopysourceac5ba5231009d95b17/javablobcopysourceac2blobapitestcopysourceac5ba3961631c05", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-copy-id" : "e9f097e9-07b3-41d2-a84e-42ebc44586e5", + "ETag" : "\"0x8D72812E104EBBD\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "x-ms-copy-status" : "success", + "StatusCode" : "202", + "x-ms-request-id" : "d51e8c8f-201e-00c4-54fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:04 GMT", + "x-ms-client-request-id" : "4fa4e86e-9069-4bf3-8a9c-4947c3dae5c5" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccopysourceac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e8ca8-201e-00c4-6dfb-594fb0000000", + "Body" : "jtccopysourceacjtccopysourceac0blobapitestcopysourceac5ba5231009d95b17Fri, 23 Aug 2019 21:43:04 GMT\"0x8D72812E0F2B088\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:04 GMT", + "x-ms-client-request-id" : "3e286a84-7778-4165-b321-469b86f86385", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopysourceac0blobapitestcopysourceac5ba5231009d95b17?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e8cb2-201e-00c4-77fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:04 GMT", + "x-ms-client-request-id" : "3e132d48-3d6a-455b-abf2-5bb8b50b0911" + }, + "Exception" : null + } ], + "variables" : [ "jtccopysourceac0blobapitestcopysourceac5ba5231009d95b17", "javablobcopysourceac1blobapitestcopysourceac5ba51047614f2", "javablobcopysourceac2blobapitestcopysourceac5ba3961631c05" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopysourceac[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopysourceac[4].json new file mode 100644 index 0000000000000..1a25d0e4cc065 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopysourceac[4].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopysourceac0blobapitestcopysourceac9f328180ce997258?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E116E336\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e8cd0-201e-00c4-11fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:04 GMT", + "x-ms-client-request-id" : "5cb268fb-e2df-475c-9d8e-6926ef9e2bc7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopysourceac0blobapitestcopysourceac9f328180ce997258/javablobcopysourceac1blobapitestcopysourceac9f3842566259d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:04 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:04 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E11C984E\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e8ce2-201e-00c4-20fb-594fb0000000", + "x-ms-client-request-id" : "414e28f3-8a42-49e2-865e-218692622328" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopysourceac0blobapitestcopysourceac9f328180ce997258/javablobcopysourceac2blobapitestcopysourceac9f3239125887d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-copy-id" : "f336de78-fb3a-4755-8893-9bc6fa71a711", + "ETag" : "\"0x8D72812E1243B40\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "x-ms-copy-status" : "success", + "StatusCode" : "202", + "x-ms-request-id" : "d51e8cf8-201e-00c4-33fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:04 GMT", + "x-ms-client-request-id" : "23a2a2f3-6f0f-40ce-9413-74c1ad56f048" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccopysourceac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e8d12-201e-00c4-49fb-594fb0000000", + "Body" : "jtccopysourceacjtccopysourceac0blobapitestcopysourceac9f328180ce997258Fri, 23 Aug 2019 21:43:04 GMT\"0x8D72812E116E336\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:04 GMT", + "x-ms-client-request-id" : "5b367b00-490e-413e-816b-88689be03b20", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopysourceac0blobapitestcopysourceac9f328180ce997258?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e8d21-201e-00c4-56fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:04 GMT", + "x-ms-client-request-id" : "92e54e69-741b-499e-8c76-a799d838207a" + }, + "Exception" : null + } ], + "variables" : [ "jtccopysourceac0blobapitestcopysourceac9f328180ce997258", "javablobcopysourceac1blobapitestcopysourceac9f3842566259d", "javablobcopysourceac2blobapitestcopysourceac9f3239125887d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopysourceacfail[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopysourceacfail[0].json new file mode 100644 index 0000000000000..bd275c0cb52e7 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopysourceacfail[0].json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopysourceacfail0blobapitestcopysourceacfail9ac460171f27?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E13520F8\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e8d36-201e-00c4-6afb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:04 GMT", + "x-ms-client-request-id" : "45717c43-278b-490d-b61d-0caec9a5aee6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopysourceacfail0blobapitestcopysourceacfail9ac460171f27/javablobcopysourceacfail1blobapitestcopysourceacfail9ac485666", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:04 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:04 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E13CAB45\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e8d4b-201e-00c4-7bfb-594fb0000000", + "x-ms-client-request-id" : "5ee7335e-faa0-42d2-88f4-d965915fbbcc" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopysourceacfail0blobapitestcopysourceacfail9ac460171f27/javablobcopysourceacfail2blobapitestcopysourceacfail9ac263080", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "SourceConditionNotMet", + "retry-after" : "0", + "Content-Length" : "265", + "StatusCode" : "412", + "x-ms-request-id" : "d51e8d5d-201e-00c4-0cfb-594fb0000000", + "Body" : "SourceConditionNotMetThe source condition specified using HTTP conditional header(s) is not met.\nRequestId:d51e8d5d-201e-00c4-0cfb-594fb0000000\nTime:2019-08-23T21:43:04.9943153Z", + "Date" : "Fri, 23 Aug 2019 21:43:04 GMT", + "x-ms-client-request-id" : "d11653c5-1f0b-4b58-bc0b-ac0945c0e098", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccopysourceacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e8d6a-201e-00c4-18fb-594fb0000000", + "Body" : "jtccopysourceacfailjtccopysourceacfail0blobapitestcopysourceacfail9ac460171f27Fri, 23 Aug 2019 21:43:04 GMT\"0x8D72812E13520F8\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:05 GMT", + "x-ms-client-request-id" : "bb3a1e5c-b660-4fdb-a649-c6dd0c2ca964", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopysourceacfail0blobapitestcopysourceacfail9ac460171f27?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e8d78-201e-00c4-25fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:05 GMT", + "x-ms-client-request-id" : "3523ed28-9c59-4e44-872f-451578f9d9a0" + }, + "Exception" : null + } ], + "variables" : [ "jtccopysourceacfail0blobapitestcopysourceacfail9ac460171f27", "javablobcopysourceacfail1blobapitestcopysourceacfail9ac485666", "javablobcopysourceacfail2blobapitestcopysourceacfail9ac263080" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopysourceacfail[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopysourceacfail[1].json new file mode 100644 index 0000000000000..90c598966a220 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopysourceacfail[1].json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopysourceacfail0blobapitestcopysourceacfail41571417a44b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E1509EE9\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:05 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e8d9d-201e-00c4-41fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:05 GMT", + "x-ms-client-request-id" : "71127bd0-5c0a-4fc7-b18b-dd1fa96e2713" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopysourceacfail0blobapitestcopysourceacfail41571417a44b/javablobcopysourceacfail1blobapitestcopysourceacfail415991392", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:05 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:05 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E1562CF6\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e8db0-201e-00c4-52fb-594fb0000000", + "x-ms-client-request-id" : "d4554c19-396f-43a2-a761-4ba26742f798" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopysourceacfail0blobapitestcopysourceacfail41571417a44b/javablobcopysourceacfail2blobapitestcopysourceacfail415804952", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "SourceConditionNotMet", + "retry-after" : "0", + "Content-Length" : "265", + "StatusCode" : "412", + "x-ms-request-id" : "d51e8dc3-201e-00c4-61fb-594fb0000000", + "Body" : "SourceConditionNotMetThe source condition specified using HTTP conditional header(s) is not met.\nRequestId:d51e8dc3-201e-00c4-61fb-594fb0000000\nTime:2019-08-23T21:43:05.1594730Z", + "Date" : "Fri, 23 Aug 2019 21:43:05 GMT", + "x-ms-client-request-id" : "0650310d-d313-4181-9e48-5d50ea3c188e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccopysourceacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e8dd4-201e-00c4-6efb-594fb0000000", + "Body" : "jtccopysourceacfailjtccopysourceacfail0blobapitestcopysourceacfail41571417a44bFri, 23 Aug 2019 21:43:05 GMT\"0x8D72812E1509EE9\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:05 GMT", + "x-ms-client-request-id" : "ca8b53f5-17de-48e1-ae53-f260960627c2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopysourceacfail0blobapitestcopysourceacfail41571417a44b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e8de1-201e-00c4-7afb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:05 GMT", + "x-ms-client-request-id" : "0214a7bd-fc72-4620-9307-f16621fc6fea" + }, + "Exception" : null + } ], + "variables" : [ "jtccopysourceacfail0blobapitestcopysourceacfail41571417a44b", "javablobcopysourceacfail1blobapitestcopysourceacfail415991392", "javablobcopysourceacfail2blobapitestcopysourceacfail415804952" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopysourceacfail[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopysourceacfail[2].json new file mode 100644 index 0000000000000..416f632252d82 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopysourceacfail[2].json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopysourceacfail0blobapitestcopysourceacfail13c359304b43?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E16C1CE4\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:05 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e8e03-201e-00c4-19fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:05 GMT", + "x-ms-client-request-id" : "0f61c03f-60d0-4a9e-b327-d80a5b628c16" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopysourceacfail0blobapitestcopysourceacfail13c359304b43/javablobcopysourceacfail1blobapitestcopysourceacfail13c074591", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:05 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:05 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E172BCA8\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e8e21-201e-00c4-34fb-594fb0000000", + "x-ms-client-request-id" : "07f4e235-cc6e-4cc1-bcb6-33cd0c74ba02" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopysourceacfail0blobapitestcopysourceacfail13c359304b43/javablobcopysourceacfail2blobapitestcopysourceacfail13c84424e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "SourceConditionNotMet", + "retry-after" : "0", + "Content-Length" : "265", + "StatusCode" : "412", + "x-ms-request-id" : "d51e8e39-201e-00c4-49fb-594fb0000000", + "Body" : "SourceConditionNotMetThe source condition specified using HTTP conditional header(s) is not met.\nRequestId:d51e8e39-201e-00c4-49fb-594fb0000000\nTime:2019-08-23T21:43:05.3436487Z", + "Date" : "Fri, 23 Aug 2019 21:43:05 GMT", + "x-ms-client-request-id" : "94b5d4f8-1eb8-4690-ab89-1305edd70038", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccopysourceacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e8e45-201e-00c4-55fb-594fb0000000", + "Body" : "jtccopysourceacfailjtccopysourceacfail0blobapitestcopysourceacfail13c359304b43Fri, 23 Aug 2019 21:43:05 GMT\"0x8D72812E16C1CE4\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:05 GMT", + "x-ms-client-request-id" : "d7028dfd-d2bd-433d-81f0-8313a9b49fb3", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopysourceacfail0blobapitestcopysourceacfail13c359304b43?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e8e50-201e-00c4-5ffb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:05 GMT", + "x-ms-client-request-id" : "c22d9433-963c-40e4-800d-d26b590adbbb" + }, + "Exception" : null + } ], + "variables" : [ "jtccopysourceacfail0blobapitestcopysourceacfail13c359304b43", "javablobcopysourceacfail1blobapitestcopysourceacfail13c074591", "javablobcopysourceacfail2blobapitestcopysourceacfail13c84424e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopysourceacfail[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopysourceacfail[3].json new file mode 100644 index 0000000000000..45e9c3eaf86a3 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestcopysourceacfail[3].json @@ -0,0 +1,138 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopysourceacfail0blobapitestcopysourceacfailac9663520715?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E1859E91\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:05 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e8e65-201e-00c4-71fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:05 GMT", + "x-ms-client-request-id" : "4e5b3d6c-da78-4bc4-88d2-bcadcf6c9236" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopysourceacfail0blobapitestcopysourceacfailac9663520715/javablobcopysourceacfail1blobapitestcopysourceacfailac948179e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:05 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:05 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E18BA1F7\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e8e76-201e-00c4-01fb-594fb0000000", + "x-ms-client-request-id" : "3691aa47-28b8-4ae6-a100-5c56003b4df9" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopysourceacfail0blobapitestcopysourceacfailac9663520715/javablobcopysourceacfail1blobapitestcopysourceacfailac948179e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:05 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:43:05 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812E18BA1F7\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:43:05 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51e8e92-201e-00c4-17fb-594fb0000000", + "x-ms-client-request-id" : "e396c382-a12b-494d-bcde-e5fc0864e864", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopysourceacfail0blobapitestcopysourceacfailac9663520715/javablobcopysourceacfail2blobapitestcopysourceacfailac9965497", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "SourceConditionNotMet", + "retry-after" : "0", + "Content-Length" : "265", + "StatusCode" : "412", + "x-ms-request-id" : "d51e8eab-201e-00c4-2efb-594fb0000000", + "Body" : "SourceConditionNotMetThe source condition specified using HTTP conditional header(s) is not met.\nRequestId:d51e8eab-201e-00c4-2efb-594fb0000000\nTime:2019-08-23T21:43:05.5428384Z", + "Date" : "Fri, 23 Aug 2019 21:43:05 GMT", + "x-ms-client-request-id" : "5298cd5b-4ed5-4779-9411-ef673ab00116", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccopysourceacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e8ec5-201e-00c4-43fb-594fb0000000", + "Body" : "jtccopysourceacfailjtccopysourceacfail0blobapitestcopysourceacfailac9663520715Fri, 23 Aug 2019 21:43:05 GMT\"0x8D72812E1859E91\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:05 GMT", + "x-ms-client-request-id" : "49748d11-5616-4db2-b584-aca3f89531be", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccopysourceacfail0blobapitestcopysourceacfailac9663520715?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e8edf-201e-00c4-5bfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:05 GMT", + "x-ms-client-request-id" : "72a39196-976d-4f78-a9b3-f0125c22a7be" + }, + "Exception" : null + } ], + "variables" : [ "jtccopysourceacfail0blobapitestcopysourceacfailac9663520715", "javablobcopysourceacfail1blobapitestcopysourceacfailac948179e", "javablobcopysourceacfail2blobapitestcopysourceacfailac9965497" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdelete.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdelete.json new file mode 100644 index 0000000000000..6ae1b6dadd46c --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdelete.json @@ -0,0 +1,105 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdelete0blobapitestdelete80850759cca95a4219cd43?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812EB716D32\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51eb149-201e-00c4-53fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:22 GMT", + "x-ms-client-request-id" : "8b5f1d59-f092-4047-8bea-a5ecd3a61b10" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdelete0blobapitestdelete80850759cca95a4219cd43/javablobdelete1blobapitestdelete8080600024329eb36d0", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:22 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:22 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812EB76FF3F\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51eb15c-201e-00c4-62fb-594fb0000000", + "x-ms-client-request-id" : "84164585-c459-4d76-970a-97197606c118" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdelete0blobapitestdelete80850759cca95a4219cd43/javablobdelete1blobapitestdelete8080600024329eb36d0", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-delete-type-permanent" : "true", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51eb171-201e-00c4-73fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:22 GMT", + "x-ms-client-request-id" : "bddae29d-b7c9-4468-97e6-fc36b910d266" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcdelete&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51eb17a-201e-00c4-7afb-594fb0000000", + "Body" : "jtcdeletejtcdelete0blobapitestdelete80850759cca95a4219cd43Fri, 23 Aug 2019 21:43:22 GMT\"0x8D72812EB716D32\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:22 GMT", + "x-ms-client-request-id" : "feee9876-66b0-4ebd-a47c-f3ebde9e5db5", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdelete0blobapitestdelete80850759cca95a4219cd43?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51eb18a-201e-00c4-0afb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:22 GMT", + "x-ms-client-request-id" : "6e3a8339-5ca0-4afc-89fe-b5819d82463d" + }, + "Exception" : null + } ], + "variables" : [ "jtcdelete0blobapitestdelete80850759cca95a4219cd43", "javablobdelete1blobapitestdelete8080600024329eb36d0" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdeleteac[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdeleteac[0].json new file mode 100644 index 0000000000000..331c517d99ce8 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdeleteac[0].json @@ -0,0 +1,105 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteac0blobapitestdeleteacdfe46153a5c872e7a9d7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812EC0B88E5\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51eb340-201e-00c4-0efb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:23 GMT", + "x-ms-client-request-id" : "f3da0975-d011-408b-8f49-e617d98c1ad5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteac0blobapitestdeleteacdfe46153a5c872e7a9d7/javablobdeleteac1blobapitestdeleteacdfe196744eb840fce", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:23 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:23 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812EC111B2A\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51eb353-201e-00c4-1bfb-594fb0000000", + "x-ms-client-request-id" : "32878e3b-6821-4ae4-aebc-59a2b3811ff1" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteac0blobapitestdeleteacdfe46153a5c872e7a9d7/javablobdeleteac1blobapitestdeleteacdfe196744eb840fce", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-delete-type-permanent" : "true", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51eb363-201e-00c4-28fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:23 GMT", + "x-ms-client-request-id" : "ab61f7c6-a502-4a80-be82-df0b5f1aaca3" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcdeleteac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51eb36a-201e-00c4-2ffb-594fb0000000", + "Body" : "jtcdeleteacjtcdeleteac0blobapitestdeleteacdfe46153a5c872e7a9d7Fri, 23 Aug 2019 21:43:23 GMT\"0x8D72812EC0B88E5\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:23 GMT", + "x-ms-client-request-id" : "f9b6d31e-bc99-45ae-8ef3-8ab22424f2a9", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteac0blobapitestdeleteacdfe46153a5c872e7a9d7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51eb372-201e-00c4-36fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:23 GMT", + "x-ms-client-request-id" : "d29d40db-9218-47dc-a848-74eec5f423bd" + }, + "Exception" : null + } ], + "variables" : [ "jtcdeleteac0blobapitestdeleteacdfe46153a5c872e7a9d7", "javablobdeleteac1blobapitestdeleteacdfe196744eb840fce" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdeleteac[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdeleteac[1].json new file mode 100644 index 0000000000000..ef83afb742d00 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdeleteac[1].json @@ -0,0 +1,105 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteac0blobapitestdeleteac020644102668e8049b63?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812EC257FDC\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51eb380-201e-00c4-41fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:23 GMT", + "x-ms-client-request-id" : "04d270cb-025b-47de-bf53-88aa0f6e91b6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteac0blobapitestdeleteac020644102668e8049b63/javablobdeleteac1blobapitestdeleteac020276032fdc676f7", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:23 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:23 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812EC2B1221\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51eb390-201e-00c4-4dfb-594fb0000000", + "x-ms-client-request-id" : "2b303c3d-3acf-4b21-9a08-c3e5309671b5" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteac0blobapitestdeleteac020644102668e8049b63/javablobdeleteac1blobapitestdeleteac020276032fdc676f7", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-delete-type-permanent" : "true", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51eb39a-201e-00c4-55fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:23 GMT", + "x-ms-client-request-id" : "875e14b5-0008-4c5d-a2c7-905266cca227" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcdeleteac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51eb3ac-201e-00c4-62fb-594fb0000000", + "Body" : "jtcdeleteacjtcdeleteac0blobapitestdeleteac020644102668e8049b63Fri, 23 Aug 2019 21:43:23 GMT\"0x8D72812EC257FDC\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:23 GMT", + "x-ms-client-request-id" : "649309d3-b577-4b89-876e-2eaaf5cf3d68", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteac0blobapitestdeleteac020644102668e8049b63?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51eb3bf-201e-00c4-6ffb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:23 GMT", + "x-ms-client-request-id" : "a7585729-1404-4c3c-b58c-4d24e629ca78" + }, + "Exception" : null + } ], + "variables" : [ "jtcdeleteac0blobapitestdeleteac020644102668e8049b63", "javablobdeleteac1blobapitestdeleteac020276032fdc676f7" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdeleteac[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdeleteac[2].json new file mode 100644 index 0000000000000..48a42e72cdd05 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdeleteac[2].json @@ -0,0 +1,105 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteac0blobapitestdeleteac3d740539ff1a19d824c4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812EC3F289F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51eb3cd-201e-00c4-7cfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:23 GMT", + "x-ms-client-request-id" : "fc33d8b8-44eb-4a6b-8817-168659726055" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteac0blobapitestdeleteac3d740539ff1a19d824c4/javablobdeleteac1blobapitestdeleteac3d762032edb2900b2", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:23 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:23 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812EC44BAFC\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51eb3de-201e-00c4-09fb-594fb0000000", + "x-ms-client-request-id" : "0699271b-5187-4ce7-958a-70d21c4839dd" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteac0blobapitestdeleteac3d740539ff1a19d824c4/javablobdeleteac1blobapitestdeleteac3d762032edb2900b2", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-delete-type-permanent" : "true", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51eb3f2-201e-00c4-18fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:23 GMT", + "x-ms-client-request-id" : "ce2c4d4a-95c8-4150-b276-46a7e8dda23c" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcdeleteac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51eb3fa-201e-00c4-1ffb-594fb0000000", + "Body" : "jtcdeleteacjtcdeleteac0blobapitestdeleteac3d740539ff1a19d824c4Fri, 23 Aug 2019 21:43:23 GMT\"0x8D72812EC3F289F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:23 GMT", + "x-ms-client-request-id" : "90c9a7b5-72d2-4866-bcbe-b45615e808c6", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteac0blobapitestdeleteac3d740539ff1a19d824c4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51eb403-201e-00c4-28fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:23 GMT", + "x-ms-client-request-id" : "bff3e87e-e4d4-44da-879e-ec2fcea30696" + }, + "Exception" : null + } ], + "variables" : [ "jtcdeleteac0blobapitestdeleteac3d740539ff1a19d824c4", "javablobdeleteac1blobapitestdeleteac3d762032edb2900b2" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdeleteac[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdeleteac[3].json new file mode 100644 index 0000000000000..9b38761b5c87a --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdeleteac[3].json @@ -0,0 +1,136 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteac0blobapitestdeleteac471243566a84dead5f5f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812EC58D168\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51eb413-201e-00c4-35fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:23 GMT", + "x-ms-client-request-id" : "8b013252-1bae-4a6e-a7f3-ad1849de1f9f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteac0blobapitestdeleteac471243566a84dead5f5f/javablobdeleteac1blobapitestdeleteac4719791288f179f23", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:23 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:23 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812EC7105F3\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51eb44a-201e-00c4-61fb-594fb0000000", + "x-ms-client-request-id" : "d693d14b-96db-4a95-8f97-dd7be220e95e" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteac0blobapitestdeleteac471243566a84dead5f5f/javablobdeleteac1blobapitestdeleteac4719791288f179f23", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:23 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:43:23 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812EC7105F3\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:43:23 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51eb457-201e-00c4-6efb-594fb0000000", + "x-ms-client-request-id" : "250b8287-495e-460b-b8c5-d1954e65f818", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteac0blobapitestdeleteac471243566a84dead5f5f/javablobdeleteac1blobapitestdeleteac4719791288f179f23", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-delete-type-permanent" : "true", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51eb466-201e-00c4-7cfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:23 GMT", + "x-ms-client-request-id" : "ed2cc332-e82e-4c83-a790-adc5d47bb487" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcdeleteac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51eb479-201e-00c4-0efb-594fb0000000", + "Body" : "jtcdeleteacjtcdeleteac0blobapitestdeleteac471243566a84dead5f5fFri, 23 Aug 2019 21:43:23 GMT\"0x8D72812EC58D168\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:23 GMT", + "x-ms-client-request-id" : "de540d69-10b1-42f8-a058-35be002fa776", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteac0blobapitestdeleteac471243566a84dead5f5f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51eb486-201e-00c4-1bfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:23 GMT", + "x-ms-client-request-id" : "85cc4fcb-a3a5-4247-ad17-39e3391e4427" + }, + "Exception" : null + } ], + "variables" : [ "jtcdeleteac0blobapitestdeleteac471243566a84dead5f5f", "javablobdeleteac1blobapitestdeleteac4719791288f179f23" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdeleteac[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdeleteac[4].json new file mode 100644 index 0000000000000..d08cd424e485e --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdeleteac[4].json @@ -0,0 +1,105 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteac0blobapitestdeleteac00534189ac53a2ffee72?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812EC89D86E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51eb493-201e-00c4-26fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:23 GMT", + "x-ms-client-request-id" : "9a7fddd2-b5ce-4cc2-9a09-f6f0bf235a81" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteac0blobapitestdeleteac00534189ac53a2ffee72/javablobdeleteac1blobapitestdeleteac005580764d6c57b8d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:23 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:23 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812EC8F91EF\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51eb4a3-201e-00c4-34fb-594fb0000000", + "x-ms-client-request-id" : "4df1efa2-b48a-41f3-ab90-739a9c085b8c" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteac0blobapitestdeleteac00534189ac53a2ffee72/javablobdeleteac1blobapitestdeleteac005580764d6c57b8d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-delete-type-permanent" : "true", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51eb4ac-201e-00c4-3dfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:23 GMT", + "x-ms-client-request-id" : "5830c1bf-353d-4720-9798-c00c7ba98d35" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcdeleteac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51eb4bf-201e-00c4-4dfb-594fb0000000", + "Body" : "jtcdeleteacjtcdeleteac0blobapitestdeleteac00534189ac53a2ffee72Fri, 23 Aug 2019 21:43:23 GMT\"0x8D72812EC89D86E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:23 GMT", + "x-ms-client-request-id" : "29ae09d6-184d-4fc9-9950-b59fd614e609", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteac0blobapitestdeleteac00534189ac53a2ffee72?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51eb4cb-201e-00c4-59fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:24 GMT", + "x-ms-client-request-id" : "6a50e702-a6a3-43ca-b558-01573486037b" + }, + "Exception" : null + } ], + "variables" : [ "jtcdeleteac0blobapitestdeleteac00534189ac53a2ffee72", "javablobdeleteac1blobapitestdeleteac005580764d6c57b8d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdeleteac[5].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdeleteac[5].json new file mode 100644 index 0000000000000..0823a9aa33109 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdeleteac[5].json @@ -0,0 +1,126 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteac0blobapitestdeleteac7d75373426ae964d5a2f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812ECA3812D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51eb4e7-201e-00c4-73fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:24 GMT", + "x-ms-client-request-id" : "f69797d8-bde9-4319-948a-340c5be1762d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteac0blobapitestdeleteac7d75373426ae964d5a2f/javablobdeleteac1blobapitestdeleteac7d79443220105478c", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:24 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:24 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812ECA913A5\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51eb4f9-201e-00c4-03fb-594fb0000000", + "x-ms-client-request-id" : "3b53d15b-c060-464b-90eb-7d00a85b422e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteac0blobapitestdeleteac7d75373426ae964d5a2f/javablobdeleteac1blobapitestdeleteac7d79443220105478c?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812ECA913A5\"", + "x-ms-lease-id" : "883e882d-c4ba-4b64-a44a-a71c6d20fcf9", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51eb505-201e-00c4-0dfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:24 GMT", + "x-ms-client-request-id" : "cd5a0b36-97ad-4d0b-9d85-9be3c3017ab7" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteac0blobapitestdeleteac7d75373426ae964d5a2f/javablobdeleteac1blobapitestdeleteac7d79443220105478c", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-delete-type-permanent" : "true", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51eb516-201e-00c4-1dfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:24 GMT", + "x-ms-client-request-id" : "43aa7868-d9aa-4f35-a50a-d020416d36dc" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcdeleteac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51eb533-201e-00c4-36fb-594fb0000000", + "Body" : "jtcdeleteacjtcdeleteac0blobapitestdeleteac7d75373426ae964d5a2fFri, 23 Aug 2019 21:43:24 GMT\"0x8D72812ECA3812D\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:24 GMT", + "x-ms-client-request-id" : "4e991eb2-1129-4243-b8c7-2007d80b6eec", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteac0blobapitestdeleteac7d75373426ae964d5a2f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51eb542-201e-00c4-42fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:24 GMT", + "x-ms-client-request-id" : "4f8184c3-33eb-44f4-bc89-c881bd11aa2c" + }, + "Exception" : null + } ], + "variables" : [ "jtcdeleteac0blobapitestdeleteac7d75373426ae964d5a2f", "javablobdeleteac1blobapitestdeleteac7d79443220105478c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdeleteacfail[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdeleteacfail[0].json new file mode 100644 index 0000000000000..28c2e5e5d36a9 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdeleteacfail[0].json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteacfail0blobapitestdeleteacfail291932186e7efa7f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812ECC8C586\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51eb555-201e-00c4-53fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:24 GMT", + "x-ms-client-request-id" : "5e287581-eb18-43da-bbe4-052f08497431" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteacfail0blobapitestdeleteacfail291932186e7efa7f/javablobdeleteacfail1blobapitestdeleteacfail29165690f05d8", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:24 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:24 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812ECCE09E2\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51eb569-201e-00c4-63fb-594fb0000000", + "x-ms-client-request-id" : "e24d2ae0-e3eb-4a8d-b03c-ae890065a781" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteacfail0blobapitestdeleteacfail291932186e7efa7f/javablobdeleteacfail1blobapitestdeleteacfail29165690f05d8", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "d51eb57b-201e-00c4-75fb-594fb0000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:d51eb57b-201e-00c4-75fb-594fb0000000\nTime:2019-08-23T21:43:24.4028319Z", + "Date" : "Fri, 23 Aug 2019 21:43:24 GMT", + "x-ms-client-request-id" : "5694d768-05ba-4981-8e4d-722f84cf56fa", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcdeleteacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51eb584-201e-00c4-7efb-594fb0000000", + "Body" : "jtcdeleteacfailjtcdeleteacfail0blobapitestdeleteacfail291932186e7efa7fFri, 23 Aug 2019 21:43:24 GMT\"0x8D72812ECC8C586\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:24 GMT", + "x-ms-client-request-id" : "e8db4cac-aa1a-409e-8bd5-b149f0634657", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteacfail0blobapitestdeleteacfail291932186e7efa7f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51eb597-201e-00c4-0dfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:24 GMT", + "x-ms-client-request-id" : "7a3d05c0-c0a2-4dca-b3fc-09f67ccfed8e" + }, + "Exception" : null + } ], + "variables" : [ "jtcdeleteacfail0blobapitestdeleteacfail291932186e7efa7f", "javablobdeleteacfail1blobapitestdeleteacfail29165690f05d8" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdeleteacfail[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdeleteacfail[1].json new file mode 100644 index 0000000000000..1ef00a194bec7 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdeleteacfail[1].json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteacfail0blobapitestdeleteacfail0bf33997d92abeda?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812ECE22020\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51eb5ab-201e-00c4-1efb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:24 GMT", + "x-ms-client-request-id" : "860bd898-17fa-4e54-83b4-f024751aeb54" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteacfail0blobapitestdeleteacfail0bf33997d92abeda/javablobdeleteacfail1blobapitestdeleteacfail0bf33926b78a7", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:24 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:24 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812ECE78B8F\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51eb5b8-201e-00c4-2afb-594fb0000000", + "x-ms-client-request-id" : "6243ebee-6d46-4557-805e-c63d4eae0a70" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteacfail0blobapitestdeleteacfail0bf33997d92abeda/javablobdeleteacfail1blobapitestdeleteacfail0bf33926b78a7", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "d51eb5c3-201e-00c4-35fb-594fb0000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:d51eb5c3-201e-00c4-35fb-594fb0000000\nTime:2019-08-23T21:43:24.5669889Z", + "Date" : "Fri, 23 Aug 2019 21:43:24 GMT", + "x-ms-client-request-id" : "1c45dfd5-97aa-47f4-97e5-6153a54ce849", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcdeleteacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51eb5d1-201e-00c4-3ffb-594fb0000000", + "Body" : "jtcdeleteacfailjtcdeleteacfail0blobapitestdeleteacfail0bf33997d92abedaFri, 23 Aug 2019 21:43:24 GMT\"0x8D72812ECE22020\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:24 GMT", + "x-ms-client-request-id" : "cbe3cf28-65fe-4c6f-b9f8-b31c39a8e726", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteacfail0blobapitestdeleteacfail0bf33997d92abeda?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51eb5e1-201e-00c4-4cfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:24 GMT", + "x-ms-client-request-id" : "4c582ff7-8754-4df6-bc37-f3e042c1323c" + }, + "Exception" : null + } ], + "variables" : [ "jtcdeleteacfail0blobapitestdeleteacfail0bf33997d92abeda", "javablobdeleteacfail1blobapitestdeleteacfail0bf33926b78a7" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdeleteacfail[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdeleteacfail[2].json new file mode 100644 index 0000000000000..26f35992615ef --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdeleteacfail[2].json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteacfail0blobapitestdeleteacfail42438325210b9201?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812ED1EC2B7\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51eb67e-201e-00c4-4ffb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:24 GMT", + "x-ms-client-request-id" : "3568de07-9a05-445f-8dce-c7c51b8ade78" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteacfail0blobapitestdeleteacfail42438325210b9201/javablobdeleteacfail1blobapitestdeleteacfail4248271839654", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:24 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:24 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812ED240737\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51eb68c-201e-00c4-5cfb-594fb0000000", + "x-ms-client-request-id" : "59d00194-ce06-4539-abf1-bfa3e6cf783f" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteacfail0blobapitestdeleteacfail42438325210b9201/javablobdeleteacfail1blobapitestdeleteacfail4248271839654", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "d51eb694-201e-00c4-64fb-594fb0000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:d51eb694-201e-00c4-64fb-594fb0000000\nTime:2019-08-23T21:43:24.9583619Z", + "Date" : "Fri, 23 Aug 2019 21:43:24 GMT", + "x-ms-client-request-id" : "ddab9fa8-bf47-4750-a948-5f346f095518", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcdeleteacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51eb69f-201e-00c4-6efb-594fb0000000", + "Body" : "jtcdeleteacfailjtcdeleteacfail0blobapitestdeleteacfail42438325210b9201Fri, 23 Aug 2019 21:43:24 GMT\"0x8D72812ED1EC2B7\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:24 GMT", + "x-ms-client-request-id" : "fceef87f-7d93-4da1-ae53-c0c0239f4685", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteacfail0blobapitestdeleteacfail42438325210b9201?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51eb6a6-201e-00c4-75fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:24 GMT", + "x-ms-client-request-id" : "4a6dbf0e-649c-4925-8209-238769880919" + }, + "Exception" : null + } ], + "variables" : [ "jtcdeleteacfail0blobapitestdeleteacfail42438325210b9201", "javablobdeleteacfail1blobapitestdeleteacfail4248271839654" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdeleteacfail[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdeleteacfail[3].json new file mode 100644 index 0000000000000..8e22147df3137 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdeleteacfail[3].json @@ -0,0 +1,138 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteacfail0blobapitestdeleteacfail35f141930fa6556a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812ED366F2D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51eb6be-201e-00c4-07fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:25 GMT", + "x-ms-client-request-id" : "1423b3e9-3de1-4b2a-87fb-4ae608ed34c2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteacfail0blobapitestdeleteacfail35f141930fa6556a/javablobdeleteacfail1blobapitestdeleteacfail35f90376a2204", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:25 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:25 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812ED3C28F6\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51eb6e1-201e-00c4-27fb-594fb0000000", + "x-ms-client-request-id" : "8de60f41-89ef-4e5f-99e9-36aa3c86106d" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteacfail0blobapitestdeleteacfail35f141930fa6556a/javablobdeleteacfail1blobapitestdeleteacfail35f90376a2204", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:25 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:43:25 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812ED3C28F6\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:43:25 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51eb6f3-201e-00c4-36fb-594fb0000000", + "x-ms-client-request-id" : "a967cb55-6e87-4282-b35c-fefe9cbe458f", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteacfail0blobapitestdeleteacfail35f141930fa6556a/javablobdeleteacfail1blobapitestdeleteacfail35f90376a2204", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "d51eb702-201e-00c4-43fb-594fb0000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:d51eb702-201e-00c4-43fb-594fb0000000\nTime:2019-08-23T21:43:25.1475416Z", + "Date" : "Fri, 23 Aug 2019 21:43:25 GMT", + "x-ms-client-request-id" : "bbdde9d3-e04f-49c1-81e1-976bec039593", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcdeleteacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51eb710-201e-00c4-4efb-594fb0000000", + "Body" : "jtcdeleteacfailjtcdeleteacfail0blobapitestdeleteacfail35f141930fa6556aFri, 23 Aug 2019 21:43:25 GMT\"0x8D72812ED366F2D\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:25 GMT", + "x-ms-client-request-id" : "00d0793a-af46-41ae-841a-9b7a2bc32c64", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteacfail0blobapitestdeleteacfail35f141930fa6556a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51eb723-201e-00c4-5efb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:25 GMT", + "x-ms-client-request-id" : "b35aeafc-eff2-4dd4-aeb1-1ca645ad2655" + }, + "Exception" : null + } ], + "variables" : [ "jtcdeleteacfail0blobapitestdeleteacfail35f141930fa6556a", "javablobdeleteacfail1blobapitestdeleteacfail35f90376a2204" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdeleteacfail[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdeleteacfail[4].json new file mode 100644 index 0000000000000..1d06a14af6743 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdeleteacfail[4].json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteacfail0blobapitestdeleteacfail4283360417b902a5?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812ED541089\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51eb742-201e-00c4-7cfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:25 GMT", + "x-ms-client-request-id" : "cfbb2d82-d27f-4ac0-81d9-c273e8c6c947" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteacfail0blobapitestdeleteacfail4283360417b902a5/javablobdeleteacfail1blobapitestdeleteacfail42890440660ad", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:25 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:25 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812ED597C2A\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51eb754-201e-00c4-0afb-594fb0000000", + "x-ms-client-request-id" : "9d1d917b-8a4f-4264-878e-a75cb4907562" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteacfail0blobapitestdeleteacfail4283360417b902a5/javablobdeleteacfail1blobapitestdeleteacfail42890440660ad?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812ED597C2A\"", + "x-ms-lease-id" : "249277b8-16c3-4a95-b1d4-2cecf1d7cb98", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51eb769-201e-00c4-1dfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:25 GMT", + "x-ms-client-request-id" : "efaed133-015e-460b-8399-3779f2916d5c" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteacfail0blobapitestdeleteacfail4283360417b902a5/javablobdeleteacfail1blobapitestdeleteacfail42890440660ad", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "LeaseIdMismatchWithBlobOperation", + "retry-after" : "0", + "Content-Length" : "264", + "StatusCode" : "412", + "x-ms-request-id" : "d51eb77d-201e-00c4-31fb-594fb0000000", + "Body" : "LeaseIdMismatchWithBlobOperationThe lease ID specified did not match the lease ID for the blob.\nRequestId:d51eb77d-201e-00c4-31fb-594fb0000000\nTime:2019-08-23T21:43:25.3407261Z", + "Date" : "Fri, 23 Aug 2019 21:43:25 GMT", + "x-ms-client-request-id" : "16685631-0924-4dd1-81de-6f0615edbdd4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcdeleteacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51eb78a-201e-00c4-3cfb-594fb0000000", + "Body" : "jtcdeleteacfailjtcdeleteacfail0blobapitestdeleteacfail4283360417b902a5Fri, 23 Aug 2019 21:43:25 GMT\"0x8D72812ED541089\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:25 GMT", + "x-ms-client-request-id" : "fae77bab-c6e0-461c-bc6a-7434ed80ca6e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteacfail0blobapitestdeleteacfail4283360417b902a5?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51eb79d-201e-00c4-4afb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:25 GMT", + "x-ms-client-request-id" : "56c70c1a-acfb-4965-9719-0a776e7c0b82" + }, + "Exception" : null + } ], + "variables" : [ "jtcdeleteacfail0blobapitestdeleteacfail4283360417b902a5", "javablobdeleteacfail1blobapitestdeleteacfail42890440660ad" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdeletemin.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdeletemin.json new file mode 100644 index 0000000000000..91253616b80c3 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdeletemin.json @@ -0,0 +1,105 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeletemin0blobapitestdeleteminee8339679852f76a513?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812EB8AA0A7\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51eb19b-201e-00c4-19fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:22 GMT", + "x-ms-client-request-id" : "b3ba79f0-a07c-442e-83ce-a84c8c4c5053" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeletemin0blobapitestdeleteminee8339679852f76a513/javablobdeletemin1blobapitestdeleteminee852989ebd30c17", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:22 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:22 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812EB900B9C\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51eb1a8-201e-00c4-24fb-594fb0000000", + "x-ms-client-request-id" : "38550081-5263-48d0-865c-7f0612951a8f" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeletemin0blobapitestdeleteminee8339679852f76a513/javablobdeletemin1blobapitestdeleteminee852989ebd30c17", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-delete-type-permanent" : "true", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51eb1be-201e-00c4-37fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:22 GMT", + "x-ms-client-request-id" : "deec3c9e-b939-4d72-91d9-98a19fb8d3e2" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcdeletemin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51eb1d6-201e-00c4-4bfb-594fb0000000", + "Body" : "jtcdeleteminjtcdeletemin0blobapitestdeleteminee8339679852f76a513Fri, 23 Aug 2019 21:43:22 GMT\"0x8D72812EB8AA0A7\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:22 GMT", + "x-ms-client-request-id" : "988c5f0d-fa95-4707-8b2b-a6719217f619", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeletemin0blobapitestdeleteminee8339679852f76a513?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51eb1df-201e-00c4-53fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:22 GMT", + "x-ms-client-request-id" : "7d78a57b-571f-4a21-8bea-54552e01366b" + }, + "Exception" : null + } ], + "variables" : [ "jtcdeletemin0blobapitestdeleteminee8339679852f76a513", "javablobdeletemin1blobapitestdeleteminee852989ebd30c17" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdeleteoptions[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdeleteoptions[0].json new file mode 100644 index 0000000000000..cd46f5e2f1df0 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdeleteoptions[0].json @@ -0,0 +1,171 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteoptions0blobapitestdeleteoptions98073583cf25923?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812EBA497A2\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51eb1f7-201e-00c4-69fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:22 GMT", + "x-ms-client-request-id" : "b34dc5cb-a726-46e5-9994-0149b3c1b9ca" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteoptions0blobapitestdeleteoptions98073583cf25923/javablobdeleteoptions1blobapitestdeleteoptions98092441afcd", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:22 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:22 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812EBA9DB93\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51eb20b-201e-00c4-79fb-594fb0000000", + "x-ms-client-request-id" : "9f6a94dc-af27-4237-8b1d-cfac467f0591" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteoptions0blobapitestdeleteoptions98073583cf25923/javablobdeleteoptions1blobapitestdeleteoptions98092441afcd?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-snapshot" : "2019-08-23T21:43:22.4844756Z", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812EBA9DB93\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51eb221-201e-00c4-0efb-594fb0000000", + "x-ms-request-server-encrypted" : "false", + "Date" : "Fri, 23 Aug 2019 21:43:22 GMT", + "x-ms-client-request-id" : "3ea507d1-755c-4139-9178-4d1bab988405" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteoptions0blobapitestdeleteoptions98073583cf25923/javablobdeleteoptions2blobapitestdeleteoptions980370031dfe", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:22 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:22 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812EBB43E60\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51eb232-201e-00c4-1dfb-594fb0000000", + "x-ms-client-request-id" : "14721c10-b666-4c6b-b81d-a4107eb55366" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteoptions0blobapitestdeleteoptions98073583cf25923/javablobdeleteoptions1blobapitestdeleteoptions98092441afcd", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-delete-type-permanent" : "true", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51eb240-201e-00c4-28fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:22 GMT", + "x-ms-client-request-id" : "3260c003-f1ad-417f-971f-f30e7eb13d7d" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteoptions0blobapitestdeleteoptions98073583cf25923?include=&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51eb254-201e-00c4-37fb-594fb0000000", + "Body" : "javablobdeleteoptions2blobapitestdeleteoptions980370031dfeFri, 23 Aug 2019 21:43:22 GMTFri, 23 Aug 2019 21:43:22 GMT0x8D72812EBB43E607application/octet-stream6RYQPwaVsyQ=wh+Wm18D0z1D4E+PE252gg==BlockBlobHottrueunlockedavailabletrue0", + "Date" : "Fri, 23 Aug 2019 21:43:22 GMT", + "x-ms-client-request-id" : "2ed8111f-372d-4673-ba9b-349855304ca6", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcdeleteoptions&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51eb25e-201e-00c4-41fb-594fb0000000", + "Body" : "jtcdeleteoptionsjtcdeleteoptions0blobapitestdeleteoptions98073583cf25923Fri, 23 Aug 2019 21:43:22 GMT\"0x8D72812EBA497A2\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:22 GMT", + "x-ms-client-request-id" : "0c7036a5-1f6b-412d-b7d0-192efe16fa3a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteoptions0blobapitestdeleteoptions98073583cf25923?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51eb261-201e-00c4-44fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:22 GMT", + "x-ms-client-request-id" : "eb0b17fe-6c3a-4e85-8ea6-7b1a75ba5c00" + }, + "Exception" : null + } ], + "variables" : [ "jtcdeleteoptions0blobapitestdeleteoptions98073583cf25923", "javablobdeleteoptions1blobapitestdeleteoptions98092441afcd", "javablobdeleteoptions2blobapitestdeleteoptions980370031dfe" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdeleteoptions[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdeleteoptions[1].json new file mode 100644 index 0000000000000..3d95855b71e7b --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdeleteoptions[1].json @@ -0,0 +1,171 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteoptions0blobapitestdeleteoptions68089261206d897?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812EBCF0D60\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51eb275-201e-00c4-56fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:22 GMT", + "x-ms-client-request-id" : "d701ea4b-71ea-47e7-8ca9-c200b75f125e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteoptions0blobapitestdeleteoptions68089261206d897/javablobdeleteoptions1blobapitestdeleteoptions68084426f542", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:22 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:22 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812EBD64D9D\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51eb291-201e-00c4-6efb-594fb0000000", + "x-ms-client-request-id" : "113d17a7-1eb8-4706-bc6e-acaa5bdef7f1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteoptions0blobapitestdeleteoptions68089261206d897/javablobdeleteoptions1blobapitestdeleteoptions68084426f542?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-snapshot" : "2019-08-23T21:43:22.7767560Z", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812EBD64D9D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51eb29f-201e-00c4-7cfb-594fb0000000", + "x-ms-request-server-encrypted" : "false", + "Date" : "Fri, 23 Aug 2019 21:43:22 GMT", + "x-ms-client-request-id" : "18360adf-ee55-4107-a7f7-9cefb328c1e9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteoptions0blobapitestdeleteoptions68089261206d897/javablobdeleteoptions2blobapitestdeleteoptions6801085197bc", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:22 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:22 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812EBF379C7\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51eb2f0-201e-00c4-43fb-594fb0000000", + "x-ms-client-request-id" : "c0a27207-4cd4-4aa6-86fd-6542c1292b04" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteoptions0blobapitestdeleteoptions68089261206d897/javablobdeleteoptions1blobapitestdeleteoptions68084426f542", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-delete-type-permanent" : "true", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51eb301-201e-00c4-52fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:22 GMT", + "x-ms-client-request-id" : "04374d47-25e4-40a7-8aee-0c9d6c8f8e28" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteoptions0blobapitestdeleteoptions68089261206d897?include=&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51eb30e-201e-00c4-5ffb-594fb0000000", + "Body" : "javablobdeleteoptions1blobapitestdeleteoptions68084426f542Fri, 23 Aug 2019 21:43:22 GMTFri, 23 Aug 2019 21:43:22 GMT0x8D72812EBD64D9D7application/octet-stream6RYQPwaVsyQ=wh+Wm18D0z1D4E+PE252gg==BlockBlobHottrueunlockedavailabletrue0javablobdeleteoptions2blobapitestdeleteoptions6801085197bcFri, 23 Aug 2019 21:43:22 GMTFri, 23 Aug 2019 21:43:22 GMT0x8D72812EBF379C77application/octet-stream6RYQPwaVsyQ=wh+Wm18D0z1D4E+PE252gg==BlockBlobHottrueunlockedavailabletrue0", + "Date" : "Fri, 23 Aug 2019 21:43:22 GMT", + "x-ms-client-request-id" : "335beb81-b60e-4a02-92b9-0af0b79de3c7", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcdeleteoptions&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51eb31c-201e-00c4-6cfb-594fb0000000", + "Body" : "jtcdeleteoptionsjtcdeleteoptions0blobapitestdeleteoptions68089261206d897Fri, 23 Aug 2019 21:43:22 GMT\"0x8D72812EBCF0D60\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:22 GMT", + "x-ms-client-request-id" : "ae9268c1-f0ea-43ee-9073-d50bd5b01d6a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteoptions0blobapitestdeleteoptions68089261206d897?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51eb328-201e-00c4-78fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:23 GMT", + "x-ms-client-request-id" : "860f2f53-e44d-4cb7-8306-c39b5dfd33d9" + }, + "Exception" : null + } ], + "variables" : [ "jtcdeleteoptions0blobapitestdeleteoptions68089261206d897", "javablobdeleteoptions1blobapitestdeleteoptions68084426f542", "javablobdeleteoptions2blobapitestdeleteoptions6801085197bc" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloadac[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloadac[0].json new file mode 100644 index 0000000000000..48b6a0117ddf9 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloadac[0].json @@ -0,0 +1,116 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadac0blobapitestdownloadacf9138300435f5a10c4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C4F4468D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e1df0-201e-00c4-56fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:16 GMT", + "x-ms-client-request-id" : "c4eff12f-f85d-4c99-b4df-10eddc84861f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadac0blobapitestdownloadacf9138300435f5a10c4/javablobdownloadac1blobapitestdownloadacf916685628cfdb2", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:17 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:16 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812C4FA17E0\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e1e17-201e-00c4-75fb-594fb0000000", + "x-ms-client-request-id" : "5d6503a2-374b-4871-a8a9-083b3e180996" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadac0blobapitestdownloadacf9138300435f5a10c4/javablobdownloadac1blobapitestdownloadacf916685628cfdb2", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:17 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:16 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "\"0x8D72812C4FA17E0\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:17 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51e1e4e-201e-00c4-27fb-594fb0000000", + "Body" : "[100, 101, 102, 97, 117, 108, 116]", + "x-ms-client-request-id" : "dbcefd1f-e66c-48ed-894d-625676089b23", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcdownloadac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e1e5d-201e-00c4-36fb-594fb0000000", + "Body" : "jtcdownloadacjtcdownloadac0blobapitestdownloadacf9138300435f5a10c4Fri, 23 Aug 2019 21:42:17 GMT\"0x8D72812C4F4468D\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:16 GMT", + "x-ms-client-request-id" : "7fe83902-3744-4818-a400-055937ceb927", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadac0blobapitestdownloadacf9138300435f5a10c4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e1e6b-201e-00c4-42fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:16 GMT", + "x-ms-client-request-id" : "df9e82ab-f851-4a5f-b008-0ce74ee3e8d2" + }, + "Exception" : null + } ], + "variables" : [ "jtcdownloadac0blobapitestdownloadacf9138300435f5a10c4", "javablobdownloadac1blobapitestdownloadacf916685628cfdb2" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloadac[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloadac[1].json new file mode 100644 index 0000000000000..0f963d0e25fa5 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloadac[1].json @@ -0,0 +1,116 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadac0blobapitestdownloadacae359610a6a1c973e7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C512AB6B\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e1e7e-201e-00c4-53fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:16 GMT", + "x-ms-client-request-id" : "0a099121-54b3-46a7-9be8-377764bbdf94" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadac0blobapitestdownloadacae359610a6a1c973e7/javablobdownloadac1blobapitestdownloadacae330309d4c175b", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:17 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:16 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812C518F213\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e1e98-201e-00c4-6afb-594fb0000000", + "x-ms-client-request-id" : "ffe6ae87-8fad-4df1-b9db-c185d29989b6" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadac0blobapitestdownloadacae359610a6a1c973e7/javablobdownloadac1blobapitestdownloadacae330309d4c175b", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:17 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:16 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "\"0x8D72812C518F213\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:17 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51e1eb6-201e-00c4-7cfb-594fb0000000", + "Body" : "[100, 101, 102, 97, 117, 108, 116]", + "x-ms-client-request-id" : "11350f29-53f8-4cf9-8ad3-fe7aa1873f29", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcdownloadac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e1ecc-201e-00c4-11fb-594fb0000000", + "Body" : "jtcdownloadacjtcdownloadac0blobapitestdownloadacae359610a6a1c973e7Fri, 23 Aug 2019 21:42:17 GMT\"0x8D72812C512AB6B\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:16 GMT", + "x-ms-client-request-id" : "5ff6d21d-e9b7-4d01-b782-c85485af360b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadac0blobapitestdownloadacae359610a6a1c973e7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e1ed6-201e-00c4-1bfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:16 GMT", + "x-ms-client-request-id" : "9360ee6b-649e-418f-a2e3-5f039e71f4cd" + }, + "Exception" : null + } ], + "variables" : [ "jtcdownloadac0blobapitestdownloadacae359610a6a1c973e7", "javablobdownloadac1blobapitestdownloadacae330309d4c175b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloadac[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloadac[2].json new file mode 100644 index 0000000000000..7c356e1fef78b --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloadac[2].json @@ -0,0 +1,116 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadac0blobapitestdownloadacb4e18131944ad3f732?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C52DDB2E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e1ef3-201e-00c4-35fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:16 GMT", + "x-ms-client-request-id" : "61dce065-8e3f-4328-844e-597f4e97d96a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadac0blobapitestdownloadacb4e18131944ad3f732/javablobdownloadac1blobapitestdownloadacb4e524493a9cc17", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:17 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:16 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812C5335E5A\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e1f01-201e-00c4-42fb-594fb0000000", + "x-ms-client-request-id" : "0e38e3f7-79c1-47c6-b794-4a6b5b3206df" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadac0blobapitestdownloadacb4e18131944ad3f732/javablobdownloadac1blobapitestdownloadacb4e524493a9cc17", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:17 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:17 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "\"0x8D72812C5335E5A\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:17 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51e1f1c-201e-00c4-5bfb-594fb0000000", + "Body" : "[100, 101, 102, 97, 117, 108, 116]", + "x-ms-client-request-id" : "6f70c9af-a428-46ca-a059-ed25ab27a4cb", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcdownloadac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e1f37-201e-00c4-70fb-594fb0000000", + "Body" : "jtcdownloadacjtcdownloadac0blobapitestdownloadacb4e18131944ad3f732Fri, 23 Aug 2019 21:42:17 GMT\"0x8D72812C52DDB2E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:17 GMT", + "x-ms-client-request-id" : "dd32ea1b-41b2-44cf-b6ef-5815a3403436", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadac0blobapitestdownloadacb4e18131944ad3f732?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e1f4b-201e-00c4-01fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:17 GMT", + "x-ms-client-request-id" : "78b1b732-70f8-4967-a165-2fe5dda6668a" + }, + "Exception" : null + } ], + "variables" : [ "jtcdownloadac0blobapitestdownloadacb4e18131944ad3f732", "javablobdownloadac1blobapitestdownloadacb4e524493a9cc17" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloadac[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloadac[3].json new file mode 100644 index 0000000000000..c0be5187676a9 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloadac[3].json @@ -0,0 +1,147 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadac0blobapitestdownloadacc36297804e935bafcb?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C547D225\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e1f68-201e-00c4-1cfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:17 GMT", + "x-ms-client-request-id" : "2f3ff0f9-5088-42b4-9f7e-881625943280" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadac0blobapitestdownloadacc36297804e935bafcb/javablobdownloadac1blobapitestdownloadacc3606342d627736", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:18 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:17 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812C54DA389\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e1f8b-201e-00c4-3bfb-594fb0000000", + "x-ms-client-request-id" : "7ff21c2e-f1f9-4f6c-a978-b27f6f570cfd" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadac0blobapitestdownloadacc36297804e935bafcb/javablobdownloadac1blobapitestdownloadacc3606342d627736", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:18 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:17 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812C54DA389\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:18 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51e1fa8-201e-00c4-56fb-594fb0000000", + "x-ms-client-request-id" : "42efad3a-1095-4470-8c31-951cd6cc5d0b", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadac0blobapitestdownloadacc36297804e935bafcb/javablobdownloadac1blobapitestdownloadacc3606342d627736", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:18 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:17 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "\"0x8D72812C54DA389\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:18 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51e1fba-201e-00c4-64fb-594fb0000000", + "Body" : "[100, 101, 102, 97, 117, 108, 116]", + "x-ms-client-request-id" : "ca2dfdb0-6b3a-465d-81ef-3c2b0e33e5b8", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcdownloadac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e1fd1-201e-00c4-77fb-594fb0000000", + "Body" : "jtcdownloadacjtcdownloadac0blobapitestdownloadacc36297804e935bafcbFri, 23 Aug 2019 21:42:18 GMT\"0x8D72812C547D225\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:17 GMT", + "x-ms-client-request-id" : "0390e0db-9bac-42e7-91a3-7caa50fa6b69", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadac0blobapitestdownloadacc36297804e935bafcb?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e1fdf-201e-00c4-02fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:17 GMT", + "x-ms-client-request-id" : "9bbbe2d0-d1cc-40be-a59b-33ee5b64add0" + }, + "Exception" : null + } ], + "variables" : [ "jtcdownloadac0blobapitestdownloadacc36297804e935bafcb", "javablobdownloadac1blobapitestdownloadacc3606342d627736" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloadac[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloadac[4].json new file mode 100644 index 0000000000000..572609afffde8 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloadac[4].json @@ -0,0 +1,116 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadac0blobapitestdownloadacbd469332b74a4a3386?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C585FBC0\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e2056-201e-00c4-69fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:17 GMT", + "x-ms-client-request-id" : "12273fec-7176-4687-81c4-fb7c2d908752" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadac0blobapitestdownloadacbd469332b74a4a3386/javablobdownloadac1blobapitestdownloadacbd457158182403f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:18 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:17 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812C58D2D2C\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e206f-201e-00c4-7efb-594fb0000000", + "x-ms-client-request-id" : "872d96e6-6d5c-4b64-9fc1-17a3c51448a0" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadac0blobapitestdownloadacbd469332b74a4a3386/javablobdownloadac1blobapitestdownloadacbd457158182403f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:18 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:17 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "\"0x8D72812C58D2D2C\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:18 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51e207f-201e-00c4-0cfb-594fb0000000", + "Body" : "[100, 101, 102, 97, 117, 108, 116]", + "x-ms-client-request-id" : "e51f43c6-189e-46ab-9253-9cfe7cb55cc5", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcdownloadac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e2099-201e-00c4-22fb-594fb0000000", + "Body" : "jtcdownloadacjtcdownloadac0blobapitestdownloadacbd469332b74a4a3386Fri, 23 Aug 2019 21:42:18 GMT\"0x8D72812C585FBC0\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:17 GMT", + "x-ms-client-request-id" : "922dd4d6-6070-4926-8a31-20f07fadf380", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadac0blobapitestdownloadacbd469332b74a4a3386?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e20b2-201e-00c4-35fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:17 GMT", + "x-ms-client-request-id" : "6a0d74ae-9b8c-4a2f-8540-ff618152cac3" + }, + "Exception" : null + } ], + "variables" : [ "jtcdownloadac0blobapitestdownloadacbd469332b74a4a3386", "javablobdownloadac1blobapitestdownloadacbd457158182403f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloadac[5].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloadac[5].json new file mode 100644 index 0000000000000..fac4fd17b221f --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloadac[5].json @@ -0,0 +1,138 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadac0blobapitestdownloadac252710172a9449630c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C5A179BB\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e20c7-201e-00c4-46fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:17 GMT", + "x-ms-client-request-id" : "67de886b-228f-41eb-a036-0673df9b2dcd" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadac0blobapitestdownloadac252710172a9449630c/javablobdownloadac1blobapitestdownloadac252868972bd083b", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:18 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:17 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812C5A6D5F5\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e20d7-201e-00c4-52fb-594fb0000000", + "x-ms-client-request-id" : "523eefd3-4781-4352-997f-3c2fc2731f1f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadac0blobapitestdownloadac252710172a9449630c/javablobdownloadac1blobapitestdownloadac252868972bd083b?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C5A6D5F5\"", + "x-ms-lease-id" : "c26b9f82-a765-4f7c-befd-066a275d827e", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e20e5-201e-00c4-5ffb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:17 GMT", + "x-ms-client-request-id" : "bedae72b-4526-42ce-94c2-e76bae9034d0" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadac0blobapitestdownloadac252710172a9449630c/javablobdownloadac1blobapitestdownloadac252868972bd083b", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "locked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "leased", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:18 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:17 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "\"0x8D72812C5A6D5F5\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:18 GMT", + "x-ms-lease-duration" : "infinite", + "Content-Length" : "7", + "x-ms-request-id" : "d51e20f7-201e-00c4-6ffb-594fb0000000", + "Body" : "[100, 101, 102, 97, 117, 108, 116]", + "x-ms-client-request-id" : "d77ab947-8283-4b50-a6e4-dba3548378f6", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcdownloadac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e210a-201e-00c4-02fb-594fb0000000", + "Body" : "jtcdownloadacjtcdownloadac0blobapitestdownloadac252710172a9449630cFri, 23 Aug 2019 21:42:18 GMT\"0x8D72812C5A179BB\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:17 GMT", + "x-ms-client-request-id" : "2723d63c-51c8-4e47-9680-4b89949d9868", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadac0blobapitestdownloadac252710172a9449630c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e2119-201e-00c4-0dfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:17 GMT", + "x-ms-client-request-id" : "3acdaa66-fd74-46a7-a2eb-3a8b01158620" + }, + "Exception" : null + } ], + "variables" : [ "jtcdownloadac0blobapitestdownloadac252710172a9449630c", "javablobdownloadac1blobapitestdownloadac252868972bd083b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloadacfail[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloadacfail[0].json new file mode 100644 index 0000000000000..427c7c08edf9b --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloadacfail[0].json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadacfail0blobapitestdownloadacfail9299867463fbc9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C5C005AC\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e213c-201e-00c4-2bfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:17 GMT", + "x-ms-client-request-id" : "e7b31323-794c-4729-9d01-732cc5fd769f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadacfail0blobapitestdownloadacfail9299867463fbc9/javablobdownloadacfail1blobapitestdownloadacfail92915034c6a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:18 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:18 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812C5D0AF65\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e217c-201e-00c4-5dfb-594fb0000000", + "x-ms-client-request-id" : "1867b5d7-fd70-4dc7-847e-e63546feb44a" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadacfail0blobapitestdownloadacfail9299867463fbc9/javablobdownloadacfail1blobapitestdownloadacfail92915034c6a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "StatusCode" : "304", + "x-ms-request-id" : "d51e2192-201e-00c4-6ffb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:18 GMT", + "x-ms-client-request-id" : "a6b8ddf8-871a-4074-bce2-12663bee4b9f" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcdownloadacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e21a8-201e-00c4-03fb-594fb0000000", + "Body" : "jtcdownloadacfailjtcdownloadacfail0blobapitestdownloadacfail9299867463fbc9Fri, 23 Aug 2019 21:42:18 GMT\"0x8D72812C5C005AC\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:18 GMT", + "x-ms-client-request-id" : "d92050c6-93f7-4a56-8b2d-440767290982", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadacfail0blobapitestdownloadacfail9299867463fbc9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e21b6-201e-00c4-10fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:18 GMT", + "x-ms-client-request-id" : "1f8b619a-3b3b-43b5-a8e1-4c8ee6c9f5aa" + }, + "Exception" : null + } ], + "variables" : [ "jtcdownloadacfail0blobapitestdownloadacfail9299867463fbc9", "javablobdownloadacfail1blobapitestdownloadacfail92915034c6a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloadacfail[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloadacfail[1].json new file mode 100644 index 0000000000000..039ff142c4a65 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloadacfail[1].json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadacfail0blobapitestdownloadacfailff381106dc3e3e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C5F7C51B\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:19 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e222e-201e-00c4-7afb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:18 GMT", + "x-ms-client-request-id" : "91574983-2640-4ec5-8bd2-9794c75d9169" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadacfail0blobapitestdownloadacfailff381106dc3e3e/javablobdownloadacfail1blobapitestdownloadacfailff331313a19", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:19 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:18 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812C5FDBDDF\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e224d-201e-00c4-10fb-594fb0000000", + "x-ms-client-request-id" : "005bd621-bf69-483c-b88e-44dd9997c66d" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadacfail0blobapitestdownloadacfailff381106dc3e3e/javablobdownloadacfail1blobapitestdownloadacfailff331313a19", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "d51e225c-201e-00c4-1efb-594fb0000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:d51e225c-201e-00c4-1efb-594fb0000000\nTime:2019-08-23T21:42:19.2827005Z", + "Date" : "Fri, 23 Aug 2019 21:42:18 GMT", + "x-ms-client-request-id" : "eaec6f50-56e9-41ee-a69c-0ce4cadf8176", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcdownloadacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e226a-201e-00c4-2cfb-594fb0000000", + "Body" : "jtcdownloadacfailjtcdownloadacfail0blobapitestdownloadacfailff381106dc3e3eFri, 23 Aug 2019 21:42:19 GMT\"0x8D72812C5F7C51B\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:18 GMT", + "x-ms-client-request-id" : "aa0dc860-f121-4663-add3-53f774ea7d54", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadacfail0blobapitestdownloadacfailff381106dc3e3e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e2272-201e-00c4-34fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:18 GMT", + "x-ms-client-request-id" : "b943b554-3190-426c-bfba-6576e93ed494" + }, + "Exception" : null + } ], + "variables" : [ "jtcdownloadacfail0blobapitestdownloadacfailff381106dc3e3e", "javablobdownloadacfail1blobapitestdownloadacfailff331313a19" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloadacfail[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloadacfail[2].json new file mode 100644 index 0000000000000..05f251fb815b5 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloadacfail[2].json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadacfail0blobapitestdownloadacfailafe066866ad60c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C611E329\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:19 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e2286-201e-00c4-47fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:18 GMT", + "x-ms-client-request-id" : "ff3ca728-84fc-495b-9b0c-0897e02051e6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadacfail0blobapitestdownloadacfailafe066866ad60c/javablobdownloadacfail1blobapitestdownloadacfailafe85163cf8", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:19 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:18 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812C61766B5\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e229c-201e-00c4-57fb-594fb0000000", + "x-ms-client-request-id" : "64b75c13-6f25-4ddc-869f-906097793c21" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadacfail0blobapitestdownloadacfailafe066866ad60c/javablobdownloadacfail1blobapitestdownloadacfailafe85163cf8", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "d51e22ae-201e-00c4-69fb-594fb0000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:d51e22ae-201e-00c4-69fb-594fb0000000\nTime:2019-08-23T21:42:19.4448552Z", + "Date" : "Fri, 23 Aug 2019 21:42:18 GMT", + "x-ms-client-request-id" : "7e00fe0a-3516-4e38-a7c9-2cb3c6672243", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcdownloadacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e22b9-201e-00c4-73fb-594fb0000000", + "Body" : "jtcdownloadacfailjtcdownloadacfail0blobapitestdownloadacfailafe066866ad60cFri, 23 Aug 2019 21:42:19 GMT\"0x8D72812C611E329\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:18 GMT", + "x-ms-client-request-id" : "b10b5b7a-d1d3-4479-80a9-0ad397e01001", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadacfail0blobapitestdownloadacfailafe066866ad60c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e22c7-201e-00c4-80fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:18 GMT", + "x-ms-client-request-id" : "1fe5e4b3-eabc-41b4-8e5b-7c0c43a7942e" + }, + "Exception" : null + } ], + "variables" : [ "jtcdownloadacfail0blobapitestdownloadacfailafe066866ad60c", "javablobdownloadacfail1blobapitestdownloadacfailafe85163cf8" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloadacfail[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloadacfail[3].json new file mode 100644 index 0000000000000..79f1e3eac2c7f --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloadacfail[3].json @@ -0,0 +1,135 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadacfail0blobapitestdownloadacfailcfe0559054de82?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C62AC86F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:19 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e22e4-201e-00c4-16fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:18 GMT", + "x-ms-client-request-id" : "ffe30a49-e32f-4ad7-ac96-55c338fd1d3d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadacfail0blobapitestdownloadacfailcfe0559054de82/javablobdownloadacfail1blobapitestdownloadacfailcfe327275ff", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:19 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:18 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812C6304C00\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e22f7-201e-00c4-27fb-594fb0000000", + "x-ms-client-request-id" : "1957919b-fc37-4b8b-a580-dcde5ed9ded8" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadacfail0blobapitestdownloadacfailcfe0559054de82/javablobdownloadacfail1blobapitestdownloadacfailcfe327275ff", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:19 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:18 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812C6304C00\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:19 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51e2310-201e-00c4-3cfb-594fb0000000", + "x-ms-client-request-id" : "fab576c1-0d1a-4134-b494-44a7237be734", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadacfail0blobapitestdownloadacfailcfe0559054de82/javablobdownloadacfail1blobapitestdownloadacfailcfe327275ff", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "StatusCode" : "304", + "x-ms-request-id" : "d51e2323-201e-00c4-4ffb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:18 GMT", + "x-ms-client-request-id" : "0813a23d-2900-48b6-b716-0cc5883d2f0e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcdownloadacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e232f-201e-00c4-5bfb-594fb0000000", + "Body" : "jtcdownloadacfailjtcdownloadacfail0blobapitestdownloadacfailcfe0559054de82Fri, 23 Aug 2019 21:42:19 GMT\"0x8D72812C62AC86F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:18 GMT", + "x-ms-client-request-id" : "00348fb6-d909-41d8-b185-ef44d930fe4e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadacfail0blobapitestdownloadacfailcfe0559054de82?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e2342-201e-00c4-6afb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:18 GMT", + "x-ms-client-request-id" : "2d0ded5e-5f59-4a06-b6f8-6b5711d7e976" + }, + "Exception" : null + } ], + "variables" : [ "jtcdownloadacfail0blobapitestdownloadacfailcfe0559054de82", "javablobdownloadacfail1blobapitestdownloadacfailcfe327275ff" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloadacfail[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloadacfail[4].json new file mode 100644 index 0000000000000..55d21ef8995c3 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloadacfail[4].json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadacfail0blobapitestdownloadacfailcbb829946cc992?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C649A298\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:19 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e2356-201e-00c4-7afb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:18 GMT", + "x-ms-client-request-id" : "51011069-fcf5-4605-9f1b-440398d3d41d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadacfail0blobapitestdownloadacfailcbb829946cc992/javablobdownloadacfail1blobapitestdownloadacfailcbb07208192", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:19 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:18 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812C64F4D4B\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e236e-201e-00c4-0ffb-594fb0000000", + "x-ms-client-request-id" : "2d294c7e-d78b-43e5-9139-7935337ffca1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadacfail0blobapitestdownloadacfailcbb829946cc992/javablobdownloadacfail1blobapitestdownloadacfailcbb07208192?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C64F4D4B\"", + "x-ms-lease-id" : "e9273279-b2ec-43a0-b07a-ccfb4b23d88f", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:19 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e237c-201e-00c4-1bfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:18 GMT", + "x-ms-client-request-id" : "9bad0a36-d77b-4011-8b35-d3ff9a1b4695" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadacfail0blobapitestdownloadacfailcbb829946cc992/javablobdownloadacfail1blobapitestdownloadacfailcbb07208192", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "LeaseIdMismatchWithBlobOperation", + "retry-after" : "0", + "Content-Length" : "264", + "StatusCode" : "412", + "x-ms-request-id" : "d51e238f-201e-00c4-2dfb-594fb0000000", + "Body" : "LeaseIdMismatchWithBlobOperationThe lease ID specified did not match the lease ID for the blob.\nRequestId:d51e238f-201e-00c4-2dfb-594fb0000000\nTime:2019-08-23T21:42:19.8472389Z", + "Date" : "Fri, 23 Aug 2019 21:42:18 GMT", + "x-ms-client-request-id" : "ae637d00-e39a-42ad-be1c-798be291afa0", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcdownloadacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e2399-201e-00c4-37fb-594fb0000000", + "Body" : "jtcdownloadacfailjtcdownloadacfail0blobapitestdownloadacfailcbb829946cc992Fri, 23 Aug 2019 21:42:19 GMT\"0x8D72812C649A298\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:18 GMT", + "x-ms-client-request-id" : "60af9ac6-4d0f-4513-87e9-dd44813e434d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadacfail0blobapitestdownloadacfailcbb829946cc992?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e23a9-201e-00c4-47fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:18 GMT", + "x-ms-client-request-id" : "e1624268-45dd-4b83-8153-9def4c261ff4" + }, + "Exception" : null + } ], + "variables" : [ "jtcdownloadacfail0blobapitestdownloadacfailcbb829946cc992", "javablobdownloadacfail1blobapitestdownloadacfailcbb07208192" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloadallnull.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloadallnull.json new file mode 100644 index 0000000000000..7b9dc24d0fb26 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloadallnull.json @@ -0,0 +1,116 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadallnull0blobapitestdownloadallnullb37403211703e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C3EC0BD2\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e19c4-201e-00c4-3dfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:14 GMT", + "x-ms-client-request-id" : "ee1310eb-9eac-4b40-b3c2-9bf9e8466c5b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadallnull0blobapitestdownloadallnullb37403211703e/javablobdownloadallnull1blobapitestdownloadallnullb37130277d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:15 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:14 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812C3F2793D\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e19de-201e-00c4-51fb-594fb0000000", + "x-ms-client-request-id" : "724b9152-02f0-4838-bccf-aa630db46ff5" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadallnull0blobapitestdownloadallnullb37403211703e/javablobdownloadallnull1blobapitestdownloadallnullb37130277d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:15 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:14 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "\"0x8D72812C3F2793D\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:15 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51e1a10-201e-00c4-7dfb-594fb0000000", + "Body" : "[100, 101, 102, 97, 117, 108, 116]", + "x-ms-client-request-id" : "32b249d8-2635-4897-bef5-b964b292716e", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcdownloadallnull&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e1a29-201e-00c4-10fb-594fb0000000", + "Body" : "jtcdownloadallnulljtcdownloadallnull0blobapitestdownloadallnullb37403211703eFri, 23 Aug 2019 21:42:15 GMT\"0x8D72812C3EC0BD2\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:15 GMT", + "x-ms-client-request-id" : "8793d82e-cca6-43dc-80df-ea857a159ce4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadallnull0blobapitestdownloadallnullb37403211703e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e1a38-201e-00c4-1ffb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:15 GMT", + "x-ms-client-request-id" : "c956f78c-762c-4c8a-953d-4efd1c356bcc" + }, + "Exception" : null + } ], + "variables" : [ "jtcdownloadallnull0blobapitestdownloadallnullb37403211703e", "javablobdownloadallnull1blobapitestdownloadallnullb37130277d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloademptyfile.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloademptyfile.json new file mode 100644 index 0000000000000..9254f23429e06 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloademptyfile.json @@ -0,0 +1,136 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloademptyfile0blobapitestdownloademptyfileb0d25342768?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C41AA14E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e1a69-201e-00c4-4afb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:15 GMT", + "x-ms-client-request-id" : "1a72bea8-31cc-4110-97ef-ec4d66cd8ded" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloademptyfile0blobapitestdownloademptyfileb0d25342768/javablobdownloademptyfile1blobapitestdownloademptyfileb0d68836", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:16 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:15 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812C4215CF8\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e1a95-201e-00c4-6dfb-594fb0000000", + "x-ms-client-request-id" : "967f22e2-632a-4972-b1d2-b5d697cbc6f8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloademptyfile0blobapitestdownloademptyfileb0d25342768/emptyAppendBlob", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C4272AC1\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e1aa2-201e-00c4-79fb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:15 GMT", + "x-ms-client-request-id" : "944f4a67-754b-4c87-a609-862b97906375" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloademptyfile0blobapitestdownloademptyfileb0d25342768/emptyAppendBlob", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "x-ms-blob-committed-block-count" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:16 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:15 GMT", + "x-ms-blob-type" : "AppendBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "\"0x8D72812C4272AC1\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:16 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "d51e1ab0-201e-00c4-05fb-594fb0000000", + "x-ms-client-request-id" : "01ff5b69-dc3d-4aef-bc87-0c244085da77", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcdownloademptyfile&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e1abf-201e-00c4-10fb-594fb0000000", + "Body" : "jtcdownloademptyfilejtcdownloademptyfile0blobapitestdownloademptyfileb0d25342768Fri, 23 Aug 2019 21:42:16 GMT\"0x8D72812C41AA14E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:15 GMT", + "x-ms-client-request-id" : "a55e9494-4dab-47af-8d7d-e336b6e8711e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloademptyfile0blobapitestdownloademptyfileb0d25342768?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e1ad0-201e-00c4-1ffb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:15 GMT", + "x-ms-client-request-id" : "db56b434-33c2-43f2-8c7e-5d65cf4e5c58" + }, + "Exception" : null + } ], + "variables" : [ "jtcdownloademptyfile0blobapitestdownloademptyfileb0d25342768", "javablobdownloademptyfile1blobapitestdownloademptyfileb0d68836" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloaderror.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloaderror.json new file mode 100644 index 0000000000000..d82274ef6efe1 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloaderror.json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloaderror0blobapitestdownloaderrorcea57812517c309?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C6829AD3\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e242e-201e-00c4-3dfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:19 GMT", + "x-ms-client-request-id" : "a9c44dd5-634f-4e52-b5b9-cd0a4a0930aa" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloaderror0blobapitestdownloaderrorcea57812517c309/javablobdownloaderror1blobapitestdownloaderrorcea298144fbf", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:20 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:19 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812C68893CA\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e244d-201e-00c4-58fb-594fb0000000", + "x-ms-client-request-id" : "c2052168-f9e1-4174-a410-c832667a7fcc" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloaderror0blobapitestdownloaderrorcea57812517c309/javablobdownloaderror2blobapitestdownloaderrorcea54550b144", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "BlobNotFound", + "retry-after" : "0", + "Content-Length" : "215", + "StatusCode" : "404", + "x-ms-request-id" : "d51e2467-201e-00c4-6ffb-594fb0000000", + "Body" : "BlobNotFoundThe specified blob does not exist.\nRequestId:d51e2467-201e-00c4-6ffb-594fb0000000\nTime:2019-08-23T21:42:20.1915669Z", + "Date" : "Fri, 23 Aug 2019 21:42:19 GMT", + "x-ms-client-request-id" : "aef9e633-b5fb-4df2-b771-4dfeb5c080d6", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcdownloaderror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e247b-201e-00c4-01fb-594fb0000000", + "Body" : "jtcdownloaderrorjtcdownloaderror0blobapitestdownloaderrorcea57812517c309Fri, 23 Aug 2019 21:42:20 GMT\"0x8D72812C6829AD3\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:19 GMT", + "x-ms-client-request-id" : "302623be-9795-4d72-9c67-131af6f1a2ec", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloaderror0blobapitestdownloaderrorcea57812517c309?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e248b-201e-00c4-0dfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:19 GMT", + "x-ms-client-request-id" : "642b2f19-8be0-4fb6-8b1d-8da1282ec150" + }, + "Exception" : null + } ], + "variables" : [ "jtcdownloaderror0blobapitestdownloaderrorcea57812517c309", "javablobdownloaderror1blobapitestdownloaderrorcea298144fbf", "javablobdownloaderror2blobapitestdownloaderrorcea54550b144" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloadmd5.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloadmd5.json new file mode 100644 index 0000000000000..64bd134c2e514 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloadmd5.json @@ -0,0 +1,118 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadmd50blobapitestdownloadmd589647025f30e1848c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C667E055\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:19 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e23b7-201e-00c4-55fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:18 GMT", + "x-ms-client-request-id" : "2b8b6eb6-d60b-47b0-b931-0aa9212ce910" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadmd50blobapitestdownloadmd589647025f30e1848c/javablobdownloadmd51blobapitestdownloadmd58961342770dce5", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:19 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:19 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812C66D63FD\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e23d0-201e-00c4-69fb-594fb0000000", + "x-ms-client-request-id" : "135e15d3-bbbb-46ee-9928-d3615ffd6c61" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadmd50blobapitestdownloadmd589647025f30e1848c/javablobdownloadmd51blobapitestdownloadmd58961342770dce5", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "Content-Range" : "bytes 0-2/7", + "x-ms-lease-state" : "available", + "x-ms-blob-content-md5" : "wh+Wm18D0z1D4E+PE252gg==", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:19 GMT", + "retry-after" : "0", + "StatusCode" : "206", + "Date" : "Fri, 23 Aug 2019 21:42:19 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "TtlAdjDrEADA9rY4Qt76fQ==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "\"0x8D72812C66D63FD\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:19 GMT", + "Content-Length" : "3", + "x-ms-request-id" : "d51e23e6-201e-00c4-7dfb-594fb0000000", + "Body" : "[100, 101, 102]", + "x-ms-client-request-id" : "26903bd3-389a-4441-8f96-d9499205c8b1", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcdownloadmd5&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e23f5-201e-00c4-0cfb-594fb0000000", + "Body" : "jtcdownloadmd5jtcdownloadmd50blobapitestdownloadmd589647025f30e1848cFri, 23 Aug 2019 21:42:19 GMT\"0x8D72812C667E055\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:19 GMT", + "x-ms-client-request-id" : "dd6e5e00-cf20-4a29-99ee-fed623482472", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadmd50blobapitestdownloadmd589647025f30e1848c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e240a-201e-00c4-20fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:19 GMT", + "x-ms-client-request-id" : "4e349e41-f9ec-4fef-8447-8057a6422ae0" + }, + "Exception" : null + } ], + "variables" : [ "jtcdownloadmd50blobapitestdownloadmd589647025f30e1848c", "javablobdownloadmd51blobapitestdownloadmd58961342770dce5" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloadmin.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloadmin.json new file mode 100644 index 0000000000000..aae326e655107 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloadmin.json @@ -0,0 +1,116 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadmin0blobapitestdownloadmine48066266e0b9ab9a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C474972A\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e1bea-201e-00c4-0afb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:15 GMT", + "x-ms-client-request-id" : "6b6c75a0-fb86-47b6-8c6d-a63ab38608db" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadmin0blobapitestdownloadmine48066266e0b9ab9a/javablobdownloadmin1blobapitestdownloadmine482867319bf74", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:16 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:15 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812C47A683B\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e1bfa-201e-00c4-16fb-594fb0000000", + "x-ms-client-request-id" : "feb43692-eeb1-4337-88cf-80abd3fd51a3" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadmin0blobapitestdownloadmine48066266e0b9ab9a/javablobdownloadmin1blobapitestdownloadmine482867319bf74", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:16 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:15 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "\"0x8D72812C47A683B\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:16 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51e1c12-201e-00c4-2afb-594fb0000000", + "Body" : "[100, 101, 102, 97, 117, 108, 116]", + "x-ms-client-request-id" : "0d3127d2-da25-46e3-a20c-dc2a69e200c1", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcdownloadmin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e1c25-201e-00c4-39fb-594fb0000000", + "Body" : "jtcdownloadminjtcdownloadmin0blobapitestdownloadmine48066266e0b9ab9aFri, 23 Aug 2019 21:42:16 GMT\"0x8D72812C474972A\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:15 GMT", + "x-ms-client-request-id" : "3df00031-1ae3-4609-85c4-4f0911bd7c30", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadmin0blobapitestdownloadmine48066266e0b9ab9a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e1c3f-201e-00c4-4ffb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:15 GMT", + "x-ms-client-request-id" : "844c6265-429a-49a4-b077-8bc7ae47576a" + }, + "Exception" : null + } ], + "variables" : [ "jtcdownloadmin0blobapitestdownloadmine48066266e0b9ab9a", "javablobdownloadmin1blobapitestdownloadmine482867319bf74" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloadrange[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloadrange[0].json new file mode 100644 index 0000000000000..72da27af2d962 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloadrange[0].json @@ -0,0 +1,116 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadrange0blobapitestdownloadrange9ba37040761a829?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C49434CB\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e1c50-201e-00c4-5ffb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:15 GMT", + "x-ms-client-request-id" : "b8781a30-6ec3-45d1-bf77-19c568c55e1d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadrange0blobapitestdownloadrange9ba37040761a829/javablobdownloadrange1blobapitestdownloadrange9ba050349468", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:16 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:15 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812C49A5424\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e1c5d-201e-00c4-6bfb-594fb0000000", + "x-ms-client-request-id" : "3f87a736-1f89-4576-b679-76a476427963" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadrange0blobapitestdownloadrange9ba37040761a829/javablobdownloadrange1blobapitestdownloadrange9ba050349468", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:16 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:15 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "\"0x8D72812C49A5424\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:16 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51e1c6f-201e-00c4-7dfb-594fb0000000", + "Body" : "[100, 101, 102, 97, 117, 108, 116]", + "x-ms-client-request-id" : "ef567a63-5143-45fd-a296-f0a4f4fb9dba", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcdownloadrange&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e1c88-201e-00c4-11fb-594fb0000000", + "Body" : "jtcdownloadrangejtcdownloadrange0blobapitestdownloadrange9ba37040761a829Fri, 23 Aug 2019 21:42:16 GMT\"0x8D72812C49434CB\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:16 GMT", + "x-ms-client-request-id" : "eba74168-5118-4c1c-adff-219f008d8826", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadrange0blobapitestdownloadrange9ba37040761a829?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e1c97-201e-00c4-20fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:16 GMT", + "x-ms-client-request-id" : "8eba9a1e-72e9-4836-bc75-c9f686fdb7ba" + }, + "Exception" : null + } ], + "variables" : [ "jtcdownloadrange0blobapitestdownloadrange9ba37040761a829", "javablobdownloadrange1blobapitestdownloadrange9ba050349468" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloadrange[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloadrange[1].json new file mode 100644 index 0000000000000..393d80772e27f --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloadrange[1].json @@ -0,0 +1,117 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadrange0blobapitestdownloadrange13b4527398a4550?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C4AF3D77\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e1cb7-201e-00c4-3cfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:16 GMT", + "x-ms-client-request-id" : "2b992775-8b10-43b1-8191-c3c0e2646f15" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadrange0blobapitestdownloadrange13b4527398a4550/javablobdownloadrange1blobapitestdownloadrange13b910962453", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:17 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:16 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812C4B4C078\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e1cd9-201e-00c4-5cfb-594fb0000000", + "x-ms-client-request-id" : "7e0f54e1-5a02-40ca-9549-00f6dc4ea1da" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadrange0blobapitestdownloadrange13b4527398a4550/javablobdownloadrange1blobapitestdownloadrange13b910962453", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "Content-Range" : "bytes 0-4/7", + "x-ms-lease-state" : "available", + "x-ms-blob-content-md5" : "wh+Wm18D0z1D4E+PE252gg==", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:17 GMT", + "retry-after" : "0", + "StatusCode" : "206", + "Date" : "Fri, 23 Aug 2019 21:42:16 GMT", + "x-ms-blob-type" : "BlockBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "\"0x8D72812C4B4C078\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:17 GMT", + "Content-Length" : "5", + "x-ms-request-id" : "d51e1cec-201e-00c4-6dfb-594fb0000000", + "Body" : "[100, 101, 102, 97, 117]", + "x-ms-client-request-id" : "ba034169-5201-412a-ad6a-eb48eaacd073", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcdownloadrange&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e1d0a-201e-00c4-09fb-594fb0000000", + "Body" : "jtcdownloadrangejtcdownloadrange0blobapitestdownloadrange13b4527398a4550Fri, 23 Aug 2019 21:42:17 GMT\"0x8D72812C4AF3D77\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:16 GMT", + "x-ms-client-request-id" : "a2f07ab0-e730-4a04-9239-6e003666291d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadrange0blobapitestdownloadrange13b4527398a4550?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e1d3e-201e-00c4-37fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:16 GMT", + "x-ms-client-request-id" : "693aa933-a78d-4bd6-86d8-9966bf73446b" + }, + "Exception" : null + } ], + "variables" : [ "jtcdownloadrange0blobapitestdownloadrange13b4527398a4550", "javablobdownloadrange1blobapitestdownloadrange13b910962453" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloadrange[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloadrange[2].json new file mode 100644 index 0000000000000..08627431919a2 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloadrange[2].json @@ -0,0 +1,117 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadrange0blobapitestdownloadrange845639144a88031?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C4D4A8E7\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e1d5f-201e-00c4-56fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:16 GMT", + "x-ms-client-request-id" : "f30a4afd-b87b-448a-be6f-e4517def6fad" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadrange0blobapitestdownloadrange845639144a88031/javablobdownloadrange1blobapitestdownloadrange8452017799f8", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:17 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:16 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812C4DFD2A7\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e1d8e-201e-00c4-7dfb-594fb0000000", + "x-ms-client-request-id" : "7c0d887e-2936-4069-8a4b-5bea0d4c7c3f" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadrange0blobapitestdownloadrange845639144a88031/javablobdownloadrange1blobapitestdownloadrange8452017799f8", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "Content-Range" : "bytes 3-4/7", + "x-ms-lease-state" : "available", + "x-ms-blob-content-md5" : "wh+Wm18D0z1D4E+PE252gg==", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:17 GMT", + "retry-after" : "0", + "StatusCode" : "206", + "Date" : "Fri, 23 Aug 2019 21:42:16 GMT", + "x-ms-blob-type" : "BlockBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "\"0x8D72812C4DFD2A7\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:17 GMT", + "Content-Length" : "2", + "x-ms-request-id" : "d51e1da4-201e-00c4-12fb-594fb0000000", + "Body" : "[97, 117]", + "x-ms-client-request-id" : "bee5b4a8-3343-4235-8f09-3e69ef451f88", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcdownloadrange&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e1dbc-201e-00c4-27fb-594fb0000000", + "Body" : "jtcdownloadrangejtcdownloadrange0blobapitestdownloadrange845639144a88031Fri, 23 Aug 2019 21:42:17 GMT\"0x8D72812C4D4A8E7\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:16 GMT", + "x-ms-client-request-id" : "e6260be4-5b29-4e03-9b6b-96a16c6f441a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadrange0blobapitestdownloadrange845639144a88031?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e1dcc-201e-00c4-35fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:16 GMT", + "x-ms-client-request-id" : "9577c0ed-befa-4e60-8425-3693bdb540c1" + }, + "Exception" : null + } ], + "variables" : [ "jtcdownloadrange0blobapitestdownloadrange845639144a88031", "javablobdownloadrange1blobapitestdownloadrange8452017799f8" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloadsnapshot.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloadsnapshot.json new file mode 100644 index 0000000000000..18c995aadcaf9 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloadsnapshot.json @@ -0,0 +1,191 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadsnapshot0blobapitestdownloadsnapshotae4125081a36?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C69C91C5\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e24a1-201e-00c4-1ffb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:19 GMT", + "x-ms-client-request-id" : "ab3d552f-657a-4ede-b2ca-3db02309412e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadsnapshot0blobapitestdownloadsnapshotae4125081a36/javablobdownloadsnapshot1blobapitestdownloadsnapshotae4663841", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:20 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:19 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812C6A1EE5F\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e24b3-201e-00c4-30fb-594fb0000000", + "x-ms-client-request-id" : "c3f7684f-11fa-4b22-8f9a-f2c784e7be0c" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadsnapshot0blobapitestdownloadsnapshotae4125081a36/javablobdownloadsnapshot1blobapitestdownloadsnapshotae4663841", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:20 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:19 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "\"0x8D72812C6A1EE5F\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:20 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51e24bb-201e-00c4-37fb-594fb0000000", + "Body" : "[100, 101, 102, 97, 117, 108, 116]", + "x-ms-client-request-id" : "4c31193e-52ce-433e-ba4c-66b4f07a8d97", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadsnapshot0blobapitestdownloadsnapshotae4125081a36/javablobdownloadsnapshot1blobapitestdownloadsnapshotae4663841?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-snapshot" : "2019-08-23T21:42:20.3938655Z", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C6A1EE5F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e24d5-201e-00c4-4cfb-594fb0000000", + "x-ms-request-server-encrypted" : "false", + "Date" : "Fri, 23 Aug 2019 21:42:19 GMT", + "x-ms-client-request-id" : "41300f29-048f-4665-945d-515ad53f426b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadsnapshot0blobapitestdownloadsnapshotae4125081a36/javablobdownloadsnapshot1blobapitestdownloadsnapshotae4663841", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "Ky/Mhvo/J+s=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:20 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:19 GMT", + "Content-MD5" : "kC+90rHfDE9wtKXSNSXpMg==", + "ETag" : "\"0x8D72812C6B37EEB\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e24e5-201e-00c4-5bfb-594fb0000000", + "x-ms-client-request-id" : "cf1d821f-0bc0-4d69-a28a-5c255f8e0b0e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadsnapshot0blobapitestdownloadsnapshotae4125081a36/javablobdownloadsnapshot1blobapitestdownloadsnapshotae4663841?snapshot=2019-08-23T21%3a42%3a20.3938655Z", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:20 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:19 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-snapshot" : "2019-08-23T21:42:20.3938655Z", + "ETag" : "\"0x8D72812C6A1EE5F\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:20 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51e24ed-201e-00c4-63fb-594fb0000000", + "Body" : "[100, 101, 102, 97, 117, 108, 116]", + "x-ms-client-request-id" : "549ebf16-842b-4e45-b57f-d38f10d40efc", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcdownloadsnapshot&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e24fa-201e-00c4-6efb-594fb0000000", + "Body" : "jtcdownloadsnapshotjtcdownloadsnapshot0blobapitestdownloadsnapshotae4125081a36Fri, 23 Aug 2019 21:42:20 GMT\"0x8D72812C69C91C5\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:19 GMT", + "x-ms-client-request-id" : "5f06219b-80f3-421a-a66f-c060cf2ea21e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadsnapshot0blobapitestdownloadsnapshotae4125081a36?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e250a-201e-00c4-7cfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:19 GMT", + "x-ms-client-request-id" : "ed0b3b2a-9267-4e0e-9e39-0c0a63606ce7" + }, + "Exception" : null + } ], + "variables" : [ "jtcdownloadsnapshot0blobapitestdownloadsnapshotae4125081a36", "javablobdownloadsnapshot1blobapitestdownloadsnapshotae4663841" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloadwithretryrange.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloadwithretryrange.json new file mode 100644 index 0000000000000..cd73df946f2d6 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestdownloadwithretryrange.json @@ -0,0 +1,241 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadwithretryrange028037c9cf705b5e46436e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C43ADB6C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e1af5-201e-00c4-3efb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:15 GMT", + "x-ms-client-request-id" : "88e102fb-dad8-40f9-975f-983143f14fa0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadwithretryrange028037c9cf705b5e46436e/javablobdownloadwithretryrange1456751b1ded7634a14", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:16 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:15 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812C4401007\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e1b0a-201e-00c4-4ffb-594fb0000000", + "x-ms-client-request-id" : "8171063a-b54c-4c9a-8f3b-1d5a9ca1bdd8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadwithretryrange028037c9cf705b5e46436e/javablobdownloadwithretryrange1456751b1ded7634a14", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "Content-Range" : "bytes 2-6/7", + "x-ms-lease-state" : "available", + "x-ms-blob-content-md5" : "wh+Wm18D0z1D4E+PE252gg==", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:16 GMT", + "retry-after" : "0", + "StatusCode" : "206", + "Date" : "Fri, 23 Aug 2019 21:42:15 GMT", + "x-ms-blob-type" : "BlockBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "\"0x8D72812C4401007\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:16 GMT", + "Content-Length" : "5", + "x-ms-request-id" : "d51e1b43-201e-00c4-05fb-594fb0000000", + "Body" : "[102, 97, 117, 108, 116]", + "x-ms-client-request-id" : "d251ea47-79e6-4dbf-97ac-c9086d91a8d3", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadwithretryrange028037c9cf705b5e46436e/javablobdownloadwithretryrange1456751b1ded7634a14", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "Content-Range" : "bytes 2-6/7", + "x-ms-lease-state" : "available", + "x-ms-blob-content-md5" : "wh+Wm18D0z1D4E+PE252gg==", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:16 GMT", + "retry-after" : "0", + "StatusCode" : "206", + "Date" : "Fri, 23 Aug 2019 21:42:15 GMT", + "x-ms-blob-type" : "BlockBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "\"0x8D72812C4401007\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:16 GMT", + "Content-Length" : "5", + "x-ms-request-id" : "d51e1b8b-201e-00c4-3bfb-594fb0000000", + "Body" : "[102, 97, 117, 108, 116]", + "x-ms-client-request-id" : "10f91972-1f18-46a0-9cdb-4b662ae1a50b", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadwithretryrange028037c9cf705b5e46436e/javablobdownloadwithretryrange1456751b1ded7634a14", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "Content-Range" : "bytes 2-6/7", + "x-ms-lease-state" : "available", + "x-ms-blob-content-md5" : "wh+Wm18D0z1D4E+PE252gg==", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:16 GMT", + "retry-after" : "0", + "StatusCode" : "206", + "Date" : "Fri, 23 Aug 2019 21:42:15 GMT", + "x-ms-blob-type" : "BlockBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "\"0x8D72812C4401007\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:16 GMT", + "Content-Length" : "5", + "x-ms-request-id" : "d51e1b9d-201e-00c4-4afb-594fb0000000", + "Body" : "[102, 97, 117, 108, 116]", + "x-ms-client-request-id" : "c48db860-b1fe-4d77-ae3e-566526f8f97e", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadwithretryrange028037c9cf705b5e46436e/javablobdownloadwithretryrange1456751b1ded7634a14", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "Content-Range" : "bytes 2-6/7", + "x-ms-lease-state" : "available", + "x-ms-blob-content-md5" : "wh+Wm18D0z1D4E+PE252gg==", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:16 GMT", + "retry-after" : "0", + "StatusCode" : "206", + "Date" : "Fri, 23 Aug 2019 21:42:15 GMT", + "x-ms-blob-type" : "BlockBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "\"0x8D72812C4401007\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:16 GMT", + "Content-Length" : "5", + "x-ms-request-id" : "d51e1bae-201e-00c4-59fb-594fb0000000", + "Body" : "[102, 97, 117, 108, 116]", + "x-ms-client-request-id" : "4716a148-7466-4e4d-829b-e42f60cc2a2a", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadwithretryrange028037c9cf705b5e46436e/javablobdownloadwithretryrange1456751b1ded7634a14", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "Content-Range" : "bytes 2-6/7", + "x-ms-lease-state" : "available", + "x-ms-blob-content-md5" : "wh+Wm18D0z1D4E+PE252gg==", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:16 GMT", + "retry-after" : "0", + "StatusCode" : "206", + "Date" : "Fri, 23 Aug 2019 21:42:15 GMT", + "x-ms-blob-type" : "BlockBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "\"0x8D72812C4401007\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:16 GMT", + "Content-Length" : "5", + "x-ms-request-id" : "d51e1bbc-201e-00c4-65fb-594fb0000000", + "Body" : "[102, 97, 117, 108, 116]", + "x-ms-client-request-id" : "f9a94561-494c-4f2f-973c-05c194edc4ed", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcdownloadwithretryrange&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e1bcb-201e-00c4-72fb-594fb0000000", + "Body" : "jtcdownloadwithretryrangejtcdownloadwithretryrange028037c9cf705b5e46436eFri, 23 Aug 2019 21:42:16 GMT\"0x8D72812C43ADB6C\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:15 GMT", + "x-ms-client-request-id" : "15a6c2fa-12fd-4584-ae28-281e347d51b0", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdownloadwithretryrange028037c9cf705b5e46436e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e1bd4-201e-00c4-78fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:15 GMT", + "x-ms-client-request-id" : "829da7fe-1050-450a-89dd-78f537d1188a" + }, + "Exception" : null + } ], + "variables" : [ "jtcdownloadwithretryrange028037c9cf705b5e46436e", "javablobdownloadwithretryrange1456751b1ded7634a14" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestgetaccountinfo.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestgetaccountinfo.json new file mode 100644 index 0000000000000..1bb5742310379 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestgetaccountinfo.json @@ -0,0 +1,106 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetaccountinfo0blobapitestgetaccountinfoe7726558703d07?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281327495F5E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51f82a2-201e-00c4-48fc-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:45:02 GMT", + "x-ms-client-request-id" : "cabe4bec-a964-4a0b-9ded-9f1ded583e56" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetaccountinfo0blobapitestgetaccountinfoe7726558703d07/javablobgetaccountinfo1blobapitestgetaccountinfoe7780230160", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:02 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:02 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72813274EB9FA\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51f82b9-201e-00c4-5dfc-594fb0000000", + "x-ms-client-request-id" : "fbc4c96d-3119-4e2c-af60-e06b36e464e6" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=account&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-account-kind" : "StorageV2", + "retry-after" : "0", + "Content-Length" : "0", + "x-ms-sku-name" : "Standard_RAGRS", + "StatusCode" : "200", + "x-ms-request-id" : "d51f82cf-201e-00c4-71fc-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:45:02 GMT", + "x-ms-client-request-id" : "383cf519-2a54-43a6-b3b2-1849dc419d19" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetaccountinfo&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51f82e0-201e-00c4-80fc-594fb0000000", + "Body" : "jtcgetaccountinfojtcgetaccountinfo0blobapitestgetaccountinfoe7726558703d07Fri, 23 Aug 2019 21:45:02 GMT\"0x8D7281327495F5E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:02 GMT", + "x-ms-client-request-id" : "4ae93e76-a51f-4d9a-94b4-e66be5991621", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetaccountinfo0blobapitestgetaccountinfoe7726558703d07?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51f82eb-201e-00c4-0bfc-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:45:02 GMT", + "x-ms-client-request-id" : "f8716928-ae6d-47fc-8bf1-46990e07e1d2" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetaccountinfo0blobapitestgetaccountinfoe7726558703d07", "javablobgetaccountinfo1blobapitestgetaccountinfoe7780230160" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestgetaccountinfoerror.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestgetaccountinfoerror.json new file mode 100644 index 0000000000000..fef29c3dbaab2 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestgetaccountinfoerror.json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetaccountinfoerror0blobapitestgetaccountinfoerrorb3e062843?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813277A8D80\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51f835d-201e-00c4-63fc-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:45:02 GMT", + "x-ms-client-request-id" : "a674f180-8026-4dcf-9193-5bdfeb075435" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetaccountinfoerror0blobapitestgetaccountinfoerrorb3e062843/javablobgetaccountinfoerror112485e565bafb2ad1481", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:02 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:02 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72813277FE833\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51f8372-201e-00c4-73fc-594fb0000000", + "x-ms-client-request-id" : "e436a90d-c7c9-4837-9548-f902a6bef238" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetaccountinfoerror2blobapitestgetaccountinfoerrorb3e358900/javablobgetaccountinfoerror349923f73bdd41966d40a?restype=account&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ResourceNotFound", + "retry-after" : "0", + "Content-Length" : "223", + "StatusCode" : "404", + "x-ms-request-id" : "d51f8382-201e-00c4-02fc-594fb0000000", + "Body" : "ResourceNotFoundThe specified resource does not exist.\nRequestId:d51f8382-201e-00c4-02fc-594fb0000000\nTime:2019-08-23T21:45:02.8697874Z", + "Date" : "Fri, 23 Aug 2019 21:45:02 GMT", + "x-ms-client-request-id" : "9ce09366-3ed4-4de3-acec-d9b203ac2aeb", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetaccountinfoerror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51f838d-201e-00c4-0afc-594fb0000000", + "Body" : "jtcgetaccountinfoerrorjtcgetaccountinfoerror0blobapitestgetaccountinfoerrorb3e062843Fri, 23 Aug 2019 21:45:02 GMT\"0x8D72813277A8D80\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:02 GMT", + "x-ms-client-request-id" : "ef13c73b-0895-4ed9-8250-912d90bbdcc8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetaccountinfoerror0blobapitestgetaccountinfoerrorb3e062843?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51f8394-201e-00c4-10fc-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:45:02 GMT", + "x-ms-client-request-id" : "4ea7dbcf-5356-4447-943b-afe8d95610ab" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetaccountinfoerror0blobapitestgetaccountinfoerrorb3e062843", "javablobgetaccountinfoerror112485e565bafb2ad1481", "jtcgetaccountinfoerror2blobapitestgetaccountinfoerrorb3e358900", "javablobgetaccountinfoerror349923f73bdd41966d40a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestgetaccountinfomin.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestgetaccountinfomin.json new file mode 100644 index 0000000000000..6422849f0b7f5 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestgetaccountinfomin.json @@ -0,0 +1,106 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetaccountinfomin0blobapitestgetaccountinfomin8204275986b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813276244A0\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51f830a-201e-00c4-1efc-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:45:02 GMT", + "x-ms-client-request-id" : "570e1d43-aacf-4131-8439-d9768a6c44dd" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetaccountinfomin0blobapitestgetaccountinfomin8204275986b/javablobgetaccountinfomin1blobapitestgetaccountinfomin82076343", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:02 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:02 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D728132767ED7D\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51f8318-201e-00c4-29fc-594fb0000000", + "x-ms-client-request-id" : "bfe02d97-c5a9-41c7-b614-ef22ec054d87" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetaccountinfomin0blobapitestgetaccountinfomin8204275986b/javablobgetaccountinfomin1blobapitestgetaccountinfomin82076343?restype=account&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-account-kind" : "StorageV2", + "retry-after" : "0", + "Content-Length" : "0", + "x-ms-sku-name" : "Standard_RAGRS", + "StatusCode" : "200", + "x-ms-request-id" : "d51f8335-201e-00c4-42fc-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:45:02 GMT", + "x-ms-client-request-id" : "d591cb5c-204d-4d8c-9e60-2d5ed8d09eee" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetaccountinfomin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51f8349-201e-00c4-52fc-594fb0000000", + "Body" : "jtcgetaccountinfominjtcgetaccountinfomin0blobapitestgetaccountinfomin8204275986bFri, 23 Aug 2019 21:45:02 GMT\"0x8D72813276244A0\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:02 GMT", + "x-ms-client-request-id" : "8d952d4a-9689-4e70-a35c-5ca2edf51184", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetaccountinfomin0blobapitestgetaccountinfomin8204275986b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51f834e-201e-00c4-56fc-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:45:02 GMT", + "x-ms-client-request-id" : "6bd4c17a-57d3-46fa-918e-25432a49bf07" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetaccountinfomin0blobapitestgetaccountinfomin8204275986b", "javablobgetaccountinfomin1blobapitestgetaccountinfomin82076343" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestgetpropertiesac[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestgetpropertiesac[0].json new file mode 100644 index 0000000000000..cb70dac44ea66 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestgetpropertiesac[0].json @@ -0,0 +1,117 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesac0blobapitestgetpropertiesac15825164f93ea?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C7075484\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e25d1-201e-00c4-2bfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:20 GMT", + "x-ms-client-request-id" : "6519b27f-32c4-4ece-8e31-b4f03e676d51" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesac0blobapitestgetpropertiesac15825164f93ea/javablobgetpropertiesac1blobapitestgetpropertiesac15854062cc", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:21 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:20 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812C70D9BEE\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e25db-201e-00c4-34fb-594fb0000000", + "x-ms-client-request-id" : "1ececa29-d993-4e20-a792-afe8f7894445" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesac0blobapitestgetpropertiesac15825164f93ea/javablobgetpropertiesac1blobapitestgetpropertiesac15854062cc", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:21 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:20 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812C70D9BEE\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:21 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51e25f0-201e-00c4-47fb-594fb0000000", + "x-ms-client-request-id" : "765040c4-e884-405e-b3b4-5b824b4e5e56", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetpropertiesac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e2606-201e-00c4-5cfb-594fb0000000", + "Body" : "jtcgetpropertiesacjtcgetpropertiesac0blobapitestgetpropertiesac15825164f93eaFri, 23 Aug 2019 21:42:20 GMT\"0x8D72812C7075484\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:20 GMT", + "x-ms-client-request-id" : "39f341c8-efe7-4eb3-b4c5-c3f0d367c844", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesac0blobapitestgetpropertiesac15825164f93ea?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e261a-201e-00c4-6dfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:20 GMT", + "x-ms-client-request-id" : "a35d2359-1e7a-4b1d-93ac-81efd8744eef" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetpropertiesac0blobapitestgetpropertiesac15825164f93ea", "javablobgetpropertiesac1blobapitestgetpropertiesac15854062cc" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestgetpropertiesac[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestgetpropertiesac[1].json new file mode 100644 index 0000000000000..a32c6dc3c3cf3 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestgetpropertiesac[1].json @@ -0,0 +1,117 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesac0blobapitestgetpropertiesac3ea42431541c8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C726CB12\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e2634-201e-00c4-01fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:20 GMT", + "x-ms-client-request-id" : "2ac2e606-4a27-407b-a59b-d6246199fd5f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesac0blobapitestgetpropertiesac3ea42431541c8/javablobgetpropertiesac1blobapitestgetpropertiesac3ea29256e2", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:21 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:20 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812C72C9D50\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e2649-201e-00c4-12fb-594fb0000000", + "x-ms-client-request-id" : "d8e3faec-8b65-4a64-9f07-de0d5ea86e51" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesac0blobapitestgetpropertiesac3ea42431541c8/javablobgetpropertiesac1blobapitestgetpropertiesac3ea29256e2", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:21 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:20 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812C72C9D50\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:21 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51e2659-201e-00c4-21fb-594fb0000000", + "x-ms-client-request-id" : "744b9509-9183-4d18-89ad-e40854580ca1", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetpropertiesac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e265e-201e-00c4-26fb-594fb0000000", + "Body" : "jtcgetpropertiesacjtcgetpropertiesac0blobapitestgetpropertiesac3ea42431541c8Fri, 23 Aug 2019 21:42:21 GMT\"0x8D72812C726CB12\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:20 GMT", + "x-ms-client-request-id" : "e22b4ef5-5284-4023-9b24-448d23ecbc13", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesac0blobapitestgetpropertiesac3ea42431541c8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e2678-201e-00c4-39fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:20 GMT", + "x-ms-client-request-id" : "ba087bd2-1ef6-4b94-a6e8-bb43502f9cde" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetpropertiesac0blobapitestgetpropertiesac3ea42431541c8", "javablobgetpropertiesac1blobapitestgetpropertiesac3ea29256e2" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestgetpropertiesac[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestgetpropertiesac[2].json new file mode 100644 index 0000000000000..6a01ab936131d --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestgetpropertiesac[2].json @@ -0,0 +1,117 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesac0blobapitestgetpropertiesac47f183971fd56?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C7413758\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e2691-201e-00c4-4bfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:20 GMT", + "x-ms-client-request-id" : "f724093a-f7f8-4c0b-88f9-0283141b5247" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesac0blobapitestgetpropertiesac47f183971fd56/javablobgetpropertiesac1blobapitestgetpropertiesac47f8984022", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:21 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:20 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812C7466D3B\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e26a4-201e-00c4-59fb-594fb0000000", + "x-ms-client-request-id" : "32c088a9-b61a-470f-9f51-97e942c28694" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesac0blobapitestgetpropertiesac47f183971fd56/javablobgetpropertiesac1blobapitestgetpropertiesac47f8984022", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:21 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:20 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812C7466D3B\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:21 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51e26ae-201e-00c4-62fb-594fb0000000", + "x-ms-client-request-id" : "772b4569-f5bc-42b6-a821-62802a288b79", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetpropertiesac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e26bd-201e-00c4-70fb-594fb0000000", + "Body" : "jtcgetpropertiesacjtcgetpropertiesac0blobapitestgetpropertiesac47f183971fd56Fri, 23 Aug 2019 21:42:21 GMT\"0x8D72812C7413758\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:20 GMT", + "x-ms-client-request-id" : "0f84e42c-10b4-4ccc-ab52-87e91b0e79cb", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesac0blobapitestgetpropertiesac47f183971fd56?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e26c9-201e-00c4-79fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:20 GMT", + "x-ms-client-request-id" : "640b922b-8e72-4f6f-89a4-b8138fb021a2" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetpropertiesac0blobapitestgetpropertiesac47f183971fd56", "javablobgetpropertiesac1blobapitestgetpropertiesac47f8984022" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestgetpropertiesac[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestgetpropertiesac[3].json new file mode 100644 index 0000000000000..65c5f2d60d95c --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestgetpropertiesac[3].json @@ -0,0 +1,148 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesac0blobapitestgetpropertiesaca352376763a8a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C75AB900\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e26e3-201e-00c4-10fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:20 GMT", + "x-ms-client-request-id" : "98c7e335-1ecf-467d-bfbc-72a3fa33bdaf" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesac0blobapitestgetpropertiesaca352376763a8a/javablobgetpropertiesac1blobapitestgetpropertiesaca353275118", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:21 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:20 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812C7608B62\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e26fc-201e-00c4-24fb-594fb0000000", + "x-ms-client-request-id" : "e3f74e11-922e-424c-9aed-d7663ddf8e3b" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesac0blobapitestgetpropertiesaca352376763a8a/javablobgetpropertiesac1blobapitestgetpropertiesaca353275118", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:21 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:20 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812C7608B62\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:21 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51e2709-201e-00c4-30fb-594fb0000000", + "x-ms-client-request-id" : "5f9d49d3-4f34-45c4-b066-d458a77ec31f", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesac0blobapitestgetpropertiesaca352376763a8a/javablobgetpropertiesac1blobapitestgetpropertiesaca353275118", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:21 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:20 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812C7608B62\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:21 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51e271c-201e-00c4-3ffb-594fb0000000", + "x-ms-client-request-id" : "979a5962-8e7a-45b3-8031-d8ac36be922c", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetpropertiesac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e2732-201e-00c4-4efb-594fb0000000", + "Body" : "jtcgetpropertiesacjtcgetpropertiesac0blobapitestgetpropertiesaca352376763a8aFri, 23 Aug 2019 21:42:21 GMT\"0x8D72812C75AB900\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:20 GMT", + "x-ms-client-request-id" : "a388e8c4-60ff-4ed2-87d4-186a74241d93", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesac0blobapitestgetpropertiesaca352376763a8a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e273f-201e-00c4-58fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:20 GMT", + "x-ms-client-request-id" : "6820fa05-3874-40b0-a9d2-74e9029169d2" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetpropertiesac0blobapitestgetpropertiesaca352376763a8a", "javablobgetpropertiesac1blobapitestgetpropertiesaca353275118" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestgetpropertiesac[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestgetpropertiesac[4].json new file mode 100644 index 0000000000000..3150e8abffe48 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestgetpropertiesac[4].json @@ -0,0 +1,117 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesac0blobapitestgetpropertiesac156805168d827?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C7785A61\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e2751-201e-00c4-68fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:20 GMT", + "x-ms-client-request-id" : "e94aa701-bbac-469e-ae92-5e0ca7c118da" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesac0blobapitestgetpropertiesac156805168d827/javablobgetpropertiesac1blobapitestgetpropertiesac1560445692", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:21 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:20 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812C77E05BE\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e2768-201e-00c4-79fb-594fb0000000", + "x-ms-client-request-id" : "e3f2a5d9-45e3-4122-81a7-17b6e798169a" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesac0blobapitestgetpropertiesac156805168d827/javablobgetpropertiesac1blobapitestgetpropertiesac1560445692", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:21 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:20 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812C77E05BE\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:21 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51e277f-201e-00c4-10fb-594fb0000000", + "x-ms-client-request-id" : "f03e2dc1-0cb0-45d5-a3e1-ea327fc12e02", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetpropertiesac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e278a-201e-00c4-1afb-594fb0000000", + "Body" : "jtcgetpropertiesacjtcgetpropertiesac0blobapitestgetpropertiesac156805168d827Fri, 23 Aug 2019 21:42:21 GMT\"0x8D72812C7785A61\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:20 GMT", + "x-ms-client-request-id" : "c7bfdb8d-3f3a-4eb9-a171-b05e59518b25", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesac0blobapitestgetpropertiesac156805168d827?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e2796-201e-00c4-26fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:20 GMT", + "x-ms-client-request-id" : "5cd07a14-f298-4f16-928b-5743f0f89725" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetpropertiesac0blobapitestgetpropertiesac156805168d827", "javablobgetpropertiesac1blobapitestgetpropertiesac1560445692" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestgetpropertiesac[5].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestgetpropertiesac[5].json new file mode 100644 index 0000000000000..5a8c63d36a631 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestgetpropertiesac[5].json @@ -0,0 +1,139 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesac0blobapitestgetpropertiesac64f551536c63d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C79166BE\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e27aa-201e-00c4-36fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:20 GMT", + "x-ms-client-request-id" : "be802606-e46b-4976-8930-3a6ecccbe6d8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesac0blobapitestgetpropertiesac64f551536c63d/javablobgetpropertiesac1blobapitestgetpropertiesac64f434962c", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:21 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:20 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812C797122B\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e27b8-201e-00c4-43fb-594fb0000000", + "x-ms-client-request-id" : "cfc7027b-4934-4717-a657-d31562292b58" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesac0blobapitestgetpropertiesac64f551536c63d/javablobgetpropertiesac1blobapitestgetpropertiesac64f434962c?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C797122B\"", + "x-ms-lease-id" : "18649a46-7349-4808-b890-de26447e7fa1", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e27c6-201e-00c4-51fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:21 GMT", + "x-ms-client-request-id" : "06622738-352c-46b0-839c-0b11b629c13c" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesac0blobapitestgetpropertiesac64f551536c63d/javablobgetpropertiesac1blobapitestgetpropertiesac64f434962c", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "locked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "leased", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:21 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:21 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812C797122B\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:21 GMT", + "x-ms-lease-duration" : "infinite", + "Content-Length" : "7", + "x-ms-request-id" : "d51e27e2-201e-00c4-68fb-594fb0000000", + "x-ms-client-request-id" : "69b18701-13a1-4572-a094-83b9d0687bd8", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetpropertiesac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e27ee-201e-00c4-74fb-594fb0000000", + "Body" : "jtcgetpropertiesacjtcgetpropertiesac0blobapitestgetpropertiesac64f551536c63dFri, 23 Aug 2019 21:42:21 GMT\"0x8D72812C79166BE\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:21 GMT", + "x-ms-client-request-id" : "671a7252-ec82-41f1-9b3b-bf28fb5579a2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesac0blobapitestgetpropertiesac64f551536c63d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e280b-201e-00c4-0efb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:21 GMT", + "x-ms-client-request-id" : "c19dcc34-63cb-406b-8011-1f59728d271b" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetpropertiesac0blobapitestgetpropertiesac64f551536c63d", "javablobgetpropertiesac1blobapitestgetpropertiesac64f434962c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestgetpropertiesacfail[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestgetpropertiesacfail[0].json new file mode 100644 index 0000000000000..3f0115ca691a0 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestgetpropertiesacfail[0].json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesacfail0blobapitestgetpropertiesacfail95a854458?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C7B5C083\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e2829-201e-00c4-29fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:21 GMT", + "x-ms-client-request-id" : "877b0e9c-6d5d-4163-86b7-87c70cb62e64" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesacfail0blobapitestgetpropertiesacfail95a854458/javablobgetpropertiesacfail191736f8b8c56e448e4f8", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:22 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:21 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812C7BB6BEF\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e2848-201e-00c4-40fb-594fb0000000", + "x-ms-client-request-id" : "f2e974bf-47ae-4ca2-b7ff-903c7463f44e" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesacfail0blobapitestgetpropertiesacfail95a854458/javablobgetpropertiesacfail191736f8b8c56e448e4f8", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "StatusCode" : "304", + "x-ms-request-id" : "d51e2858-201e-00c4-4ffb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:21 GMT", + "x-ms-client-request-id" : "0122e243-c811-48c2-bf0a-6cc788a1f573" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetpropertiesacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e2866-201e-00c4-5cfb-594fb0000000", + "Body" : "jtcgetpropertiesacfailjtcgetpropertiesacfail0blobapitestgetpropertiesacfail95a854458Fri, 23 Aug 2019 21:42:22 GMT\"0x8D72812C7B5C083\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:21 GMT", + "x-ms-client-request-id" : "7082935e-b881-4526-8271-9ea4e23b483c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesacfail0blobapitestgetpropertiesacfail95a854458?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e2873-201e-00c4-68fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:21 GMT", + "x-ms-client-request-id" : "5035779b-824e-4c43-866c-419841c7e57a" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetpropertiesacfail0blobapitestgetpropertiesacfail95a854458", "javablobgetpropertiesacfail191736f8b8c56e448e4f8" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestgetpropertiesacfail[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestgetpropertiesacfail[1].json new file mode 100644 index 0000000000000..10fa0a6a6a3c4 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestgetpropertiesacfail[1].json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesacfail0blobapitestgetpropertiesacfail6db03280d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C7CFDE91\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e2884-201e-00c4-77fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:21 GMT", + "x-ms-client-request-id" : "7647c205-6e60-449c-96fe-b23aa1b0992e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesacfail0blobapitestgetpropertiesacfail6db03280d/javablobgetpropertiesacfail145319ae41ecc9055142e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:22 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:21 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812C7D58A0B\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e2897-201e-00c4-06fb-594fb0000000", + "x-ms-client-request-id" : "b4726816-9512-4947-acac-7390dccb4cd5" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesacfail0blobapitestgetpropertiesacfail6db03280d/javablobgetpropertiesacfail145319ae41ecc9055142e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "StatusCode" : "412", + "x-ms-request-id" : "d51e28a7-201e-00c4-11fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:21 GMT", + "x-ms-client-request-id" : "0a22b9fe-c7b4-4257-8711-ff6924f6b3df" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetpropertiesacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e28b2-201e-00c4-1cfb-594fb0000000", + "Body" : "jtcgetpropertiesacfailjtcgetpropertiesacfail0blobapitestgetpropertiesacfail6db03280dFri, 23 Aug 2019 21:42:22 GMT\"0x8D72812C7CFDE91\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:21 GMT", + "x-ms-client-request-id" : "7a9eaad3-9207-4e70-8a84-376efe50ab0c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesacfail0blobapitestgetpropertiesacfail6db03280d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e28bb-201e-00c4-24fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:21 GMT", + "x-ms-client-request-id" : "bfcd16a0-5ed6-462a-9fd0-b725b1f7793c" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetpropertiesacfail0blobapitestgetpropertiesacfail6db03280d", "javablobgetpropertiesacfail145319ae41ecc9055142e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestgetpropertiesacfail[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestgetpropertiesacfail[2].json new file mode 100644 index 0000000000000..0cbced56d6030 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestgetpropertiesacfail[2].json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesacfail0blobapitestgetpropertiesacfaild3053045f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C7E98750\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e28ca-201e-00c4-31fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:21 GMT", + "x-ms-client-request-id" : "7f66ce28-5b81-4e7e-9f48-8f48cdcf6379" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesacfail0blobapitestgetpropertiesacfaild3053045f/javablobgetpropertiesacfail13267087354cc7e9584d4", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:22 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:21 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812C7EF0BC6\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e28e1-201e-00c4-42fb-594fb0000000", + "x-ms-client-request-id" : "dc4f3697-6c44-4640-8ef5-1e36793424c5" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesacfail0blobapitestgetpropertiesacfaild3053045f/javablobgetpropertiesacfail13267087354cc7e9584d4", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "StatusCode" : "412", + "x-ms-request-id" : "d51e28f0-201e-00c4-50fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:21 GMT", + "x-ms-client-request-id" : "29e20819-0477-49cd-836b-c2ee0ae2d421" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetpropertiesacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e28fa-201e-00c4-58fb-594fb0000000", + "Body" : "jtcgetpropertiesacfailjtcgetpropertiesacfail0blobapitestgetpropertiesacfaild3053045fFri, 23 Aug 2019 21:42:22 GMT\"0x8D72812C7E98750\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:21 GMT", + "x-ms-client-request-id" : "9d398a0a-15e3-4fc2-9744-f13c1ca36246", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesacfail0blobapitestgetpropertiesacfaild3053045f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e2907-201e-00c4-61fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:21 GMT", + "x-ms-client-request-id" : "2269153f-38f4-4de0-b61d-809f7e4584bf" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetpropertiesacfail0blobapitestgetpropertiesacfaild3053045f", "javablobgetpropertiesacfail13267087354cc7e9584d4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestgetpropertiesacfail[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestgetpropertiesacfail[3].json new file mode 100644 index 0000000000000..5fa24848495d6 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestgetpropertiesacfail[3].json @@ -0,0 +1,135 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesacfail0blobapitestgetpropertiesacfail02b443447?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C8035730\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e292c-201e-00c4-7ffb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:21 GMT", + "x-ms-client-request-id" : "10796bcc-e821-49e6-ba07-a063d203242e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesacfail0blobapitestgetpropertiesacfail02b443447/javablobgetpropertiesacfail1955117fdf3b711e5f441", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:22 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:21 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812C80950F5\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e2948-201e-00c4-13fb-594fb0000000", + "x-ms-client-request-id" : "f71cb7ba-27f4-41c0-b4ea-9246f5654ffd" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesacfail0blobapitestgetpropertiesacfail02b443447/javablobgetpropertiesacfail1955117fdf3b711e5f441", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:22 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:21 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812C80950F5\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:22 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51e2954-201e-00c4-1ffb-594fb0000000", + "x-ms-client-request-id" : "12bb4df8-6aa8-498b-82ca-ea12d6a26b81", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesacfail0blobapitestgetpropertiesacfail02b443447/javablobgetpropertiesacfail1955117fdf3b711e5f441", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "StatusCode" : "304", + "x-ms-request-id" : "d51e295d-201e-00c4-28fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:21 GMT", + "x-ms-client-request-id" : "7588c656-9edc-4ae4-b14b-b9053308c41f" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetpropertiesacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e2967-201e-00c4-31fb-594fb0000000", + "Body" : "jtcgetpropertiesacfailjtcgetpropertiesacfail0blobapitestgetpropertiesacfail02b443447Fri, 23 Aug 2019 21:42:22 GMT\"0x8D72812C8035730\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:21 GMT", + "x-ms-client-request-id" : "5a8b8b28-0f14-4a27-bd0b-3c751f243825", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesacfail0blobapitestgetpropertiesacfail02b443447?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e2976-201e-00c4-3dfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:21 GMT", + "x-ms-client-request-id" : "6188cfec-2076-4a9e-b2f7-ede47da59459" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetpropertiesacfail0blobapitestgetpropertiesacfail02b443447", "javablobgetpropertiesacfail1955117fdf3b711e5f441" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestgetpropertiesacfail[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestgetpropertiesacfail[4].json new file mode 100644 index 0000000000000..27abdb118031e --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestgetpropertiesacfail[4].json @@ -0,0 +1,125 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesacfail0blobapitestgetpropertiesacfail571301463?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C8211FA3\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e2982-201e-00c4-48fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:21 GMT", + "x-ms-client-request-id" : "4e084c7a-2713-4447-b29e-42d555c329f3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesacfail0blobapitestgetpropertiesacfail571301463/javablobgetpropertiesacfail160253bb9f5123f69b4db", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:22 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:21 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812C826CB49\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e2997-201e-00c4-58fb-594fb0000000", + "x-ms-client-request-id" : "46459d55-1fbf-4bce-a836-dce1e6a9f822" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesacfail0blobapitestgetpropertiesacfail571301463/javablobgetpropertiesacfail160253bb9f5123f69b4db?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C826CB49\"", + "x-ms-lease-id" : "ba75a0c7-1122-4088-a4cc-584c51398e53", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e29af-201e-00c4-6efb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:21 GMT", + "x-ms-client-request-id" : "71f15d90-4046-4578-b8dd-81545602054b" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesacfail0blobapitestgetpropertiesacfail571301463/javablobgetpropertiesacfail160253bb9f5123f69b4db", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "LeaseIdMismatchWithBlobOperation", + "retry-after" : "0", + "StatusCode" : "412", + "x-ms-request-id" : "d51e29b8-201e-00c4-77fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:21 GMT", + "x-ms-client-request-id" : "cfe9559d-9669-4cda-8f40-b6a29df9dc55" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetpropertiesacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e29c2-201e-00c4-80fb-594fb0000000", + "Body" : "jtcgetpropertiesacfailjtcgetpropertiesacfail0blobapitestgetpropertiesacfail571301463Fri, 23 Aug 2019 21:42:22 GMT\"0x8D72812C8211FA3\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:22 GMT", + "x-ms-client-request-id" : "3e1e8770-06b7-4cbe-b73d-9e5605411726", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesacfail0blobapitestgetpropertiesacfail571301463?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e29ce-201e-00c4-0bfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:22 GMT", + "x-ms-client-request-id" : "59375bf9-f5c4-4b62-8feb-fa0d261622a3" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetpropertiesacfail0blobapitestgetpropertiesacfail571301463", "javablobgetpropertiesacfail160253bb9f5123f69b4db" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestgetpropertiesdefault.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestgetpropertiesdefault.json new file mode 100644 index 0000000000000..78ef594810ea5 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestgetpropertiesdefault.json @@ -0,0 +1,117 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesdefault019504306fc01e2fbf4fb4b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C6C88E8C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e251b-201e-00c4-0dfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:19 GMT", + "x-ms-client-request-id" : "2c54c341-e9c8-45c8-b59c-71fd10ebe503" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesdefault019504306fc01e2fbf4fb4b/javablobgetpropertiesdefault179937b103b74354554c", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:20 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:19 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812C6CDEB31\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e2529-201e-00c4-1afb-594fb0000000", + "x-ms-client-request-id" : "d14823ea-e023-460a-b5da-89790cef71c3" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesdefault019504306fc01e2fbf4fb4b/javablobgetpropertiesdefault179937b103b74354554c", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:20 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:19 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812C6CDEB31\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:20 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51e2540-201e-00c4-2afb-594fb0000000", + "x-ms-client-request-id" : "27a05b0a-fab3-4ac2-b31f-c2b9b8ba6fe3", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetpropertiesdefault&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e254f-201e-00c4-37fb-594fb0000000", + "Body" : "jtcgetpropertiesdefaultjtcgetpropertiesdefault019504306fc01e2fbf4fb4bFri, 23 Aug 2019 21:42:20 GMT\"0x8D72812C6C88E8C\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:19 GMT", + "x-ms-client-request-id" : "bce680a5-db4c-4e50-add7-39db2f8d7e10", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesdefault019504306fc01e2fbf4fb4b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e255b-201e-00c4-42fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:19 GMT", + "x-ms-client-request-id" : "33966e31-2cdf-458a-ae92-65a40f5c2ab1" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetpropertiesdefault019504306fc01e2fbf4fb4b", "javablobgetpropertiesdefault179937b103b74354554c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestgetpropertieserror.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestgetpropertieserror.json new file mode 100644 index 0000000000000..36688949852e3 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestgetpropertieserror.json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertieserror0blobapitestgetpropertieserror5d359398a0?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C8421D3A\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e29e7-201e-00c4-22fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:22 GMT", + "x-ms-client-request-id" : "428c344d-2908-4e63-9df1-3b6e04b6f9bf" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertieserror0blobapitestgetpropertieserror5d359398a0/javablobgetpropertieserror10382331a225a0c7cd491", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:23 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:22 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812C847C8DA\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e2a08-201e-00c4-3ffb-594fb0000000", + "x-ms-client-request-id" : "7c5ced3a-75d8-433d-9355-e85c7c431cfc" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertieserror0blobapitestgetpropertieserror5d359398a0/javablobgetpropertieserror2925306c7737f2e5ce44e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "BlobNotFound", + "retry-after" : "0", + "StatusCode" : "404", + "x-ms-request-id" : "d51e2a25-201e-00c4-59fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:22 GMT", + "x-ms-client-request-id" : "544d6aa2-d65a-4464-a3ed-4691a4d29b34" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetpropertieserror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e2a3a-201e-00c4-6efb-594fb0000000", + "Body" : "jtcgetpropertieserrorjtcgetpropertieserror0blobapitestgetpropertieserror5d359398a0Fri, 23 Aug 2019 21:42:23 GMT\"0x8D72812C8421D3A\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:22 GMT", + "x-ms-client-request-id" : "adb350c4-6643-4309-9c43-e810e7342973", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertieserror0blobapitestgetpropertieserror5d359398a0?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e2a50-201e-00c4-80fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:22 GMT", + "x-ms-client-request-id" : "b22d8eaf-ccd8-4340-926d-5f64942b776e" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetpropertieserror0blobapitestgetpropertieserror5d359398a0", "javablobgetpropertieserror10382331a225a0c7cd491", "javablobgetpropertieserror2925306c7737f2e5ce44e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestgetpropertiesmin.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestgetpropertiesmin.json new file mode 100644 index 0000000000000..161bcb6f74854 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestgetpropertiesmin.json @@ -0,0 +1,117 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesmin0blobapitestgetpropertiesmin4be8243619c9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C6E62FE3\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e256f-201e-00c4-54fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:19 GMT", + "x-ms-client-request-id" : "b23ff4de-99f6-4af9-807c-8c3d03fb3610" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesmin0blobapitestgetpropertiesmin4be8243619c9/javablobgetpropertiesmin1blobapitestgetpropertiesmin4be11839d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:20 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:19 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812C6F356B0\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e2591-201e-00c4-71fb-594fb0000000", + "x-ms-client-request-id" : "d129e7b3-aa88-4294-b1da-4947cec86f9c" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesmin0blobapitestgetpropertiesmin4be8243619c9/javablobgetpropertiesmin1blobapitestgetpropertiesmin4be11839d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:20 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:19 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812C6F356B0\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:20 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51e259a-201e-00c4-7afb-594fb0000000", + "x-ms-client-request-id" : "db065fd4-04b2-4c2b-8557-1c7f1436003f", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetpropertiesmin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e25a5-201e-00c4-04fb-594fb0000000", + "Body" : "jtcgetpropertiesminjtcgetpropertiesmin0blobapitestgetpropertiesmin4be8243619c9Fri, 23 Aug 2019 21:42:20 GMT\"0x8D72812C6E62FE3\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:19 GMT", + "x-ms-client-request-id" : "c59bba7b-c4f1-4b07-b09f-72510dc67add", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesmin0blobapitestgetpropertiesmin4be8243619c9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e25b3-201e-00c4-10fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:19 GMT", + "x-ms-client-request-id" : "033d3ed6-22eb-4367-8b33-11f21f8d59c4" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetpropertiesmin0blobapitestgetpropertiesmin4be8243619c9", "javablobgetpropertiesmin1blobapitestgetpropertiesmin4be11839d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestreleaselease.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestreleaselease.json new file mode 100644 index 0000000000000..000d421df3c82 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestreleaselease.json @@ -0,0 +1,158 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaselease0blobapitestreleaseleasee1899975b97151ed?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812D9100263\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e6fd1-201e-00c4-45fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:50 GMT", + "x-ms-client-request-id" : "e1404dab-a70c-4f0d-83cb-d187577b5ed3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaselease0blobapitestreleaseleasee1899975b97151ed/javablobreleaselease1blobapitestreleaseleasee18929945236e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:51 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:50 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812D9158D36\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e6fdd-201e-00c4-4ffb-594fb0000000", + "x-ms-client-request-id" : "0d46ef92-770f-4f78-b1e5-60d723d16770" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaselease0blobapitestreleaseleasee1899975b97151ed/javablobreleaselease1blobapitestreleaseleasee18929945236e?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812D9158D36\"", + "x-ms-lease-id" : "ee5964c2-27fa-4fbf-beff-a62818854c4b", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e6ff8-201e-00c4-64fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:50 GMT", + "x-ms-client-request-id" : "bccf1467-b343-4e39-bedf-8afd3c76a5bc" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaselease0blobapitestreleaseleasee1899975b97151ed/javablobreleaselease1blobapitestreleaseleasee18929945236e?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812D9158D36\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e700d-201e-00c4-77fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:50 GMT", + "x-ms-client-request-id" : "0ae67341-958c-46c0-9636-7bb61e117f3d" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaselease0blobapitestreleaseleasee1899975b97151ed/javablobreleaselease1blobapitestreleaseleasee18929945236e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:51 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:50 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812D9158D36\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:51 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51e701c-201e-00c4-06fb-594fb0000000", + "x-ms-client-request-id" : "0e438c6d-1130-4248-a065-e50273d1a01f", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcreleaselease&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e702f-201e-00c4-15fb-594fb0000000", + "Body" : "jtcreleaseleasejtcreleaselease0blobapitestreleaseleasee1899975b97151edFri, 23 Aug 2019 21:42:51 GMT\"0x8D72812D9100263\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:50 GMT", + "x-ms-client-request-id" : "01470cb8-1677-43c6-b6ac-7f4678f4a0fd", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaselease0blobapitestreleaseleasee1899975b97151ed?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e7043-201e-00c4-26fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:50 GMT", + "x-ms-client-request-id" : "eeaeb7e2-a302-413d-8508-84f3d11c3d1d" + }, + "Exception" : null + } ], + "variables" : [ "jtcreleaselease0blobapitestreleaseleasee1899975b97151ed", "javablobreleaselease1blobapitestreleaseleasee18929945236e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestreleaseleaseac[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestreleaseleaseac[0].json new file mode 100644 index 0000000000000..cbe3c8bbc598d --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestreleaseleaseac[0].json @@ -0,0 +1,127 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseac0blobapitestreleaseleaseace1806588bd6902?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812D951882C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e70dd-201e-00c4-2afb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:50 GMT", + "x-ms-client-request-id" : "b2927d8a-3938-47da-b9be-95da9cc499b7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseac0blobapitestreleaseleaseace1806588bd6902/javablobreleaseleaseac1blobapitestreleaseleaseace187276018a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:51 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:50 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812D956C508\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e70f4-201e-00c4-3efb-594fb0000000", + "x-ms-client-request-id" : "f21117ca-a22d-4449-b8b7-71a7a30b134a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseac0blobapitestreleaseleaseace1806588bd6902/javablobreleaseleaseac1blobapitestreleaseleaseace187276018a?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812D956C508\"", + "x-ms-lease-id" : "5392309e-2c05-491e-95ff-a26435acc4b2", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e7104-201e-00c4-4cfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:50 GMT", + "x-ms-client-request-id" : "f4675144-55f1-4066-b679-100d1b532ed7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseac0blobapitestreleaseleaseace1806588bd6902/javablobreleaseleaseac1blobapitestreleaseleaseace187276018a?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812D956C508\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e7118-201e-00c4-5cfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:50 GMT", + "x-ms-client-request-id" : "e2359bd3-419b-4319-baee-906f125214a2" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcreleaseleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e7141-201e-00c4-80fb-594fb0000000", + "Body" : "jtcreleaseleaseacjtcreleaseleaseac0blobapitestreleaseleaseace1806588bd6902Fri, 23 Aug 2019 21:42:51 GMT\"0x8D72812D951882C\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:50 GMT", + "x-ms-client-request-id" : "2ead5573-e6e7-406b-80b6-6a39316f8eac", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseac0blobapitestreleaseleaseace1806588bd6902?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e714a-201e-00c4-09fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:50 GMT", + "x-ms-client-request-id" : "7419c096-81d1-4193-9217-bb970f3ee35f" + }, + "Exception" : null + } ], + "variables" : [ "jtcreleaseleaseac0blobapitestreleaseleaseace1806588bd6902", "javablobreleaseleaseac1blobapitestreleaseleaseace187276018a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestreleaseleaseac[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestreleaseleaseac[1].json new file mode 100644 index 0000000000000..228235d9ed7c9 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestreleaseleaseac[1].json @@ -0,0 +1,127 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseac0blobapitestreleaseleaseac587645943d5e69?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812D97A76F8\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e7159-201e-00c4-17fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:50 GMT", + "x-ms-client-request-id" : "e1893b63-f526-4a51-9172-313a16ac39df" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseac0blobapitestreleaseleaseac587645943d5e69/javablobreleaseleaseac1blobapitestreleaseleaseac58783450d53", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:51 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:50 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812D97FB3DC\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e7169-201e-00c4-25fb-594fb0000000", + "x-ms-client-request-id" : "b9a9e815-c934-44d0-b98d-17532c4eae1b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseac0blobapitestreleaseleaseac587645943d5e69/javablobreleaseleaseac1blobapitestreleaseleaseac58783450d53?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812D97FB3DC\"", + "x-ms-lease-id" : "4a3bd33c-6807-4c09-9e78-ee197b8fcf0b", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e7182-201e-00c4-36fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:51 GMT", + "x-ms-client-request-id" : "f3526f76-0b0b-4362-a265-aab7ab2c56e2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseac0blobapitestreleaseleaseac587645943d5e69/javablobreleaseleaseac1blobapitestreleaseleaseac58783450d53?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812D97FB3DC\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e719a-201e-00c4-49fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:51 GMT", + "x-ms-client-request-id" : "dcf43667-fd93-4e00-8087-eeb26f0c21fa" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcreleaseleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e71b0-201e-00c4-5dfb-594fb0000000", + "Body" : "jtcreleaseleaseacjtcreleaseleaseac0blobapitestreleaseleaseac587645943d5e69Fri, 23 Aug 2019 21:42:51 GMT\"0x8D72812D97A76F8\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:51 GMT", + "x-ms-client-request-id" : "ef76ae02-1cc6-488b-838e-620145e71483", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseac0blobapitestreleaseleaseac587645943d5e69?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e71ce-201e-00c4-78fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:51 GMT", + "x-ms-client-request-id" : "fe1f1e25-c07e-4da6-a91a-c20c3e5f56ed" + }, + "Exception" : null + } ], + "variables" : [ "jtcreleaseleaseac0blobapitestreleaseleaseac587645943d5e69", "javablobreleaseleaseac1blobapitestreleaseleaseac58783450d53" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestreleaseleaseac[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestreleaseleaseac[2].json new file mode 100644 index 0000000000000..a6461e8297707 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestreleaseleaseac[2].json @@ -0,0 +1,127 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseac0blobapitestreleaseleaseac77c73093b34a97?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812D998184B\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e71e0-201e-00c4-05fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:51 GMT", + "x-ms-client-request-id" : "5ad826ac-f1da-4c88-b95a-6622d98fdfe4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseac0blobapitestreleaseleaseac77c73093b34a97/javablobreleaseleaseac1blobapitestreleaseleaseac77c64378583", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:52 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:51 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812D99DA380\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e71ef-201e-00c4-10fb-594fb0000000", + "x-ms-client-request-id" : "97364265-a643-452a-8ec5-88ea6fd61194" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseac0blobapitestreleaseleaseac77c73093b34a97/javablobreleaseleaseac1blobapitestreleaseleaseac77c64378583?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812D99DA380\"", + "x-ms-lease-id" : "8362fdce-0520-4736-be2a-fc70dcd0abdf", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e71f9-201e-00c4-19fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:51 GMT", + "x-ms-client-request-id" : "791f887d-b2f3-48c0-8cc3-369158d635af" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseac0blobapitestreleaseleaseac77c73093b34a97/javablobreleaseleaseac1blobapitestreleaseleaseac77c64378583?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812D99DA380\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e7203-201e-00c4-22fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:51 GMT", + "x-ms-client-request-id" : "db5783e7-c1fd-46d7-a78e-774963401664" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcreleaseleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e7211-201e-00c4-30fb-594fb0000000", + "Body" : "jtcreleaseleaseacjtcreleaseleaseac0blobapitestreleaseleaseac77c73093b34a97Fri, 23 Aug 2019 21:42:52 GMT\"0x8D72812D998184B\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:51 GMT", + "x-ms-client-request-id" : "4abcd9c6-eca4-4595-9d2b-ccb72026d165", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseac0blobapitestreleaseleaseac77c73093b34a97?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e721d-201e-00c4-3afb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:51 GMT", + "x-ms-client-request-id" : "b237e259-6939-4ddd-a0bc-4a7ad1edf13d" + }, + "Exception" : null + } ], + "variables" : [ "jtcreleaseleaseac0blobapitestreleaseleaseac77c73093b34a97", "javablobreleaseleaseac1blobapitestreleaseleaseac77c64378583" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestreleaseleaseac[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestreleaseleaseac[3].json new file mode 100644 index 0000000000000..b44d89a5f5883 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestreleaseleaseac[3].json @@ -0,0 +1,158 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseac0blobapitestreleaseleaseac103337231a3afd?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812D9B607DA\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e723c-201e-00c4-54fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:51 GMT", + "x-ms-client-request-id" : "bdc61dfd-fd66-4224-95a3-17cc9e79e56f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseac0blobapitestreleaseleaseac103337231a3afd/javablobreleaseleaseac1blobapitestreleaseleaseac103939347f9", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:52 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:51 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812D9BB6BFE\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e7253-201e-00c4-68fb-594fb0000000", + "x-ms-client-request-id" : "ddf539d5-90b5-4733-9254-197cf60857a8" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseac0blobapitestreleaseleaseac103337231a3afd/javablobreleaseleaseac1blobapitestreleaseleaseac103939347f9", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:52 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:51 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812D9BB6BFE\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:52 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51e7275-201e-00c4-03fb-594fb0000000", + "x-ms-client-request-id" : "d2c0a566-2d07-4067-bb0d-e161bc769190", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseac0blobapitestreleaseleaseac103337231a3afd/javablobreleaseleaseac1blobapitestreleaseleaseac103939347f9?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812D9BB6BFE\"", + "x-ms-lease-id" : "3fbcd843-18f2-4c56-959a-263d6ec0b154", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e7285-201e-00c4-0efb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:51 GMT", + "x-ms-client-request-id" : "13abe264-92df-4f0f-aaee-0a9e5b162ef1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseac0blobapitestreleaseleaseac103337231a3afd/javablobreleaseleaseac1blobapitestreleaseleaseac103939347f9?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812D9BB6BFE\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e7298-201e-00c4-20fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:51 GMT", + "x-ms-client-request-id" : "682f5de6-3ce6-4663-93fd-282fd9be1012" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcreleaseleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e72a9-201e-00c4-2ffb-594fb0000000", + "Body" : "jtcreleaseleaseacjtcreleaseleaseac0blobapitestreleaseleaseac103337231a3afdFri, 23 Aug 2019 21:42:52 GMT\"0x8D72812D9B607DA\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:51 GMT", + "x-ms-client-request-id" : "a63e381b-9f1f-44a1-9e60-2997dd4112b3", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseac0blobapitestreleaseleaseac103337231a3afd?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e72bf-201e-00c4-41fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:51 GMT", + "x-ms-client-request-id" : "1df8740c-d1d2-43ce-bf04-fcc72a3066e2" + }, + "Exception" : null + } ], + "variables" : [ "jtcreleaseleaseac0blobapitestreleaseleaseac103337231a3afd", "javablobreleaseleaseac1blobapitestreleaseleaseac103939347f9" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestreleaseleaseac[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestreleaseleaseac[4].json new file mode 100644 index 0000000000000..a6dd7dea9140f --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestreleaseleaseac[4].json @@ -0,0 +1,127 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseac0blobapitestreleaseleaseacfd2666820aae2d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812D9D75397\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e72d6-201e-00c4-54fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:51 GMT", + "x-ms-client-request-id" : "66124419-1b89-494d-9a27-36eb4140289a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseac0blobapitestreleaseleaseacfd2666820aae2d/javablobreleaseleaseac1blobapitestreleaseleaseacfd24695070d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:52 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:51 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812D9DCB7CB\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e72e4-201e-00c4-61fb-594fb0000000", + "x-ms-client-request-id" : "51d48ee3-cfbb-4ac0-a2fe-7c3e1e769816" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseac0blobapitestreleaseleaseacfd2666820aae2d/javablobreleaseleaseac1blobapitestreleaseleaseacfd24695070d?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812D9DCB7CB\"", + "x-ms-lease-id" : "a15aa375-8a45-4e55-8775-af67e7a0193c", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e72ed-201e-00c4-69fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:51 GMT", + "x-ms-client-request-id" : "0b656f78-754e-425e-bfb0-1ab6d5811f2b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseac0blobapitestreleaseleaseacfd2666820aae2d/javablobreleaseleaseac1blobapitestreleaseleaseacfd24695070d?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812D9DCB7CB\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e72f5-201e-00c4-70fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:51 GMT", + "x-ms-client-request-id" : "86b3e0dc-a638-49ca-b78c-87d72f8322a0" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcreleaseleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e7306-201e-00c4-7ffb-594fb0000000", + "Body" : "jtcreleaseleaseacjtcreleaseleaseac0blobapitestreleaseleaseacfd2666820aae2dFri, 23 Aug 2019 21:42:52 GMT\"0x8D72812D9D75397\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:51 GMT", + "x-ms-client-request-id" : "478deaf5-80e5-41f5-a3b8-c9f44da9c36a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseac0blobapitestreleaseleaseacfd2666820aae2d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e731c-201e-00c4-0ffb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:51 GMT", + "x-ms-client-request-id" : "31ef6bd9-4e83-47b3-bef7-82383cd25ef9" + }, + "Exception" : null + } ], + "variables" : [ "jtcreleaseleaseac0blobapitestreleaseleaseacfd2666820aae2d", "javablobreleaseleaseac1blobapitestreleaseleaseacfd24695070d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestreleaseleaseacfail[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestreleaseleaseacfail[0].json new file mode 100644 index 0000000000000..86d7de6df3524 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestreleaseleaseacfail[0].json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseacfail0blobapitestreleaseleaseacfaildbf1662084?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812D9F4A6CD\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e732c-201e-00c4-1efb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:51 GMT", + "x-ms-client-request-id" : "7552f025-2a80-4231-b353-85537626bc0a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseacfail0blobapitestreleaseleaseacfaildbf1662084/javablobreleaseleaseacfail143369bc46d82cb6394d9", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:52 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:51 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812D9FA3216\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e7340-201e-00c4-2ffb-594fb0000000", + "x-ms-client-request-id" : "c820d8b0-44bf-4cfe-87cc-e3218b54977a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseacfail0blobapitestreleaseleaseacfaildbf1662084/javablobreleaseleaseacfail143369bc46d82cb6394d9?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812D9FA3216\"", + "x-ms-lease-id" : "5ce9ae2d-081d-455c-a495-3de002605bb2", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e734f-201e-00c4-3cfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:51 GMT", + "x-ms-client-request-id" : "cf12a638-87cd-4f1f-b363-b1316a4cbb47" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseacfail0blobapitestreleaseleaseacfaildbf1662084/javablobreleaseleaseacfail143369bc46d82cb6394d9?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "d51e7355-201e-00c4-41fb-594fb0000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:d51e7355-201e-00c4-41fb-594fb0000000\nTime:2019-08-23T21:42:52.8387161Z", + "Date" : "Fri, 23 Aug 2019 21:42:51 GMT", + "x-ms-client-request-id" : "852a07d6-fedf-4c0b-a136-e2c5063e2200", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcreleaseleaseacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e736f-201e-00c4-56fb-594fb0000000", + "Body" : "jtcreleaseleaseacfailjtcreleaseleaseacfail0blobapitestreleaseleaseacfaildbf1662084Fri, 23 Aug 2019 21:42:52 GMT\"0x8D72812D9F4A6CD\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:51 GMT", + "x-ms-client-request-id" : "39f5b887-e146-41ea-a370-5a31e49706fb", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseacfail0blobapitestreleaseleaseacfaildbf1662084?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e7384-201e-00c4-6bfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:51 GMT", + "x-ms-client-request-id" : "95fabe6d-8df2-475b-97be-76ef179f0513" + }, + "Exception" : null + } ], + "variables" : [ "jtcreleaseleaseacfail0blobapitestreleaseleaseacfaildbf1662084", "javablobreleaseleaseacfail143369bc46d82cb6394d9" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestreleaseleaseacfail[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestreleaseleaseacfail[1].json new file mode 100644 index 0000000000000..140d30d854e37 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestreleaseleaseacfail[1].json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseacfail0blobapitestreleaseleaseacfail75058720ce?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DA11ABBA\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e739d-201e-00c4-01fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:51 GMT", + "x-ms-client-request-id" : "b81d71f6-6ddc-4ac3-8474-3586d997a2d8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseacfail0blobapitestreleaseleaseacfail75058720ce/javablobreleaseleaseacfail1623784e2d8461eda94fc", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:52 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:51 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812DA17D382\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e73b5-201e-00c4-15fb-594fb0000000", + "x-ms-client-request-id" : "a380ad6e-127d-4a3c-91b7-3c5abbd41c9b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseacfail0blobapitestreleaseleaseacfail75058720ce/javablobreleaseleaseacfail1623784e2d8461eda94fc?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DA17D382\"", + "x-ms-lease-id" : "06f6bf3b-3b9d-472f-bbbd-ccf18fcf8166", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e73c3-201e-00c4-20fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:52 GMT", + "x-ms-client-request-id" : "778ffb79-7a57-4a2a-a79f-3b1ee50deb49" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseacfail0blobapitestreleaseleaseacfail75058720ce/javablobreleaseleaseacfail1623784e2d8461eda94fc?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "d51e73ce-201e-00c4-2afb-594fb0000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:d51e73ce-201e-00c4-2afb-594fb0000000\nTime:2019-08-23T21:42:53.0339024Z", + "Date" : "Fri, 23 Aug 2019 21:42:52 GMT", + "x-ms-client-request-id" : "8992901b-fa9c-47d9-acc3-d0e5109b42fe", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcreleaseleaseacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e73dd-201e-00c4-39fb-594fb0000000", + "Body" : "jtcreleaseleaseacfailjtcreleaseleaseacfail0blobapitestreleaseleaseacfail75058720ceFri, 23 Aug 2019 21:42:52 GMT\"0x8D72812DA11ABBA\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:52 GMT", + "x-ms-client-request-id" : "7ea1e679-1087-46aa-bf7b-514871f4c25b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseacfail0blobapitestreleaseleaseacfail75058720ce?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e73f0-201e-00c4-4afb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:52 GMT", + "x-ms-client-request-id" : "771ad770-7dd1-4691-b078-3e6e12590e90" + }, + "Exception" : null + } ], + "variables" : [ "jtcreleaseleaseacfail0blobapitestreleaseleaseacfail75058720ce", "javablobreleaseleaseacfail1623784e2d8461eda94fc" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestreleaseleaseacfail[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestreleaseleaseacfail[2].json new file mode 100644 index 0000000000000..b1cd505a5e2a7 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestreleaseleaseacfail[2].json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseacfail0blobapitestreleaseleaseacfail24730208b5?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DA2F2603\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e7407-201e-00c4-5efb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:52 GMT", + "x-ms-client-request-id" : "3aef1279-4947-439e-a7ee-607e1e223b11" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseacfail0blobapitestreleaseleaseacfail24730208b5/javablobreleaseleaseacfail135245dbdf1963ab1c4b3", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:53 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:52 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812DA34B166\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e7414-201e-00c4-69fb-594fb0000000", + "x-ms-client-request-id" : "6b987a60-46b2-4acd-84a4-33f3c9dc5151" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseacfail0blobapitestreleaseleaseacfail24730208b5/javablobreleaseleaseacfail135245dbdf1963ab1c4b3?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DA34B166\"", + "x-ms-lease-id" : "2e5a2980-fb6e-4c48-9d9b-7ff5727d8bdb", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e741f-201e-00c4-72fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:52 GMT", + "x-ms-client-request-id" : "6064a82e-e947-4d6d-8132-d65039d6ea78" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseacfail0blobapitestreleaseleaseacfail24730208b5/javablobreleaseleaseacfail135245dbdf1963ab1c4b3?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "d51e743f-201e-00c4-0bfb-594fb0000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:d51e743f-201e-00c4-0bfb-594fb0000000\nTime:2019-08-23T21:42:53.2220819Z", + "Date" : "Fri, 23 Aug 2019 21:42:52 GMT", + "x-ms-client-request-id" : "3264d8ab-2058-49a9-a763-1273cbe7c277", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcreleaseleaseacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e7450-201e-00c4-19fb-594fb0000000", + "Body" : "jtcreleaseleaseacfailjtcreleaseleaseacfail0blobapitestreleaseleaseacfail24730208b5Fri, 23 Aug 2019 21:42:53 GMT\"0x8D72812DA2F2603\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:52 GMT", + "x-ms-client-request-id" : "378cdece-c47e-4377-ab0c-5c5ecdb8fc4b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseacfail0blobapitestreleaseleaseacfail24730208b5?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e7463-201e-00c4-2afb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:52 GMT", + "x-ms-client-request-id" : "491516da-7e37-490a-9c77-865de015751a" + }, + "Exception" : null + } ], + "variables" : [ "jtcreleaseleaseacfail0blobapitestreleaseleaseacfail24730208b5", "javablobreleaseleaseacfail135245dbdf1963ab1c4b3" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestreleaseleaseacfail[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestreleaseleaseacfail[3].json new file mode 100644 index 0000000000000..52ea71d10aa37 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestreleaseleaseacfail[3].json @@ -0,0 +1,159 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseacfail0blobapitestreleaseleaseacfail8898802633?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DA4C520C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e7474-201e-00c4-37fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:52 GMT", + "x-ms-client-request-id" : "b53a0845-8842-4f4d-a74f-b400288278b5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseacfail0blobapitestreleaseleaseacfail8898802633/javablobreleaseleaseacfail1244484222a6d661a9422", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:53 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:52 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812DA51B666\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e747b-201e-00c4-3cfb-594fb0000000", + "x-ms-client-request-id" : "52d44645-e684-4f2d-87b9-89714a5b4b8f" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseacfail0blobapitestreleaseleaseacfail8898802633/javablobreleaseleaseacfail1244484222a6d661a9422", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:53 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:52 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812DA51B666\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:53 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51e7492-201e-00c4-4ffb-594fb0000000", + "x-ms-client-request-id" : "b367ad3d-e191-4e45-a69d-c7669fb09799", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseacfail0blobapitestreleaseleaseacfail8898802633/javablobreleaseleaseacfail1244484222a6d661a9422?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DA51B666\"", + "x-ms-lease-id" : "e4507511-c51c-4052-889d-6454288586a2", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e749b-201e-00c4-56fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:52 GMT", + "x-ms-client-request-id" : "6c30798a-a42c-4d9d-bb05-b81071d5a3e2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseacfail0blobapitestreleaseleaseacfail8898802633/javablobreleaseleaseacfail1244484222a6d661a9422?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "d51e74a9-201e-00c4-64fb-594fb0000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:d51e74a9-201e-00c4-64fb-594fb0000000\nTime:2019-08-23T21:42:53.4432927Z", + "Date" : "Fri, 23 Aug 2019 21:42:52 GMT", + "x-ms-client-request-id" : "9f42ffa6-7232-4ace-ab6e-3e9d304e320f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcreleaseleaseacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e74b6-201e-00c4-6dfb-594fb0000000", + "Body" : "jtcreleaseleaseacfailjtcreleaseleaseacfail0blobapitestreleaseleaseacfail8898802633Fri, 23 Aug 2019 21:42:53 GMT\"0x8D72812DA4C520C\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:52 GMT", + "x-ms-client-request-id" : "278138e1-89d9-410d-8f83-4ee8a02d813b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseacfail0blobapitestreleaseleaseacfail8898802633?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e74c3-201e-00c4-78fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:52 GMT", + "x-ms-client-request-id" : "9d3388f0-393a-40e1-aa20-156c2093c39d" + }, + "Exception" : null + } ], + "variables" : [ "jtcreleaseleaseacfail0blobapitestreleaseleaseacfail8898802633", "javablobreleaseleaseacfail1244484222a6d661a9422" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestreleaseleaseerror.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestreleaseleaseerror.json new file mode 100644 index 0000000000000..f18fb7a5488d6 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestreleaseleaseerror.json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseerror0blobapitestreleaseleaseerror7f5420277c1?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DA6E1325\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e74de-201e-00c4-0efb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:52 GMT", + "x-ms-client-request-id" : "34ebb5ea-8f84-4f5f-970e-1b40a8798421" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseerror0blobapitestreleaseleaseerror7f5420277c1/javablobreleaseleaseerror1blobapitestreleaseleaseerror7f531886", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:53 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:52 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812DA73ECD2\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e74f8-201e-00c4-22fb-594fb0000000", + "x-ms-client-request-id" : "92ae1983-334f-40db-b418-4fb7738f1de4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseerror0blobapitestreleaseleaseerror7f5420277c1/javablobreleaseleaseerror2blobapitestreleaseleaseerror7f569905?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "InvalidHeaderValue", + "retry-after" : "0", + "Content-Length" : "321", + "StatusCode" : "400", + "x-ms-request-id" : "d51e750b-201e-00c4-32fb-594fb0000000", + "Body" : "InvalidHeaderValueThe value for one of the HTTP headers is not in the correct format.\nRequestId:d51e750b-201e-00c4-32fb-594fb0000000\nTime:2019-08-23T21:42:53.6124538Zx-ms-lease-idid", + "Date" : "Fri, 23 Aug 2019 21:42:52 GMT", + "x-ms-client-request-id" : "bbec1a28-c788-48bf-add8-f79e99800633", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcreleaseleaseerror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e751a-201e-00c4-40fb-594fb0000000", + "Body" : "jtcreleaseleaseerrorjtcreleaseleaseerror0blobapitestreleaseleaseerror7f5420277c1Fri, 23 Aug 2019 21:42:53 GMT\"0x8D72812DA6E1325\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:52 GMT", + "x-ms-client-request-id" : "54c39b1f-5e28-4ff7-a2e9-acf7b639b305", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseerror0blobapitestreleaseleaseerror7f5420277c1?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e752b-201e-00c4-4ffb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:52 GMT", + "x-ms-client-request-id" : "d233e4e9-f95d-4121-b7a2-c27c33d4e71c" + }, + "Exception" : null + } ], + "variables" : [ "jtcreleaseleaseerror0blobapitestreleaseleaseerror7f5420277c1", "javablobreleaseleaseerror1blobapitestreleaseleaseerror7f531886", "javablobreleaseleaseerror2blobapitestreleaseleaseerror7f569905" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestreleaseleasemin.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestreleaseleasemin.json new file mode 100644 index 0000000000000..54ff8e4ab9594 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestreleaseleasemin.json @@ -0,0 +1,127 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleasemin0blobapitestreleaseleasemin34311256218ad?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812D93238B9\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e7059-201e-00c4-3bfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:50 GMT", + "x-ms-client-request-id" : "d142e577-1efa-4039-9b82-cb2baf9519e0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleasemin0blobapitestreleaseleasemin34311256218ad/javablobreleaseleasemin1blobapitestreleaseleasemin3434032637", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:51 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:50 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812D93811DE\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e707a-201e-00c4-57fb-594fb0000000", + "x-ms-client-request-id" : "0f858ef3-7447-47a4-ac49-7b863c932b9b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleasemin0blobapitestreleaseleasemin34311256218ad/javablobreleaseleasemin1blobapitestreleaseleasemin3434032637?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812D93811DE\"", + "x-ms-lease-id" : "fec0029e-4567-4cd5-bded-0be6c757f178", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e7090-201e-00c4-6afb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:50 GMT", + "x-ms-client-request-id" : "1cc7a9ba-fdc6-4f85-8979-a0bc8c9457a8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleasemin0blobapitestreleaseleasemin34311256218ad/javablobreleaseleasemin1blobapitestreleaseleasemin3434032637?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812D93811DE\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e70a1-201e-00c4-79fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:50 GMT", + "x-ms-client-request-id" : "add231bc-0ceb-462c-9926-71eba3ba0d28" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcreleaseleasemin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e70af-201e-00c4-06fb-594fb0000000", + "Body" : "jtcreleaseleaseminjtcreleaseleasemin0blobapitestreleaseleasemin34311256218adFri, 23 Aug 2019 21:42:51 GMT\"0x8D72812D93238B9\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:50 GMT", + "x-ms-client-request-id" : "1f1b85ef-bf98-4c77-ac40-126f880d8201", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleasemin0blobapitestreleaseleasemin34311256218ad?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e70bb-201e-00c4-12fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:50 GMT", + "x-ms-client-request-id" : "e2e42aaf-9bfc-4ee4-93c7-1d34e0ccf72f" + }, + "Exception" : null + } ], + "variables" : [ "jtcreleaseleasemin0blobapitestreleaseleasemin34311256218ad", "javablobreleaseleasemin1blobapitestreleaseleasemin3434032637" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestrenewlease.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestrenewlease.json new file mode 100644 index 0000000000000..55e7bf284d57d --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestrenewlease.json @@ -0,0 +1,160 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewlease0blobapitestrenewleasefab97752ee580258d4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812CDE2B2A8\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:32 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e452b-201e-00c4-67fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:31 GMT", + "x-ms-client-request-id" : "81d4f153-d17c-4b6a-8943-ac1c4e9cdd4b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewlease0blobapitestrenewleasefab97752ee580258d4/javablobrenewlease1blobapitestrenewleasefab9604054cc766", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:32 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:31 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812CDE7EB23\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e454c-201e-00c4-05fb-594fb0000000", + "x-ms-client-request-id" : "25cd7340-6017-43a2-9380-ad6d6bfe4c54" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewlease0blobapitestrenewleasefab97752ee580258d4/javablobrenewlease1blobapitestrenewleasefab9604054cc766?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812CDE7EB23\"", + "x-ms-lease-id" : "5ee7a180-20d8-4bf8-900d-1745c347d522", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:32 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e4563-201e-00c4-17fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:31 GMT", + "x-ms-client-request-id" : "ad5a1d32-88f0-4398-9426-7d7f93e6fec3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewlease0blobapitestrenewleasefab97752ee580258d4/javablobrenewlease1blobapitestrenewleasefab9604054cc766?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812CDE7EB23\"", + "x-ms-lease-id" : "5ee7a180-20d8-4bf8-900d-1745c347d522", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:32 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e69ba-201e-00c4-7dfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:47 GMT", + "x-ms-client-request-id" : "7aa74914-faf1-42ab-9c5d-04d2a95fe640" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewlease0blobapitestrenewleasefab97752ee580258d4/javablobrenewlease1blobapitestrenewleasefab9604054cc766", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "locked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "leased", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:32 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:47 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812CDE7EB23\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:32 GMT", + "x-ms-lease-duration" : "infinite", + "Content-Length" : "7", + "x-ms-request-id" : "d51e69dd-201e-00c4-1afb-594fb0000000", + "x-ms-client-request-id" : "17ce799d-72c8-46fd-88c8-bbcb5690e729", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcrenewlease&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e69f3-201e-00c4-2dfb-594fb0000000", + "Body" : "jtcrenewleasejtcrenewlease0blobapitestrenewleasefab97752ee580258d4Fri, 23 Aug 2019 21:42:32 GMT\"0x8D72812CDE2B2A8\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:47 GMT", + "x-ms-client-request-id" : "9ac1a655-e867-49a3-bd04-99c980081c40", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewlease0blobapitestrenewleasefab97752ee580258d4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e6a06-201e-00c4-3efb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:47 GMT", + "x-ms-client-request-id" : "8cee1285-130b-434c-be3b-7ba15d419be0" + }, + "Exception" : null + } ], + "variables" : [ "jtcrenewlease0blobapitestrenewleasefab97752ee580258d4", "javablobrenewlease1blobapitestrenewleasefab9604054cc766" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestrenewleaseac[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestrenewleaseac[0].json new file mode 100644 index 0000000000000..2d7d2a2c64c12 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestrenewleaseac[0].json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseac0blobapitestrenewleaseacef87340495df881c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812D7B12E24\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:48 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e6aa4-201e-00c4-4cfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:47 GMT", + "x-ms-client-request-id" : "d31d431a-7cd3-4c43-afc2-d435a3d56f4b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseac0blobapitestrenewleaseacef87340495df881c/javablobrenewleaseac1blobapitestrenewleaseacef8644200dc3c", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:48 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:48 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812D7B86681\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e6abd-201e-00c4-61fb-594fb0000000", + "x-ms-client-request-id" : "4e52631e-08f3-4f6b-8d81-fa423706423f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseac0blobapitestrenewleaseacef87340495df881c/javablobrenewleaseac1blobapitestrenewleaseacef8644200dc3c?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812D7B86681\"", + "x-ms-lease-id" : "afea1dfe-756b-4147-b642-3eeb8e14dddf", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:48 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e6adf-201e-00c4-7cfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:48 GMT", + "x-ms-client-request-id" : "0f6921c3-ecfa-4fd0-b0c3-36ef421ce0c3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseac0blobapitestrenewleaseacef87340495df881c/javablobrenewleaseac1blobapitestrenewleaseacef8644200dc3c?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812D7B86681\"", + "x-ms-lease-id" : "afea1dfe-756b-4147-b642-3eeb8e14dddf", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:48 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e6af5-201e-00c4-11fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:48 GMT", + "x-ms-client-request-id" : "52aa0286-86a1-4715-a9b5-b26c087b1d71" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcrenewleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e6b07-201e-00c4-20fb-594fb0000000", + "Body" : "jtcrenewleaseacjtcrenewleaseac0blobapitestrenewleaseacef87340495df881cFri, 23 Aug 2019 21:42:48 GMT\"0x8D72812D7B12E24\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:48 GMT", + "x-ms-client-request-id" : "47590fad-a88e-402f-83cb-b95a001ab650", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseac0blobapitestrenewleaseacef87340495df881c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e6b19-201e-00c4-2ffb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:48 GMT", + "x-ms-client-request-id" : "1d92e6c4-ddf0-466d-b237-51afcb2cf2e8" + }, + "Exception" : null + } ], + "variables" : [ "jtcrenewleaseac0blobapitestrenewleaseacef87340495df881c", "javablobrenewleaseac1blobapitestrenewleaseacef8644200dc3c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestrenewleaseac[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestrenewleaseac[1].json new file mode 100644 index 0000000000000..d237ca6da412b --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestrenewleaseac[1].json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseac0blobapitestrenewleaseacdb5667232a559203?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812D7D0CBEB\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:49 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e6b37-201e-00c4-49fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:48 GMT", + "x-ms-client-request-id" : "7df5315d-709a-4b6f-833e-600ad627e35a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseac0blobapitestrenewleaseacdb5667232a559203/javablobrenewleaseac1blobapitestrenewleaseacdb5316571da60", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:49 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:48 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812D7D62F17\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e6b48-201e-00c4-55fb-594fb0000000", + "x-ms-client-request-id" : "5f2ed2f9-002e-4d56-85a8-4a50fb2f0e2e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseac0blobapitestrenewleaseacdb5667232a559203/javablobrenewleaseac1blobapitestrenewleaseacdb5316571da60?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812D7D62F17\"", + "x-ms-lease-id" : "9109587d-f46e-4177-ae6c-51b27a8f33db", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:49 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e6b5b-201e-00c4-64fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:48 GMT", + "x-ms-client-request-id" : "1d272b5a-7a15-4453-85b9-b64b5e55e8bc" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseac0blobapitestrenewleaseacdb5667232a559203/javablobrenewleaseac1blobapitestrenewleaseacdb5316571da60?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812D7D62F17\"", + "x-ms-lease-id" : "9109587d-f46e-4177-ae6c-51b27a8f33db", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:49 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e6b71-201e-00c4-74fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:48 GMT", + "x-ms-client-request-id" : "ead58132-baf8-4325-8d2a-b76182632ff9" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcrenewleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e6b7e-201e-00c4-7efb-594fb0000000", + "Body" : "jtcrenewleaseacjtcrenewleaseac0blobapitestrenewleaseacdb5667232a559203Fri, 23 Aug 2019 21:42:49 GMT\"0x8D72812D7D0CBEB\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:48 GMT", + "x-ms-client-request-id" : "68ad5c9a-5388-4d24-b9af-8fa5e303980a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseac0blobapitestrenewleaseacdb5667232a559203?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e6b8a-201e-00c4-08fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:48 GMT", + "x-ms-client-request-id" : "4bc7ac97-645f-457d-ac69-b5bb001ac854" + }, + "Exception" : null + } ], + "variables" : [ "jtcrenewleaseac0blobapitestrenewleaseacdb5667232a559203", "javablobrenewleaseac1blobapitestrenewleaseacdb5316571da60" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestrenewleaseac[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestrenewleaseac[2].json new file mode 100644 index 0000000000000..be832291eabac --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestrenewleaseac[2].json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseac0blobapitestrenewleaseacc8e23259813da9d9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812D7EE4618\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:49 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e6b9a-201e-00c4-16fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:48 GMT", + "x-ms-client-request-id" : "a2a9a562-8d82-4c9d-afb0-5cd64b6b5a76" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseac0blobapitestrenewleaseacc8e23259813da9d9/javablobrenewleaseac1blobapitestrenewleaseacc8e36429fb002", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:49 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:48 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812D7F41E9E\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e6bb3-201e-00c4-2dfb-594fb0000000", + "x-ms-client-request-id" : "3434a8d7-b93b-45d0-b976-2d6690d74e32" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseac0blobapitestrenewleaseacc8e23259813da9d9/javablobrenewleaseac1blobapitestrenewleaseacc8e36429fb002?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812D7F41E9E\"", + "x-ms-lease-id" : "2b553f93-f80e-407c-8d5b-99be11891c53", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:49 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e6bce-201e-00c4-46fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:48 GMT", + "x-ms-client-request-id" : "545a161e-2dc7-476f-ac28-25a0705fbff2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseac0blobapitestrenewleaseacc8e23259813da9d9/javablobrenewleaseac1blobapitestrenewleaseacc8e36429fb002?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812D7F41E9E\"", + "x-ms-lease-id" : "2b553f93-f80e-407c-8d5b-99be11891c53", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:49 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e6be3-201e-00c4-5bfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:48 GMT", + "x-ms-client-request-id" : "3a1b3f88-4066-4e65-a838-774b034e7d22" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcrenewleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e6bf0-201e-00c4-67fb-594fb0000000", + "Body" : "jtcrenewleaseacjtcrenewleaseac0blobapitestrenewleaseacc8e23259813da9d9Fri, 23 Aug 2019 21:42:49 GMT\"0x8D72812D7EE4618\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:48 GMT", + "x-ms-client-request-id" : "386d2bb5-11cb-4d5e-9ea1-7525eea5036f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseac0blobapitestrenewleaseacc8e23259813da9d9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e6bfb-201e-00c4-72fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:48 GMT", + "x-ms-client-request-id" : "24842431-5dc3-4c25-94fe-5e1fd39a2d37" + }, + "Exception" : null + } ], + "variables" : [ "jtcrenewleaseac0blobapitestrenewleaseacc8e23259813da9d9", "javablobrenewleaseac1blobapitestrenewleaseacc8e36429fb002" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestrenewleaseac[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestrenewleaseac[3].json new file mode 100644 index 0000000000000..4b0d8256a46e8 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestrenewleaseac[3].json @@ -0,0 +1,159 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseac0blobapitestrenewleaseacc7c68906ab9f01ec?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812D80DBCAB\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:49 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e6c10-201e-00c4-03fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:48 GMT", + "x-ms-client-request-id" : "079c6ccf-e726-44a2-893d-ae4ac209b4a2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseac0blobapitestrenewleaseacc7c68906ab9f01ec/javablobrenewleaseac1blobapitestrenewleaseacc7c13041f63cf", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:49 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:48 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812D813470A\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e6c2a-201e-00c4-16fb-594fb0000000", + "x-ms-client-request-id" : "d7743819-1f05-418f-b185-a64f2f905caa" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseac0blobapitestrenewleaseacc7c68906ab9f01ec/javablobrenewleaseac1blobapitestrenewleaseacc7c13041f63cf", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:49 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:48 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812D813470A\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:49 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51e6c35-201e-00c4-1ffb-594fb0000000", + "x-ms-client-request-id" : "709baddf-4ffe-4958-a02f-db2e132a40a0", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseac0blobapitestrenewleaseacc7c68906ab9f01ec/javablobrenewleaseac1blobapitestrenewleaseacc7c13041f63cf?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812D813470A\"", + "x-ms-lease-id" : "627a789b-2a9d-485b-ac15-ff806bb7c3db", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:49 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e6c3e-201e-00c4-28fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:48 GMT", + "x-ms-client-request-id" : "5f437855-0d67-46c4-b612-3b3395f1fa24" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseac0blobapitestrenewleaseacc7c68906ab9f01ec/javablobrenewleaseac1blobapitestrenewleaseacc7c13041f63cf?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812D813470A\"", + "x-ms-lease-id" : "627a789b-2a9d-485b-ac15-ff806bb7c3db", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:49 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e6c5f-201e-00c4-49fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:48 GMT", + "x-ms-client-request-id" : "5688e1d5-b403-42b5-b248-41ffa29dbdee" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcrenewleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e6c66-201e-00c4-50fb-594fb0000000", + "Body" : "jtcrenewleaseacjtcrenewleaseac0blobapitestrenewleaseacc7c68906ab9f01ecFri, 23 Aug 2019 21:42:49 GMT\"0x8D72812D80DBCAB\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:48 GMT", + "x-ms-client-request-id" : "3829e7d4-5d95-46d6-adce-6a99d3d70c94", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseac0blobapitestrenewleaseacc7c68906ab9f01ec?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e6c75-201e-00c4-5dfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:48 GMT", + "x-ms-client-request-id" : "09062b8e-51b1-4264-8d41-59a94d2ce7d2" + }, + "Exception" : null + } ], + "variables" : [ "jtcrenewleaseac0blobapitestrenewleaseacc7c68906ab9f01ec", "javablobrenewleaseac1blobapitestrenewleaseacc7c13041f63cf" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestrenewleaseac[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestrenewleaseac[4].json new file mode 100644 index 0000000000000..a771ef453b57e --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestrenewleaseac[4].json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseac0blobapitestrenewleaseac34e74059c72f7bd6?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812D837BD1A\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:49 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e6c89-201e-00c4-6ffb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:48 GMT", + "x-ms-client-request-id" : "3efe1e23-5dd9-4958-a73a-ff38c500619c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseac0blobapitestrenewleaseac34e74059c72f7bd6/javablobrenewleaseac1blobapitestrenewleaseac34e50689c5abb", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:49 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:48 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812D83CF950\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e6c96-201e-00c4-7afb-594fb0000000", + "x-ms-client-request-id" : "ca619e4d-d63d-447e-afae-7a2e4985a702" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseac0blobapitestrenewleaseac34e74059c72f7bd6/javablobrenewleaseac1blobapitestrenewleaseac34e50689c5abb?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812D83CF950\"", + "x-ms-lease-id" : "c8b30c70-652a-4c4a-b624-f29e2e217182", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:49 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e6caa-201e-00c4-0cfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:48 GMT", + "x-ms-client-request-id" : "c8df8895-3244-45d9-958b-fdc514a014fc" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseac0blobapitestrenewleaseac34e74059c72f7bd6/javablobrenewleaseac1blobapitestrenewleaseac34e50689c5abb?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812D83CF950\"", + "x-ms-lease-id" : "c8b30c70-652a-4c4a-b624-f29e2e217182", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:49 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e6cc1-201e-00c4-1ffb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:48 GMT", + "x-ms-client-request-id" : "47ec5f17-4b43-4377-868a-d88f7b8a1d36" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcrenewleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e6cd3-201e-00c4-2cfb-594fb0000000", + "Body" : "jtcrenewleaseacjtcrenewleaseac0blobapitestrenewleaseac34e74059c72f7bd6Fri, 23 Aug 2019 21:42:49 GMT\"0x8D72812D837BD1A\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:48 GMT", + "x-ms-client-request-id" : "188a0718-d0bd-4e66-ac79-fd6d353cfef3", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseac0blobapitestrenewleaseac34e74059c72f7bd6?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e6ce8-201e-00c4-3ffb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:48 GMT", + "x-ms-client-request-id" : "28da9467-3d2a-4af1-b112-388eaa91caeb" + }, + "Exception" : null + } ], + "variables" : [ "jtcrenewleaseac0blobapitestrenewleaseac34e74059c72f7bd6", "javablobrenewleaseac1blobapitestrenewleaseac34e50689c5abb" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestrenewleaseacfail[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestrenewleaseacfail[0].json new file mode 100644 index 0000000000000..f1a4431810d5e --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestrenewleaseacfail[0].json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseacfail0blobapitestrenewleaseacfail07046248639d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812D8544CC1\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e6cff-201e-00c4-55fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:49 GMT", + "x-ms-client-request-id" : "d1a8912b-82ad-4001-99f6-3012e0ee5b2f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseacfail0blobapitestrenewleaseacfail07046248639d/javablobrenewleaseacfail1blobapitestrenewleaseacfail07048322c", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:50 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:49 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812D859B019\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e6d15-201e-00c4-68fb-594fb0000000", + "x-ms-client-request-id" : "4c5ef373-b698-4cfa-aecb-78a6e3640c9c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseacfail0blobapitestrenewleaseacfail07046248639d/javablobrenewleaseacfail1blobapitestrenewleaseacfail07048322c?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812D859B019\"", + "x-ms-lease-id" : "d13fd1af-3ebb-411b-bdf8-c6c402056bc3", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e6d40-201e-00c4-0dfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:49 GMT", + "x-ms-client-request-id" : "6133ca46-f3e5-4611-a37c-3579178aece3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseacfail0blobapitestrenewleaseacfail07046248639d/javablobrenewleaseacfail1blobapitestrenewleaseacfail07048322c?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "d51e6d51-201e-00c4-1dfb-594fb0000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:d51e6d51-201e-00c4-1dfb-594fb0000000\nTime:2019-08-23T21:42:50.1111149Z", + "Date" : "Fri, 23 Aug 2019 21:42:49 GMT", + "x-ms-client-request-id" : "621e7a0c-8b53-44ba-9910-b70e07507c17", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcrenewleaseacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e6d60-201e-00c4-2bfb-594fb0000000", + "Body" : "jtcrenewleaseacfailjtcrenewleaseacfail0blobapitestrenewleaseacfail07046248639dFri, 23 Aug 2019 21:42:50 GMT\"0x8D72812D8544CC1\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:49 GMT", + "x-ms-client-request-id" : "a6f51ee0-f6ac-4d35-9099-6eb87f2538b8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseacfail0blobapitestrenewleaseacfail07046248639d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e6d71-201e-00c4-38fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:49 GMT", + "x-ms-client-request-id" : "a5fb42ab-e5ca-4866-a104-4ede5452b109" + }, + "Exception" : null + } ], + "variables" : [ "jtcrenewleaseacfail0blobapitestrenewleaseacfail07046248639d", "javablobrenewleaseacfail1blobapitestrenewleaseacfail07048322c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestrenewleaseacfail[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestrenewleaseacfail[1].json new file mode 100644 index 0000000000000..7fba4dd3eb742 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestrenewleaseacfail[1].json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseacfail0blobapitestrenewleaseacfailff4494211f62?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812D8719FE5\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e6d89-201e-00c4-4afb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:49 GMT", + "x-ms-client-request-id" : "45bdfc5a-f4dd-4ccb-80bd-d9f79dda0304" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseacfail0blobapitestrenewleaseacfailff4494211f62/javablobrenewleaseacfail1blobapitestrenewleaseacfailff4107816", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:50 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:49 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812D877518E\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e6d98-201e-00c4-56fb-594fb0000000", + "x-ms-client-request-id" : "fbe53617-c21b-4450-a8b2-6bac86789b98" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseacfail0blobapitestrenewleaseacfailff4494211f62/javablobrenewleaseacfail1blobapitestrenewleaseacfailff4107816?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812D877518E\"", + "x-ms-lease-id" : "f9d5f2ba-a284-40c5-9900-380ca3ccd9cd", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e6da6-201e-00c4-62fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:49 GMT", + "x-ms-client-request-id" : "08814318-0efa-4af7-9dcd-733cdb9c76a4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseacfail0blobapitestrenewleaseacfailff4494211f62/javablobrenewleaseacfail1blobapitestrenewleaseacfailff4107816?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "d51e6dbd-201e-00c4-76fb-594fb0000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:d51e6dbd-201e-00c4-76fb-594fb0000000\nTime:2019-08-23T21:42:50.3053001Z", + "Date" : "Fri, 23 Aug 2019 21:42:49 GMT", + "x-ms-client-request-id" : "e4cd3db2-7c0b-4380-ac3e-a593ff773600", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcrenewleaseacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e6dd1-201e-00c4-07fb-594fb0000000", + "Body" : "jtcrenewleaseacfailjtcrenewleaseacfail0blobapitestrenewleaseacfailff4494211f62Fri, 23 Aug 2019 21:42:50 GMT\"0x8D72812D8719FE5\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:49 GMT", + "x-ms-client-request-id" : "b1c35a74-e64b-4ccd-8cc3-bf3b19336132", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseacfail0blobapitestrenewleaseacfailff4494211f62?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e6de2-201e-00c4-18fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:49 GMT", + "x-ms-client-request-id" : "04410f96-bbeb-44df-9180-582a1da9c454" + }, + "Exception" : null + } ], + "variables" : [ "jtcrenewleaseacfail0blobapitestrenewleaseacfailff4494211f62", "javablobrenewleaseacfail1blobapitestrenewleaseacfailff4107816" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestrenewleaseacfail[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestrenewleaseacfail[2].json new file mode 100644 index 0000000000000..98d55a9d79d4f --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestrenewleaseacfail[2].json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseacfail0blobapitestrenewleaseacfail9fe584252224?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812D88F8F75\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e6dfb-201e-00c4-31fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:49 GMT", + "x-ms-client-request-id" : "263894af-e1de-4297-a568-3f45988696a1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseacfail0blobapitestrenewleaseacfail9fe584252224/javablobrenewleaseacfail1blobapitestrenewleaseacfail9fe73496a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:50 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:49 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812D895411E\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e6e0c-201e-00c4-40fb-594fb0000000", + "x-ms-client-request-id" : "7805e60f-cf15-43b5-96b2-70cb002ee4ba" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseacfail0blobapitestrenewleaseacfail9fe584252224/javablobrenewleaseacfail1blobapitestrenewleaseacfail9fe73496a?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812D895411E\"", + "x-ms-lease-id" : "0a2c964f-1f0c-4fdf-a528-2ce38d9dbd61", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e6e1c-201e-00c4-4ffb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:49 GMT", + "x-ms-client-request-id" : "6547995f-b0d1-49eb-9d6b-e4683d8eb0eb" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseacfail0blobapitestrenewleaseacfail9fe584252224/javablobrenewleaseacfail1blobapitestrenewleaseacfail9fe73496a?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "d51e6e39-201e-00c4-67fb-594fb0000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:d51e6e39-201e-00c4-67fb-594fb0000000\nTime:2019-08-23T21:42:50.5155006Z", + "Date" : "Fri, 23 Aug 2019 21:42:49 GMT", + "x-ms-client-request-id" : "74e94224-a5f2-4501-a1e2-540a194c645f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcrenewleaseacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e6e45-201e-00c4-71fb-594fb0000000", + "Body" : "jtcrenewleaseacfailjtcrenewleaseacfail0blobapitestrenewleaseacfail9fe584252224Fri, 23 Aug 2019 21:42:50 GMT\"0x8D72812D88F8F75\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:49 GMT", + "x-ms-client-request-id" : "f72b76ce-7a25-497d-80c3-458e116925b7", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseacfail0blobapitestrenewleaseacfail9fe584252224?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e6e4f-201e-00c4-7bfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:49 GMT", + "x-ms-client-request-id" : "54adf08c-c647-4fa5-972c-30c7920aa1f9" + }, + "Exception" : null + } ], + "variables" : [ "jtcrenewleaseacfail0blobapitestrenewleaseacfail9fe584252224", "javablobrenewleaseacfail1blobapitestrenewleaseacfail9fe73496a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestrenewleaseacfail[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestrenewleaseacfail[3].json new file mode 100644 index 0000000000000..460ff893f63e8 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestrenewleaseacfail[3].json @@ -0,0 +1,159 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseacfail0blobapitestrenewleaseacfail691544268063?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812D8AFF09C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e6e60-201e-00c4-0cfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:49 GMT", + "x-ms-client-request-id" : "b0a51023-f6e6-4d4e-8338-1505c758490d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseacfail0blobapitestrenewleaseacfail691544268063/javablobrenewleaseacfail1blobapitestrenewleaseacfail691860464", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:50 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:49 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812D8B57B36\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e6e83-201e-00c4-28fb-594fb0000000", + "x-ms-client-request-id" : "6c3de30d-645f-4377-96dd-260aa75eebb1" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseacfail0blobapitestrenewleaseacfail691544268063/javablobrenewleaseacfail1blobapitestrenewleaseacfail691860464", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:50 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:49 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812D8B57B36\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:50 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51e6e97-201e-00c4-3bfb-594fb0000000", + "x-ms-client-request-id" : "59f00378-93f6-456c-9981-acb94b9126ce", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseacfail0blobapitestrenewleaseacfail691544268063/javablobrenewleaseacfail1blobapitestrenewleaseacfail691860464?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812D8B57B36\"", + "x-ms-lease-id" : "b5c989e8-766a-453e-af90-b1441729f0e3", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e6ea9-201e-00c4-4dfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:49 GMT", + "x-ms-client-request-id" : "ab1f1231-01e1-468c-a071-a23085b82360" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseacfail0blobapitestrenewleaseacfail691544268063/javablobrenewleaseacfail1blobapitestrenewleaseacfail691860464?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "d51e6ebf-201e-00c4-60fb-594fb0000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:d51e6ebf-201e-00c4-60fb-594fb0000000\nTime:2019-08-23T21:42:50.7387132Z", + "Date" : "Fri, 23 Aug 2019 21:42:49 GMT", + "x-ms-client-request-id" : "0a2aa5b6-ab59-48b6-9454-854fc8d3f440", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcrenewleaseacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e6ec8-201e-00c4-68fb-594fb0000000", + "Body" : "jtcrenewleaseacfailjtcrenewleaseacfail0blobapitestrenewleaseacfail691544268063Fri, 23 Aug 2019 21:42:50 GMT\"0x8D72812D8AFF09C\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:49 GMT", + "x-ms-client-request-id" : "45ed5a79-da45-46b9-8a60-2751885abaf1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseacfail0blobapitestrenewleaseacfail691544268063?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e6ed7-201e-00c4-73fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:49 GMT", + "x-ms-client-request-id" : "e1fe59a6-a479-4f67-9d53-4155a724ea74" + }, + "Exception" : null + } ], + "variables" : [ "jtcrenewleaseacfail0blobapitestrenewleaseacfail691544268063", "javablobrenewleaseacfail1blobapitestrenewleaseacfail691860464" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestrenewleaseerror.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestrenewleaseerror.json new file mode 100644 index 0000000000000..870e6f39b1082 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestrenewleaseerror.json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseerror0blobapitestrenewleaseerrorf397286340359?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812D8E8C1C0\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e6f26-201e-00c4-33fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:50 GMT", + "x-ms-client-request-id" : "fec681c6-f0da-42d1-9a47-4aa671b88a43" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseerror0blobapitestrenewleaseerrorf397286340359/javablobrenewleaseerror1blobapitestrenewleaseerrorf394026863", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:51 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:50 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812D8EE4C6F\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e6f41-201e-00c4-49fb-594fb0000000", + "x-ms-client-request-id" : "cad5dc7f-6e82-4452-b8d1-274474582615" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseerror0blobapitestrenewleaseerrorf397286340359/javablobrenewleaseerror2blobapitestrenewleaseerrorf39092788b?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "InvalidHeaderValue", + "retry-after" : "0", + "Content-Length" : "321", + "StatusCode" : "400", + "x-ms-request-id" : "d51e6f50-201e-00c4-57fb-594fb0000000", + "Body" : "InvalidHeaderValueThe value for one of the HTTP headers is not in the correct format.\nRequestId:d51e6f50-201e-00c4-57fb-594fb0000000\nTime:2019-08-23T21:42:51.1430989Zx-ms-lease-idid", + "Date" : "Fri, 23 Aug 2019 21:42:50 GMT", + "x-ms-client-request-id" : "477814a1-01a7-4178-b61b-b5f3ce5cad04", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcrenewleaseerror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e6fa6-201e-00c4-22fb-594fb0000000", + "Body" : "jtcrenewleaseerrorjtcrenewleaseerror0blobapitestrenewleaseerrorf397286340359Fri, 23 Aug 2019 21:42:50 GMT\"0x8D72812D8E8C1C0\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:50 GMT", + "x-ms-client-request-id" : "85f63780-85de-4363-a267-83b3b7febfa5", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseerror0blobapitestrenewleaseerrorf397286340359?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e6fbd-201e-00c4-33fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:50 GMT", + "x-ms-client-request-id" : "397e3516-1bb0-466d-9e0b-3ed161254697" + }, + "Exception" : null + } ], + "variables" : [ "jtcrenewleaseerror0blobapitestrenewleaseerrorf397286340359", "javablobrenewleaseerror1blobapitestrenewleaseerrorf394026863", "javablobrenewleaseerror2blobapitestrenewleaseerrorf39092788b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestrenewleasemin.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestrenewleasemin.json new file mode 100644 index 0000000000000..9dd6277dd9e20 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestrenewleasemin.json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleasemin0blobapitestrenewleasemin82628055043d9f6?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812D7914247\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:48 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e6a21-201e-00c4-59fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:47 GMT", + "x-ms-client-request-id" : "06c23d9b-9ac8-4c24-9a2d-ee1d49190469" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleasemin0blobapitestrenewleasemin82628055043d9f6/javablobrenewleasemin1blobapitestrenewleasemin82640500c8f6", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:48 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:47 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812D7967E52\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e6a3b-201e-00c4-6bfb-594fb0000000", + "x-ms-client-request-id" : "0194f02b-b3f9-4b5a-94a7-16d07a7ae10a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleasemin0blobapitestrenewleasemin82628055043d9f6/javablobrenewleasemin1blobapitestrenewleasemin82640500c8f6?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812D7967E52\"", + "x-ms-lease-id" : "cccc4930-3a4d-4b7b-b38b-c498f8f703a8", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:48 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e6a4f-201e-00c4-7dfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:47 GMT", + "x-ms-client-request-id" : "c0fe91b4-52fc-498d-8a17-71c1dbb0ecdc" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleasemin0blobapitestrenewleasemin82628055043d9f6/javablobrenewleasemin1blobapitestrenewleasemin82640500c8f6?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812D7967E52\"", + "x-ms-lease-id" : "cccc4930-3a4d-4b7b-b38b-c498f8f703a8", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:48 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e6a6a-201e-00c4-16fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:47 GMT", + "x-ms-client-request-id" : "5da657ed-29ca-4587-aa5b-28d8f9e8903d" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcrenewleasemin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e6a80-201e-00c4-29fb-594fb0000000", + "Body" : "jtcrenewleaseminjtcrenewleasemin0blobapitestrenewleasemin82628055043d9f6Fri, 23 Aug 2019 21:42:48 GMT\"0x8D72812D7914247\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:47 GMT", + "x-ms-client-request-id" : "495c7ae2-2d1d-4e8e-8a58-a858715b1767", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleasemin0blobapitestrenewleasemin82628055043d9f6?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e6a94-201e-00c4-3cfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:47 GMT", + "x-ms-client-request-id" : "ac398914-2105-40cd-b050-f353939c9f1a" + }, + "Exception" : null + } ], + "variables" : [ "jtcrenewleasemin0blobapitestrenewleasemin82628055043d9f6", "javablobrenewleasemin1blobapitestrenewleasemin82640500c8f6" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsethttpheadersac[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsethttpheadersac[0].json new file mode 100644 index 0000000000000..42efc19515c75 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsethttpheadersac[0].json @@ -0,0 +1,106 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersac0blobapitestsethttpheadersacd6703284b103?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C8F7B6FB\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e2c73-201e-00c4-53fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:23 GMT", + "x-ms-client-request-id" : "cd5fdf1f-8d39-44a6-895f-6846546ed531" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersac0blobapitestsethttpheadersacd6703284b103/javablobsethttpheadersac1blobapitestsethttpheadersacd67038194", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:24 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:23 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812C8FD3BAA\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e2c89-201e-00c4-63fb-594fb0000000", + "x-ms-client-request-id" : "53118310-26ad-4281-82c8-637a63f6362a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersac0blobapitestsethttpheadersacd6703284b103/javablobsethttpheadersac1blobapitestsethttpheadersacd67038194?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C9029427\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e2c9c-201e-00c4-74fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:23 GMT", + "x-ms-client-request-id" : "b4e49051-439b-43da-b4bc-18e6da102d63" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsethttpheadersac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e2cb7-201e-00c4-0bfb-594fb0000000", + "Body" : "jtcsethttpheadersacjtcsethttpheadersac0blobapitestsethttpheadersacd6703284b103Fri, 23 Aug 2019 21:42:24 GMT\"0x8D72812C8F7B6FB\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:23 GMT", + "x-ms-client-request-id" : "0e73b1e7-3b63-4fcf-bedd-8bf969b89358", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersac0blobapitestsethttpheadersacd6703284b103?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e2cc8-201e-00c4-18fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:23 GMT", + "x-ms-client-request-id" : "e52aed33-1dbe-42d0-9b40-40561dc0fc13" + }, + "Exception" : null + } ], + "variables" : [ "jtcsethttpheadersac0blobapitestsethttpheadersacd6703284b103", "javablobsethttpheadersac1blobapitestsethttpheadersacd67038194" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsethttpheadersac[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsethttpheadersac[1].json new file mode 100644 index 0000000000000..480edd7dc33de --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsethttpheadersac[1].json @@ -0,0 +1,106 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersac0blobapitestsethttpheadersacc60087845951?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C9127153\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e2ce0-201e-00c4-2ffb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:23 GMT", + "x-ms-client-request-id" : "37f456fc-6f8b-49f0-b977-397fd2efea29" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersac0blobapitestsethttpheadersacc60087845951/javablobsethttpheadersac1blobapitestsethttpheadersacc60213933", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:24 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:23 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812C917CF10\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e2cf3-201e-00c4-3ffb-594fb0000000", + "x-ms-client-request-id" : "c280d516-658b-476f-9fba-f6f89f31f84e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersac0blobapitestsethttpheadersacc60087845951/javablobsethttpheadersac1blobapitestsethttpheadersacc60213933?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C91D0077\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e2d06-201e-00c4-50fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:23 GMT", + "x-ms-client-request-id" : "599faf67-57dc-4e79-8e02-ddfc63fee58a" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsethttpheadersac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e2d1f-201e-00c4-66fb-594fb0000000", + "Body" : "jtcsethttpheadersacjtcsethttpheadersac0blobapitestsethttpheadersacc60087845951Fri, 23 Aug 2019 21:42:24 GMT\"0x8D72812C9127153\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:23 GMT", + "x-ms-client-request-id" : "d2e2f1bd-0da8-4c41-9fa8-06c8d0e33040", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersac0blobapitestsethttpheadersacc60087845951?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e2d3d-201e-00c4-7ffb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:23 GMT", + "x-ms-client-request-id" : "eda3792b-21c9-4061-9c55-7c51de2011c0" + }, + "Exception" : null + } ], + "variables" : [ "jtcsethttpheadersac0blobapitestsethttpheadersacc60087845951", "javablobsethttpheadersac1blobapitestsethttpheadersacc60213933" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsethttpheadersac[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsethttpheadersac[2].json new file mode 100644 index 0000000000000..18e9ba7876f71 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsethttpheadersac[2].json @@ -0,0 +1,106 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersac0blobapitestsethttpheadersacf0b78366dd42?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C92C8F61\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e2d5d-201e-00c4-1bfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:23 GMT", + "x-ms-client-request-id" : "660c1819-e201-4dcf-90c9-c5d258a8a96d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersac0blobapitestsethttpheadersacf0b78366dd42/javablobsethttpheadersac1blobapitestsethttpheadersacf0b92657b", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:24 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:23 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812C932B0AF\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e2d7d-201e-00c4-35fb-594fb0000000", + "x-ms-client-request-id" : "62ac3963-a418-4142-9fb5-b564014150c1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersac0blobapitestsethttpheadersacf0b78366dd42/javablobsethttpheadersac1blobapitestsethttpheadersacf0b92657b?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C9380928\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e2d8f-201e-00c4-43fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:23 GMT", + "x-ms-client-request-id" : "fad26e1c-ad42-4129-a94c-e2c33e13f727" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsethttpheadersac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e2da3-201e-00c4-55fb-594fb0000000", + "Body" : "jtcsethttpheadersacjtcsethttpheadersac0blobapitestsethttpheadersacf0b78366dd42Fri, 23 Aug 2019 21:42:24 GMT\"0x8D72812C92C8F61\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:23 GMT", + "x-ms-client-request-id" : "b9cf53d7-be7e-4452-8e71-421e63154f2d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersac0blobapitestsethttpheadersacf0b78366dd42?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e2db6-201e-00c4-65fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:23 GMT", + "x-ms-client-request-id" : "8a6293a1-e23a-4c75-ba43-0b38b36d7e99" + }, + "Exception" : null + } ], + "variables" : [ "jtcsethttpheadersac0blobapitestsethttpheadersacf0b78366dd42", "javablobsethttpheadersac1blobapitestsethttpheadersacf0b92657b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsethttpheadersac[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsethttpheadersac[3].json new file mode 100644 index 0000000000000..de7522e123285 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsethttpheadersac[3].json @@ -0,0 +1,137 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersac0blobapitestsethttpheadersac80a536804e39?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C94770F1\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e2dcb-201e-00c4-76fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:23 GMT", + "x-ms-client-request-id" : "1b60814a-e6bf-4cd6-a812-b7c59c1c48fa" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersac0blobapitestsethttpheadersac80a536804e39/javablobsethttpheadersac1blobapitestsethttpheadersac80a53136a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:24 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:23 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812C94CF5E3\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e2de3-201e-00c4-06fb-594fb0000000", + "x-ms-client-request-id" : "d48c1cc0-f5e7-499e-86ce-08f8da6c0e1f" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersac0blobapitestsethttpheadersac80a536804e39/javablobsethttpheadersac1blobapitestsethttpheadersac80a53136a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:24 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:23 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812C94CF5E3\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:24 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51e2dff-201e-00c4-1ffb-594fb0000000", + "x-ms-client-request-id" : "c9e7e265-87a8-4e86-9669-a60145b610d4", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersac0blobapitestsethttpheadersac80a536804e39/javablobsethttpheadersac1blobapitestsethttpheadersac80a53136a?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C959F161\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e2e15-201e-00c4-30fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:23 GMT", + "x-ms-client-request-id" : "6c8a15a5-45d7-4dd8-b536-f27cc4bf4c2e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsethttpheadersac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e2e22-201e-00c4-3bfb-594fb0000000", + "Body" : "jtcsethttpheadersacjtcsethttpheadersac0blobapitestsethttpheadersac80a536804e39Fri, 23 Aug 2019 21:42:24 GMT\"0x8D72812C94770F1\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:23 GMT", + "x-ms-client-request-id" : "ee09d452-4618-494b-a6f6-c63e2e4b438e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersac0blobapitestsethttpheadersac80a536804e39?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e2e2f-201e-00c4-44fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:23 GMT", + "x-ms-client-request-id" : "53b59ca5-1d69-4f42-b99c-d8234a18500f" + }, + "Exception" : null + } ], + "variables" : [ "jtcsethttpheadersac0blobapitestsethttpheadersac80a536804e39", "javablobsethttpheadersac1blobapitestsethttpheadersac80a53136a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsethttpheadersac[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsethttpheadersac[4].json new file mode 100644 index 0000000000000..6052ecf49fadc --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsethttpheadersac[4].json @@ -0,0 +1,106 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersac0blobapitestsethttpheadersac65e27651a101?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C96A91EA\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e2e4b-201e-00c4-5dfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:24 GMT", + "x-ms-client-request-id" : "e8fbdcea-ce45-4319-93e2-292e1867a6d6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersac0blobapitestsethttpheadersac65e27651a101/javablobsethttpheadersac1blobapitestsethttpheadersac65e85081f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:25 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:24 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812C9703DF6\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e2e5e-201e-00c4-6bfb-594fb0000000", + "x-ms-client-request-id" : "91a41542-f12c-4a01-8857-0ad9c30d251e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersac0blobapitestsethttpheadersac65e27651a101/javablobsethttpheadersac1blobapitestsethttpheadersac65e85081f?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C9754845\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e2e79-201e-00c4-01fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:24 GMT", + "x-ms-client-request-id" : "da8f4fc4-2e32-4c86-bb81-0c4d504fe0e1" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsethttpheadersac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e2e89-201e-00c4-10fb-594fb0000000", + "Body" : "jtcsethttpheadersacjtcsethttpheadersac0blobapitestsethttpheadersac65e27651a101Fri, 23 Aug 2019 21:42:24 GMT\"0x8D72812C96A91EA\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:24 GMT", + "x-ms-client-request-id" : "b71c8d49-7535-4d21-8b91-aab4773dcd79", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersac0blobapitestsethttpheadersac65e27651a101?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e2e9c-201e-00c4-20fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:24 GMT", + "x-ms-client-request-id" : "c9a649c0-ad6c-4649-af31-4af45c46f2dd" + }, + "Exception" : null + } ], + "variables" : [ "jtcsethttpheadersac0blobapitestsethttpheadersac65e27651a101", "javablobsethttpheadersac1blobapitestsethttpheadersac65e85081f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsethttpheadersac[5].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsethttpheadersac[5].json new file mode 100644 index 0000000000000..c122c154e38d4 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsethttpheadersac[5].json @@ -0,0 +1,127 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersac0blobapitestsethttpheadersac89789179d6f4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C984FE2B\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e2eb4-201e-00c4-33fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:24 GMT", + "x-ms-client-request-id" : "07a35bc9-9e23-44a5-9c10-7bab48227a12" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersac0blobapitestsethttpheadersac89789179d6f4/javablobsethttpheadersac1blobapitestsethttpheadersac89791596b", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:25 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:24 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812C98A5C12\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e2ecb-201e-00c4-47fb-594fb0000000", + "x-ms-client-request-id" : "e92d6b5c-da76-42c8-b7e0-b624477125fb" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersac0blobapitestsethttpheadersac89789179d6f4/javablobsethttpheadersac1blobapitestsethttpheadersac89791596b?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C98A5C12\"", + "x-ms-lease-id" : "0fc7938c-53ec-4f15-8c9d-e54703b686d7", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e2ee4-201e-00c4-5dfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:24 GMT", + "x-ms-client-request-id" : "77750865-46da-4281-a0f3-05eb42617582" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersac0blobapitestsethttpheadersac89789179d6f4/javablobsethttpheadersac1blobapitestsethttpheadersac89791596b?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C993D445\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e2efa-201e-00c4-71fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:24 GMT", + "x-ms-client-request-id" : "685cab20-a96a-4b96-8e25-b79740af3edb" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsethttpheadersac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e2f0a-201e-00c4-7ffb-594fb0000000", + "Body" : "jtcsethttpheadersacjtcsethttpheadersac0blobapitestsethttpheadersac89789179d6f4Fri, 23 Aug 2019 21:42:25 GMT\"0x8D72812C984FE2B\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:24 GMT", + "x-ms-client-request-id" : "4204215c-2cbd-41fc-9519-3f65024940cb", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersac0blobapitestsethttpheadersac89789179d6f4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e2f23-201e-00c4-17fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:24 GMT", + "x-ms-client-request-id" : "cdcd7330-02b4-42b8-8cf0-188905d6ebff" + }, + "Exception" : null + } ], + "variables" : [ "jtcsethttpheadersac0blobapitestsethttpheadersac89789179d6f4", "javablobsethttpheadersac1blobapitestsethttpheadersac89791596b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsethttpheadersacfail[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsethttpheadersacfail[0].json new file mode 100644 index 0000000000000..70642563ea5c0 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsethttpheadersacfail[0].json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersacfail0273860306c66bf47c40e8a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C9A36304\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e2f43-201e-00c4-34fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:24 GMT", + "x-ms-client-request-id" : "0c9884ff-b4dd-447c-990e-d5ee0e8decf1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersacfail0273860306c66bf47c40e8a/javablobsethttpheadersacfail188313d604961307074e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:25 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:24 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812C9A90F33\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e2f5b-201e-00c4-47fb-594fb0000000", + "x-ms-client-request-id" : "e89e5bae-cff6-4da0-991f-3486210b647d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersacfail0273860306c66bf47c40e8a/javablobsethttpheadersacfail188313d604961307074e?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "d51e2f6a-201e-00c4-53fb-594fb0000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:d51e2f6a-201e-00c4-53fb-594fb0000000\nTime:2019-08-23T21:42:25.4375704Z", + "Date" : "Fri, 23 Aug 2019 21:42:24 GMT", + "x-ms-client-request-id" : "af2cbdcd-7cee-4d48-a849-673ed5bb96b3", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsethttpheadersacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e2f77-201e-00c4-60fb-594fb0000000", + "Body" : "jtcsethttpheadersacfailjtcsethttpheadersacfail0273860306c66bf47c40e8aFri, 23 Aug 2019 21:42:25 GMT\"0x8D72812C9A36304\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:24 GMT", + "x-ms-client-request-id" : "c5c1d07a-a8d6-472b-817f-4bf182c8313d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersacfail0273860306c66bf47c40e8a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e2f8a-201e-00c4-6efb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:24 GMT", + "x-ms-client-request-id" : "657b49fe-0ee8-4236-b8ad-55eec2bc792a" + }, + "Exception" : null + } ], + "variables" : [ "jtcsethttpheadersacfail0273860306c66bf47c40e8a", "javablobsethttpheadersacfail188313d604961307074e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsethttpheadersacfail[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsethttpheadersacfail[1].json new file mode 100644 index 0000000000000..437543f81360e --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsethttpheadersacfail[1].json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersacfail0191653287a2eecd6e4cf5a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C9BCBD9A\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e2fa2-201e-00c4-80fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:24 GMT", + "x-ms-client-request-id" : "7a22ee5c-d272-4b93-a89a-e5cf90c59b53" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersacfail0191653287a2eecd6e4cf5a/javablobsethttpheadersacfail10280464ee2546b6534b", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:25 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:24 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812C9C21B95\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e2fb8-201e-00c4-14fb-594fb0000000", + "x-ms-client-request-id" : "0085dfb9-ab26-4e74-9027-77c944d70220" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersacfail0191653287a2eecd6e4cf5a/javablobsethttpheadersacfail10280464ee2546b6534b?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "d51e2fcd-201e-00c4-25fb-594fb0000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:d51e2fcd-201e-00c4-25fb-594fb0000000\nTime:2019-08-23T21:42:25.6037289Z", + "Date" : "Fri, 23 Aug 2019 21:42:24 GMT", + "x-ms-client-request-id" : "9d80ac02-f740-406b-b70c-8ecbbacb0b18", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsethttpheadersacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e2fe0-201e-00c4-38fb-594fb0000000", + "Body" : "jtcsethttpheadersacfailjtcsethttpheadersacfail0191653287a2eecd6e4cf5aFri, 23 Aug 2019 21:42:25 GMT\"0x8D72812C9BCBD9A\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:24 GMT", + "x-ms-client-request-id" : "b372fbf1-71a1-4269-b342-784fd5fac887", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersacfail0191653287a2eecd6e4cf5a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e2ff4-201e-00c4-49fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:24 GMT", + "x-ms-client-request-id" : "3f0ab91d-277c-4970-b508-405f4c0ed7ef" + }, + "Exception" : null + } ], + "variables" : [ "jtcsethttpheadersacfail0191653287a2eecd6e4cf5a", "javablobsethttpheadersacfail10280464ee2546b6534b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsethttpheadersacfail[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsethttpheadersacfail[2].json new file mode 100644 index 0000000000000..7447356abc797 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsethttpheadersacfail[2].json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersacfail03338706715f8a283c4eab9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C9D7ED54\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e3010-201e-00c4-5efb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:24 GMT", + "x-ms-client-request-id" : "6271da95-fe91-42e1-a9d7-0a4604000078" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersacfail03338706715f8a283c4eab9/javablobsethttpheadersacfail13119854b5378794a648", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:25 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:24 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812C9E22E9F\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e302c-201e-00c4-70fb-594fb0000000", + "x-ms-client-request-id" : "d649c3ee-f023-4356-b222-ceae0e93d26c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersacfail03338706715f8a283c4eab9/javablobsethttpheadersacfail13119854b5378794a648?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "d51e3058-201e-00c4-0dfb-594fb0000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:d51e3058-201e-00c4-0dfb-594fb0000000\nTime:2019-08-23T21:42:25.8069229Z", + "Date" : "Fri, 23 Aug 2019 21:42:24 GMT", + "x-ms-client-request-id" : "f03831b4-f80d-4709-99c5-3973dcacb726", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsethttpheadersacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e306b-201e-00c4-1cfb-594fb0000000", + "Body" : "jtcsethttpheadersacfailjtcsethttpheadersacfail03338706715f8a283c4eab9Fri, 23 Aug 2019 21:42:25 GMT\"0x8D72812C9D7ED54\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:24 GMT", + "x-ms-client-request-id" : "4e75ebb6-c9a7-4b1f-a087-ffa938242a7d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersacfail03338706715f8a283c4eab9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e307d-201e-00c4-28fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:24 GMT", + "x-ms-client-request-id" : "39b69fca-025b-4287-ac5b-ba0fb076afef" + }, + "Exception" : null + } ], + "variables" : [ "jtcsethttpheadersacfail03338706715f8a283c4eab9", "javablobsethttpheadersacfail13119854b5378794a648" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsethttpheadersacfail[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsethttpheadersacfail[3].json new file mode 100644 index 0000000000000..ca43b14bff6e8 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsethttpheadersacfail[3].json @@ -0,0 +1,138 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersacfail0138814be1b1e37d974acdb?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C9F9D580\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e30c5-201e-00c4-61fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:24 GMT", + "x-ms-client-request-id" : "48d49a49-662c-40c8-a248-ec265fc77b64" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersacfail0138814be1b1e37d974acdb/javablobsethttpheadersacfail1537460bde2c4271d749", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:25 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:25 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812C9FF5AAE\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e30e3-201e-00c4-7cfb-594fb0000000", + "x-ms-client-request-id" : "b10766eb-f601-4f06-9989-3fc2cac55f8d" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersacfail0138814be1b1e37d974acdb/javablobsethttpheadersacfail1537460bde2c4271d749", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:25 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:25 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812C9FF5AAE\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:25 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51e30fe-201e-00c4-0dfb-594fb0000000", + "x-ms-client-request-id" : "c0c8edfc-0a92-4117-b7a5-0e650effbae4", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersacfail0138814be1b1e37d974acdb/javablobsethttpheadersacfail1537460bde2c4271d749?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "d51e3114-201e-00c4-1efb-594fb0000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:d51e3114-201e-00c4-1efb-594fb0000000\nTime:2019-08-23T21:42:26.0291348Z", + "Date" : "Fri, 23 Aug 2019 21:42:25 GMT", + "x-ms-client-request-id" : "983159e0-f771-4000-87d7-a0febf967998", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsethttpheadersacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e3122-201e-00c4-2bfb-594fb0000000", + "Body" : "jtcsethttpheadersacfailjtcsethttpheadersacfail0138814be1b1e37d974acdbFri, 23 Aug 2019 21:42:25 GMT\"0x8D72812C9F9D580\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:25 GMT", + "x-ms-client-request-id" : "89df8120-d556-483a-a9fc-e5d3a515ca39", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersacfail0138814be1b1e37d974acdb?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e314b-201e-00c4-48fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:25 GMT", + "x-ms-client-request-id" : "59af8597-d2d4-4a50-8200-6a709faefb87" + }, + "Exception" : null + } ], + "variables" : [ "jtcsethttpheadersacfail0138814be1b1e37d974acdb", "javablobsethttpheadersacfail1537460bde2c4271d749" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsethttpheadersacfail[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsethttpheadersacfail[4].json new file mode 100644 index 0000000000000..aa058e5bd993f --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsethttpheadersacfail[4].json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersacfail0610753e26870918c4471b9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812CA181342\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e3179-201e-00c4-6afb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:25 GMT", + "x-ms-client-request-id" : "ccddb373-4b32-40bd-ac99-4999e7306b7c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersacfail0610753e26870918c4471b9/javablobsethttpheadersacfail1872528bad178505384d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:26 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:25 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812CA1EF864\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e31ae-201e-00c4-14fb-594fb0000000", + "x-ms-client-request-id" : "9b482d55-87b4-4e34-b6f6-e0bb53077125" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersacfail0610753e26870918c4471b9/javablobsethttpheadersacfail1872528bad178505384d?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812CA1EF864\"", + "x-ms-lease-id" : "2d4d95a4-5540-49f2-a907-e51be079513d", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e31de-201e-00c4-3bfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:25 GMT", + "x-ms-client-request-id" : "5fcb8491-82a2-4ef6-a2e9-32803aa8ef3c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersacfail0610753e26870918c4471b9/javablobsethttpheadersacfail1872528bad178505384d?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "LeaseIdMismatchWithBlobOperation", + "retry-after" : "0", + "Content-Length" : "264", + "StatusCode" : "412", + "x-ms-request-id" : "d51e31f9-201e-00c4-52fb-594fb0000000", + "Body" : "LeaseIdMismatchWithBlobOperationThe lease ID specified did not match the lease ID for the blob.\nRequestId:d51e31f9-201e-00c4-52fb-594fb0000000\nTime:2019-08-23T21:42:26.2413372Z", + "Date" : "Fri, 23 Aug 2019 21:42:25 GMT", + "x-ms-client-request-id" : "01d80d10-afe4-49ab-990d-5f8027ab9e81", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsethttpheadersacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e3209-201e-00c4-5ffb-594fb0000000", + "Body" : "jtcsethttpheadersacfailjtcsethttpheadersacfail0610753e26870918c4471b9Fri, 23 Aug 2019 21:42:26 GMT\"0x8D72812CA181342\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:25 GMT", + "x-ms-client-request-id" : "c2fc4ea9-e2ca-472f-a384-9b566acc6779", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersacfail0610753e26870918c4471b9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e321f-201e-00c4-72fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:25 GMT", + "x-ms-client-request-id" : "d54f3069-82ea-4bcd-9bba-5c2ed5f42cfa" + }, + "Exception" : null + } ], + "variables" : [ "jtcsethttpheadersacfail0610753e26870918c4471b9", "javablobsethttpheadersacfail1872528bad178505384d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsethttpheaderserror.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsethttpheaderserror.json new file mode 100644 index 0000000000000..983ac85decacc --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsethttpheaderserror.json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheaderserror0blobapitestsethttpheaderserrorbcc403830?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812CA37FF1F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e323c-201e-00c4-09fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:25 GMT", + "x-ms-client-request-id" : "8e44121d-ba6a-411e-9bff-d8af4583edd9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheaderserror0blobapitestsethttpheaderserrorbcc403830/javablobsethttpheaderserror18821208832faedde2467", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:26 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:25 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812CA3D845F\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e3257-201e-00c4-1efb-594fb0000000", + "x-ms-client-request-id" : "b4f5d0e2-d9c5-43a2-885b-8f170775ff43" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheaderserror0blobapitestsethttpheaderserrorbcc403830/javablobsethttpheaderserror297096a284fb6cde124a7?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "BlobNotFound", + "retry-after" : "0", + "Content-Length" : "215", + "StatusCode" : "404", + "x-ms-request-id" : "d51e3269-201e-00c4-2bfb-594fb0000000", + "Body" : "BlobNotFoundThe specified blob does not exist.\nRequestId:d51e3269-201e-00c4-2bfb-594fb0000000\nTime:2019-08-23T21:42:26.4104988Z", + "Date" : "Fri, 23 Aug 2019 21:42:25 GMT", + "x-ms-client-request-id" : "06ee53f7-d56b-4b35-b589-5ac8a5000004", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsethttpheaderserror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e327a-201e-00c4-36fb-594fb0000000", + "Body" : "jtcsethttpheaderserrorjtcsethttpheaderserror0blobapitestsethttpheaderserrorbcc403830Fri, 23 Aug 2019 21:42:26 GMT\"0x8D72812CA37FF1F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:25 GMT", + "x-ms-client-request-id" : "db324574-c20a-411e-9891-2491750d8c2d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheaderserror0blobapitestsethttpheaderserrorbcc403830?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e328f-201e-00c4-49fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:25 GMT", + "x-ms-client-request-id" : "58f2fbb3-db65-4bdb-a074-e20ee0e1d5d5" + }, + "Exception" : null + } ], + "variables" : [ "jtcsethttpheaderserror0blobapitestsethttpheaderserrorbcc403830", "javablobsethttpheaderserror18821208832faedde2467", "javablobsethttpheaderserror297096a284fb6cde124a7" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsethttpheadersheaders[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsethttpheadersheaders[0].json new file mode 100644 index 0000000000000..d444f3544f5a7 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsethttpheadersheaders[0].json @@ -0,0 +1,135 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersheaders067109801059e01bce438f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C8BAED1E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e2bb0-201e-00c4-29fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:22 GMT", + "x-ms-client-request-id" : "e9213c15-b9d8-4450-8f98-8f6d790942c1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersheaders067109801059e01bce438f/javablobsethttpheadersheaders11165061d5078448e74a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:23 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:22 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812C8C098F8\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e2bbd-201e-00c4-34fb-594fb0000000", + "x-ms-client-request-id" : "f0908ead-4b5a-47e4-b142-db73044fecc6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersheaders067109801059e01bce438f/javablobsethttpheadersheaders11165061d5078448e74a?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C8C5A347\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e2bc5-201e-00c4-3bfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:22 GMT", + "x-ms-client-request-id" : "9b04e9b7-b48f-4a68-8cf9-27f309ecf4e6" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersheaders067109801059e01bce438f/javablobsethttpheadersheaders11165061d5078448e74a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:23 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:22 GMT", + "x-ms-blob-type" : "BlockBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812C8C5A347\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:23 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51e2bd1-201e-00c4-47fb-594fb0000000", + "x-ms-client-request-id" : "d87d72cf-bc1b-4558-9067-4f52ceb69ecd" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsethttpheadersheaders&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e2bd8-201e-00c4-4dfb-594fb0000000", + "Body" : "jtcsethttpheadersheadersjtcsethttpheadersheaders067109801059e01bce438fFri, 23 Aug 2019 21:42:23 GMT\"0x8D72812C8BAED1E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:23 GMT", + "x-ms-client-request-id" : "f5cc830e-0fc9-40c0-95f4-d48fd66b74ab", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersheaders067109801059e01bce438f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e2be0-201e-00c4-54fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:23 GMT", + "x-ms-client-request-id" : "73f44770-163a-4fc3-b719-e35b780f4080" + }, + "Exception" : null + } ], + "variables" : [ "jtcsethttpheadersheaders067109801059e01bce438f", "javablobsethttpheadersheaders11165061d5078448e74a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsethttpheadersheaders[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsethttpheadersheaders[1].json new file mode 100644 index 0000000000000..b20fb2569666f --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsethttpheadersheaders[1].json @@ -0,0 +1,141 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersheaders0132750591f92243eb413b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C8D86763\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e2bef-201e-00c4-61fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:23 GMT", + "x-ms-client-request-id" : "4f29f4de-ad73-4aed-940a-08ee5a2cedf9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersheaders0132750591f92243eb413b/javablobsethttpheadersheaders1654991670f556784541", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:24 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:23 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812C8DE1347\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e2c0e-201e-00c4-7afb-594fb0000000", + "x-ms-client-request-id" : "73c40034-64ee-4139-b54b-7792081e2eee" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersheaders0132750591f92243eb413b/javablobsethttpheadersheaders1654991670f556784541?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C8E31D92\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e2c24-201e-00c4-0cfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:23 GMT", + "x-ms-client-request-id" : "9d0b538d-767c-4c74-8c05-7bb757bc27fd" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersheaders0132750591f92243eb413b/javablobsethttpheadersheaders1654991670f556784541", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:24 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-blob-type" : "BlockBlob", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "Content-Encoding" : "encoding", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:24 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51e2c35-201e-00c4-1afb-594fb0000000", + "Content-Type" : "type", + "x-ms-version" : "2019-02-02", + "Date" : "Fri, 23 Aug 2019 21:42:23 GMT", + "Content-MD5" : "d2grV20xOEQwejFENEUrUEUyNTJnZz09", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "Cache-Control" : "control", + "ETag" : "\"0x8D72812C8E31D92\"", + "Content-Disposition" : "disposition", + "x-ms-client-request-id" : "ed617983-432d-4a9f-b1b6-7a9b03bab290", + "Content-Language" : "language" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsethttpheadersheaders&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e2c4c-201e-00c4-2efb-594fb0000000", + "Body" : "jtcsethttpheadersheadersjtcsethttpheadersheaders0132750591f92243eb413bFri, 23 Aug 2019 21:42:24 GMT\"0x8D72812C8D86763\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:23 GMT", + "x-ms-client-request-id" : "1e0b3423-6e68-42cc-b0cc-e70582cf264c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersheaders0132750591f92243eb413b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e2c5b-201e-00c4-3dfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:23 GMT", + "x-ms-client-request-id" : "24c63182-237e-4990-9d8f-37214152ed5c" + }, + "Exception" : null + } ], + "variables" : [ "jtcsethttpheadersheaders0132750591f92243eb413b", "javablobsethttpheadersheaders1654991670f556784541" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsethttpheadersmin.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsethttpheadersmin.json new file mode 100644 index 0000000000000..2728fb4de96d6 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsethttpheadersmin.json @@ -0,0 +1,169 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersmin0blobapitestsethttpheadersmin6e09982421a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C87BB1E0\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e2add-201e-00c4-75fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:22 GMT", + "x-ms-client-request-id" : "75ac7e1c-ae02-4f8b-9615-8f66fa475e2c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersmin0blobapitestsethttpheadersmin6e09982421a/javablobsethttpheadersmin1blobapitestsethttpheadersmin6e007772", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:23 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:22 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812C881ABC8\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e2af8-201e-00c4-08fb-594fb0000000", + "x-ms-client-request-id" : "8b6bb924-f495-4694-94f5-51ba49953298" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersmin0blobapitestsethttpheadersmin6e09982421a/javablobsethttpheadersmin1blobapitestsethttpheadersmin6e007772", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:23 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:22 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812C881ABC8\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:23 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51e2b0f-201e-00c4-1cfb-594fb0000000", + "x-ms-client-request-id" : "495f08e2-0b02-43b1-8ed8-802260144d64", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersmin0blobapitestsethttpheadersmin6e09982421a/javablobsethttpheadersmin1blobapitestsethttpheadersmin6e007772?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C88C83DB\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e2b2a-201e-00c4-33fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:22 GMT", + "x-ms-client-request-id" : "6aeb1e9f-1a1f-415d-b994-3ff47da6d00b" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersmin0blobapitestsethttpheadersmin6e09982421a/javablobsethttpheadersmin1blobapitestsethttpheadersmin6e007772", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:23 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:22 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "d2grV20xOEQwejFENEUrUEUyNTJnZz09", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812C88C83DB\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:23 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51e2b3f-201e-00c4-44fb-594fb0000000", + "Body" : "", + "x-ms-client-request-id" : "7f159acd-5091-4308-bc3c-397fac9eb649", + "Content-Type" : "type" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsethttpheadersmin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e2b4a-201e-00c4-4ffb-594fb0000000", + "Body" : "jtcsethttpheadersminjtcsethttpheadersmin0blobapitestsethttpheadersmin6e09982421aFri, 23 Aug 2019 21:42:23 GMT\"0x8D72812C87BB1E0\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:22 GMT", + "x-ms-client-request-id" : "cfe2fa3e-9a84-49dd-96e9-2b7e07ff8460", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersmin0blobapitestsethttpheadersmin6e09982421a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e2b56-201e-00c4-5bfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:22 GMT", + "x-ms-client-request-id" : "49ad7122-9ade-4cd2-833a-d4975af2b1e3" + }, + "Exception" : null + } ], + "variables" : [ "jtcsethttpheadersmin0blobapitestsethttpheadersmin6e09982421a", "javablobsethttpheadersmin1blobapitestsethttpheadersmin6e007772" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsethttpheadersnull.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsethttpheadersnull.json new file mode 100644 index 0000000000000..6b57dedf4eeea --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsethttpheadersnull.json @@ -0,0 +1,106 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersnull0blobapitestsethttpheadersnull85a4555620?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C85B77C7\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e2a6e-201e-00c4-1bfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:22 GMT", + "x-ms-client-request-id" : "8f4373fa-9152-4852-be39-268dbe1c59a3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersnull0blobapitestsethttpheadersnull85a4555620/javablobsethttpheadersnull1516419c605372d0ff4b4", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:23 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:22 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812C860FC5D\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e2a82-201e-00c4-2efb-594fb0000000", + "x-ms-client-request-id" : "999fa4a9-1c0f-4751-bc20-ea3450b71df6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersnull0blobapitestsethttpheadersnull85a4555620/javablobsethttpheadersnull1516419c605372d0ff4b4?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812C86654DF\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e2a8f-201e-00c4-3bfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:22 GMT", + "x-ms-client-request-id" : "008dc6c9-9338-4a1e-a460-29397c7ce5be" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsethttpheadersnull&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e2ab7-201e-00c4-58fb-594fb0000000", + "Body" : "jtcsethttpheadersnulljtcsethttpheadersnull0blobapitestsethttpheadersnull85a4555620Fri, 23 Aug 2019 21:42:23 GMT\"0x8D72812C85B77C7\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:22 GMT", + "x-ms-client-request-id" : "b2a53796-dcfc-4eba-a942-af8282a5cadf", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsethttpheadersnull0blobapitestsethttpheadersnull85a4555620?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e2ac6-201e-00c4-65fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:22 GMT", + "x-ms-client-request-id" : "f5027599-b0d7-4d81-b313-d53396ebc0d7" + }, + "Exception" : null + } ], + "variables" : [ "jtcsethttpheadersnull0blobapitestsethttpheadersnull85a4555620", "javablobsethttpheadersnull1516419c605372d0ff4b4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsetmetadataac[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsetmetadataac[0].json new file mode 100644 index 0000000000000..ae56aea876b16 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsetmetadataac[0].json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataac0blobapitestsetmetadataac476161534ca9a2f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812CADA5A3A\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e35bd-201e-00c4-70fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:26 GMT", + "x-ms-client-request-id" : "264cd550-5632-4148-9b66-463acf7b4f4a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataac0blobapitestsetmetadataac476161534ca9a2f/javablobsetmetadataac1blobapitestsetmetadataac47663615b56e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:27 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:26 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812CADFB89A\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e35cf-201e-00c4-7efb-594fb0000000", + "x-ms-client-request-id" : "1d8094ea-8731-4e8f-bc7d-58f10aad8b32" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataac0blobapitestsetmetadataac476161534ca9a2f/javablobsetmetadataac1blobapitestsetmetadataac47663615b56e?comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812CAE4C2E4\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e35df-201e-00c4-0dfb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:26 GMT", + "x-ms-client-request-id" : "01585872-dc1d-4123-9475-151947ddf56d" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsetmetadataac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e35ee-201e-00c4-17fb-594fb0000000", + "Body" : "jtcsetmetadataacjtcsetmetadataac0blobapitestsetmetadataac476161534ca9a2fFri, 23 Aug 2019 21:42:27 GMT\"0x8D72812CADA5A3A\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:26 GMT", + "x-ms-client-request-id" : "82816ded-0659-4059-80fa-362c67cab2b4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataac0blobapitestsetmetadataac476161534ca9a2f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e3606-201e-00c4-27fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:26 GMT", + "x-ms-client-request-id" : "d0d47528-c681-4e77-b812-e95501cff924" + }, + "Exception" : null + } ], + "variables" : [ "jtcsetmetadataac0blobapitestsetmetadataac476161534ca9a2f", "javablobsetmetadataac1blobapitestsetmetadataac47663615b56e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsetmetadataac[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsetmetadataac[1].json new file mode 100644 index 0000000000000..be1825e5c6957 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsetmetadataac[1].json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataac0blobapitestsetmetadataacf0577090835a8ad?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812CAF3DBE2\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e362c-201e-00c4-44fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:26 GMT", + "x-ms-client-request-id" : "1e28d28b-8e3b-42e8-93a2-4940d35f59e7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataac0blobapitestsetmetadataacf0577090835a8ad/javablobsetmetadataac1blobapitestsetmetadataacf0562357cfa7", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:27 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:26 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812CAFA4C00\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e364d-201e-00c4-5ffb-594fb0000000", + "x-ms-client-request-id" : "7e26033d-0eb4-4166-836d-6e81e3cded0d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataac0blobapitestsetmetadataacf0577090835a8ad/javablobsetmetadataac1blobapitestsetmetadataacf0562357cfa7?comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812CAFF5659\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e365d-201e-00c4-6cfb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:26 GMT", + "x-ms-client-request-id" : "0f1cb682-e63b-45d5-a78a-11881dab0fc6" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsetmetadataac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e3673-201e-00c4-7bfb-594fb0000000", + "Body" : "jtcsetmetadataacjtcsetmetadataac0blobapitestsetmetadataacf0577090835a8adFri, 23 Aug 2019 21:42:27 GMT\"0x8D72812CAF3DBE2\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:26 GMT", + "x-ms-client-request-id" : "9927f215-0677-43f2-9c34-97ea29575855", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataac0blobapitestsetmetadataacf0577090835a8ad?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e3688-201e-00c4-0afb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:26 GMT", + "x-ms-client-request-id" : "49a1760e-3578-4341-95ce-f15071ce3614" + }, + "Exception" : null + } ], + "variables" : [ "jtcsetmetadataac0blobapitestsetmetadataacf0577090835a8ad", "javablobsetmetadataac1blobapitestsetmetadataacf0562357cfa7" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsetmetadataac[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsetmetadataac[2].json new file mode 100644 index 0000000000000..cd95516ede97a --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsetmetadataac[2].json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataac0blobapitestsetmetadataac9d84378356d5d8a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812CB0F80EB\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e36af-201e-00c4-2bfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:26 GMT", + "x-ms-client-request-id" : "64f9a100-1372-4da8-97ea-d3220dfd6827" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataac0blobapitestsetmetadataac9d84378356d5d8a/javablobsetmetadataac1blobapitestsetmetadataac9d876025ef0f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:27 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:26 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812CB14DF6C\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e36ce-201e-00c4-42fb-594fb0000000", + "x-ms-client-request-id" : "30e4510b-93ad-4f71-8d37-8ba3c8820726" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataac0blobapitestsetmetadataac9d84378356d5d8a/javablobsetmetadataac1blobapitestsetmetadataac9d876025ef0f?comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812CB1A37E5\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e36e8-201e-00c4-57fb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:26 GMT", + "x-ms-client-request-id" : "9de94a70-5694-48e8-b1ff-7c89e5eed9c2" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsetmetadataac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e370b-201e-00c4-73fb-594fb0000000", + "Body" : "jtcsetmetadataacjtcsetmetadataac0blobapitestsetmetadataac9d84378356d5d8aFri, 23 Aug 2019 21:42:27 GMT\"0x8D72812CB0F80EB\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:26 GMT", + "x-ms-client-request-id" : "2ce2226a-b744-4f50-bd0b-0e19476eb08b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataac0blobapitestsetmetadataac9d84378356d5d8a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e371f-201e-00c4-04fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:26 GMT", + "x-ms-client-request-id" : "45aa3986-3788-46e3-9c8a-ee9525a7bf09" + }, + "Exception" : null + } ], + "variables" : [ "jtcsetmetadataac0blobapitestsetmetadataac9d84378356d5d8a", "javablobsetmetadataac1blobapitestsetmetadataac9d876025ef0f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsetmetadataac[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsetmetadataac[3].json new file mode 100644 index 0000000000000..1a82f071c8dda --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsetmetadataac[3].json @@ -0,0 +1,138 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataac0blobapitestsetmetadataac313370997001a9a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812CB353A8F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e377c-201e-00c4-53fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:27 GMT", + "x-ms-client-request-id" : "e9ddd8df-5448-46e0-846d-1b88ef86bc02" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataac0blobapitestsetmetadataac313370997001a9a/javablobsetmetadataac1blobapitestsetmetadataac3131018009da", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:28 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:27 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812CB3AC035\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e3796-201e-00c4-6afb-594fb0000000", + "x-ms-client-request-id" : "64b45f92-fa52-48b4-aa32-ce1b3444c644" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataac0blobapitestsetmetadataac313370997001a9a/javablobsetmetadataac1blobapitestsetmetadataac3131018009da", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:28 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:27 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812CB3AC035\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:28 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51e37b7-201e-00c4-04fb-594fb0000000", + "x-ms-client-request-id" : "87c09468-ca13-4afe-b16f-1dcfdb19fba6", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataac0blobapitestsetmetadataac313370997001a9a/javablobsetmetadataac1blobapitestsetmetadataac3131018009da?comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812CB441151\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e37d0-201e-00c4-16fb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:27 GMT", + "x-ms-client-request-id" : "362ab076-b6cc-45fa-a762-a9a09f6befed" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsetmetadataac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e37e5-201e-00c4-2afb-594fb0000000", + "Body" : "jtcsetmetadataacjtcsetmetadataac0blobapitestsetmetadataac313370997001a9aFri, 23 Aug 2019 21:42:28 GMT\"0x8D72812CB353A8F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:27 GMT", + "x-ms-client-request-id" : "19ee5816-8d59-4730-b11c-edba652a6a34", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataac0blobapitestsetmetadataac313370997001a9a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e37f8-201e-00c4-39fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:27 GMT", + "x-ms-client-request-id" : "096c17d7-04a7-46a0-b2d9-3d6320162327" + }, + "Exception" : null + } ], + "variables" : [ "jtcsetmetadataac0blobapitestsetmetadataac313370997001a9a", "javablobsetmetadataac1blobapitestsetmetadataac3131018009da" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsetmetadataac[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsetmetadataac[4].json new file mode 100644 index 0000000000000..8c701d11fb539 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsetmetadataac[4].json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataac0blobapitestsetmetadataacf7f90675faef4bc?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812CB5414B7\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e380d-201e-00c4-49fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:27 GMT", + "x-ms-client-request-id" : "2edaff66-4649-4a2d-a9d9-fb4618e735bc" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataac0blobapitestsetmetadataacf7f90675faef4bc/javablobsetmetadataac1blobapitestsetmetadataacf7f30687277f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:28 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:27 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812CB59E89C\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e382c-201e-00c4-64fb-594fb0000000", + "x-ms-client-request-id" : "d4375849-4de8-4d1f-a4ea-80d7006435f4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataac0blobapitestsetmetadataacf7f90675faef4bc/javablobsetmetadataac1blobapitestsetmetadataacf7f30687277f?comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812CB5F411E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e3847-201e-00c4-79fb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:27 GMT", + "x-ms-client-request-id" : "832ca67d-f419-4a54-a50d-a9c005a7432f" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsetmetadataac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e3864-201e-00c4-12fb-594fb0000000", + "Body" : "jtcsetmetadataacjtcsetmetadataac0blobapitestsetmetadataacf7f90675faef4bcFri, 23 Aug 2019 21:42:28 GMT\"0x8D72812CB5414B7\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:27 GMT", + "x-ms-client-request-id" : "78ba75db-dfcd-4f39-bc64-7bfdef6f9316", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataac0blobapitestsetmetadataacf7f90675faef4bc?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e387e-201e-00c4-26fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:27 GMT", + "x-ms-client-request-id" : "08734924-b979-4ff1-878b-e72f0c7a45b2" + }, + "Exception" : null + } ], + "variables" : [ "jtcsetmetadataac0blobapitestsetmetadataacf7f90675faef4bc", "javablobsetmetadataac1blobapitestsetmetadataacf7f30687277f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsetmetadataac[5].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsetmetadataac[5].json new file mode 100644 index 0000000000000..f62f0e1297196 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsetmetadataac[5].json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataac0blobapitestsetmetadataac4ab009163001b34?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812CB6E32C5\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e38a4-201e-00c4-43fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:27 GMT", + "x-ms-client-request-id" : "bffc1c07-7403-4c3b-9a1d-542785501b56" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataac0blobapitestsetmetadataac4ab009163001b34/javablobsetmetadataac1blobapitestsetmetadataac4ab58548c8a3", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:28 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:27 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812CB73B88E\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e38c6-201e-00c4-5ffb-594fb0000000", + "x-ms-client-request-id" : "03105acd-8fce-4ff7-8c9f-88f2049aec45" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataac0blobapitestsetmetadataac4ab009163001b34/javablobsetmetadataac1blobapitestsetmetadataac4ab58548c8a3?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812CB73B88E\"", + "x-ms-lease-id" : "97a2ee77-732a-4d33-ad03-84b6cb8bb615", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e38ec-201e-00c4-79fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:27 GMT", + "x-ms-client-request-id" : "f8007286-bf5a-47e0-87e4-8e905a230545" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataac0blobapitestsetmetadataac4ab009163001b34/javablobsetmetadataac1blobapitestsetmetadataac4ab58548c8a3?comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812CB7E1B56\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e3901-201e-00c4-08fb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:27 GMT", + "x-ms-client-request-id" : "582844d1-96e3-4d79-9b66-784cbf129084" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsetmetadataac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e391f-201e-00c4-1dfb-594fb0000000", + "Body" : "jtcsetmetadataacjtcsetmetadataac0blobapitestsetmetadataac4ab009163001b34Fri, 23 Aug 2019 21:42:28 GMT\"0x8D72812CB6E32C5\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:27 GMT", + "x-ms-client-request-id" : "1914cca1-bdb6-4c05-8223-fc40b8442536", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataac0blobapitestsetmetadataac4ab009163001b34?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e392e-201e-00c4-29fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:27 GMT", + "x-ms-client-request-id" : "f8c191df-6799-45c3-a168-11bc56463d05" + }, + "Exception" : null + } ], + "variables" : [ "jtcsetmetadataac0blobapitestsetmetadataac4ab009163001b34", "javablobsetmetadataac1blobapitestsetmetadataac4ab58548c8a3" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsetmetadataacfail[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsetmetadataacfail[0].json new file mode 100644 index 0000000000000..06af4feccd365 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsetmetadataacfail[0].json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataacfail0blobapitestsetmetadataacfaile9a6532540a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812CB8E93F2\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e3953-201e-00c4-47fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:27 GMT", + "x-ms-client-request-id" : "504878a0-0ce5-41a4-9cda-bd0e8e384b18" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataacfail0blobapitestsetmetadataacfaile9a6532540a/javablobsetmetadataacfail1blobapitestsetmetadataacfaile9a00561", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:28 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:27 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812CB9419B8\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e397a-201e-00c4-64fb-594fb0000000", + "x-ms-client-request-id" : "2d8d75d1-372f-49b6-a238-446f399a23ae" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataacfail0blobapitestsetmetadataacfaile9a6532540a/javablobsetmetadataacfail1blobapitestsetmetadataacfaile9a00561?comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "d51e39a3-201e-00c4-04fb-594fb0000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:d51e39a3-201e-00c4-04fb-594fb0000000\nTime:2019-08-23T21:42:28.6596431Z", + "Date" : "Fri, 23 Aug 2019 21:42:27 GMT", + "x-ms-client-request-id" : "46ea354b-6fb1-45aa-869f-a7c0d6d6c20d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsetmetadataacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e39be-201e-00c4-18fb-594fb0000000", + "Body" : "jtcsetmetadataacfailjtcsetmetadataacfail0blobapitestsetmetadataacfaile9a6532540aFri, 23 Aug 2019 21:42:28 GMT\"0x8D72812CB8E93F2\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:27 GMT", + "x-ms-client-request-id" : "ca9a6435-88ce-48b1-8ccf-9e60c68d47f2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataacfail0blobapitestsetmetadataacfaile9a6532540a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e39d8-201e-00c4-2dfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:27 GMT", + "x-ms-client-request-id" : "8f5a530e-3695-4c24-91cd-79f1db292c66" + }, + "Exception" : null + } ], + "variables" : [ "jtcsetmetadataacfail0blobapitestsetmetadataacfaile9a6532540a", "javablobsetmetadataacfail1blobapitestsetmetadataacfaile9a00561" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsetmetadataacfail[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsetmetadataacfail[1].json new file mode 100644 index 0000000000000..2ebaab754ea2a --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsetmetadataacfail[1].json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataacfail0blobapitestsetmetadataacfailb97370784dd?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812CBA8159A\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e39f8-201e-00c4-4bfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:27 GMT", + "x-ms-client-request-id" : "ddfb1990-3176-43ca-b5eb-6c1a18882ef7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataacfail0blobapitestsetmetadataacfailb97370784dd/javablobsetmetadataacfail1blobapitestsetmetadataacfailb9719719", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:28 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:27 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812CBAED436\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e3a27-201e-00c4-73fb-594fb0000000", + "x-ms-client-request-id" : "e87447dc-8352-4275-8679-176833f3df05" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataacfail0blobapitestsetmetadataacfailb97370784dd/javablobsetmetadataacfail1blobapitestsetmetadataacfailb9719719?comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "d51e3a3f-201e-00c4-05fb-594fb0000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:d51e3a3f-201e-00c4-05fb-594fb0000000\nTime:2019-08-23T21:42:28.8308066Z", + "Date" : "Fri, 23 Aug 2019 21:42:27 GMT", + "x-ms-client-request-id" : "f304877c-c8f7-4588-8336-0588726e5a59", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsetmetadataacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e3a56-201e-00c4-19fb-594fb0000000", + "Body" : "jtcsetmetadataacfailjtcsetmetadataacfail0blobapitestsetmetadataacfailb97370784ddFri, 23 Aug 2019 21:42:28 GMT\"0x8D72812CBA8159A\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:27 GMT", + "x-ms-client-request-id" : "68ce5905-4e36-4053-90af-e3c6ea1ae89d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataacfail0blobapitestsetmetadataacfailb97370784dd?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e3a71-201e-00c4-2ffb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:27 GMT", + "x-ms-client-request-id" : "9a5897b3-e60b-4627-890d-9ef612fa39e3" + }, + "Exception" : null + } ], + "variables" : [ "jtcsetmetadataacfail0blobapitestsetmetadataacfailb97370784dd", "javablobsetmetadataacfail1blobapitestsetmetadataacfailb9719719" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsetmetadataacfail[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsetmetadataacfail[2].json new file mode 100644 index 0000000000000..edbfac67419f1 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsetmetadataacfail[2].json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataacfail0blobapitestsetmetadataacfailfa9337591e3?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812CBC36C79\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e3a91-201e-00c4-4cfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:27 GMT", + "x-ms-client-request-id" : "91b81b19-8293-45ad-bdf4-258ce549aed5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataacfail0blobapitestsetmetadataacfailfa9337591e3/javablobsetmetadataacfail1blobapitestsetmetadataacfailfa966108", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:28 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:28 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812CBC8CB37\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e3ac3-201e-00c4-76fb-594fb0000000", + "x-ms-client-request-id" : "81b9d339-240a-4b9a-90a8-ae26577c9ee0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataacfail0blobapitestsetmetadataacfailfa9337591e3/javablobsetmetadataacfail1blobapitestsetmetadataacfailfa966108?comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "d51e3ad5-201e-00c4-05fb-594fb0000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:d51e3ad5-201e-00c4-05fb-594fb0000000\nTime:2019-08-23T21:42:28.9959644Z", + "Date" : "Fri, 23 Aug 2019 21:42:28 GMT", + "x-ms-client-request-id" : "fb2fc92e-e859-4369-ac69-22a7dcf14525", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsetmetadataacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e3ae9-201e-00c4-15fb-594fb0000000", + "Body" : "jtcsetmetadataacfailjtcsetmetadataacfail0blobapitestsetmetadataacfailfa9337591e3Fri, 23 Aug 2019 21:42:28 GMT\"0x8D72812CBC36C79\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:28 GMT", + "x-ms-client-request-id" : "8790e3de-f4ed-4f66-bbab-f3813f2d04ed", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataacfail0blobapitestsetmetadataacfailfa9337591e3?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e3af0-201e-00c4-1cfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:28 GMT", + "x-ms-client-request-id" : "cdd12d8c-f7ca-4568-9a2b-530a68eff955" + }, + "Exception" : null + } ], + "variables" : [ "jtcsetmetadataacfail0blobapitestsetmetadataacfailfa9337591e3", "javablobsetmetadataacfail1blobapitestsetmetadataacfailfa966108" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsetmetadataacfail[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsetmetadataacfail[3].json new file mode 100644 index 0000000000000..1c39514c5cb9f --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsetmetadataacfail[3].json @@ -0,0 +1,138 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataacfail0blobapitestsetmetadataacfail3a401377f4e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812CBDBB550\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e3b1a-201e-00c4-3ffb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:28 GMT", + "x-ms-client-request-id" : "df2862e2-f8d4-4e78-bad8-0b97c48a4308" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataacfail0blobapitestsetmetadataacfail3a401377f4e/javablobsetmetadataacfail1blobapitestsetmetadataacfail3a452056", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:29 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:28 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812CBE11420\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e3b48-201e-00c4-66fb-594fb0000000", + "x-ms-client-request-id" : "2c3319e9-92c3-458e-a268-6cee7b2b4d1d" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataacfail0blobapitestsetmetadataacfail3a401377f4e/javablobsetmetadataacfail1blobapitestsetmetadataacfail3a452056", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:29 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:28 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812CBE11420\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:29 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51e3b7a-201e-00c4-0ffb-594fb0000000", + "x-ms-client-request-id" : "67678a4b-63b7-41ee-87de-75d50ece4da7", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataacfail0blobapitestsetmetadataacfail3a401377f4e/javablobsetmetadataacfail1blobapitestsetmetadataacfail3a452056?comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "d51e3b95-201e-00c4-26fb-594fb0000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:d51e3b95-201e-00c4-26fb-594fb0000000\nTime:2019-08-23T21:42:29.2071651Z", + "Date" : "Fri, 23 Aug 2019 21:42:28 GMT", + "x-ms-client-request-id" : "85007bf7-b723-4da2-a411-3bfe9bc01212", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsetmetadataacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e3bb0-201e-00c4-3bfb-594fb0000000", + "Body" : "jtcsetmetadataacfailjtcsetmetadataacfail0blobapitestsetmetadataacfail3a401377f4eFri, 23 Aug 2019 21:42:29 GMT\"0x8D72812CBDBB550\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:28 GMT", + "x-ms-client-request-id" : "463a60d3-1713-47fe-9685-a7787a90b61b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataacfail0blobapitestsetmetadataacfail3a401377f4e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e3bcd-201e-00c4-51fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:28 GMT", + "x-ms-client-request-id" : "ffe60e90-e377-49b1-a122-a8b2fff538d4" + }, + "Exception" : null + } ], + "variables" : [ "jtcsetmetadataacfail0blobapitestsetmetadataacfail3a401377f4e", "javablobsetmetadataacfail1blobapitestsetmetadataacfail3a452056" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsetmetadataacfail[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsetmetadataacfail[4].json new file mode 100644 index 0000000000000..eba5afec34c17 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsetmetadataacfail[4].json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataacfail0blobapitestsetmetadataacfail4b135001f50?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812CBFBEF63\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e3be1-201e-00c4-64fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:28 GMT", + "x-ms-client-request-id" : "94263645-5861-4f62-908c-7224958f2826" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataacfail0blobapitestsetmetadataacfail4b135001f50/javablobsetmetadataacfail1blobapitestsetmetadataacfail4b112844", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:29 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:28 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812CC019C70\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e3c00-201e-00c4-7efb-594fb0000000", + "x-ms-client-request-id" : "4c36dfc7-094b-4e68-94bd-bdf4929d531d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataacfail0blobapitestsetmetadataacfail4b135001f50/javablobsetmetadataacfail1blobapitestsetmetadataacfail4b112844?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812CC019C70\"", + "x-ms-lease-id" : "28fe99b1-4e8a-4792-b857-7e227842cbab", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e3c10-201e-00c4-0dfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:28 GMT", + "x-ms-client-request-id" : "edbd0643-dfd2-401a-9393-69d321094cd1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataacfail0blobapitestsetmetadataacfail4b135001f50/javablobsetmetadataacfail1blobapitestsetmetadataacfail4b112844?comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "LeaseIdMismatchWithBlobOperation", + "retry-after" : "0", + "Content-Length" : "264", + "StatusCode" : "412", + "x-ms-request-id" : "d51e3c2f-201e-00c4-29fb-594fb0000000", + "Body" : "LeaseIdMismatchWithBlobOperationThe lease ID specified did not match the lease ID for the blob.\nRequestId:d51e3c2f-201e-00c4-29fb-594fb0000000\nTime:2019-08-23T21:42:29.4023529Z", + "Date" : "Fri, 23 Aug 2019 21:42:28 GMT", + "x-ms-client-request-id" : "d65aba89-3da8-47be-ba07-29b4dba98ee7", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsetmetadataacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e3c3e-201e-00c4-38fb-594fb0000000", + "Body" : "jtcsetmetadataacfailjtcsetmetadataacfail0blobapitestsetmetadataacfail4b135001f50Fri, 23 Aug 2019 21:42:29 GMT\"0x8D72812CBFBEF63\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:28 GMT", + "x-ms-client-request-id" : "6f818b6a-1379-4b0f-b548-c7867efc5631", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataacfail0blobapitestsetmetadataacfail4b135001f50?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e3c51-201e-00c4-46fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:28 GMT", + "x-ms-client-request-id" : "fe869577-6c95-4260-90ac-f6186e4ff24c" + }, + "Exception" : null + } ], + "variables" : [ "jtcsetmetadataacfail0blobapitestsetmetadataacfail4b135001f50", "javablobsetmetadataacfail1blobapitestsetmetadataacfail4b112844" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsetmetadataallnull.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsetmetadataallnull.json new file mode 100644 index 0000000000000..79a02f6e87ace --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsetmetadataallnull.json @@ -0,0 +1,138 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataallnull0blobapitestsetmetadataallnull52f3526511?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812CA513294\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e32b3-201e-00c4-65fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:25 GMT", + "x-ms-client-request-id" : "1fb3962d-4c9a-4300-ae85-0bbfe6bde33f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataallnull0blobapitestsetmetadataallnull52f3526511/javablobsetmetadataallnull1956795ce8e3f57b8b403", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:26 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:25 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812CA56B7F0\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e32d1-201e-00c4-7efb-594fb0000000", + "x-ms-client-request-id" : "dcafcc48-e1c4-4644-b487-a9747b66997b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataallnull0blobapitestsetmetadataallnull52f3526511/javablobsetmetadataallnull1956795ce8e3f57b8b403?comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812CA5BE952\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e32ed-201e-00c4-17fb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:25 GMT", + "x-ms-client-request-id" : "86219d25-a529-47f0-bbab-2821069a4661" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataallnull0blobapitestsetmetadataallnull52f3526511/javablobsetmetadataallnull1956795ce8e3f57b8b403", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:26 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:25 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812CA5BE952\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:26 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51e3328-201e-00c4-4afb-594fb0000000", + "x-ms-client-request-id" : "f786560a-3837-4d4d-b607-efc2dd0f176b", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsetmetadataallnull&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e334d-201e-00c4-67fb-594fb0000000", + "Body" : "jtcsetmetadataallnulljtcsetmetadataallnull0blobapitestsetmetadataallnull52f3526511Fri, 23 Aug 2019 21:42:26 GMT\"0x8D72812CA513294\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:25 GMT", + "x-ms-client-request-id" : "42005669-abdf-4ac0-8f91-09390933c319", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataallnull0blobapitestsetmetadataallnull52f3526511?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e3369-201e-00c4-7dfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:25 GMT", + "x-ms-client-request-id" : "50614d24-85e6-4df2-af66-09655e1b77e0" + }, + "Exception" : null + } ], + "variables" : [ "jtcsetmetadataallnull0blobapitestsetmetadataallnull52f3526511", "javablobsetmetadataallnull1956795ce8e3f57b8b403" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsetmetadataerror.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsetmetadataerror.json new file mode 100644 index 0000000000000..50f8271e2d8da --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsetmetadataerror.json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataerror0blobapitestsetmetadataerrorc74592698259?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812CC1969B4\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e3c78-201e-00c4-63fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:28 GMT", + "x-ms-client-request-id" : "8c965616-adf7-4ded-9eb3-8f2e01eb3a25" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataerror0blobapitestsetmetadataerrorc74592698259/javablobsetmetadataerror1blobapitestsetmetadataerrorc7482363c", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:29 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:28 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812CC1EC883\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e3c8d-201e-00c4-75fb-594fb0000000", + "x-ms-client-request-id" : "8eed38e8-13f1-4b08-873f-7b87038e9bfd" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataerror0blobapitestsetmetadataerrorc74592698259/javablobsetmetadataerror2blobapitestsetmetadataerrorc74385731?comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "BlobNotFound", + "retry-after" : "0", + "Content-Length" : "215", + "StatusCode" : "404", + "x-ms-request-id" : "d51e3ca1-201e-00c4-07fb-594fb0000000", + "Body" : "BlobNotFoundThe specified blob does not exist.\nRequestId:d51e3ca1-201e-00c4-07fb-594fb0000000\nTime:2019-08-23T21:42:29.5635078Z", + "Date" : "Fri, 23 Aug 2019 21:42:28 GMT", + "x-ms-client-request-id" : "1d49b3b7-ee1e-42f7-8f38-4b5e1219d637", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsetmetadataerror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e3cb9-201e-00c4-1efb-594fb0000000", + "Body" : "jtcsetmetadataerrorjtcsetmetadataerror0blobapitestsetmetadataerrorc74592698259Fri, 23 Aug 2019 21:42:29 GMT\"0x8D72812CC1969B4\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:28 GMT", + "x-ms-client-request-id" : "d781d417-4dbc-4986-adb1-aed5a0251158", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataerror0blobapitestsetmetadataerrorc74592698259?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e3cd2-201e-00c4-31fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:28 GMT", + "x-ms-client-request-id" : "5a488cf3-b430-4f01-8dab-bcf2385b3b2a" + }, + "Exception" : null + } ], + "variables" : [ "jtcsetmetadataerror0blobapitestsetmetadataerrorc74592698259", "javablobsetmetadataerror1blobapitestsetmetadataerrorc7482363c", "javablobsetmetadataerror2blobapitestsetmetadataerrorc74385731" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsetmetadatametadata[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsetmetadatametadata[0].json new file mode 100644 index 0000000000000..4d1084b93529e --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsetmetadatametadata[0].json @@ -0,0 +1,138 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadatametadata0blobapitestsetmetadatametadatacb5134150?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812CA924317\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e341a-201e-00c4-16fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:25 GMT", + "x-ms-client-request-id" : "83847172-b0d9-457a-99d1-f7d8e89183fa" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadatametadata0blobapitestsetmetadatametadatacb5134150/javablobsetmetadatametadata167890702b963204814b0", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:26 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:26 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812CA97C881\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e343d-201e-00c4-33fb-594fb0000000", + "x-ms-client-request-id" : "5cf4168b-cd06-4f25-b9a5-92a047bf8744" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadatametadata0blobapitestsetmetadatametadatacb5134150/javablobsetmetadatametadata167890702b963204814b0?comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812CA9CABB5\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e345b-201e-00c4-4cfb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:26 GMT", + "x-ms-client-request-id" : "1f4f0084-8476-4831-ba28-17b8e8e263e8" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadatametadata0blobapitestsetmetadatametadatacb5134150/javablobsetmetadatametadata167890702b963204814b0", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:27 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:26 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812CA9CABB5\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:26 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51e3480-201e-00c4-68fb-594fb0000000", + "x-ms-client-request-id" : "c37b33d7-9bed-47ea-97b8-bf5f864e7e6b", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsetmetadatametadata&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e3492-201e-00c4-76fb-594fb0000000", + "Body" : "jtcsetmetadatametadatajtcsetmetadatametadata0blobapitestsetmetadatametadatacb5134150Fri, 23 Aug 2019 21:42:26 GMT\"0x8D72812CA924317\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:26 GMT", + "x-ms-client-request-id" : "107225c4-d27a-496b-92e0-74b512fe26fe", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadatametadata0blobapitestsetmetadatametadatacb5134150?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e34b4-201e-00c4-0ffb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:26 GMT", + "x-ms-client-request-id" : "54b13328-4def-4fb7-88e1-1f0ebc210097" + }, + "Exception" : null + } ], + "variables" : [ "jtcsetmetadatametadata0blobapitestsetmetadatametadatacb5134150", "javablobsetmetadatametadata167890702b963204814b0" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsetmetadatametadata[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsetmetadatametadata[1].json new file mode 100644 index 0000000000000..3f51b9b10fe4d --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsetmetadatametadata[1].json @@ -0,0 +1,140 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadatametadata0blobapitestsetmetadatametadataba0842718?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812CABB0ABE\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e34e9-201e-00c4-41fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:26 GMT", + "x-ms-client-request-id" : "9ba71fcf-647a-49bc-ac2c-4c695df0f5a9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadatametadata0blobapitestsetmetadatametadataba0842718/javablobsetmetadatametadata10656564026f3811554ba", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:27 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:26 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812CAC09033\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e353e-201e-00c4-80fb-594fb0000000", + "x-ms-client-request-id" : "89d01989-8f80-4db8-a82a-28995ba2a8b2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadatametadata0blobapitestsetmetadatametadataba0842718/javablobsetmetadatametadata10656564026f3811554ba?comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812CAC5C1A3\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e3553-201e-00c4-13fb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:26 GMT", + "x-ms-client-request-id" : "b667f7f6-1c71-4055-8532-cea3fb99e3bc" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadatametadata0blobapitestsetmetadatametadataba0842718/javablobsetmetadatametadata10656564026f3811554ba", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:27 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:26 GMT", + "x-ms-meta-foo" : "bar", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812CAC5C1A3\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:27 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51e356c-201e-00c4-2afb-594fb0000000", + "x-ms-meta-fizz" : "buzz", + "x-ms-client-request-id" : "4215c883-c289-42b5-a5e2-7b3e963ce65d", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsetmetadatametadata&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e3587-201e-00c4-40fb-594fb0000000", + "Body" : "jtcsetmetadatametadatajtcsetmetadatametadata0blobapitestsetmetadatametadataba0842718Fri, 23 Aug 2019 21:42:27 GMT\"0x8D72812CABB0ABE\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:26 GMT", + "x-ms-client-request-id" : "951a1d8b-d65b-4e4b-934e-57b88edc7567", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadatametadata0blobapitestsetmetadatametadataba0842718?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e359c-201e-00c4-51fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:26 GMT", + "x-ms-client-request-id" : "9a91ac91-9d02-45e5-bf2f-4ebd3f15bbe4" + }, + "Exception" : null + } ], + "variables" : [ "jtcsetmetadatametadata0blobapitestsetmetadatametadataba0842718", "javablobsetmetadatametadata10656564026f3811554ba" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsetmetadatamin.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsetmetadatamin.json new file mode 100644 index 0000000000000..4e40268fa9b36 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsetmetadatamin.json @@ -0,0 +1,139 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadatamin0blobapitestsetmetadataminede7779503cab7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812CA747AA4\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e3382-201e-00c4-10fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:25 GMT", + "x-ms-client-request-id" : "f627b62f-d011-4798-8284-60558dadc974" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadatamin0blobapitestsetmetadataminede7779503cab7/javablobsetmetadatamin1blobapitestsetmetadataminede61004002", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:26 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:25 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812CA79FFFF\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e3397-201e-00c4-23fb-594fb0000000", + "x-ms-client-request-id" : "fb699cf9-eabb-4976-aa0a-3a2146672cac" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadatamin0blobapitestsetmetadataminede7779503cab7/javablobsetmetadatamin1blobapitestsetmetadataminede61004002?comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812CA7F0A49\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e33ac-201e-00c4-36fb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:25 GMT", + "x-ms-client-request-id" : "21e77642-19da-419f-b353-f11f8acf0c07" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadatamin0blobapitestsetmetadataminede7779503cab7/javablobsetmetadatamin1blobapitestsetmetadataminede61004002", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:26 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:25 GMT", + "x-ms-meta-foo" : "bar", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812CA7F0A49\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:26 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51e33c1-201e-00c4-47fb-594fb0000000", + "x-ms-client-request-id" : "86c2c45f-d2c4-44a5-9bcd-17c7b5dd135d", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsetmetadatamin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e33dd-201e-00c4-61fb-594fb0000000", + "Body" : "jtcsetmetadataminjtcsetmetadatamin0blobapitestsetmetadataminede7779503cab7Fri, 23 Aug 2019 21:42:26 GMT\"0x8D72812CA747AA4\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:25 GMT", + "x-ms-client-request-id" : "6999bb95-48fe-48c7-9c4d-4f9796d754f4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadatamin0blobapitestsetmetadataminede7779503cab7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e33f4-201e-00c4-75fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:25 GMT", + "x-ms-client-request-id" : "63d6e281-442e-451f-9dc8-998acd4024cb" + }, + "Exception" : null + } ], + "variables" : [ "jtcsetmetadatamin0blobapitestsetmetadataminede7779503cab7", "javablobsetmetadatamin1blobapitestsetmetadataminede61004002" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettierarchivestatus[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettierarchivestatus[0].json new file mode 100644 index 0000000000000..27986f5602c55 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettierarchivestatus[0].json @@ -0,0 +1,218 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsettierarchivestatus010291b8d25aa1d494412ea?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812F001AFBE\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51ec26b-201e-00c4-17fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:29 GMT", + "x-ms-client-request-id" : "1eac22cc-e775-4346-8c6b-c1b815dde58b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsettierarchivestatus010291b8d25aa1d494412ea/javablobsettierarchivestatus1961457bcbe78d6c7b4f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:29 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:29 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812F006A6CE\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51ec280-201e-00c4-27fb-594fb0000000", + "x-ms-client-request-id" : "821f274c-d4a2-40a2-8216-84eeaf16fca0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/javablobsettierarchivestatus26084232005895fc7c44?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812F00B4E6E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "1d071109-f01e-0012-64fb-59fb37000000", + "Date" : "Fri, 23 Aug 2019 21:43:29 GMT", + "x-ms-client-request-id" : "61477f3b-baba-4ad2-a6a4-c67f0d87f766" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/javablobsettierarchivestatus26084232005895fc7c44/javablobsettierarchivestatus3042079129fcea63194c", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:29 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:29 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812F0123756\"", + "Content-Length" : "0", + "x-ms-request-id" : "1d071124-f01e-0012-7cfb-59fb37000000", + "x-ms-client-request-id" : "69fbebb4-7464-4fa1-a1a7-dcedf974d4d7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/javablobsettierarchivestatus26084232005895fc7c44/javablobsettierarchivestatus3042079129fcea63194c?comp=tier", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "1d071149-f01e-0012-1bfb-59fb37000000", + "Date" : "Fri, 23 Aug 2019 21:43:29 GMT", + "x-ms-client-request-id" : "ea2ddd95-37a4-4c87-9a82-6ca477c65f8d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/javablobsettierarchivestatus26084232005895fc7c44/javablobsettierarchivestatus3042079129fcea63194c?comp=tier", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "1d07115a-f01e-0012-2cfb-59fb37000000", + "Date" : "Fri, 23 Aug 2019 21:43:29 GMT", + "x-ms-client-request-id" : "d9feacda-2783-4b97-8b4a-079ee85e3cfa" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/javablobsettierarchivestatus26084232005895fc7c44/javablobsettierarchivestatus3042079129fcea63194c", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:29 GMT", + "retry-after" : "0", + "x-ms-access-tier-change-time" : "Fri, 23 Aug 2019 21:43:29 GMT", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:43:29 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier" : "Archive", + "ETag" : "\"0x8D72812F0123756\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:43:29 GMT", + "Content-Length" : "7", + "x-ms-archive-status" : "rehydrate-pending-to-cool", + "x-ms-request-id" : "1d07117a-f01e-0012-4cfb-59fb37000000", + "x-ms-client-request-id" : "0092fbe5-3c48-4d3f-892e-28f3f1e41163", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/javablobsettierarchivestatus26084232005895fc7c44?include=&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "1d071184-f01e-0012-56fb-59fb37000000", + "Body" : "javablobsettierarchivestatus3042079129fcea63194cFri, 23 Aug 2019 21:43:29 GMTFri, 23 Aug 2019 21:43:29 GMT0x8D72812F01237567application/octet-stream6RYQPwaVsyQ=wh+Wm18D0z1D4E+PE252gg==BlockBlobArchiverehydrate-pending-to-coolFri, 23 Aug 2019 21:43:29 GMTunlockedavailabletrue0", + "Date" : "Fri, 23 Aug 2019 21:43:29 GMT", + "x-ms-client-request-id" : "d292b57c-4759-4d3e-86a3-2035d28eed2b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsettierarchivestatus&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51ec31c-201e-00c4-2cfb-594fb0000000", + "Body" : "jtcsettierarchivestatusjtcsettierarchivestatus010291b8d25aa1d494412eaFri, 23 Aug 2019 21:43:29 GMT\"0x8D72812F001AFBE\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:29 GMT", + "x-ms-client-request-id" : "1aee7fba-f438-40fc-9d77-a7f34df09b4b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsettierarchivestatus010291b8d25aa1d494412ea?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51ec332-201e-00c4-40fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:29 GMT", + "x-ms-client-request-id" : "4bcc29cb-0b34-46a3-a42f-22e4eca69926" + }, + "Exception" : null + } ], + "variables" : [ "jtcsettierarchivestatus010291b8d25aa1d494412ea", "javablobsettierarchivestatus1961457bcbe78d6c7b4f", "javablobsettierarchivestatus26084232005895fc7c44", "javablobsettierarchivestatus3042079129fcea63194c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettierarchivestatus[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettierarchivestatus[1].json new file mode 100644 index 0000000000000..d03e6fa169398 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettierarchivestatus[1].json @@ -0,0 +1,218 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsettierarchivestatus0366975c285121095b47188?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812F033532A\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51ec34c-201e-00c4-56fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:30 GMT", + "x-ms-client-request-id" : "91beb647-fb52-43ef-b84c-497e3a32e086" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsettierarchivestatus0366975c285121095b47188/javablobsettierarchivestatus19986701d675d588724d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:30 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:30 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812F038BF97\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51ec378-201e-00c4-77fb-594fb0000000", + "x-ms-client-request-id" : "744f219f-c1c6-455e-9d76-e406938829c3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/javablobsettierarchivestatus25883906bb6edf2ab249?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812F03D8E56\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "1d0711ea-f01e-0012-31fb-59fb37000000", + "Date" : "Fri, 23 Aug 2019 21:43:30 GMT", + "x-ms-client-request-id" : "8de55f09-5016-4b36-b820-295793470ab6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/javablobsettierarchivestatus25883906bb6edf2ab249/javablobsettierarchivestatus391706fd5802210aa74b", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:30 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:30 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812F042C91C\"", + "Content-Length" : "0", + "x-ms-request-id" : "1d071202-f01e-0012-48fb-59fb37000000", + "x-ms-client-request-id" : "3f5a665e-a1f1-4031-924d-3b06e9d67b58" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/javablobsettierarchivestatus25883906bb6edf2ab249/javablobsettierarchivestatus391706fd5802210aa74b?comp=tier", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "1d07121d-f01e-0012-63fb-59fb37000000", + "Date" : "Fri, 23 Aug 2019 21:43:30 GMT", + "x-ms-client-request-id" : "8b577b22-7cc3-4825-819d-a3bce1814e49" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/javablobsettierarchivestatus25883906bb6edf2ab249/javablobsettierarchivestatus391706fd5802210aa74b?comp=tier", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "1d071235-f01e-0012-7afb-59fb37000000", + "Date" : "Fri, 23 Aug 2019 21:43:30 GMT", + "x-ms-client-request-id" : "da0a4365-da43-4f4b-94a8-2cb8305a11ab" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/javablobsettierarchivestatus25883906bb6edf2ab249/javablobsettierarchivestatus391706fd5802210aa74b", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:30 GMT", + "retry-after" : "0", + "x-ms-access-tier-change-time" : "Fri, 23 Aug 2019 21:43:30 GMT", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:43:30 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier" : "Archive", + "ETag" : "\"0x8D72812F042C91C\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:43:30 GMT", + "Content-Length" : "7", + "x-ms-archive-status" : "rehydrate-pending-to-hot", + "x-ms-request-id" : "1d071245-f01e-0012-09fb-59fb37000000", + "x-ms-client-request-id" : "4fbddd39-bd06-4afe-a497-e4045f179a0c", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/javablobsettierarchivestatus25883906bb6edf2ab249?include=&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "1d071251-f01e-0012-14fb-59fb37000000", + "Body" : "javablobsettierarchivestatus391706fd5802210aa74bFri, 23 Aug 2019 21:43:30 GMTFri, 23 Aug 2019 21:43:30 GMT0x8D72812F042C91C7application/octet-stream6RYQPwaVsyQ=wh+Wm18D0z1D4E+PE252gg==BlockBlobArchiverehydrate-pending-to-hotFri, 23 Aug 2019 21:43:30 GMTunlockedavailabletrue0", + "Date" : "Fri, 23 Aug 2019 21:43:30 GMT", + "x-ms-client-request-id" : "94b0040f-5eea-462b-b7ea-3f3cd95a985f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsettierarchivestatus&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51ec424-201e-00c4-06fb-594fb0000000", + "Body" : "jtcsettierarchivestatusjtcsettierarchivestatus0366975c285121095b47188Fri, 23 Aug 2019 21:43:30 GMT\"0x8D72812F033532A\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:30 GMT", + "x-ms-client-request-id" : "6bbc71b8-472b-4a1c-b265-36f52f8e1976", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsettierarchivestatus0366975c285121095b47188?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51ec436-201e-00c4-18fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:30 GMT", + "x-ms-client-request-id" : "05af874a-a47c-4220-a821-d2fd05486ffa" + }, + "Exception" : null + } ], + "variables" : [ "jtcsettierarchivestatus0366975c285121095b47188", "javablobsettierarchivestatus19986701d675d588724d", "javablobsettierarchivestatus25883906bb6edf2ab249", "javablobsettierarchivestatus391706fd5802210aa74b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettierblockblob[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettierblockblob[0].json new file mode 100644 index 0000000000000..0ab6e14c16b4f --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettierblockblob[0].json @@ -0,0 +1,217 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsettierblockblob0blobapitestsettierblockblob80a70970397c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812ED8C6C62\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51eb806-201e-00c4-2afb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:25 GMT", + "x-ms-client-request-id" : "c437af59-6d2c-4752-b1ec-6fbb2c5490e3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsettierblockblob0blobapitestsettierblockblob80a70970397c/javablobsettierblockblob1blobapitestsettierblockblob80a806219", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:25 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:25 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812ED91FF2B\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51eb81a-201e-00c4-3afb-594fb0000000", + "x-ms-client-request-id" : "d5a5c874-92d0-445e-a8fb-755868f26f3d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/jtcsettierblockblob2blobapitestsettierblockblob80a123613faa?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812ED96A6C7\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "1d0707b1-f01e-0012-1dfb-59fb37000000", + "Date" : "Fri, 23 Aug 2019 21:43:25 GMT", + "x-ms-client-request-id" : "0ea778d4-e194-4488-bd70-8770a107a22e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/jtcsettierblockblob2blobapitestsettierblockblob80a123613faa/javablobsettierblockblob3blobapitestsettierblockblob80a739119", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:25 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:25 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812EDA4BD93\"", + "Content-Length" : "0", + "x-ms-request-id" : "1d0707d7-f01e-0012-40fb-59fb37000000", + "x-ms-client-request-id" : "c8be2a31-a8c9-4b03-98c7-6f80b877a29b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/jtcsettierblockblob2blobapitestsettierblockblob80a123613faa/javablobsettierblockblob3blobapitestsettierblockblob80a739119?comp=tier", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "1d0707f2-f01e-0012-58fb-59fb37000000", + "Date" : "Fri, 23 Aug 2019 21:43:25 GMT", + "x-ms-client-request-id" : "47a03fec-8c16-423a-ac9f-47ac3780caf1" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/jtcsettierblockblob2blobapitestsettierblockblob80a123613faa/javablobsettierblockblob3blobapitestsettierblockblob80a739119", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:25 GMT", + "retry-after" : "0", + "x-ms-access-tier-change-time" : "Fri, 23 Aug 2019 21:43:25 GMT", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:43:25 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" : "\"0x8D72812EDA4BD93\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:43:25 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "1d070802-f01e-0012-67fb-59fb37000000", + "x-ms-client-request-id" : "941865b2-2219-4cd6-891d-156c9a746c76", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/jtcsettierblockblob2blobapitestsettierblockblob80a123613faa?include=&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "1d070812-f01e-0012-77fb-59fb37000000", + "Body" : "javablobsettierblockblob3blobapitestsettierblockblob80a739119Fri, 23 Aug 2019 21:43:25 GMTFri, 23 Aug 2019 21:43:25 GMT0x8D72812EDA4BD937application/octet-stream6RYQPwaVsyQ=wh+Wm18D0z1D4E+PE252gg==BlockBlobHotFri, 23 Aug 2019 21:43:25 GMTunlockedavailabletrue0", + "Date" : "Fri, 23 Aug 2019 21:43:25 GMT", + "x-ms-client-request-id" : "1d15596d-09d7-4019-a24e-44a12a811efd", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/jtcsettierblockblob2blobapitestsettierblockblob80a123613faa?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "1d07081d-f01e-0012-02fb-59fb37000000", + "Date" : "Fri, 23 Aug 2019 21:43:25 GMT", + "x-ms-client-request-id" : "60a4055d-3921-41da-b4f1-9ea3976d8f1f" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsettierblockblob&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51eb8b5-201e-00c4-24fb-594fb0000000", + "Body" : "jtcsettierblockblobjtcsettierblockblob0blobapitestsettierblockblob80a70970397cFri, 23 Aug 2019 21:43:25 GMT\"0x8D72812ED8C6C62\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:25 GMT", + "x-ms-client-request-id" : "9921f904-e40e-459b-8e9a-7f76b86b47e4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsettierblockblob0blobapitestsettierblockblob80a70970397c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51eb8c4-201e-00c4-30fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:25 GMT", + "x-ms-client-request-id" : "53f51dc8-c56f-46fc-958b-d3ac8c1e8aa2" + }, + "Exception" : null + } ], + "variables" : [ "jtcsettierblockblob0blobapitestsettierblockblob80a70970397c", "javablobsettierblockblob1blobapitestsettierblockblob80a806219", "jtcsettierblockblob2blobapitestsettierblockblob80a123613faa", "javablobsettierblockblob3blobapitestsettierblockblob80a739119" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettierblockblob[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettierblockblob[1].json new file mode 100644 index 0000000000000..8c2bb6f47b99b --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettierblockblob[1].json @@ -0,0 +1,217 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsettierblockblob0blobapitestsettierblockblobba674986367e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812EDC64F32\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51eb8da-201e-00c4-43fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:25 GMT", + "x-ms-client-request-id" : "54752729-45aa-4ac9-9dfc-a414e79535b5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsettierblockblob0blobapitestsettierblockblobba674986367e/javablobsettierblockblob1blobapitestsettierblockblobba6842619", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:26 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:26 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812EDCCCCAE\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51eb8e7-201e-00c4-4efb-594fb0000000", + "x-ms-client-request-id" : "d8262233-5de3-466b-b2b6-7032256c75aa" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/jtcsettierblockblob2blobapitestsettierblockblobba6706853ba7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812EDD17444\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "1d07085f-f01e-0012-3afb-59fb37000000", + "Date" : "Fri, 23 Aug 2019 21:43:26 GMT", + "x-ms-client-request-id" : "73ae3f4e-6197-4645-8ca2-13dc09521fc9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/jtcsettierblockblob2blobapitestsettierblockblobba6706853ba7/javablobsettierblockblob3blobapitestsettierblockblobba629639f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:26 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:26 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812EDD6D65D\"", + "Content-Length" : "0", + "x-ms-request-id" : "1d070877-f01e-0012-50fb-59fb37000000", + "x-ms-client-request-id" : "79509c95-5d43-4c9e-a657-7e4418db817b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/jtcsettierblockblob2blobapitestsettierblockblobba6706853ba7/javablobsettierblockblob3blobapitestsettierblockblobba629639f?comp=tier", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "1d070886-f01e-0012-5dfb-59fb37000000", + "Date" : "Fri, 23 Aug 2019 21:43:26 GMT", + "x-ms-client-request-id" : "16bbd555-b60d-4cfd-91ba-03bedafa7da7" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/jtcsettierblockblob2blobapitestsettierblockblobba6706853ba7/javablobsettierblockblob3blobapitestsettierblockblobba629639f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:26 GMT", + "retry-after" : "0", + "x-ms-access-tier-change-time" : "Fri, 23 Aug 2019 21:43:26 GMT", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:43:26 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" : "\"0x8D72812EDD6D65D\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:43:26 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "1d07089d-f01e-0012-6ffb-59fb37000000", + "x-ms-client-request-id" : "9630ae1c-948a-4a8d-af29-c472a43cf1cc", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/jtcsettierblockblob2blobapitestsettierblockblobba6706853ba7?include=&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "1d0708aa-f01e-0012-78fb-59fb37000000", + "Body" : "javablobsettierblockblob3blobapitestsettierblockblobba629639fFri, 23 Aug 2019 21:43:26 GMTFri, 23 Aug 2019 21:43:26 GMT0x8D72812EDD6D65D7application/octet-stream6RYQPwaVsyQ=wh+Wm18D0z1D4E+PE252gg==BlockBlobCoolFri, 23 Aug 2019 21:43:26 GMTunlockedavailabletrue0", + "Date" : "Fri, 23 Aug 2019 21:43:26 GMT", + "x-ms-client-request-id" : "a2c2257a-e0a9-42dc-b1ee-36fc5b7634ae", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/jtcsettierblockblob2blobapitestsettierblockblobba6706853ba7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "1d0708b6-f01e-0012-02fb-59fb37000000", + "Date" : "Fri, 23 Aug 2019 21:43:26 GMT", + "x-ms-client-request-id" : "3e4957ee-78fe-464e-9567-ab1c8bb248ac" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsettierblockblob&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51eb961-201e-00c4-20fb-594fb0000000", + "Body" : "jtcsettierblockblobjtcsettierblockblob0blobapitestsettierblockblobba674986367eFri, 23 Aug 2019 21:43:25 GMT\"0x8D72812EDC64F32\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:26 GMT", + "x-ms-client-request-id" : "8fbcf9d2-3db2-479a-989e-54891fb31e19", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsettierblockblob0blobapitestsettierblockblobba674986367e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51eb970-201e-00c4-2cfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:26 GMT", + "x-ms-client-request-id" : "c05f93c8-a041-431e-9a39-054192939604" + }, + "Exception" : null + } ], + "variables" : [ "jtcsettierblockblob0blobapitestsettierblockblobba674986367e", "javablobsettierblockblob1blobapitestsettierblockblobba6842619", "jtcsettierblockblob2blobapitestsettierblockblobba6706853ba7", "javablobsettierblockblob3blobapitestsettierblockblobba629639f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettierblockblob[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettierblockblob[2].json new file mode 100644 index 0000000000000..46a08652d41a6 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettierblockblob[2].json @@ -0,0 +1,217 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsettierblockblob0blobapitestsettierblockblob83e01420edd1?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812EDF88F00\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51eb98b-201e-00c4-40fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:26 GMT", + "x-ms-client-request-id" : "bda6006a-3a77-42bf-87da-8e16822885bf" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsettierblockblob0blobapitestsettierblockblob83e01420edd1/javablobsettierblockblob1blobapitestsettierblockblob83e792714", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:26 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:26 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812EDFDFADD\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51eb99a-201e-00c4-49fb-594fb0000000", + "x-ms-client-request-id" : "f96202a3-1667-4ca2-82eb-62347dc1b461" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/jtcsettierblockblob2blobapitestsettierblockblob83e352583625?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812EE02A279\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "1d070906-f01e-0012-46fb-59fb37000000", + "Date" : "Fri, 23 Aug 2019 21:43:26 GMT", + "x-ms-client-request-id" : "58492ec9-08c2-4995-a976-9176ac020047" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/jtcsettierblockblob2blobapitestsettierblockblob83e352583625/javablobsettierblockblob3blobapitestsettierblockblob83e830835", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:26 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:26 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812EE078F3C\"", + "Content-Length" : "0", + "x-ms-request-id" : "1d070911-f01e-0012-4ffb-59fb37000000", + "x-ms-client-request-id" : "ca01776d-4e73-4585-8923-c12c0a9877b4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/jtcsettierblockblob2blobapitestsettierblockblob83e352583625/javablobsettierblockblob3blobapitestsettierblockblob83e830835?comp=tier", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "1d07091f-f01e-0012-5bfb-59fb37000000", + "Date" : "Fri, 23 Aug 2019 21:43:26 GMT", + "x-ms-client-request-id" : "d50c5a9a-31d8-441a-ae63-2da492112f57" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/jtcsettierblockblob2blobapitestsettierblockblob83e352583625/javablobsettierblockblob3blobapitestsettierblockblob83e830835", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:26 GMT", + "retry-after" : "0", + "x-ms-access-tier-change-time" : "Fri, 23 Aug 2019 21:43:26 GMT", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:43:26 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier" : "Archive", + "ETag" : "\"0x8D72812EE078F3C\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:43:26 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "1d07092f-f01e-0012-69fb-59fb37000000", + "x-ms-client-request-id" : "a556cd30-80f0-4fc4-a656-e943051c2193", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/jtcsettierblockblob2blobapitestsettierblockblob83e352583625?include=&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "1d070937-f01e-0012-71fb-59fb37000000", + "Body" : "javablobsettierblockblob3blobapitestsettierblockblob83e830835Fri, 23 Aug 2019 21:43:26 GMTFri, 23 Aug 2019 21:43:26 GMT0x8D72812EE078F3C7application/octet-stream6RYQPwaVsyQ=wh+Wm18D0z1D4E+PE252gg==BlockBlobArchiveFri, 23 Aug 2019 21:43:26 GMTunlockedavailabletrue0", + "Date" : "Fri, 23 Aug 2019 21:43:26 GMT", + "x-ms-client-request-id" : "82ef122e-37e1-4609-a9f7-5a709287c0ef", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/jtcsettierblockblob2blobapitestsettierblockblob83e352583625?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "1d070941-f01e-0012-7afb-59fb37000000", + "Date" : "Fri, 23 Aug 2019 21:43:26 GMT", + "x-ms-client-request-id" : "36a7c9e7-918a-4dd2-a46e-66e6b4d1c3c9" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsettierblockblob&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51eba05-201e-00c4-16fb-594fb0000000", + "Body" : "jtcsettierblockblobjtcsettierblockblob0blobapitestsettierblockblob83e01420edd1Fri, 23 Aug 2019 21:43:26 GMT\"0x8D72812EDF88F00\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:26 GMT", + "x-ms-client-request-id" : "b3b68205-1845-4f82-9b6d-1d611623ad8f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsettierblockblob0blobapitestsettierblockblob83e01420edd1?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51eba15-201e-00c4-21fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:26 GMT", + "x-ms-client-request-id" : "99b0e05f-4ab7-4159-8772-98c372353ba5" + }, + "Exception" : null + } ], + "variables" : [ "jtcsettierblockblob0blobapitestsettierblockblob83e01420edd1", "javablobsettierblockblob1blobapitestsettierblockblob83e792714", "jtcsettierblockblob2blobapitestsettierblockblob83e352583625", "javablobsettierblockblob3blobapitestsettierblockblob83e830835" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettiererror.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettiererror.json new file mode 100644 index 0000000000000..27c131c7671d0 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettiererror.json @@ -0,0 +1,169 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsettiererror0blobapitestsettiererror8f220374134882c5?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812F061C185\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51ec45b-201e-00c4-38fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:30 GMT", + "x-ms-client-request-id" : "928291d4-06b1-4417-9545-f1f42e4682c7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsettiererror0blobapitestsettiererror8f220374134882c5/javablobsettiererror1blobapitestsettiererror8f255434762d6", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:30 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:30 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812F066DFCF\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51ec477-201e-00c4-50fb-594fb0000000", + "x-ms-client-request-id" : "00b0c93f-0824-45a4-bc98-dc637967c798" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/jtcsettiererror2blobapitestsettiererror8f2379413a667f01?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812F06BAE8F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "1d07129e-f01e-0012-58fb-59fb37000000", + "Date" : "Fri, 23 Aug 2019 21:43:30 GMT", + "x-ms-client-request-id" : "e017782d-e905-43ca-aedc-886d395b18a2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/jtcsettiererror2blobapitestsettiererror8f2379413a667f01/javablobsettiererror3blobapitestsettiererror8f2138953ba14", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:30 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:30 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812F077C8CC\"", + "Content-Length" : "0", + "x-ms-request-id" : "1d0712ac-f01e-0012-64fb-59fb37000000", + "x-ms-client-request-id" : "8eac773b-a72a-4e92-b146-8cea06e4ab9c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/jtcsettiererror2blobapitestsettiererror8f2379413a667f01/javablobsettiererror3blobapitestsettiererror8f2138953ba14?comp=tier", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "InvalidHeaderValue", + "retry-after" : "0", + "Content-Length" : "329", + "StatusCode" : "400", + "x-ms-request-id" : "1d0712d0-f01e-0012-7efb-59fb37000000", + "Body" : "InvalidHeaderValueThe value for one of the HTTP headers is not in the correct format.\nRequestId:1d0712d0-f01e-0012-7efb-59fb37000000\nTime:2019-08-23T21:43:30.5406808Zx-ms-access-tiergarbage", + "Date" : "Fri, 23 Aug 2019 21:43:30 GMT", + "x-ms-client-request-id" : "1b1281f6-65f1-4fe4-9290-503b26bfc440", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/jtcsettiererror2blobapitestsettiererror8f2379413a667f01?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "1d0712dd-f01e-0012-0bfb-59fb37000000", + "Date" : "Fri, 23 Aug 2019 21:43:30 GMT", + "x-ms-client-request-id" : "41c1f036-9278-4a4c-98b0-2ba00d5c472a" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsettiererror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51ec50f-201e-00c4-5bfb-594fb0000000", + "Body" : "jtcsettiererrorjtcsettiererror0blobapitestsettiererror8f220374134882c5Fri, 23 Aug 2019 21:43:30 GMT\"0x8D72812F061C185\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:30 GMT", + "x-ms-client-request-id" : "a769d5b4-3cc5-445a-b47b-be69e83bdf70", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsettiererror0blobapitestsettiererror8f220374134882c5?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51ec51c-201e-00c4-67fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:30 GMT", + "x-ms-client-request-id" : "04a74590-bc62-4ac3-961b-9a72a2713441" + }, + "Exception" : null + } ], + "variables" : [ "jtcsettiererror0blobapitestsettiererror8f220374134882c5", "javablobsettiererror1blobapitestsettiererror8f255434762d6", "jtcsettiererror2blobapitestsettiererror8f2379413a667f01", "javablobsettiererror3blobapitestsettiererror8f2138953ba14" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettierillegalargument.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettierillegalargument.json new file mode 100644 index 0000000000000..e578670686ad7 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettierillegalargument.json @@ -0,0 +1,86 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsettierillegalargument042057180e6565ecd84e54?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812F08F1E26\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51ec535-201e-00c4-7efb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:30 GMT", + "x-ms-client-request-id" : "1fc21f92-78b6-4364-a5ae-c4aceaf93fe3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsettierillegalargument042057180e6565ecd84e54/javablobsettierillegalargument103737acd5e9b7520f4", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:30 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:30 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812F0943C81\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51ec544-201e-00c4-0cfb-594fb0000000", + "x-ms-client-request-id" : "6ed22391-7b5f-4887-9524-26806a54dd93" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsettierillegalargument&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51ec554-201e-00c4-1bfb-594fb0000000", + "Body" : "jtcsettierillegalargumentjtcsettierillegalargument042057180e6565ecd84e54Fri, 23 Aug 2019 21:43:30 GMT\"0x8D72812F08F1E26\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:30 GMT", + "x-ms-client-request-id" : "ea573e81-4830-469f-aed5-23a5c824ef57", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsettierillegalargument042057180e6565ecd84e54?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51ec566-201e-00c4-2bfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:30 GMT", + "x-ms-client-request-id" : "28941d62-443b-4e8a-97bf-785aff5e69e0" + }, + "Exception" : null + } ], + "variables" : [ "jtcsettierillegalargument042057180e6565ecd84e54", "javablobsettierillegalargument103737acd5e9b7520f4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettierinferred.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettierinferred.json new file mode 100644 index 0000000000000..1844df4dfc86f --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettierinferred.json @@ -0,0 +1,250 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsettierinferred0blobapitestsettierinferred0df11266b5e1d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812EFC61ED2\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51ec171-201e-00c4-42fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:29 GMT", + "x-ms-client-request-id" : "5916e4d6-7631-41e5-a1dd-3241bd022277" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsettierinferred0blobapitestsettierinferred0df11266b5e1d/javablobsettierinferred1blobapitestsettierinferred0df02552d6", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:29 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:29 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812EFCB6400\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51ec191-201e-00c4-5bfb-594fb0000000", + "x-ms-client-request-id" : "44e9afb4-200c-420d-9c8d-f54fb3107296" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/javablobsettierinferred2blobapitestsettierinferred0df857671a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812EFD032B9\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "1d071041-f01e-0012-2afb-59fb37000000", + "Date" : "Fri, 23 Aug 2019 21:43:29 GMT", + "x-ms-client-request-id" : "a2455a59-a758-4aac-a3f6-d96cd3229958" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/javablobsettierinferred2blobapitestsettierinferred0df857671a/javablobsettierinferred3blobapitestsettierinferred0df05508ea", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:29 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:29 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812EFDF0CD9\"", + "Content-Length" : "0", + "x-ms-request-id" : "1d071056-f01e-0012-39fb-59fb37000000", + "x-ms-client-request-id" : "1be308a3-e442-4b62-adc2-77a45c58c2d0" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/javablobsettierinferred2blobapitestsettierinferred0df857671a/javablobsettierinferred3blobapitestsettierinferred0df05508ea", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:29 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:43:29 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812EFDF0CD9\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:43:29 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "1d071081-f01e-0012-63fb-59fb37000000", + "x-ms-client-request-id" : "fa71f373-af33-44f8-a183-3f89532c4771", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/javablobsettierinferred2blobapitestsettierinferred0df857671a?include=&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "1d071090-f01e-0012-72fb-59fb37000000", + "Body" : "javablobsettierinferred3blobapitestsettierinferred0df05508eaFri, 23 Aug 2019 21:43:29 GMTFri, 23 Aug 2019 21:43:29 GMT0x8D72812EFDF0CD97application/octet-stream6RYQPwaVsyQ=wh+Wm18D0z1D4E+PE252gg==BlockBlobHottrueunlockedavailabletrue0", + "Date" : "Fri, 23 Aug 2019 21:43:29 GMT", + "x-ms-client-request-id" : "896423d0-9c6b-4ffe-bcbe-b9ee2e231d88", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/javablobsettierinferred2blobapitestsettierinferred0df857671a/javablobsettierinferred3blobapitestsettierinferred0df05508ea?comp=tier", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "1d07109d-f01e-0012-7ffb-59fb37000000", + "Date" : "Fri, 23 Aug 2019 21:43:29 GMT", + "x-ms-client-request-id" : "28c49131-eba4-4cf0-bc10-3d77a95c3fae" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/javablobsettierinferred2blobapitestsettierinferred0df857671a/javablobsettierinferred3blobapitestsettierinferred0df05508ea", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:29 GMT", + "retry-after" : "0", + "x-ms-access-tier-change-time" : "Fri, 23 Aug 2019 21:43:29 GMT", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:43:29 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" : "\"0x8D72812EFDF0CD9\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:43:29 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "1d0710af-f01e-0012-10fb-59fb37000000", + "x-ms-client-request-id" : "5346ba18-df1b-49f9-acae-544d8490bbdf", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/javablobsettierinferred2blobapitestsettierinferred0df857671a?include=&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "1d0710b7-f01e-0012-18fb-59fb37000000", + "Body" : "javablobsettierinferred3blobapitestsettierinferred0df05508eaFri, 23 Aug 2019 21:43:29 GMTFri, 23 Aug 2019 21:43:29 GMT0x8D72812EFDF0CD97application/octet-stream6RYQPwaVsyQ=wh+Wm18D0z1D4E+PE252gg==BlockBlobHotFri, 23 Aug 2019 21:43:29 GMTunlockedavailabletrue0", + "Date" : "Fri, 23 Aug 2019 21:43:29 GMT", + "x-ms-client-request-id" : "7f1f2f16-59df-4102-908a-04dc5baea2d5", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsettierinferred&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51ec245-201e-00c4-73fb-594fb0000000", + "Body" : "jtcsettierinferredjtcsettierinferred0blobapitestsettierinferred0df11266b5e1dFri, 23 Aug 2019 21:43:29 GMT\"0x8D72812EFC61ED2\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:29 GMT", + "x-ms-client-request-id" : "d55f4740-882b-4a48-8017-a4f3d0d8d4a2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsettierinferred0blobapitestsettierinferred0df11266b5e1d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51ec256-201e-00c4-02fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:29 GMT", + "x-ms-client-request-id" : "4f4c2537-434f-4e28-a7f8-cddab16df7c2" + }, + "Exception" : null + } ], + "variables" : [ "jtcsettierinferred0blobapitestsettierinferred0df11266b5e1d", "javablobsettierinferred1blobapitestsettierinferred0df02552d6", "javablobsettierinferred2blobapitestsettierinferred0df857671a", "javablobsettierinferred3blobapitestsettierinferred0df05508ea" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettierlease.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettierlease.json new file mode 100644 index 0000000000000..b7630719d4419 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettierlease.json @@ -0,0 +1,187 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsettierlease0blobapitestsettierlease27e036003d4f2bf7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812F0B350CA\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51ec5be-201e-00c4-76fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:30 GMT", + "x-ms-client-request-id" : "d0c7fcce-a89b-49b1-b48d-0e19ecb4b35d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsettierlease0blobapitestsettierlease27e036003d4f2bf7/javablobsettierlease1blobapitestsettierlease27e82407d75aa", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:30 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:30 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812F0B8964E\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51ec5cc-201e-00c4-03fb-594fb0000000", + "x-ms-client-request-id" : "31ae4122-c925-48f6-8c96-b3adf72249cd" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/jtcsettierlease2blobapitestsettierlease27e6348167ff5a65?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812F0C10F73\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "1d0713e6-f01e-0012-7bfb-59fb37000000", + "Date" : "Fri, 23 Aug 2019 21:43:30 GMT", + "x-ms-client-request-id" : "76367c71-778f-4e93-a7df-3cbed816ade6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/jtcsettierlease2blobapitestsettierlease27e6348167ff5a65/javablobsettierlease3blobapitestsettierlease27e13766f0bb5", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:31 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:31 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812F0C64A2A\"", + "Content-Length" : "0", + "x-ms-request-id" : "1d071403-f01e-0012-10fb-59fb37000000", + "x-ms-client-request-id" : "1dc8d408-7fdb-4b9b-af1f-30f550e8e484" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/jtcsettierlease2blobapitestsettierlease27e6348167ff5a65/javablobsettierlease3blobapitestsettierlease27e13766f0bb5?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812F0C64A2A\"", + "x-ms-lease-id" : "49aee0fe-7ded-4576-9b11-0d65f2c0bb5f", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "1d07140b-f01e-0012-18fb-59fb37000000", + "Date" : "Fri, 23 Aug 2019 21:43:31 GMT", + "x-ms-client-request-id" : "8cf8dfe8-3e38-429f-9997-e33f541d35c8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/jtcsettierlease2blobapitestsettierlease27e6348167ff5a65/javablobsettierlease3blobapitestsettierlease27e13766f0bb5?comp=tier", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "1d07142c-f01e-0012-37fb-59fb37000000", + "Date" : "Fri, 23 Aug 2019 21:43:31 GMT", + "x-ms-client-request-id" : "84b1a704-6aa6-43d4-86ce-1bd01c2bf8d3" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/jtcsettierlease2blobapitestsettierlease27e6348167ff5a65?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "1d07143e-f01e-0012-45fb-59fb37000000", + "Date" : "Fri, 23 Aug 2019 21:43:31 GMT", + "x-ms-client-request-id" : "5fee6c43-9a7a-4d55-9310-915d23115f46" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsettierlease&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51ec64e-201e-00c4-73fb-594fb0000000", + "Body" : "jtcsettierleasejtcsettierlease0blobapitestsettierlease27e036003d4f2bf7Fri, 23 Aug 2019 21:43:30 GMT\"0x8D72812F0B350CA\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:31 GMT", + "x-ms-client-request-id" : "2c836cff-461b-4ccb-9e06-2032643e9537", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsettierlease0blobapitestsettierlease27e036003d4f2bf7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51ec65b-201e-00c4-7efb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:31 GMT", + "x-ms-client-request-id" : "98944c8f-d88d-49ec-bbe2-fbe8700aa9be" + }, + "Exception" : null + } ], + "variables" : [ "jtcsettierlease0blobapitestsettierlease27e036003d4f2bf7", "javablobsettierlease1blobapitestsettierlease27e82407d75aa", "jtcsettierlease2blobapitestsettierlease27e6348167ff5a65", "javablobsettierlease3blobapitestsettierlease27e13766f0bb5" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettierleasefail.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettierleasefail.json new file mode 100644 index 0000000000000..86fa9bcd30696 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettierleasefail.json @@ -0,0 +1,151 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsettierleasefail0blobapitestsettierleasefailb3e20659b097?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812F0E1E637\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51ec66f-201e-00c4-10fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:31 GMT", + "x-ms-client-request-id" : "9557761c-b07b-4841-806e-40c0b09eab77" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsettierleasefail0blobapitestsettierleasefailb3e20659b097/javablobsettierleasefail1blobapitestsettierleasefailb3e557649", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:31 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:31 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812F0E752FC\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51ec67b-201e-00c4-1afb-594fb0000000", + "x-ms-client-request-id" : "17359787-61a5-43e3-99d6-146abc4207be" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/jtcsettierleasefail2blobapitestsettierleasefailb3e43148f224?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812F0EBFA8A\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "1d071475-f01e-0012-78fb-59fb37000000", + "Date" : "Fri, 23 Aug 2019 21:43:31 GMT", + "x-ms-client-request-id" : "d4e4dcab-e569-4b41-bdf6-ecc5cc0ef97b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/jtcsettierleasefail2blobapitestsettierleasefailb3e43148f224/javablobsettierleasefail3blobapitestsettierleasefailb3e057790", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:31 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:31 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812F0F13546\"", + "Content-Length" : "0", + "x-ms-request-id" : "1d07147f-f01e-0012-80fb-59fb37000000", + "x-ms-client-request-id" : "7dabe70d-a8e0-44ca-b5d5-aa977d86f5f2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/jtcsettierleasefail2blobapitestsettierleasefailb3e43148f224/javablobsettierleasefail3blobapitestsettierleasefailb3e057790?comp=tier", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "InvalidHeaderValue", + "retry-after" : "0", + "Content-Length" : "326", + "StatusCode" : "400", + "x-ms-request-id" : "1d071484-f01e-0012-05fb-59fb37000000", + "Body" : "InvalidHeaderValueThe value for one of the HTTP headers is not in the correct format.\nRequestId:1d071484-f01e-0012-05fb-59fb37000000\nTime:2019-08-23T21:43:31.3344420Zx-ms-lease-idgarbage", + "Date" : "Fri, 23 Aug 2019 21:43:31 GMT", + "x-ms-client-request-id" : "03eca2eb-d14b-4fc7-9e51-ee62c1a873ff", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsettierleasefail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51ec6c9-201e-00c4-5dfb-594fb0000000", + "Body" : "jtcsettierleasefailjtcsettierleasefail0blobapitestsettierleasefailb3e20659b097Fri, 23 Aug 2019 21:43:31 GMT\"0x8D72812F0E1E637\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:31 GMT", + "x-ms-client-request-id" : "6c7bd549-7c20-42d6-bb8c-c5a43e4fc6bb", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsettierleasefail0blobapitestsettierleasefailb3e20659b097?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51ec6dd-201e-00c4-6dfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:31 GMT", + "x-ms-client-request-id" : "1ea54ac0-3f73-42d5-a67e-5e5d3cca4c32" + }, + "Exception" : null + } ], + "variables" : [ "jtcsettierleasefail0blobapitestsettierleasefailb3e20659b097", "javablobsettierleasefail1blobapitestsettierleasefailb3e557649", "jtcsettierleasefail2blobapitestsettierleasefailb3e43148f224", "javablobsettierleasefail3blobapitestsettierleasefailb3e057790" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettiermin.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettiermin.json new file mode 100644 index 0000000000000..f670eeaaf40c2 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettiermin.json @@ -0,0 +1,166 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsettiermin0blobapitestsettiermindfc82199bf26c02544?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812EF9230E0\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51ec069-201e-00c4-62fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:28 GMT", + "x-ms-client-request-id" : "5ef01554-25f4-467a-83b1-8c658cbfa6c3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsettiermin0blobapitestsettiermindfc82199bf26c02544/javablobsettiermin1blobapitestsettiermindfc16255fdbce1e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:29 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:29 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812EF97EB4A\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51ec080-201e-00c4-76fb-594fb0000000", + "x-ms-client-request-id" : "7fadfaec-8390-4476-8746-d3d9e0106012" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/jtcsettiermin2blobapitestsettiermindfc431323674eaad2f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812EF9CBA0D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "1d070f46-f01e-0012-46fb-59fb37000000", + "Date" : "Fri, 23 Aug 2019 21:43:29 GMT", + "x-ms-client-request-id" : "3507607e-44e7-432c-8407-7905327f92cb" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/jtcsettiermin2blobapitestsettiermindfc431323674eaad2f/javablobsettiermin3blobapitestsettiermindfc73636679b7da", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:29 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:29 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812EFADB78B\"", + "Content-Length" : "0", + "x-ms-request-id" : "1d070f61-f01e-0012-5efb-59fb37000000", + "x-ms-client-request-id" : "cbf3cf27-46ce-4b6b-8f34-7958ad5fec54" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsettiermin0blobapitestsettiermindfc82199bf26c02544/javablobsettiermin1blobapitestsettiermindfc16255fdbce1e?comp=tier", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51ec126-201e-00c4-04fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:29 GMT", + "x-ms-client-request-id" : "7581fab1-ff4f-4326-8d99-afebe65f0068" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkblobaccount.blob.core.windows.net/jtcsettiermin2blobapitestsettiermindfc431323674eaad2f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "1d070fc0-f01e-0012-38fb-59fb37000000", + "Date" : "Fri, 23 Aug 2019 21:43:29 GMT", + "x-ms-client-request-id" : "0ef090bb-1a8f-49ca-adea-d275698f5399" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsettiermin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51ec149-201e-00c4-21fb-594fb0000000", + "Body" : "jtcsettierminjtcsettiermin0blobapitestsettiermindfc82199bf26c02544Fri, 23 Aug 2019 21:43:29 GMT\"0x8D72812EF9230E0\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:29 GMT", + "x-ms-client-request-id" : "3c0f29c0-ab93-4970-96ad-81a4952f25d2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsettiermin0blobapitestsettiermindfc82199bf26c02544?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51ec155-201e-00c4-2bfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:29 GMT", + "x-ms-client-request-id" : "2f73022a-62ee-4adf-b05a-8b82026963e3" + }, + "Exception" : null + } ], + "variables" : [ "jtcsettiermin0blobapitestsettiermindfc82199bf26c02544", "javablobsettiermin1blobapitestsettiermindfc16255fdbce1e", "jtcsettiermin2blobapitestsettiermindfc431323674eaad2f", "javablobsettiermin3blobapitestsettiermindfc73636679b7da" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettierpageblob[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettierpageblob[0].json new file mode 100644 index 0000000000000..8a21a55812038 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettierpageblob[0].json @@ -0,0 +1,212 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsettierpageblob0blobapitestsettierpageblobad692669c1200?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812EE26AF28\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51eba30-201e-00c4-37fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:26 GMT", + "x-ms-client-request-id" : "872c426b-2421-48a3-a696-8fb7af7d3ce5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsettierpageblob0blobapitestsettierpageblobad692669c1200/javablobsettierpageblob1blobapitestsettierpageblobad65218520", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:26 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:26 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812EE2D2CC7\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51eba4c-201e-00c4-48fb-594fb0000000", + "x-ms-client-request-id" : "3a2be56b-98b3-4934-8484-f5b88a2299e7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkpremium.blob.core.windows.net/jtcsettierpageblob2blobapitestsettierpageblobad615577c553e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812EE542918\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ef1aa1b3-501c-00c0-7ffb-59b1a4000000", + "Date" : "Fri, 23 Aug 2019 21:43:26 GMT", + "x-ms-client-request-id" : "49f4b59a-af19-4935-9671-5f4762b998a5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkpremium.blob.core.windows.net/jtcsettierpageblob2blobapitestsettierpageblobad615577c553e/javablobsettierpageblob3blobapitestsettierpageblobad6661133c", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812EE59CB94\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "ef1aa1d5-501c-00c0-21fb-59b1a4000000", + "Date" : "Fri, 23 Aug 2019 21:43:26 GMT", + "x-ms-client-request-id" : "66466f22-afbf-44e0-b0ef-29e7b5a3ac76" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkpremium.blob.core.windows.net/jtcsettierpageblob2blobapitestsettierpageblobad615577c553e/javablobsettierpageblob3blobapitestsettierpageblobad6661133c?comp=tier", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ef1aa1eb-501c-00c0-37fb-59b1a4000000", + "Date" : "Fri, 23 Aug 2019 21:43:26 GMT", + "x-ms-client-request-id" : "62167e68-d4d4-43ac-bd4a-5763e817dc03" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkpremium.blob.core.windows.net/jtcsettierpageblob2blobapitestsettierpageblobad615577c553e/javablobsettierpageblob3blobapitestsettierpageblobad6661133c", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-lease-status" : "unlocked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:26 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:43:26 GMT", + "x-ms-blob-type" : "PageBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier" : "P4", + "ETag" : "\"0x8D72812EE59CB94\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:43:26 GMT", + "Content-Length" : "512", + "x-ms-request-id" : "ef1aa207-501c-00c0-53fb-59b1a4000000", + "x-ms-client-request-id" : "f7dd24cc-fa9a-422c-a2ac-71ba6e6fb9cd", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkpremium.blob.core.windows.net/jtcsettierpageblob2blobapitestsettierpageblobad615577c553e?include=&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ef1aa21c-501c-00c0-68fb-59b1a4000000", + "Body" : "\njavablobsettierpageblob3blobapitestsettierpageblobad6661133cFri, 23 Aug 2019 21:43:26 GMTFri, 23 Aug 2019 21:43:26 GMT0x8D72812EE59CB94512application/octet-stream0PageBlobP4unlockedavailabletrue", + "Date" : "Fri, 23 Aug 2019 21:43:26 GMT", + "x-ms-client-request-id" : "f4f21e30-b901-48a6-8354-990fd48f465b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkpremium.blob.core.windows.net/jtcsettierpageblob2blobapitestsettierpageblobad615577c553e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "ef1aa23b-501c-00c0-07fb-59b1a4000000", + "Date" : "Fri, 23 Aug 2019 21:43:26 GMT", + "x-ms-client-request-id" : "8f3efedc-0932-4db8-88da-64cbefbf5b93" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsettierpageblob&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51ebb7c-201e-00c4-37fb-594fb0000000", + "Body" : "jtcsettierpageblobjtcsettierpageblob0blobapitestsettierpageblobad692669c1200Fri, 23 Aug 2019 21:43:26 GMT\"0x8D72812EE26AF28\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:27 GMT", + "x-ms-client-request-id" : "b516b86d-b07d-4ada-970d-eee47394195a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsettierpageblob0blobapitestsettierpageblobad692669c1200?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51ebb8f-201e-00c4-47fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:27 GMT", + "x-ms-client-request-id" : "6f562141-b21b-4a39-ad02-03fcb0e7fc87" + }, + "Exception" : null + } ], + "variables" : [ "jtcsettierpageblob0blobapitestsettierpageblobad692669c1200", "javablobsettierpageblob1blobapitestsettierpageblobad65218520", "jtcsettierpageblob2blobapitestsettierpageblobad615577c553e", "javablobsettierpageblob3blobapitestsettierpageblobad6661133c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettierpageblob[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettierpageblob[1].json new file mode 100644 index 0000000000000..6b0c6ed89a757 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettierpageblob[1].json @@ -0,0 +1,212 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsettierpageblob0blobapitestsettierpageblobd5a475745cff1?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812EE7AFE39\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51ebbbe-201e-00c4-67fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:27 GMT", + "x-ms-client-request-id" : "dacfaaf3-fea8-4baa-8168-59208f8d7196" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsettierpageblob0blobapitestsettierpageblobd5a475745cff1/javablobsettierpageblob1blobapitestsettierpageblobd5a9418164", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:27 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:27 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812EE80B87E\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51ebbd1-201e-00c4-76fb-594fb0000000", + "x-ms-client-request-id" : "86e93889-359d-40ab-a210-3277c74ed3cb" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkpremium.blob.core.windows.net/jtcsettierpageblob2blobapitestsettierpageblobd5a796119c97a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812EE85064D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ef1aa2d7-501c-00c0-23fb-59b1a4000000", + "Date" : "Fri, 23 Aug 2019 21:43:26 GMT", + "x-ms-client-request-id" : "113b5420-4c3f-4187-ab60-7fa1f575deda" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkpremium.blob.core.windows.net/jtcsettierpageblob2blobapitestsettierpageblobd5a796119c97a/javablobsettierpageblob3blobapitestsettierpageblobd5a7730906", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812EE899707\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "ef1aa2f5-501c-00c0-41fb-59b1a4000000", + "Date" : "Fri, 23 Aug 2019 21:43:26 GMT", + "x-ms-client-request-id" : "0fd80ecf-09a3-4224-9bc3-8a4cbd378fa7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkpremium.blob.core.windows.net/jtcsettierpageblob2blobapitestsettierpageblobd5a796119c97a/javablobsettierpageblob3blobapitestsettierpageblobd5a7730906?comp=tier", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ef1aa31c-501c-00c0-68fb-59b1a4000000", + "Date" : "Fri, 23 Aug 2019 21:43:26 GMT", + "x-ms-client-request-id" : "0a244e86-7dec-4b76-9bd4-599cc47a55f5" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkpremium.blob.core.windows.net/jtcsettierpageblob2blobapitestsettierpageblobd5a796119c97a/javablobsettierpageblob3blobapitestsettierpageblobd5a7730906", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-lease-status" : "unlocked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:27 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:43:26 GMT", + "x-ms-blob-type" : "PageBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier" : "P6", + "ETag" : "\"0x8D72812EE899707\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:43:27 GMT", + "Content-Length" : "512", + "x-ms-request-id" : "ef1aa33a-501c-00c0-06fb-59b1a4000000", + "x-ms-client-request-id" : "aa5b2c07-284c-4ad2-ba8c-3c36beae9eaf", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkpremium.blob.core.windows.net/jtcsettierpageblob2blobapitestsettierpageblobd5a796119c97a?include=&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ef1aa350-501c-00c0-1cfb-59b1a4000000", + "Body" : "\njavablobsettierpageblob3blobapitestsettierpageblobd5a7730906Fri, 23 Aug 2019 21:43:27 GMTFri, 23 Aug 2019 21:43:27 GMT0x8D72812EE899707512application/octet-stream0PageBlobP6unlockedavailabletrue", + "Date" : "Fri, 23 Aug 2019 21:43:26 GMT", + "x-ms-client-request-id" : "0df7cbb5-e6ba-47a1-a2ad-b4a40ffc03a4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkpremium.blob.core.windows.net/jtcsettierpageblob2blobapitestsettierpageblobd5a796119c97a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "ef1aa370-501c-00c0-3cfb-59b1a4000000", + "Date" : "Fri, 23 Aug 2019 21:43:26 GMT", + "x-ms-client-request-id" : "62d58054-5fbf-4b96-a3b8-5e7a3f0ec63b" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsettierpageblob&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51ebc4d-201e-00c4-64fb-594fb0000000", + "Body" : "jtcsettierpageblobjtcsettierpageblob0blobapitestsettierpageblobd5a475745cff1Fri, 23 Aug 2019 21:43:27 GMT\"0x8D72812EE7AFE39\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:27 GMT", + "x-ms-client-request-id" : "506b20ca-c83c-4ae4-90dd-e215c7be875c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsettierpageblob0blobapitestsettierpageblobd5a475745cff1?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51ebc6d-201e-00c4-03fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:27 GMT", + "x-ms-client-request-id" : "58787ac5-693a-4083-b37c-292fc626726a" + }, + "Exception" : null + } ], + "variables" : [ "jtcsettierpageblob0blobapitestsettierpageblobd5a475745cff1", "javablobsettierpageblob1blobapitestsettierpageblobd5a9418164", "jtcsettierpageblob2blobapitestsettierpageblobd5a796119c97a", "javablobsettierpageblob3blobapitestsettierpageblobd5a7730906" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettierpageblob[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettierpageblob[2].json new file mode 100644 index 0000000000000..62badfcfc271e --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettierpageblob[2].json @@ -0,0 +1,212 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsettierpageblob0blobapitestsettierpageblobf1e98735d534d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812EEAA5740\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51ebc8d-201e-00c4-1efb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:27 GMT", + "x-ms-client-request-id" : "fb7073a0-80bc-47fb-adfb-d57cfa5b23c2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsettierpageblob0blobapitestsettierpageblobf1e98735d534d/javablobsettierpageblob1blobapitestsettierpageblobf1e1230275", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:27 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:27 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812EEAF750F\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51ebca8-201e-00c4-35fb-594fb0000000", + "x-ms-client-request-id" : "28265af6-e2b7-4c4d-89c1-d0e41202b62e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkpremium.blob.core.windows.net/jtcsettierpageblob2blobapitestsettierpageblobf1e214270de61?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812EEB3C031\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ef1aa3d9-501c-00c0-25fb-59b1a4000000", + "Date" : "Fri, 23 Aug 2019 21:43:27 GMT", + "x-ms-client-request-id" : "54d0ee80-c44b-4323-b0ff-6c2b6f0fc77d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkpremium.blob.core.windows.net/jtcsettierpageblob2blobapitestsettierpageblobf1e214270de61/javablobsettierpageblob3blobapitestsettierpageblobf1e05117db", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812EEB829BA\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "ef1aa3f1-501c-00c0-3dfb-59b1a4000000", + "Date" : "Fri, 23 Aug 2019 21:43:27 GMT", + "x-ms-client-request-id" : "be381de9-2a22-4d9c-8fe7-51affbfe9879" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkpremium.blob.core.windows.net/jtcsettierpageblob2blobapitestsettierpageblobf1e214270de61/javablobsettierpageblob3blobapitestsettierpageblobf1e05117db?comp=tier", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ef1aa402-501c-00c0-4efb-59b1a4000000", + "Date" : "Fri, 23 Aug 2019 21:43:27 GMT", + "x-ms-client-request-id" : "6e21454d-4ede-4abe-9838-8d13baea3390" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkpremium.blob.core.windows.net/jtcsettierpageblob2blobapitestsettierpageblobf1e214270de61/javablobsettierpageblob3blobapitestsettierpageblobf1e05117db", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-lease-status" : "unlocked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:27 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:43:27 GMT", + "x-ms-blob-type" : "PageBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier" : "P10", + "ETag" : "\"0x8D72812EEB829BA\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:43:27 GMT", + "Content-Length" : "512", + "x-ms-request-id" : "ef1aa411-501c-00c0-5dfb-59b1a4000000", + "x-ms-client-request-id" : "e2f06679-4869-4345-a011-5a5fe2dc0ea9", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkpremium.blob.core.windows.net/jtcsettierpageblob2blobapitestsettierpageblobf1e214270de61?include=&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ef1aa419-501c-00c0-65fb-59b1a4000000", + "Body" : "\njavablobsettierpageblob3blobapitestsettierpageblobf1e05117dbFri, 23 Aug 2019 21:43:27 GMTFri, 23 Aug 2019 21:43:27 GMT0x8D72812EEB829BA512application/octet-stream0PageBlobP10unlockedavailabletrue", + "Date" : "Fri, 23 Aug 2019 21:43:27 GMT", + "x-ms-client-request-id" : "71555fce-9e3a-4ed2-be94-12cccc497a09", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkpremium.blob.core.windows.net/jtcsettierpageblob2blobapitestsettierpageblobf1e214270de61?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "ef1aa423-501c-00c0-6ffb-59b1a4000000", + "Date" : "Fri, 23 Aug 2019 21:43:27 GMT", + "x-ms-client-request-id" : "637d3026-e9a1-4193-9442-9f17b2cc5017" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsettierpageblob&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51ebd1c-201e-00c4-18fb-594fb0000000", + "Body" : "jtcsettierpageblobjtcsettierpageblob0blobapitestsettierpageblobf1e98735d534dFri, 23 Aug 2019 21:43:27 GMT\"0x8D72812EEAA5740\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:27 GMT", + "x-ms-client-request-id" : "e37f4d6b-0ac1-4f4b-a87d-6ab04e489f74", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsettierpageblob0blobapitestsettierpageblobf1e98735d534d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51ebd2e-201e-00c4-25fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:27 GMT", + "x-ms-client-request-id" : "bd1df6ba-04aa-4474-a992-0719eaf99247" + }, + "Exception" : null + } ], + "variables" : [ "jtcsettierpageblob0blobapitestsettierpageblobf1e98735d534d", "javablobsettierpageblob1blobapitestsettierpageblobf1e1230275", "jtcsettierpageblob2blobapitestsettierpageblobf1e214270de61", "javablobsettierpageblob3blobapitestsettierpageblobf1e05117db" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettierpageblob[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettierpageblob[3].json new file mode 100644 index 0000000000000..e28b02636a3ef --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettierpageblob[3].json @@ -0,0 +1,212 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsettierpageblob0blobapitestsettierpageblob64e67452fe4e7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812EED78CD3\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51ebd53-201e-00c4-42fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:27 GMT", + "x-ms-client-request-id" : "4af461c7-c760-4178-b36a-6a062f10baf4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsettierpageblob0blobapitestsettierpageblob64e67452fe4e7/javablobsettierpageblob1blobapitestsettierpageblob64e9143211", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:27 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:27 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812EEDCF8E1\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51ebd6c-201e-00c4-58fb-594fb0000000", + "x-ms-client-request-id" : "df8e2da5-c6d3-41e3-8e83-bc590be6857c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkpremium.blob.core.windows.net/jtcsettierpageblob2blobapitestsettierpageblob64e61729e4c5a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812EEE16864\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ef1aa46e-501c-00c0-3afb-59b1a4000000", + "Date" : "Fri, 23 Aug 2019 21:43:27 GMT", + "x-ms-client-request-id" : "c3fec4cb-067c-4ac5-8e11-b28deb6c2787" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkpremium.blob.core.windows.net/jtcsettierpageblob2blobapitestsettierpageblob64e61729e4c5a/javablobsettierpageblob3blobapitestsettierpageblob64e2652962", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812EEE5F904\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "ef1aa48d-501c-00c0-59fb-59b1a4000000", + "Date" : "Fri, 23 Aug 2019 21:43:27 GMT", + "x-ms-client-request-id" : "749473be-6e71-4417-9a0e-28c1fa61579c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkpremium.blob.core.windows.net/jtcsettierpageblob2blobapitestsettierpageblob64e61729e4c5a/javablobsettierpageblob3blobapitestsettierpageblob64e2652962?comp=tier", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ef1aa4a6-501c-00c0-72fb-59b1a4000000", + "Date" : "Fri, 23 Aug 2019 21:43:27 GMT", + "x-ms-client-request-id" : "ad629528-b459-4b0c-b680-bd87785a6dfe" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkpremium.blob.core.windows.net/jtcsettierpageblob2blobapitestsettierpageblob64e61729e4c5a/javablobsettierpageblob3blobapitestsettierpageblob64e2652962", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-lease-status" : "unlocked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:27 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:43:27 GMT", + "x-ms-blob-type" : "PageBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier" : "P20", + "ETag" : "\"0x8D72812EEE5F904\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:43:27 GMT", + "Content-Length" : "512", + "x-ms-request-id" : "ef1aa4c1-501c-00c0-0dfb-59b1a4000000", + "x-ms-client-request-id" : "1c2c1a2c-f4a8-445b-8d82-d4699167e505", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkpremium.blob.core.windows.net/jtcsettierpageblob2blobapitestsettierpageblob64e61729e4c5a?include=&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ef1aa4cc-501c-00c0-18fb-59b1a4000000", + "Body" : "\njavablobsettierpageblob3blobapitestsettierpageblob64e2652962Fri, 23 Aug 2019 21:43:27 GMTFri, 23 Aug 2019 21:43:27 GMT0x8D72812EEE5F904512application/octet-stream0PageBlobP20unlockedavailabletrue", + "Date" : "Fri, 23 Aug 2019 21:43:27 GMT", + "x-ms-client-request-id" : "caf0e5ab-0d5f-42f6-8cb2-1c32d0c0bd52", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkpremium.blob.core.windows.net/jtcsettierpageblob2blobapitestsettierpageblob64e61729e4c5a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "ef1aa4dd-501c-00c0-29fb-59b1a4000000", + "Date" : "Fri, 23 Aug 2019 21:43:27 GMT", + "x-ms-client-request-id" : "3aa7a7da-a889-40a7-803f-63cf57e26939" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsettierpageblob&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51ebde5-201e-00c4-43fb-594fb0000000", + "Body" : "jtcsettierpageblobjtcsettierpageblob0blobapitestsettierpageblob64e67452fe4e7Fri, 23 Aug 2019 21:43:27 GMT\"0x8D72812EED78CD3\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:27 GMT", + "x-ms-client-request-id" : "60c5e970-3a65-40fc-92cd-30f0d8f81131", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsettierpageblob0blobapitestsettierpageblob64e67452fe4e7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51ebdfb-201e-00c4-56fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:28 GMT", + "x-ms-client-request-id" : "71ad7a34-0e82-4c42-b6ca-6d2666fc65d5" + }, + "Exception" : null + } ], + "variables" : [ "jtcsettierpageblob0blobapitestsettierpageblob64e67452fe4e7", "javablobsettierpageblob1blobapitestsettierpageblob64e9143211", "jtcsettierpageblob2blobapitestsettierpageblob64e61729e4c5a", "javablobsettierpageblob3blobapitestsettierpageblob64e2652962" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettierpageblob[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettierpageblob[4].json new file mode 100644 index 0000000000000..f7dd546b49031 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettierpageblob[4].json @@ -0,0 +1,212 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsettierpageblob0blobapitestsettierpagebloba4a7968727d7f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812EF0697A2\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51ebe1d-201e-00c4-71fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:28 GMT", + "x-ms-client-request-id" : "c8eba3d0-59a2-48a2-b19d-027bfd395150" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsettierpageblob0blobapitestsettierpagebloba4a7968727d7f/javablobsettierpageblob1blobapitestsettierpagebloba4a591900f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:28 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:28 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812EF0DD8E1\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51ebe32-201e-00c4-03fb-594fb0000000", + "x-ms-client-request-id" : "ff632b19-a3cd-4d88-961c-d56d6bf0b70f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkpremium.blob.core.windows.net/jtcsettierpageblob2blobapitestsettierpagebloba4a37359a6f25?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812EF11F756\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ef1aa532-501c-00c0-7efb-59b1a4000000", + "Date" : "Fri, 23 Aug 2019 21:43:27 GMT", + "x-ms-client-request-id" : "98e8b6e8-f3e5-43bb-9722-2697ec49313c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkpremium.blob.core.windows.net/jtcsettierpageblob2blobapitestsettierpagebloba4a37359a6f25/javablobsettierpageblob3blobapitestsettierpagebloba4a85709db", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812EF1687D7\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "ef1aa542-501c-00c0-0efb-59b1a4000000", + "Date" : "Fri, 23 Aug 2019 21:43:27 GMT", + "x-ms-client-request-id" : "17d7ddbd-66fc-40e3-9538-70fc32969d1f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkpremium.blob.core.windows.net/jtcsettierpageblob2blobapitestsettierpagebloba4a37359a6f25/javablobsettierpageblob3blobapitestsettierpagebloba4a85709db?comp=tier", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ef1aa556-501c-00c0-22fb-59b1a4000000", + "Date" : "Fri, 23 Aug 2019 21:43:27 GMT", + "x-ms-client-request-id" : "534c019c-2901-4eaf-9bb2-ab13ab7a08a5" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkpremium.blob.core.windows.net/jtcsettierpageblob2blobapitestsettierpagebloba4a37359a6f25/javablobsettierpageblob3blobapitestsettierpagebloba4a85709db", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-lease-status" : "unlocked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:28 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:43:27 GMT", + "x-ms-blob-type" : "PageBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier" : "P30", + "ETag" : "\"0x8D72812EF1687D7\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:43:28 GMT", + "Content-Length" : "512", + "x-ms-request-id" : "ef1aa562-501c-00c0-2efb-59b1a4000000", + "x-ms-client-request-id" : "98a5a66e-6bde-4696-9466-d40ac6c36a66", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkpremium.blob.core.windows.net/jtcsettierpageblob2blobapitestsettierpagebloba4a37359a6f25?include=&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ef1aa570-501c-00c0-3cfb-59b1a4000000", + "Body" : "\njavablobsettierpageblob3blobapitestsettierpagebloba4a85709dbFri, 23 Aug 2019 21:43:28 GMTFri, 23 Aug 2019 21:43:28 GMT0x8D72812EF1687D7512application/octet-stream0PageBlobP30unlockedavailabletrue", + "Date" : "Fri, 23 Aug 2019 21:43:27 GMT", + "x-ms-client-request-id" : "199a33c3-5a65-4985-b5d5-80fdb3a78e82", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkpremium.blob.core.windows.net/jtcsettierpageblob2blobapitestsettierpagebloba4a37359a6f25?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "ef1aa580-501c-00c0-4cfb-59b1a4000000", + "Date" : "Fri, 23 Aug 2019 21:43:27 GMT", + "x-ms-client-request-id" : "9835a41b-5446-4d14-9aef-3594dd3be7d0" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsettierpageblob&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51ebe9e-201e-00c4-57fb-594fb0000000", + "Body" : "jtcsettierpageblobjtcsettierpageblob0blobapitestsettierpagebloba4a7968727d7fFri, 23 Aug 2019 21:43:28 GMT\"0x8D72812EF0697A2\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:28 GMT", + "x-ms-client-request-id" : "11a7f7b6-fb43-4719-9cc4-201fef10f112", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsettierpageblob0blobapitestsettierpagebloba4a7968727d7f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51ebeb0-201e-00c4-69fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:28 GMT", + "x-ms-client-request-id" : "ac4b2ff0-631a-412d-a4fa-0253e5feddab" + }, + "Exception" : null + } ], + "variables" : [ "jtcsettierpageblob0blobapitestsettierpagebloba4a7968727d7f", "javablobsettierpageblob1blobapitestsettierpagebloba4a591900f", "jtcsettierpageblob2blobapitestsettierpagebloba4a37359a6f25", "javablobsettierpageblob3blobapitestsettierpagebloba4a85709db" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettierpageblob[5].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettierpageblob[5].json new file mode 100644 index 0000000000000..f6efa63c179b9 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettierpageblob[5].json @@ -0,0 +1,212 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsettierpageblob0blobapitestsettierpageblob8fb63689de8f9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812EF3665EE\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51ebec5-201e-00c4-7dfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:28 GMT", + "x-ms-client-request-id" : "989aadc8-f345-4fec-af6d-25178b386c9f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsettierpageblob0blobapitestsettierpageblob8fb63689de8f9/javablobsettierpageblob1blobapitestsettierpageblob8fb3683088", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:28 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:28 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812EF3BD1F9\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51ebeed-201e-00c4-1cfb-594fb0000000", + "x-ms-client-request-id" : "2226d875-c770-487d-83d7-431030df3718" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkpremium.blob.core.windows.net/jtcsettierpageblob2blobapitestsettierpageblob8fb02228ca08c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812EF40630C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ef1aa5eb-501c-00c0-37fb-59b1a4000000", + "Date" : "Fri, 23 Aug 2019 21:43:27 GMT", + "x-ms-client-request-id" : "76b04c00-13f0-4e99-a45d-cde34e0e1137" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkpremium.blob.core.windows.net/jtcsettierpageblob2blobapitestsettierpageblob8fb02228ca08c/javablobsettierpageblob3blobapitestsettierpageblob8fb486545f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812EF44CC61\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "ef1aa600-501c-00c0-4cfb-59b1a4000000", + "Date" : "Fri, 23 Aug 2019 21:43:27 GMT", + "x-ms-client-request-id" : "f5659dbe-cd4b-4eba-8af4-4486c2133354" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkpremium.blob.core.windows.net/jtcsettierpageblob2blobapitestsettierpageblob8fb02228ca08c/javablobsettierpageblob3blobapitestsettierpageblob8fb486545f?comp=tier", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ef1aa615-501c-00c0-61fb-59b1a4000000", + "Date" : "Fri, 23 Aug 2019 21:43:27 GMT", + "x-ms-client-request-id" : "b24af586-806d-42a7-8770-94c3875e7076" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkpremium.blob.core.windows.net/jtcsettierpageblob2blobapitestsettierpageblob8fb02228ca08c/javablobsettierpageblob3blobapitestsettierpageblob8fb486545f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-lease-status" : "unlocked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:28 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:43:28 GMT", + "x-ms-blob-type" : "PageBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier" : "P40", + "ETag" : "\"0x8D72812EF44CC61\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:43:28 GMT", + "Content-Length" : "512", + "x-ms-request-id" : "ef1aa630-501c-00c0-7cfb-59b1a4000000", + "x-ms-client-request-id" : "e3e1e140-11a1-46ca-b85d-3ea199bb28db", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkpremium.blob.core.windows.net/jtcsettierpageblob2blobapitestsettierpageblob8fb02228ca08c?include=&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ef1aa63f-501c-00c0-0bfb-59b1a4000000", + "Body" : "\njavablobsettierpageblob3blobapitestsettierpageblob8fb486545fFri, 23 Aug 2019 21:43:28 GMTFri, 23 Aug 2019 21:43:28 GMT0x8D72812EF44CC61512application/octet-stream0PageBlobP40unlockedavailabletrue", + "Date" : "Fri, 23 Aug 2019 21:43:28 GMT", + "x-ms-client-request-id" : "4a28f3e9-460f-4bbb-b68f-e88de92dc444", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkpremium.blob.core.windows.net/jtcsettierpageblob2blobapitestsettierpageblob8fb02228ca08c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "ef1aa653-501c-00c0-1ffb-59b1a4000000", + "Date" : "Fri, 23 Aug 2019 21:43:28 GMT", + "x-ms-client-request-id" : "c56b6148-e3be-4b9b-a116-4a72695b89d7" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsettierpageblob&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51ebf68-201e-00c4-02fb-594fb0000000", + "Body" : "jtcsettierpageblobjtcsettierpageblob0blobapitestsettierpageblob8fb63689de8f9Fri, 23 Aug 2019 21:43:28 GMT\"0x8D72812EF3665EE\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:28 GMT", + "x-ms-client-request-id" : "c0b3545c-d4d9-4e77-8c56-1abefe8270dd", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsettierpageblob0blobapitestsettierpageblob8fb63689de8f9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51ebf77-201e-00c4-0efb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:28 GMT", + "x-ms-client-request-id" : "76d14ec8-f3ee-4a46-b77d-79f4f59e0037" + }, + "Exception" : null + } ], + "variables" : [ "jtcsettierpageblob0blobapitestsettierpageblob8fb63689de8f9", "javablobsettierpageblob1blobapitestsettierpageblob8fb3683088", "jtcsettierpageblob2blobapitestsettierpageblob8fb02228ca08c", "javablobsettierpageblob3blobapitestsettierpageblob8fb486545f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettierpageblob[6].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettierpageblob[6].json new file mode 100644 index 0000000000000..ffb76806fecc3 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsettierpageblob[6].json @@ -0,0 +1,212 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsettierpageblob0blobapitestsettierpageblobc8801556e2586?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812EF63E9AF\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51ebf9a-201e-00c4-28fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:28 GMT", + "x-ms-client-request-id" : "818b7eb7-04fe-45f8-96c8-053a4712e7ba" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsettierpageblob0blobapitestsettierpageblobc8801556e2586/javablobsettierpageblob1blobapitestsettierpageblobc88478191d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:28 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:28 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812EF697CE3\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51ebfb0-201e-00c4-3bfb-594fb0000000", + "x-ms-client-request-id" : "ac87ad5c-2e26-46de-91fb-3da31602ec8f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkpremium.blob.core.windows.net/jtcsettierpageblob2blobapitestsettierpageblobc886017299b13?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812EF6DBD10\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ef1aa6c1-501c-00c0-0dfb-59b1a4000000", + "Date" : "Fri, 23 Aug 2019 21:43:28 GMT", + "x-ms-client-request-id" : "a636d8ad-6094-4654-9724-3eca00c1d998" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkpremium.blob.core.windows.net/jtcsettierpageblob2blobapitestsettierpageblobc886017299b13/javablobsettierpageblob3blobapitestsettierpageblobc8804269a9", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812EF724D6D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "ef1aa6d3-501c-00c0-1ffb-59b1a4000000", + "Date" : "Fri, 23 Aug 2019 21:43:28 GMT", + "x-ms-client-request-id" : "ec2264d8-9753-48d9-90c5-8aff438c0721" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkpremium.blob.core.windows.net/jtcsettierpageblob2blobapitestsettierpageblobc886017299b13/javablobsettierpageblob3blobapitestsettierpageblobc8804269a9?comp=tier", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ef1aa6e9-501c-00c0-35fb-59b1a4000000", + "Date" : "Fri, 23 Aug 2019 21:43:28 GMT", + "x-ms-client-request-id" : "5052d610-4a09-4207-82e9-a4aaef461e3c" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkpremium.blob.core.windows.net/jtcsettierpageblob2blobapitestsettierpageblobc886017299b13/javablobsettierpageblob3blobapitestsettierpageblobc8804269a9", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-lease-status" : "unlocked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:28 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:43:28 GMT", + "x-ms-blob-type" : "PageBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier" : "P50", + "ETag" : "\"0x8D72812EF724D6D\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:43:28 GMT", + "Content-Length" : "512", + "x-ms-request-id" : "ef1aa708-501c-00c0-54fb-59b1a4000000", + "x-ms-client-request-id" : "acf0a607-0deb-49d8-9538-99a5a9cf0a52", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkpremium.blob.core.windows.net/jtcsettierpageblob2blobapitestsettierpageblobc886017299b13?include=&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ef1aa718-501c-00c0-64fb-59b1a4000000", + "Body" : "\njavablobsettierpageblob3blobapitestsettierpageblobc8804269a9Fri, 23 Aug 2019 21:43:28 GMTFri, 23 Aug 2019 21:43:28 GMT0x8D72812EF724D6D512application/octet-stream0PageBlobP50unlockedavailabletrue", + "Date" : "Fri, 23 Aug 2019 21:43:28 GMT", + "x-ms-client-request-id" : "f85938d7-f6d0-4cd3-8f2f-1f908f45f87a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkpremium.blob.core.windows.net/jtcsettierpageblob2blobapitestsettierpageblobc886017299b13?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "ef1aa723-501c-00c0-6ffb-59b1a4000000", + "Date" : "Fri, 23 Aug 2019 21:43:28 GMT", + "x-ms-client-request-id" : "8843ed43-1e8f-435d-b262-02effc158c61" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsettierpageblob&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51ec02b-201e-00c4-26fb-594fb0000000", + "Body" : "jtcsettierpageblobjtcsettierpageblob0blobapitestsettierpageblobc8801556e2586Fri, 23 Aug 2019 21:43:28 GMT\"0x8D72812EF63E9AF\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:28 GMT", + "x-ms-client-request-id" : "44e90a73-151c-4976-8da2-64690ba73d7e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsettierpageblob0blobapitestsettierpageblobc8801556e2586?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51ec04a-201e-00c4-43fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:28 GMT", + "x-ms-client-request-id" : "d28f1364-1103-4459-8255-6d8f008182ef" + }, + "Exception" : null + } ], + "variables" : [ "jtcsettierpageblob0blobapitestsettierpageblobc8801556e2586", "javablobsettierpageblob1blobapitestsettierpageblobc88478191d", "jtcsettierpageblob2blobapitestsettierpageblobc886017299b13", "javablobsettierpageblob3blobapitestsettierpageblobc8804269a9" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsnapshot.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsnapshot.json new file mode 100644 index 0000000000000..30cfa85be6883 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsnapshot.json @@ -0,0 +1,138 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshot0blobapitestsnapshotb01534873304a7247314?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DDFEA896\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e81e5-201e-00c4-40fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:58 GMT", + "x-ms-client-request-id" : "d39cda40-2843-4356-9fe2-f429a56ef158" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshot0blobapitestsnapshotb01534873304a7247314/javablobsnapshot1blobapitestsnapshotb01339537817194b3", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:59 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:58 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812DE074326\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e8206-201e-00c4-58fb-594fb0000000", + "x-ms-client-request-id" : "7e48e3e4-154d-4897-8775-dd324b6670dd" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshot0blobapitestsnapshotb01534873304a7247314/javablobsnapshot1blobapitestsnapshotb01339537817194b3?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-snapshot" : "2019-08-23T21:42:59.6075102Z", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DE074326\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e8217-201e-00c4-64fb-594fb0000000", + "x-ms-request-server-encrypted" : "false", + "Date" : "Fri, 23 Aug 2019 21:42:58 GMT", + "x-ms-client-request-id" : "61992148-3e50-4fc3-9770-c55d53be1da0" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshot0blobapitestsnapshotb01534873304a7247314/javablobsnapshot1blobapitestsnapshotb01339537817194b3?snapshot=2019-08-23T21%3a42%3a59.6075102Z", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:59 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:58 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-snapshot" : "2019-08-23T21:42:59.6075102Z", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812DE074326\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:59 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51e8231-201e-00c4-7cfb-594fb0000000", + "x-ms-client-request-id" : "414d7a14-99ac-4f76-aa5a-143a1218a682", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsnapshot&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e8239-201e-00c4-03fb-594fb0000000", + "Body" : "jtcsnapshotjtcsnapshot0blobapitestsnapshotb01534873304a7247314Fri, 23 Aug 2019 21:42:59 GMT\"0x8D72812DDFEA896\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:58 GMT", + "x-ms-client-request-id" : "b3994c01-f15b-456a-a10e-8f6867ffdb71", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshot0blobapitestsnapshotb01534873304a7247314?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e8242-201e-00c4-08fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:58 GMT", + "x-ms-client-request-id" : "eb67eb12-c4db-44a8-94f7-fef7417cfaa3" + }, + "Exception" : null + } ], + "variables" : [ "jtcsnapshot0blobapitestsnapshotb01534873304a7247314", "javablobsnapshot1blobapitestsnapshotb01339537817194b3" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsnapshotac[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsnapshotac[0].json new file mode 100644 index 0000000000000..5a4766e2a322f --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsnapshotac[0].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshotac0blobapitestsnapshotac56951465944e0b0a6c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DE5C48C4\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e831d-201e-00c4-41fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:59 GMT", + "x-ms-client-request-id" : "3c2cea71-e20f-4427-b8fe-d2a409616f71" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshotac0blobapitestsnapshotac56951465944e0b0a6c/javablobsnapshotac1blobapitestsnapshotac569990732909968", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:00 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:59 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812DE61AE5F\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e8332-201e-00c4-52fb-594fb0000000", + "x-ms-client-request-id" : "84c4987d-d2d1-4c5a-aa1f-503a66750978" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshotac0blobapitestsnapshotac56951465944e0b0a6c/javablobsnapshotac1blobapitestsnapshotac569990732909968?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-snapshot" : "2019-08-23T21:43:00.2000786Z", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DE61AE5F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e8347-201e-00c4-64fb-594fb0000000", + "x-ms-request-server-encrypted" : "false", + "Date" : "Fri, 23 Aug 2019 21:42:59 GMT", + "x-ms-client-request-id" : "220dc7e6-f4fc-4639-840f-29f6e5a0e3a6" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsnapshotac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e8363-201e-00c4-7dfb-594fb0000000", + "Body" : "jtcsnapshotacjtcsnapshotac0blobapitestsnapshotac56951465944e0b0a6cFri, 23 Aug 2019 21:43:00 GMT\"0x8D72812DE5C48C4\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:59 GMT", + "x-ms-client-request-id" : "f86fd7ed-c6ad-4cb6-b89c-b9a32d0dc7c2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshotac0blobapitestsnapshotac56951465944e0b0a6c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e8370-201e-00c4-0afb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:59 GMT", + "x-ms-client-request-id" : "125678ed-accb-43c1-a67d-9e3c27fb74e8" + }, + "Exception" : null + } ], + "variables" : [ "jtcsnapshotac0blobapitestsnapshotac56951465944e0b0a6c", "javablobsnapshotac1blobapitestsnapshotac569990732909968" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsnapshotac[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsnapshotac[1].json new file mode 100644 index 0000000000000..93ca85c562d27 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsnapshotac[1].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshotac0blobapitestsnapshotac99634122330704014e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DE757C3E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e838f-201e-00c4-20fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:59 GMT", + "x-ms-client-request-id" : "173742fa-22a0-4f8a-b8d0-58f1bee45230" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshotac0blobapitestsnapshotac99634122330704014e/javablobsnapshotac1blobapitestsnapshotac99602523e0b464d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:00 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:59 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812DE7A93AF\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e83a7-201e-00c4-35fb-594fb0000000", + "x-ms-client-request-id" : "d37ae26e-3ff3-4394-90e4-3a698e4d25b6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshotac0blobapitestsnapshotac99634122330704014e/javablobsnapshotac1blobapitestsnapshotac99602523e0b464d?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-snapshot" : "2019-08-23T21:43:00.3652364Z", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DE7A93AF\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e83c4-201e-00c4-4afb-594fb0000000", + "x-ms-request-server-encrypted" : "false", + "Date" : "Fri, 23 Aug 2019 21:42:59 GMT", + "x-ms-client-request-id" : "e9285156-8c37-411f-bd3a-32cc3ed6673d" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsnapshotac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e83dd-201e-00c4-5ffb-594fb0000000", + "Body" : "jtcsnapshotacjtcsnapshotac0blobapitestsnapshotac99634122330704014eFri, 23 Aug 2019 21:43:00 GMT\"0x8D72812DE757C3E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:59 GMT", + "x-ms-client-request-id" : "de37c975-2962-41a8-89c5-813fc3a04ef7", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshotac0blobapitestsnapshotac99634122330704014e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e83f3-201e-00c4-74fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:59 GMT", + "x-ms-client-request-id" : "4bfe2310-9c3e-4ce2-bd4b-7213d9717c49" + }, + "Exception" : null + } ], + "variables" : [ "jtcsnapshotac0blobapitestsnapshotac99634122330704014e", "javablobsnapshotac1blobapitestsnapshotac99602523e0b464d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsnapshotac[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsnapshotac[2].json new file mode 100644 index 0000000000000..47fbdb119424a --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsnapshotac[2].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshotac0blobapitestsnapshotacd875962737a9b5e2ed?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DE9AC092\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e842c-201e-00c4-24fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:59 GMT", + "x-ms-client-request-id" : "8c7b1c5f-0e02-493d-9ae5-24599724fee7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshotac0blobapitestsnapshotacd875962737a9b5e2ed/javablobsnapshotac1blobapitestsnapshotacd8785264556ca10", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:00 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:59 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812DEA445FE\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e8451-201e-00c4-44fb-594fb0000000", + "x-ms-client-request-id" : "913d734c-bcbf-449f-a36d-4e525bbf9e4a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshotac0blobapitestsnapshotacd875962737a9b5e2ed/javablobsnapshotac1blobapitestsnapshotacd8785264556ca10?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-snapshot" : "2019-08-23T21:43:00.6415019Z", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DEA445FE\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e8462-201e-00c4-53fb-594fb0000000", + "x-ms-request-server-encrypted" : "false", + "Date" : "Fri, 23 Aug 2019 21:42:59 GMT", + "x-ms-client-request-id" : "c5a1c903-bce8-4c0d-8c42-f7edb9c389a5" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsnapshotac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e8499-201e-00c4-7efb-594fb0000000", + "Body" : "jtcsnapshotacjtcsnapshotac0blobapitestsnapshotacd875962737a9b5e2edFri, 23 Aug 2019 21:43:00 GMT\"0x8D72812DE9AC092\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:59 GMT", + "x-ms-client-request-id" : "86d24b95-f7f9-4fd5-846b-54615210d15d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshotac0blobapitestsnapshotacd875962737a9b5e2ed?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e84a3-201e-00c4-07fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:59 GMT", + "x-ms-client-request-id" : "579d8bce-703d-4c49-9cad-f47cf07fdfc6" + }, + "Exception" : null + } ], + "variables" : [ "jtcsnapshotac0blobapitestsnapshotacd875962737a9b5e2ed", "javablobsnapshotac1blobapitestsnapshotacd8785264556ca10" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsnapshotac[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsnapshotac[3].json new file mode 100644 index 0000000000000..370bd77c7d0d9 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsnapshotac[3].json @@ -0,0 +1,139 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshotac0blobapitestsnapshotac993981651100f8c67f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DEDD30F9\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e84ea-201e-00c4-44fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:59 GMT", + "x-ms-client-request-id" : "38f7354f-aa09-4075-af26-ca1e19b35998" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshotac0blobapitestsnapshotac993981651100f8c67f/javablobsnapshotac1blobapitestsnapshotac99318216d2c7187", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:01 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:00 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812DEE26FB8\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e84f8-201e-00c4-50fb-594fb0000000", + "x-ms-client-request-id" : "4edda1b9-8d10-46c3-b0d6-507c76da266a" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshotac0blobapitestsnapshotac993981651100f8c67f/javablobsnapshotac1blobapitestsnapshotac99318216d2c7187", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:01 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:43:00 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812DEE26FB8\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:43:01 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51e8505-201e-00c4-5bfb-594fb0000000", + "x-ms-client-request-id" : "2eb4061f-6c2d-4202-97a6-583e11d554aa", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshotac0blobapitestsnapshotac993981651100f8c67f/javablobsnapshotac1blobapitestsnapshotac99318216d2c7187?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-snapshot" : "2019-08-23T21:43:01.0749190Z", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DEE26FB8\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e851b-201e-00c4-6ffb-594fb0000000", + "x-ms-request-server-encrypted" : "false", + "Date" : "Fri, 23 Aug 2019 21:43:00 GMT", + "x-ms-client-request-id" : "db4097bb-ff6b-4879-9ea7-9ebdee044fdd" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsnapshotac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e852b-201e-00c4-7bfb-594fb0000000", + "Body" : "jtcsnapshotacjtcsnapshotac0blobapitestsnapshotac993981651100f8c67fFri, 23 Aug 2019 21:43:00 GMT\"0x8D72812DEDD30F9\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:00 GMT", + "x-ms-client-request-id" : "79145415-2cbf-491b-95b3-ac6d7b706705", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshotac0blobapitestsnapshotac993981651100f8c67f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e8530-201e-00c4-80fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:00 GMT", + "x-ms-client-request-id" : "55d0c6e0-703d-49b7-bc8f-9b91393dcc25" + }, + "Exception" : null + } ], + "variables" : [ "jtcsnapshotac0blobapitestsnapshotac993981651100f8c67f", "javablobsnapshotac1blobapitestsnapshotac99318216d2c7187" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsnapshotac[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsnapshotac[4].json new file mode 100644 index 0000000000000..0b1e8b491bda7 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsnapshotac[4].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshotac0blobapitestsnapshotac4fb51105456b875fda?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DEFF8E6A\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e8551-201e-00c4-1ffb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:00 GMT", + "x-ms-client-request-id" : "63cd8186-eed5-4632-a3f1-54e4147188aa" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshotac0blobapitestsnapshotac4fb51105456b875fda/javablobsnapshotac1blobapitestsnapshotac4fb25035cb659d5", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:01 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:00 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812DF04CD40\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e856b-201e-00c4-34fb-594fb0000000", + "x-ms-client-request-id" : "21fb6799-8b54-4ea5-813a-d2853721d5cb" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshotac0blobapitestsnapshotac4fb51105456b875fda/javablobsnapshotac1blobapitestsnapshotac4fb25035cb659d5?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-snapshot" : "2019-08-23T21:43:01.2711085Z", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DF04CD40\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e857c-201e-00c4-3ffb-594fb0000000", + "x-ms-request-server-encrypted" : "false", + "Date" : "Fri, 23 Aug 2019 21:43:00 GMT", + "x-ms-client-request-id" : "27cc7c78-84fe-4939-86ec-d225eeebd98a" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsnapshotac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e8592-201e-00c4-52fb-594fb0000000", + "Body" : "jtcsnapshotacjtcsnapshotac0blobapitestsnapshotac4fb51105456b875fdaFri, 23 Aug 2019 21:43:01 GMT\"0x8D72812DEFF8E6A\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:00 GMT", + "x-ms-client-request-id" : "409635eb-cf4d-4c81-b772-e711cf0aaac6", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshotac0blobapitestsnapshotac4fb51105456b875fda?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e8596-201e-00c4-55fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:00 GMT", + "x-ms-client-request-id" : "03050b2b-1ad4-4c5c-a00c-dfac85cda7fd" + }, + "Exception" : null + } ], + "variables" : [ "jtcsnapshotac0blobapitestsnapshotac4fb51105456b875fda", "javablobsnapshotac1blobapitestsnapshotac4fb25035cb659d5" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsnapshotac[5].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsnapshotac[5].json new file mode 100644 index 0000000000000..a13b0a38769c9 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsnapshotac[5].json @@ -0,0 +1,129 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshotac0blobapitestsnapshotac5b92095851bdad8e5e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DF193733\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e85a8-201e-00c4-64fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:00 GMT", + "x-ms-client-request-id" : "722236a6-7357-44b2-9496-3445378f2741" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshotac0blobapitestsnapshotac5b92095851bdad8e5e/javablobsnapshotac1blobapitestsnapshotac5b956554184e1d2", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:01 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:00 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812DF1FAEEA\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e85b6-201e-00c4-71fb-594fb0000000", + "x-ms-client-request-id" : "af23c5f0-4efa-4159-befa-6dc031fb9036" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshotac0blobapitestsnapshotac5b92095851bdad8e5e/javablobsnapshotac1blobapitestsnapshotac5b956554184e1d2?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DF1FAEEA\"", + "x-ms-lease-id" : "c62be825-0927-4e5f-af6a-56609c0181f8", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e85c1-201e-00c4-7afb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:00 GMT", + "x-ms-client-request-id" : "880e6e8d-e288-4d71-8de4-3ed9e450c787" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshotac0blobapitestsnapshotac5b92095851bdad8e5e/javablobsnapshotac1blobapitestsnapshotac5b956554184e1d2?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-snapshot" : "2019-08-23T21:43:01.4993285Z", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DF1FAEEA\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e85e1-201e-00c4-16fb-594fb0000000", + "x-ms-request-server-encrypted" : "false", + "Date" : "Fri, 23 Aug 2019 21:43:00 GMT", + "x-ms-client-request-id" : "9f730776-ca14-43c4-98a8-c8a7495a8ec3" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsnapshotac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e85f8-201e-00c4-2afb-594fb0000000", + "Body" : "jtcsnapshotacjtcsnapshotac0blobapitestsnapshotac5b92095851bdad8e5eFri, 23 Aug 2019 21:43:01 GMT\"0x8D72812DF193733\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:00 GMT", + "x-ms-client-request-id" : "10b05664-82a4-4059-ba5d-51d16521fea9", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshotac0blobapitestsnapshotac5b92095851bdad8e5e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e8606-201e-00c4-37fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:00 GMT", + "x-ms-client-request-id" : "4c67fa0f-b944-441a-836f-394d29aad986" + }, + "Exception" : null + } ], + "variables" : [ "jtcsnapshotac0blobapitestsnapshotac5b92095851bdad8e5e", "javablobsnapshotac1blobapitestsnapshotac5b956554184e1d2" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsnapshotacfail[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsnapshotacfail[0].json new file mode 100644 index 0000000000000..b9e08b5102c65 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsnapshotacfail[0].json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshotacfail0blobapitestsnapshotacfail6f299593461ae2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DF3BE2D8\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e8613-201e-00c4-42fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:00 GMT", + "x-ms-client-request-id" : "34e64530-0dd2-4fcc-96e0-ef0ad7c58911" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshotacfail0blobapitestsnapshotacfail6f299593461ae2/javablobsnapshotacfail1blobapitestsnapshotacfail6f281470618", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:01 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:00 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812DF4148F9\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e862a-201e-00c4-54fb-594fb0000000", + "x-ms-client-request-id" : "8c4b96c8-0ab4-47bf-b346-11da9fc058ca" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshotacfail0blobapitestsnapshotacfail6f299593461ae2/javablobsnapshotacfail1blobapitestsnapshotacfail6f281470618?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "d51e8637-201e-00c4-60fb-594fb0000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:d51e8637-201e-00c4-60fb-594fb0000000\nTime:2019-08-23T21:43:01.6671421Z", + "Date" : "Fri, 23 Aug 2019 21:43:00 GMT", + "x-ms-client-request-id" : "1cf1e8aa-60f7-4a1f-b454-76dfd3a5a44e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsnapshotacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e8646-201e-00c4-6dfb-594fb0000000", + "Body" : "jtcsnapshotacfailjtcsnapshotacfail0blobapitestsnapshotacfail6f299593461ae2Fri, 23 Aug 2019 21:43:01 GMT\"0x8D72812DF3BE2D8\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:00 GMT", + "x-ms-client-request-id" : "c43b60ff-37ff-47a4-bcf0-30b2e6475eac", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshotacfail0blobapitestsnapshotacfail6f299593461ae2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e864f-201e-00c4-76fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:00 GMT", + "x-ms-client-request-id" : "5861beb8-326e-4410-aefe-b5130a989252" + }, + "Exception" : null + } ], + "variables" : [ "jtcsnapshotacfail0blobapitestsnapshotacfail6f299593461ae2", "javablobsnapshotacfail1blobapitestsnapshotacfail6f281470618" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsnapshotacfail[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsnapshotacfail[1].json new file mode 100644 index 0000000000000..7b2d24e2fd953 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsnapshotacfail[1].json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshotacfail0blobapitestsnapshotacfail88c73084221979?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DF54A107\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e8663-201e-00c4-08fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:00 GMT", + "x-ms-client-request-id" : "d5472370-2cc7-42b7-bf67-58a7c5529141" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshotacfail0blobapitestsnapshotacfail88c73084221979/javablobsnapshotacfail1blobapitestsnapshotacfail88c14271f42", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:01 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:00 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812DF59E01B\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e866e-201e-00c4-12fb-594fb0000000", + "x-ms-client-request-id" : "1d191348-0235-440c-94ac-c39aeb92455c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshotacfail0blobapitestsnapshotacfail88c73084221979/javablobsnapshotacfail1blobapitestsnapshotacfail88c14271f42?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "d51e867d-201e-00c4-20fb-594fb0000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:d51e867d-201e-00c4-20fb-594fb0000000\nTime:2019-08-23T21:43:01.8282955Z", + "Date" : "Fri, 23 Aug 2019 21:43:00 GMT", + "x-ms-client-request-id" : "bc4e8047-ca87-4e84-942f-cbf980591330", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsnapshotacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e8685-201e-00c4-27fb-594fb0000000", + "Body" : "jtcsnapshotacfailjtcsnapshotacfail0blobapitestsnapshotacfail88c73084221979Fri, 23 Aug 2019 21:43:01 GMT\"0x8D72812DF54A107\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:00 GMT", + "x-ms-client-request-id" : "df333200-db6c-4df3-9dd7-79aadb9300bf", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshotacfail0blobapitestsnapshotacfail88c73084221979?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e868d-201e-00c4-2ffb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:00 GMT", + "x-ms-client-request-id" : "5b8bdaa0-d043-45f6-9c3d-c2d612a0a88e" + }, + "Exception" : null + } ], + "variables" : [ "jtcsnapshotacfail0blobapitestsnapshotacfail88c73084221979", "javablobsnapshotacfail1blobapitestsnapshotacfail88c14271f42" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsnapshotacfail[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsnapshotacfail[2].json new file mode 100644 index 0000000000000..17fd181529688 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsnapshotacfail[2].json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshotacfail0blobapitestsnapshotacfail98d72217713174?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DF6D3811\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e8698-201e-00c4-38fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:00 GMT", + "x-ms-client-request-id" : "2a87223d-2330-4cf0-a35a-4b9661fc0beb" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshotacfail0blobapitestsnapshotacfail98d72217713174/javablobsnapshotacfail1blobapitestsnapshotacfail98d56268ac3", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:01 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:00 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812DF729E55\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e86a7-201e-00c4-44fb-594fb0000000", + "x-ms-client-request-id" : "2504850f-6c97-4f2b-b490-0ba4d7c42864" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshotacfail0blobapitestsnapshotacfail98d72217713174/javablobsnapshotacfail1blobapitestsnapshotacfail98d56268ac3?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "d51e86b3-201e-00c4-50fb-594fb0000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:d51e86b3-201e-00c4-50fb-594fb0000000\nTime:2019-08-23T21:43:01.9864464Z", + "Date" : "Fri, 23 Aug 2019 21:43:00 GMT", + "x-ms-client-request-id" : "24060e21-8356-419f-a0f5-21116629c46a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsnapshotacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e86c2-201e-00c4-5cfb-594fb0000000", + "Body" : "jtcsnapshotacfailjtcsnapshotacfail0blobapitestsnapshotacfail98d72217713174Fri, 23 Aug 2019 21:43:01 GMT\"0x8D72812DF6D3811\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:02 GMT", + "x-ms-client-request-id" : "dfb1e90a-121b-4392-9bd4-9572d5d79274", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshotacfail0blobapitestsnapshotacfail98d72217713174?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e86d4-201e-00c4-69fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:02 GMT", + "x-ms-client-request-id" : "730637f5-eaf6-4256-a35e-29de412eef85" + }, + "Exception" : null + } ], + "variables" : [ "jtcsnapshotacfail0blobapitestsnapshotacfail98d72217713174", "javablobsnapshotacfail1blobapitestsnapshotacfail98d56268ac3" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsnapshotacfail[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsnapshotacfail[3].json new file mode 100644 index 0000000000000..55a3bdfe852ca --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsnapshotacfail[3].json @@ -0,0 +1,138 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshotacfail0blobapitestsnapshotacfaila0605904614787?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DF956356\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e872f-201e-00c4-39fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:02 GMT", + "x-ms-client-request-id" : "9199021a-355f-4263-8e6c-48ce4d48cff7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshotacfail0blobapitestsnapshotacfaila0605904614787/javablobsnapshotacfail1blobapitestsnapshotacfaila0642865aba", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:02 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:02 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812DF9AC9A0\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e8742-201e-00c4-4afb-594fb0000000", + "x-ms-client-request-id" : "4fb81372-5072-479f-a5e5-010fd0b723cb" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshotacfail0blobapitestsnapshotacfaila0605904614787/javablobsnapshotacfail1blobapitestsnapshotacfaila0642865aba", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:02 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:43:02 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812DF9AC9A0\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:43:02 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51e8769-201e-00c4-6dfb-594fb0000000", + "x-ms-client-request-id" : "dbb25117-0ebd-4645-91e8-6ab9df95bbbc", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshotacfail0blobapitestsnapshotacfaila0605904614787/javablobsnapshotacfail1blobapitestsnapshotacfaila0642865aba?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "d51e877e-201e-00c4-7ffb-594fb0000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:d51e877e-201e-00c4-7ffb-594fb0000000\nTime:2019-08-23T21:43:02.3107557Z", + "Date" : "Fri, 23 Aug 2019 21:43:02 GMT", + "x-ms-client-request-id" : "71014be9-d9d4-40bd-b191-6e713273e484", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsnapshotacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e878f-201e-00c4-0dfb-594fb0000000", + "Body" : "jtcsnapshotacfailjtcsnapshotacfail0blobapitestsnapshotacfaila0605904614787Fri, 23 Aug 2019 21:43:02 GMT\"0x8D72812DF956356\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:02 GMT", + "x-ms-client-request-id" : "46344eab-a5cd-4861-8789-0131ef678df0", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshotacfail0blobapitestsnapshotacfaila0605904614787?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e879a-201e-00c4-18fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:02 GMT", + "x-ms-client-request-id" : "5a7833bf-5a1c-4ccc-9d83-3af225757c67" + }, + "Exception" : null + } ], + "variables" : [ "jtcsnapshotacfail0blobapitestsnapshotacfaila0605904614787", "javablobsnapshotacfail1blobapitestsnapshotacfaila0642865aba" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsnapshotacfail[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsnapshotacfail[4].json new file mode 100644 index 0000000000000..0ee5e63f38834 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsnapshotacfail[4].json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshotacfail0blobapitestsnapshotacfail14108510791e59?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DFB6FD46\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e87b0-201e-00c4-2cfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:02 GMT", + "x-ms-client-request-id" : "60caf598-edfc-4945-8a7a-685053c119cc" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshotacfail0blobapitestsnapshotacfail14108510791e59/javablobsnapshotacfail1blobapitestsnapshotacfail14191718369", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:02 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:02 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812DFBCB1D9\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e87cd-201e-00c4-42fb-594fb0000000", + "x-ms-client-request-id" : "63dcfb73-bf58-43a9-9441-aa63ae3b9341" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshotacfail0blobapitestsnapshotacfail14108510791e59/javablobsnapshotacfail1blobapitestsnapshotacfail14191718369?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DFBCB1D9\"", + "x-ms-lease-id" : "d8f07ae2-1e02-4461-9fb4-5d86a39e77c8", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e87de-201e-00c4-52fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:02 GMT", + "x-ms-client-request-id" : "ce15c141-2e96-4b41-b858-7b165d2a8c20" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshotacfail0blobapitestsnapshotacfail14108510791e59/javablobsnapshotacfail1blobapitestsnapshotacfail14191718369?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "LeaseIdMismatchWithBlobOperation", + "retry-after" : "0", + "Content-Length" : "264", + "StatusCode" : "412", + "x-ms-request-id" : "d51e87f1-201e-00c4-64fb-594fb0000000", + "Body" : "LeaseIdMismatchWithBlobOperationThe lease ID specified did not match the lease ID for the blob.\nRequestId:d51e87f1-201e-00c4-64fb-594fb0000000\nTime:2019-08-23T21:43:02.5089451Z", + "Date" : "Fri, 23 Aug 2019 21:43:02 GMT", + "x-ms-client-request-id" : "be16d632-d865-48f4-b4cf-9b993c69bc89", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsnapshotacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e8809-201e-00c4-79fb-594fb0000000", + "Body" : "jtcsnapshotacfailjtcsnapshotacfail0blobapitestsnapshotacfail14108510791e59Fri, 23 Aug 2019 21:43:02 GMT\"0x8D72812DFB6FD46\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:02 GMT", + "x-ms-client-request-id" : "2ad0f235-1149-42f1-a5f4-c6dce47823f3", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshotacfail0blobapitestsnapshotacfail14108510791e59?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e8819-201e-00c4-08fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:02 GMT", + "x-ms-client-request-id" : "51e84a0a-9d65-4687-97b6-3fc4f9908458" + }, + "Exception" : null + } ], + "variables" : [ "jtcsnapshotacfail0blobapitestsnapshotacfail14108510791e59", "javablobsnapshotacfail1blobapitestsnapshotacfail14191718369" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsnapshoterror.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsnapshoterror.json new file mode 100644 index 0000000000000..91f6aad8e2c20 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsnapshoterror.json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshoterror0blobapitestsnapshoterrora9752495c764ac8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DFD53B0D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e8836-201e-00c4-22fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:02 GMT", + "x-ms-client-request-id" : "630bf7e5-042f-4cf4-bfcf-a3e005d05239" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshoterror0blobapitestsnapshoterrora9752495c764ac8/javablobsnapshoterror1blobapitestsnapshoterrora9795806869f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:02 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:02 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812DFDAC885\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e8852-201e-00c4-38fb-594fb0000000", + "x-ms-client-request-id" : "e448758e-0d6d-4051-9fb6-5f490a6457dd" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshoterror0blobapitestsnapshoterrora9752495c764ac8/javablobsnapshoterror2blobapitestsnapshoterrora9775453b5a6?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "BlobNotFound", + "retry-after" : "0", + "Content-Length" : "215", + "StatusCode" : "404", + "x-ms-request-id" : "d51e886e-201e-00c4-51fb-594fb0000000", + "Body" : "BlobNotFoundThe specified blob does not exist.\nRequestId:d51e886e-201e-00c4-51fb-594fb0000000\nTime:2019-08-23T21:43:02.6741020Z", + "Date" : "Fri, 23 Aug 2019 21:43:02 GMT", + "x-ms-client-request-id" : "4282887c-3edd-4dfb-a4f3-407a70b901d0", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsnapshoterror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e8881-201e-00c4-60fb-594fb0000000", + "Body" : "jtcsnapshoterrorjtcsnapshoterror0blobapitestsnapshoterrora9752495c764ac8Fri, 23 Aug 2019 21:43:02 GMT\"0x8D72812DFD53B0D\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:02 GMT", + "x-ms-client-request-id" : "34b1e42c-01c9-41fe-8f05-c32b6b1eef51", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshoterror0blobapitestsnapshoterrora9752495c764ac8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e8895-201e-00c4-71fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:02 GMT", + "x-ms-client-request-id" : "05cd0c96-4394-45e7-9448-eda754916838" + }, + "Exception" : null + } ], + "variables" : [ "jtcsnapshoterror0blobapitestsnapshoterrora9752495c764ac8", "javablobsnapshoterror1blobapitestsnapshoterrora9795806869f", "javablobsnapshoterror2blobapitestsnapshoterrora9775453b5a6" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsnapshotmetadata[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsnapshotmetadata[0].json new file mode 100644 index 0000000000000..47b9c9fc596d5 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsnapshotmetadata[0].json @@ -0,0 +1,138 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshotmetadata0blobapitestsnapshotmetadata2f24987344a4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DE204286\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e824d-201e-00c4-13fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:58 GMT", + "x-ms-client-request-id" : "7671b36e-5a6e-485f-a973-899bdbff1bbb" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshotmetadata0blobapitestsnapshotmetadata2f24987344a4/javablobsnapshotmetadata1blobapitestsnapshotmetadata2f2325570", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:59 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:58 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812DE25A814\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e825d-201e-00c4-21fb-594fb0000000", + "x-ms-client-request-id" : "95a76a28-0ce3-444c-bae7-860867ca8a82" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshotmetadata0blobapitestsnapshotmetadata2f24987344a4/javablobsnapshotmetadata1blobapitestsnapshotmetadata2f2325570?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-snapshot" : "2019-08-23T21:42:59.8097041Z", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DE25A814\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e826d-201e-00c4-30fb-594fb0000000", + "x-ms-request-server-encrypted" : "false", + "Date" : "Fri, 23 Aug 2019 21:42:58 GMT", + "x-ms-client-request-id" : "ab7bb168-5a79-4d8c-993c-7d3c5169d508" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshotmetadata0blobapitestsnapshotmetadata2f24987344a4/javablobsnapshotmetadata1blobapitestsnapshotmetadata2f2325570?snapshot=2019-08-23T21%3a42%3a59.8097041Z", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:59 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:58 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-snapshot" : "2019-08-23T21:42:59.8097041Z", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812DE25A814\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:59 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51e827d-201e-00c4-3efb-594fb0000000", + "x-ms-client-request-id" : "a6cb5823-01dc-4e4b-b806-44d36642a2d9", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsnapshotmetadata&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e8295-201e-00c4-53fb-594fb0000000", + "Body" : "jtcsnapshotmetadatajtcsnapshotmetadata0blobapitestsnapshotmetadata2f24987344a4Fri, 23 Aug 2019 21:42:59 GMT\"0x8D72812DE204286\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:58 GMT", + "x-ms-client-request-id" : "76f769c0-1e2a-4e56-8c3b-a374c70caf13", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshotmetadata0blobapitestsnapshotmetadata2f24987344a4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e82a2-201e-00c4-5dfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:58 GMT", + "x-ms-client-request-id" : "a3f1e918-f83f-4c41-9eb5-00753235b8d1" + }, + "Exception" : null + } ], + "variables" : [ "jtcsnapshotmetadata0blobapitestsnapshotmetadata2f24987344a4", "javablobsnapshotmetadata1blobapitestsnapshotmetadata2f2325570" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsnapshotmetadata[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsnapshotmetadata[1].json new file mode 100644 index 0000000000000..a304fdc0f2263 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsnapshotmetadata[1].json @@ -0,0 +1,140 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshotmetadata0blobapitestsnapshotmetadata695774381e58?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DE3E3219\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e82aa-201e-00c4-64fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:58 GMT", + "x-ms-client-request-id" : "f6bd0c25-b87e-406b-be00-3faf28dd00ca" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshotmetadata0blobapitestsnapshotmetadata695774381e58/javablobsnapshotmetadata1blobapitestsnapshotmetadata69579876d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:42:59 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:58 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812DE4397A9\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51e82c0-201e-00c4-74fb-594fb0000000", + "x-ms-client-request-id" : "c022c6f6-fe95-4af7-99c6-e1f7c70a81a2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshotmetadata0blobapitestsnapshotmetadata695774381e58/javablobsnapshotmetadata1blobapitestsnapshotmetadata69579876d?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-snapshot" : "2019-08-23T21:43:00.0048912Z", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812DE48C910\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51e82d2-201e-00c4-01fb-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:42:59 GMT", + "x-ms-client-request-id" : "e401a26a-7172-47bf-abf2-3ec674dc5ea9" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshotmetadata0blobapitestsnapshotmetadata695774381e58/javablobsnapshotmetadata1blobapitestsnapshotmetadata69579876d?snapshot=2019-08-23T21%3a43%3a00.0048912Z", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:00 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:42:59 GMT", + "x-ms-meta-foo" : "bar", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-snapshot" : "2019-08-23T21:43:00.0048912Z", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812DE48C910\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:42:59 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51e82e2-201e-00c4-0efb-594fb0000000", + "x-ms-meta-fizz" : "buzz", + "x-ms-client-request-id" : "ebe5dad6-1962-4400-9321-bd09eb94b614", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsnapshotmetadata&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51e82f5-201e-00c4-20fb-594fb0000000", + "Body" : "jtcsnapshotmetadatajtcsnapshotmetadata0blobapitestsnapshotmetadata695774381e58Fri, 23 Aug 2019 21:42:59 GMT\"0x8D72812DE3E3219\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:42:59 GMT", + "x-ms-client-request-id" : "c542be16-f2ee-4820-a9ff-df20527df9c6", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshotmetadata0blobapitestsnapshotmetadata695774381e58?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51e830a-201e-00c4-31fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:42:59 GMT", + "x-ms-client-request-id" : "c90cfaab-1d78-4cf1-b6ca-2dd53d9ff47e" + }, + "Exception" : null + } ], + "variables" : [ "jtcsnapshotmetadata0blobapitestsnapshotmetadata695774381e58", "javablobsnapshotmetadata1blobapitestsnapshotmetadata69579876d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsnapshotmin.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsnapshotmin.json new file mode 100644 index 0000000000000..ae62b37283358 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsnapshotmin.json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshotmin0blobapitestsnapshotminaa696761771d3a006?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7274039EE2189\"", + "Last-Modified" : "Thu, 22 Aug 2019 20:35:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25b246a2-f01e-012c-4229-59f41e000000", + "Date" : "Thu, 22 Aug 2019 20:35:09 GMT", + "x-ms-client-request-id" : "3aa1df2f-7795-4925-8b5d-b75046e5258e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshotmin0blobapitestsnapshotminaa696761771d3a006/javablobsnapshotmin1blobapitestsnapshotminaa617559a367db", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Thu, 22 Aug 2019 20:35:09 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Thu, 22 Aug 2019 20:35:09 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D7274039F46B09\"", + "Content-Length" : "0", + "x-ms-request-id" : "25b246ea-f01e-012c-0629-59f41e000000", + "x-ms-client-request-id" : "f8e59c2b-ce4c-48f9-868f-289ef08b5e22" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshotmin0blobapitestsnapshotminaa696761771d3a006/javablobsnapshotmin1blobapitestsnapshotminaa617559a367db?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-snapshot" : "2019-08-22T20:35:10.0564843Z", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7274039F46B09\"", + "Last-Modified" : "Thu, 22 Aug 2019 20:35:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25b24760-f01e-012c-7529-59f41e000000", + "x-ms-request-server-encrypted" : "false", + "Date" : "Thu, 22 Aug 2019 20:35:09 GMT", + "x-ms-client-request-id" : "f67f3a12-978b-4f85-bfa8-8aa5c6d43c00" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsnapshotmin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "25b247a3-f01e-012c-3429-59f41e000000", + "Body" : "jtcsnapshotminjtcsnapshotmin0blobapitestsnapshotminaa696761771d3a006Thu, 22 Aug 2019 20:35:09 GMT\"0x8D7274039EE2189\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Thu, 22 Aug 2019 20:35:09 GMT", + "x-ms-client-request-id" : "d40323ea-6729-4ded-95da-08637c44a2a1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsnapshotmin0blobapitestsnapshotminaa696761771d3a006?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "25b247cc-f01e-012c-5c29-59f41e000000", + "Date" : "Thu, 22 Aug 2019 20:35:09 GMT", + "x-ms-client-request-id" : "85570c32-fc9c-4909-b8f8-7ef462d9dc2c" + }, + "Exception" : null + } ], + "variables" : [ "jtcsnapshotmin0blobapitestsnapshotminaa696761771d3a006", "javablobsnapshotmin1blobapitestsnapshotminaa617559a367db" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopy.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopy.json new file mode 100644 index 0000000000000..6d6d473a5ff86 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopy.json @@ -0,0 +1,130 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopy0blobapitestsynccopy6e9865329f5352261584?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E6C36270\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51ea15c-201e-00c4-31fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:14 GMT", + "x-ms-client-request-id" : "0c399cb6-05f5-46f2-93b3-aecca85f20b0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopy0blobapitestsynccopy6e9865329f5352261584/javablobsynccopy1blobapitestsynccopy6e9763764652c34d8", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:14 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:14 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E6C87D31\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51ea17d-201e-00c4-48fb-594fb0000000", + "x-ms-client-request-id" : "48d6d963-fd15-44b4-98a5-15487b1f6a83" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopy0blobapitestsynccopy6e9865329f5352261584?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E6CD4084\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51ea194-201e-00c4-5bfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:14 GMT", + "x-ms-client-request-id" : "abe9cd8e-a711-4ba8-b7d1-6b86a8bed776" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopy0blobapitestsynccopy6e9865329f5352261584/javablobsynccopy2blobapitestsynccopy6e961801aa88707e4", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-copy-id" : "47b9ed5d-0291-4c52-ac2d-609c76165a0d", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:14 GMT", + "retry-after" : "0", + "StatusCode" : "202", + "Date" : "Fri, 23 Aug 2019 21:43:14 GMT", + "ETag" : "\"0x8D72812E6E34E4D\"", + "Content-Length" : "0", + "x-ms-copy-status" : "success", + "x-ms-request-id" : "d51ea1a8-201e-00c4-6afb-594fb0000000", + "x-ms-client-request-id" : "a74fb15a-4c23-4bda-a784-c42550d4e81a" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsynccopy&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51ea1da-201e-00c4-14fb-594fb0000000", + "Body" : "jtcsynccopyjtcsynccopy0blobapitestsynccopy6e9865329f5352261584Fri, 23 Aug 2019 21:43:14 GMT\"0x8D72812E6CD4084\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:14 GMT", + "x-ms-client-request-id" : "78d1c9f7-1a81-466b-8f04-83c3c40b46da", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopy0blobapitestsynccopy6e9865329f5352261584?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51ea1ea-201e-00c4-1ffb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:14 GMT", + "x-ms-client-request-id" : "ff84ebc3-04de-4788-8bd6-f3d5c3383a3f" + }, + "Exception" : null + } ], + "variables" : [ "jtcsynccopy0blobapitestsynccopy6e9865329f5352261584", "javablobsynccopy1blobapitestsynccopy6e9763764652c34d8", "javablobsynccopy2blobapitestsynccopy6e961801aa88707e4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopydestac[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopydestac[0].json new file mode 100644 index 0000000000000..95aeacd2505f6 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopydestac[0].json @@ -0,0 +1,154 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestac0blobapitestsynccopydestac2f585030c34a3e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E8CD1F5C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51ea7c6-201e-00c4-18fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:17 GMT", + "x-ms-client-request-id" : "c1d4f9c1-dd2e-49b8-9f7c-dc1e23ff404f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestac0blobapitestsynccopydestac2f585030c34a3e/javablobsynccopydestac1blobapitestsynccopydestac2f553105096", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:17 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:17 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E8F75822\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51ea843-201e-00c4-01fb-594fb0000000", + "x-ms-client-request-id" : "6e4c9877-99fc-4463-9573-32ba0a6c67c7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestac0blobapitestsynccopydestac2f585030c34a3e?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E8FBC999\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51ea84f-201e-00c4-0bfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:17 GMT", + "x-ms-client-request-id" : "52a33089-1e93-43cb-8499-d1159b16a276" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestac0blobapitestsynccopydestac2f585030c34a3e/javablobsynccopydestac2blobapitestsynccopydestac2f540618eb9", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:17 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:17 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E900F771\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51ea85d-201e-00c4-19fb-594fb0000000", + "x-ms-client-request-id" : "69397928-1a23-47b6-9202-5b2345e14258" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestac0blobapitestsynccopydestac2f585030c34a3e/javablobsynccopydestac2blobapitestsynccopydestac2f540618eb9", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-copy-id" : "1a159bf6-0058-457a-a9a3-5d5e097eef64", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:18 GMT", + "retry-after" : "0", + "StatusCode" : "202", + "Date" : "Fri, 23 Aug 2019 21:43:18 GMT", + "ETag" : "\"0x8D72812E908B03E\"", + "Content-Length" : "0", + "x-ms-copy-status" : "success", + "x-ms-request-id" : "d51ea871-201e-00c4-2afb-594fb0000000", + "x-ms-client-request-id" : "8655be17-09e2-451d-ada2-28992606f35a" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsynccopydestac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51ea881-201e-00c4-3afb-594fb0000000", + "Body" : "jtcsynccopydestacjtcsynccopydestac0blobapitestsynccopydestac2f585030c34a3eFri, 23 Aug 2019 21:43:17 GMT\"0x8D72812E8FBC999\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:18 GMT", + "x-ms-client-request-id" : "cfa6e2f6-56ea-42e4-b3bf-ec2a86401fa1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestac0blobapitestsynccopydestac2f585030c34a3e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51ea891-201e-00c4-46fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:18 GMT", + "x-ms-client-request-id" : "1f490b0a-ff09-411f-9043-841454dd4cd9" + }, + "Exception" : null + } ], + "variables" : [ "jtcsynccopydestac0blobapitestsynccopydestac2f585030c34a3e", "javablobsynccopydestac1blobapitestsynccopydestac2f553105096", "javablobsynccopydestac2blobapitestsynccopydestac2f540618eb9" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopydestac[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopydestac[1].json new file mode 100644 index 0000000000000..04526e45c5149 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopydestac[1].json @@ -0,0 +1,154 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestac0blobapitestsynccopydestac1fe111129e767b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E919561C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51ea8a1-201e-00c4-53fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:18 GMT", + "x-ms-client-request-id" : "21aa6d3e-2bf9-4087-8ba4-ed34030f0c69" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestac0blobapitestsynccopydestac1fe111129e767b/javablobsynccopydestac1blobapitestsynccopydestac1fe37821e35", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:18 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:18 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E91E98D4\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51ea8a9-201e-00c4-5afb-594fb0000000", + "x-ms-client-request-id" : "0005ca71-2b67-44e7-a713-0edf5712fa8d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestac0blobapitestsynccopydestac1fe111129e767b?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E9235837\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51ea8b8-201e-00c4-69fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:18 GMT", + "x-ms-client-request-id" : "13da7d42-71d1-42c6-97fb-6c586cdba2f1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestac0blobapitestsynccopydestac1fe111129e767b/javablobsynccopydestac2blobapitestsynccopydestac1fe93917d40", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:18 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:18 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E948C080\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51ea92d-201e-00c4-4ffb-594fb0000000", + "x-ms-client-request-id" : "c4a0953a-64cd-4f28-9d76-5bbd7251e6cc" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestac0blobapitestsynccopydestac1fe111129e767b/javablobsynccopydestac2blobapitestsynccopydestac1fe93917d40", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-copy-id" : "efdf961d-3f4f-4105-9eb0-5742b793b3db", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:18 GMT", + "retry-after" : "0", + "StatusCode" : "202", + "Date" : "Fri, 23 Aug 2019 21:43:18 GMT", + "ETag" : "\"0x8D72812E95DE9ED\"", + "Content-Length" : "0", + "x-ms-copy-status" : "success", + "x-ms-request-id" : "d51ea93b-201e-00c4-5cfb-594fb0000000", + "x-ms-client-request-id" : "dd9987b1-8643-4a03-9afd-dc8fd14228b7" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsynccopydestac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51ea98e-201e-00c4-1afb-594fb0000000", + "Body" : "jtcsynccopydestacjtcsynccopydestac0blobapitestsynccopydestac1fe111129e767bFri, 23 Aug 2019 21:43:18 GMT\"0x8D72812E9235837\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:18 GMT", + "x-ms-client-request-id" : "8264b4b5-be97-485c-acf4-4fb84e9f7a5d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestac0blobapitestsynccopydestac1fe111129e767b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51ea9a8-201e-00c4-2dfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:18 GMT", + "x-ms-client-request-id" : "901e7a91-322c-409b-9f32-de29e5aa4369" + }, + "Exception" : null + } ], + "variables" : [ "jtcsynccopydestac0blobapitestsynccopydestac1fe111129e767b", "javablobsynccopydestac1blobapitestsynccopydestac1fe37821e35", "javablobsynccopydestac2blobapitestsynccopydestac1fe93917d40" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopydestac[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopydestac[2].json new file mode 100644 index 0000000000000..0f78b970416e1 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopydestac[2].json @@ -0,0 +1,154 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestac0blobapitestsynccopydestac43d44709a120bc?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E96D08D0\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51ea9c4-201e-00c4-44fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:18 GMT", + "x-ms-client-request-id" : "6680ddd5-ca71-45c6-ba50-c05f22820fc4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestac0blobapitestsynccopydestac43d44709a120bc/javablobsynccopydestac1blobapitestsynccopydestac43d78178cbb", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:18 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:18 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E97299DA\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51ea9df-201e-00c4-5cfb-594fb0000000", + "x-ms-client-request-id" : "b0c94bc7-017b-4732-a5c7-1c738f31b7fc" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestac0blobapitestsynccopydestac43d44709a120bc?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E977CDFA\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51ea9f6-201e-00c4-71fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:18 GMT", + "x-ms-client-request-id" : "39b383f7-9bf3-4815-ba3f-530d92689d7a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestac0blobapitestsynccopydestac43d44709a120bc/javablobsynccopydestac2blobapitestsynccopydestac43d1543984b", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:18 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:18 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E97CAE6A\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51eaa04-201e-00c4-7efb-594fb0000000", + "x-ms-client-request-id" : "53b225f9-c78a-4fb5-8f1f-01ab7382f6ee" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestac0blobapitestsynccopydestac43d44709a120bc/javablobsynccopydestac2blobapitestsynccopydestac43d1543984b", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-copy-id" : "fa564b01-2b21-48f7-bb07-48152ffad908", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:18 GMT", + "retry-after" : "0", + "StatusCode" : "202", + "Date" : "Fri, 23 Aug 2019 21:43:18 GMT", + "ETag" : "\"0x8D72812E9848E33\"", + "Content-Length" : "0", + "x-ms-copy-status" : "success", + "x-ms-request-id" : "d51eaa1d-201e-00c4-16fb-594fb0000000", + "x-ms-client-request-id" : "d09e7482-b118-40d1-853b-8fa219bd2080" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsynccopydestac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51eaa40-201e-00c4-35fb-594fb0000000", + "Body" : "jtcsynccopydestacjtcsynccopydestac0blobapitestsynccopydestac43d44709a120bcFri, 23 Aug 2019 21:43:18 GMT\"0x8D72812E977CDFA\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:18 GMT", + "x-ms-client-request-id" : "8cc6378a-4c94-45a9-ba85-72d4f5a9f2a0", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestac0blobapitestsynccopydestac43d44709a120bc?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51eaa55-201e-00c4-49fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:18 GMT", + "x-ms-client-request-id" : "fe515e2b-04e5-4024-b627-af50fbf8ada2" + }, + "Exception" : null + } ], + "variables" : [ "jtcsynccopydestac0blobapitestsynccopydestac43d44709a120bc", "javablobsynccopydestac1blobapitestsynccopydestac43d78178cbb", "javablobsynccopydestac2blobapitestsynccopydestac43d1543984b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopydestac[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopydestac[3].json new file mode 100644 index 0000000000000..64c4b9d267536 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopydestac[3].json @@ -0,0 +1,185 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestac0blobapitestsynccopydestac0b07136318fffd?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E9950CF0\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51eaa69-201e-00c4-57fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:18 GMT", + "x-ms-client-request-id" : "25532225-d0a6-4b24-8b3d-0e8720fa083e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestac0blobapitestsynccopydestac0b07136318fffd/javablobsynccopydestac1blobapitestsynccopydestac0b051708913", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:18 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:18 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E99A9E09\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51eaa74-201e-00c4-60fb-594fb0000000", + "x-ms-client-request-id" : "035ecbdd-7f62-4294-bf2f-5ac8e9678e40" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestac0blobapitestsynccopydestac0b07136318fffd?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E9A0956B\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:19 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51eaa8e-201e-00c4-7afb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:19 GMT", + "x-ms-client-request-id" : "e8784bdc-7785-4ca6-8c35-16d0153e90a9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestac0blobapitestsynccopydestac0b07136318fffd/javablobsynccopydestac2blobapitestsynccopydestac0b028095e1b", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:19 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:19 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E9B09C74\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51eaad2-201e-00c4-33fb-594fb0000000", + "x-ms-client-request-id" : "1ece4ba3-d86a-4a9a-ac4c-ee1b910bbd5b" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestac0blobapitestsynccopydestac0b07136318fffd/javablobsynccopydestac2blobapitestsynccopydestac0b028095e1b", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:19 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:43:19 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812E9B09C74\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:43:19 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51eaaec-201e-00c4-46fb-594fb0000000", + "x-ms-client-request-id" : "4a658f43-84ea-4521-a260-3bdac37169e3", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestac0blobapitestsynccopydestac0b07136318fffd/javablobsynccopydestac2blobapitestsynccopydestac0b028095e1b", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-copy-id" : "951f39cc-e3b7-41ac-8a4b-f51ec9b062e7", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:19 GMT", + "retry-after" : "0", + "StatusCode" : "202", + "Date" : "Fri, 23 Aug 2019 21:43:19 GMT", + "ETag" : "\"0x8D72812E9BD8665\"", + "Content-Length" : "0", + "x-ms-copy-status" : "success", + "x-ms-request-id" : "d51eaaff-201e-00c4-57fb-594fb0000000", + "x-ms-client-request-id" : "f3260f0b-45ba-41af-be30-f88e0ba421d9" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsynccopydestac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51eab22-201e-00c4-74fb-594fb0000000", + "Body" : "jtcsynccopydestacjtcsynccopydestac0blobapitestsynccopydestac0b07136318fffdFri, 23 Aug 2019 21:43:19 GMT\"0x8D72812E9A0956B\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:19 GMT", + "x-ms-client-request-id" : "aa104e52-f014-4545-8d64-9dab5a17aa73", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestac0blobapitestsynccopydestac0b07136318fffd?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51eab2e-201e-00c4-7ffb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:19 GMT", + "x-ms-client-request-id" : "3ff61436-5085-401b-992b-d6d3a1f921e0" + }, + "Exception" : null + } ], + "variables" : [ "jtcsynccopydestac0blobapitestsynccopydestac0b07136318fffd", "javablobsynccopydestac1blobapitestsynccopydestac0b051708913", "javablobsynccopydestac2blobapitestsynccopydestac0b028095e1b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopydestac[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopydestac[4].json new file mode 100644 index 0000000000000..a376e7201a4d3 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopydestac[4].json @@ -0,0 +1,154 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestac0blobapitestsynccopydestacf9d49945189752?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E9CF3DF8\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:19 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51eab54-201e-00c4-1dfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:19 GMT", + "x-ms-client-request-id" : "19c67000-ca23-4188-8349-89a71970eefe" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestac0blobapitestsynccopydestacf9d49945189752/javablobsynccopydestac1blobapitestsynccopydestacf9d96821b2e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:19 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:19 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E9D62F0A\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51eab75-201e-00c4-3afb-594fb0000000", + "x-ms-client-request-id" : "8ba286c3-4412-407c-961d-6f44e3053c3d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestac0blobapitestsynccopydestacf9d49945189752?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E9DB1459\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:19 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51eab8e-201e-00c4-4cfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:19 GMT", + "x-ms-client-request-id" : "e47f53b4-4fa9-45ec-80ef-1c182571ad24" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestac0blobapitestsynccopydestacf9d49945189752/javablobsynccopydestac2blobapitestsynccopydestacf9d41744160", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:19 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:19 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E9EEED46\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51eabc4-201e-00c4-7bfb-594fb0000000", + "x-ms-client-request-id" : "30b4c81c-7755-478e-a436-f01a15cd3b81" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestac0blobapitestsynccopydestacf9d49945189752/javablobsynccopydestac2blobapitestsynccopydestacf9d41744160", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-copy-id" : "d3ea36ac-427b-4c19-8cb6-3074ce826772", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:19 GMT", + "retry-after" : "0", + "StatusCode" : "202", + "Date" : "Fri, 23 Aug 2019 21:43:19 GMT", + "ETag" : "\"0x8D72812EA0B9265\"", + "Content-Length" : "0", + "x-ms-copy-status" : "success", + "x-ms-request-id" : "d51eabd1-201e-00c4-08fb-594fb0000000", + "x-ms-client-request-id" : "2d67cffc-0e8a-4167-ae80-e9bf218f9d0d" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsynccopydestac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51eac31-201e-00c4-5efb-594fb0000000", + "Body" : "jtcsynccopydestacjtcsynccopydestac0blobapitestsynccopydestacf9d49945189752Fri, 23 Aug 2019 21:43:19 GMT\"0x8D72812E9DB1459\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:19 GMT", + "x-ms-client-request-id" : "73f5c9df-ad98-4698-bf5a-f583a5b3d282", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestac0blobapitestsynccopydestacf9d49945189752?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51eac4a-201e-00c4-71fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:19 GMT", + "x-ms-client-request-id" : "f66472c5-ef7b-44b6-afff-48119fcc24cf" + }, + "Exception" : null + } ], + "variables" : [ "jtcsynccopydestac0blobapitestsynccopydestacf9d49945189752", "javablobsynccopydestac1blobapitestsynccopydestacf9d96821b2e", "javablobsynccopydestac2blobapitestsynccopydestacf9d41744160" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopydestac[5].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopydestac[5].json new file mode 100644 index 0000000000000..57a66c7f2831f --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopydestac[5].json @@ -0,0 +1,175 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestac0blobapitestsynccopydestacd421393168e207?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812EA1AFF77\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:19 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51eac5c-201e-00c4-03fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:19 GMT", + "x-ms-client-request-id" : "6c948cd9-dab3-4917-8823-0baacd2744d3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestac0blobapitestsynccopydestacd421393168e207/javablobsynccopydestac1blobapitestsynccopydestacd4256928240", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:19 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:19 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812EA21A276\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51eac74-201e-00c4-17fb-594fb0000000", + "x-ms-client-request-id" : "ae0644be-e6b0-48e0-8ec4-c2e576af36ad" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestac0blobapitestsynccopydestacd421393168e207?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812EA268742\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:19 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51eac8a-201e-00c4-2afb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:19 GMT", + "x-ms-client-request-id" : "68cde8a2-ee8c-4718-ac1b-efede2a64a95" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestac0blobapitestsynccopydestacd421393168e207/javablobsynccopydestac2blobapitestsynccopydestacd4264544e67", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:19 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:19 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812EA2B8FEF\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51eac9d-201e-00c4-3dfb-594fb0000000", + "x-ms-client-request-id" : "7cb79df1-046d-4106-b696-73b050224142" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestac0blobapitestsynccopydestacd421393168e207/javablobsynccopydestac2blobapitestsynccopydestacd4264544e67?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812EA2B8FEF\"", + "x-ms-lease-id" : "fd5aea77-d5a0-4e7c-ba36-604577b7dec6", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:19 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51eacb9-201e-00c4-56fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:19 GMT", + "x-ms-client-request-id" : "ba851a96-1204-411a-8aa8-ba7d3e2d01a2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestac0blobapitestsynccopydestacd421393168e207/javablobsynccopydestac2blobapitestsynccopydestacd4264544e67", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-copy-id" : "75f3e509-648e-4641-a646-23eafb93a633", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:20 GMT", + "retry-after" : "0", + "StatusCode" : "202", + "Date" : "Fri, 23 Aug 2019 21:43:20 GMT", + "ETag" : "\"0x8D72812EA38A0D3\"", + "Content-Length" : "0", + "x-ms-copy-status" : "success", + "x-ms-request-id" : "d51eacd3-201e-00c4-6dfb-594fb0000000", + "x-ms-client-request-id" : "cf9f906c-412d-4a1e-a56c-bbefd1a8bb59" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsynccopydestac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51eacf0-201e-00c4-04fb-594fb0000000", + "Body" : "jtcsynccopydestacjtcsynccopydestac0blobapitestsynccopydestacd421393168e207Fri, 23 Aug 2019 21:43:19 GMT\"0x8D72812EA268742\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:20 GMT", + "x-ms-client-request-id" : "8d9ef702-8a47-4ad6-b60d-141aac1e4495", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestac0blobapitestsynccopydestacd421393168e207?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51ead0c-201e-00c4-1ffb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:20 GMT", + "x-ms-client-request-id" : "46d0eec6-674e-44e1-820f-22e5985d7d45" + }, + "Exception" : null + } ], + "variables" : [ "jtcsynccopydestac0blobapitestsynccopydestacd421393168e207", "javablobsynccopydestac1blobapitestsynccopydestacd4256928240", "javablobsynccopydestac2blobapitestsynccopydestacd4264544e67" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopydestacfail[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopydestacfail[0].json new file mode 100644 index 0000000000000..5375606faddbe --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopydestacfail[0].json @@ -0,0 +1,152 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestacfail0blobapitestsynccopydestacfailee798377b1?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812EA488334\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51ead1f-201e-00c4-2efb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:20 GMT", + "x-ms-client-request-id" : "64d3b5ce-d252-45a0-8cd1-afadf433c9eb" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestacfail0blobapitestsynccopydestacfailee798377b1/javablobsynccopydestacfail101824fd066ed06d8c45d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:20 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:20 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812EA4DC65B\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51ead2b-201e-00c4-37fb-594fb0000000", + "x-ms-client-request-id" : "173e7299-26b3-4854-9162-49fb0ae3c84b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestacfail0blobapitestsynccopydestacfailee798377b1?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812EA525CA6\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51ead31-201e-00c4-3dfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:20 GMT", + "x-ms-client-request-id" : "26323e57-b750-4f3a-b42e-5c09cbdbcc30" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestacfail0blobapitestsynccopydestacfailee798377b1/javablobsynccopydestacfail283963738964b2eb094fb", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:20 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:20 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812EA573E93\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51ead42-201e-00c4-4cfb-594fb0000000", + "x-ms-client-request-id" : "c8868368-3265-4252-9e74-1c38e5ce4b9a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestacfail0blobapitestsynccopydestacfailee798377b1/javablobsynccopydestacfail283963738964b2eb094fb", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "d51ead50-201e-00c4-57fb-594fb0000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:d51ead50-201e-00c4-57fb-594fb0000000\nTime:2019-08-23T21:43:20.4140274Z", + "Date" : "Fri, 23 Aug 2019 21:43:20 GMT", + "x-ms-client-request-id" : "782f9762-b754-4265-a5a5-87e45b56f1a4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsynccopydestacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51eadae-201e-00c4-2afb-594fb0000000", + "Body" : "jtcsynccopydestacfailjtcsynccopydestacfail0blobapitestsynccopydestacfailee798377b1Fri, 23 Aug 2019 21:43:20 GMT\"0x8D72812EA525CA6\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:20 GMT", + "x-ms-client-request-id" : "d89af49d-f11a-4ed6-a308-9f8190e1f799", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestacfail0blobapitestsynccopydestacfailee798377b1?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51eadb6-201e-00c4-31fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:20 GMT", + "x-ms-client-request-id" : "74601c77-340c-4d79-b537-edb029bf43b1" + }, + "Exception" : null + } ], + "variables" : [ "jtcsynccopydestacfail0blobapitestsynccopydestacfailee798377b1", "javablobsynccopydestacfail101824fd066ed06d8c45d", "javablobsynccopydestacfail283963738964b2eb094fb" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopydestacfail[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopydestacfail[1].json new file mode 100644 index 0000000000000..d1f1a91e4fa39 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopydestacfail[1].json @@ -0,0 +1,152 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestacfail0blobapitestsynccopydestacfail549663498b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812EA81C9A2\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51eadcf-201e-00c4-47fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:20 GMT", + "x-ms-client-request-id" : "4d3c95fd-d380-4623-bfd9-46e903d46eb1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestacfail0blobapitestsynccopydestacfail549663498b/javablobsynccopydestacfail1508559f8389f44ac349c", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:20 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:20 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812EA8845A6\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51eade7-201e-00c4-5cfb-594fb0000000", + "x-ms-client-request-id" : "02a965e4-0ab4-45a2-99bf-ed2cbcf79b13" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestacfail0blobapitestsynccopydestacfail549663498b?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812EA8CDB93\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51eadfa-201e-00c4-6dfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:20 GMT", + "x-ms-client-request-id" : "89467be6-848c-4db0-bb1c-bfdf44b11977" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestacfail0blobapitestsynccopydestacfail549663498b/javablobsynccopydestacfail230793839fb6a92e9f428", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:20 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:20 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812EA91BDEC\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51eae0a-201e-00c4-7cfb-594fb0000000", + "x-ms-client-request-id" : "25f38551-bd93-4242-8771-79b655fc2366" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestacfail0blobapitestsynccopydestacfail549663498b/javablobsynccopydestacfail230793839fb6a92e9f428", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "d51eae19-201e-00c4-08fb-594fb0000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:d51eae19-201e-00c4-08fb-594fb0000000\nTime:2019-08-23T21:43:20.6722737Z", + "Date" : "Fri, 23 Aug 2019 21:43:20 GMT", + "x-ms-client-request-id" : "0ef9439c-6ad7-4a13-965a-c9798a5dfc0f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsynccopydestacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51eae2b-201e-00c4-1afb-594fb0000000", + "Body" : "jtcsynccopydestacfailjtcsynccopydestacfail0blobapitestsynccopydestacfail549663498bFri, 23 Aug 2019 21:43:20 GMT\"0x8D72812EA8CDB93\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:20 GMT", + "x-ms-client-request-id" : "91197094-daf2-44a4-9822-fae884ae3db7", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestacfail0blobapitestsynccopydestacfail549663498b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51eae41-201e-00c4-2efb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:20 GMT", + "x-ms-client-request-id" : "b3dbeebc-8413-4a3a-a3e3-9f3622f2d07b" + }, + "Exception" : null + } ], + "variables" : [ "jtcsynccopydestacfail0blobapitestsynccopydestacfail549663498b", "javablobsynccopydestacfail1508559f8389f44ac349c", "javablobsynccopydestacfail230793839fb6a92e9f428" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopydestacfail[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopydestacfail[2].json new file mode 100644 index 0000000000000..c84e4b6899b11 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopydestacfail[2].json @@ -0,0 +1,152 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestacfail0blobapitestsynccopydestacfail21b9076157?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812EAAA9145\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51eae6a-201e-00c4-50fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:20 GMT", + "x-ms-client-request-id" : "c14044c4-c908-4b27-a499-b3d00e899708" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestacfail0blobapitestsynccopydestacfail21b9076157/javablobsynccopydestacfail174206cce719156e404cb", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:20 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:20 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812EABB9745\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51eaeb8-201e-00c4-0ffb-594fb0000000", + "x-ms-client-request-id" : "c334258d-f298-462c-8d60-8a98bc76f405" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestacfail0blobapitestsynccopydestacfail21b9076157?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812EAC053F3\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51eaec5-201e-00c4-1cfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:20 GMT", + "x-ms-client-request-id" : "271c65cc-e5d4-4131-9efb-d5472f3ae127" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestacfail0blobapitestsynccopydestacfail21b9076157/javablobsynccopydestacfail201925dfc12db8cc8d4df", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:20 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:20 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812EAC5ABE0\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51eaed7-201e-00c4-2dfb-594fb0000000", + "x-ms-client-request-id" : "e7e91e2e-8d18-4eef-a838-dd9a06055ec6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestacfail0blobapitestsynccopydestacfail21b9076157/javablobsynccopydestacfail201925dfc12db8cc8d4df", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "TargetConditionNotMet", + "retry-after" : "0", + "Content-Length" : "265", + "StatusCode" : "412", + "x-ms-request-id" : "d51eaeeb-201e-00c4-40fb-594fb0000000", + "Body" : "TargetConditionNotMetThe target condition specified using HTTP conditional header(s) is not met.\nRequestId:d51eaeeb-201e-00c4-40fb-594fb0000000\nTime:2019-08-23T21:43:20.9855727Z", + "Date" : "Fri, 23 Aug 2019 21:43:20 GMT", + "x-ms-client-request-id" : "dd862e08-bc7b-40b4-a9c7-7b4b962799ab", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsynccopydestacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51eaefe-201e-00c4-50fb-594fb0000000", + "Body" : "jtcsynccopydestacfailjtcsynccopydestacfail0blobapitestsynccopydestacfail21b9076157Fri, 23 Aug 2019 21:43:20 GMT\"0x8D72812EAC053F3\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:20 GMT", + "x-ms-client-request-id" : "c87c510d-66fa-4fb3-b2a5-be81982ce9ca", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestacfail0blobapitestsynccopydestacfail21b9076157?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51eaf08-201e-00c4-59fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:21 GMT", + "x-ms-client-request-id" : "c793917c-e937-4029-90db-4e64976e3749" + }, + "Exception" : null + } ], + "variables" : [ "jtcsynccopydestacfail0blobapitestsynccopydestacfail21b9076157", "javablobsynccopydestacfail174206cce719156e404cb", "javablobsynccopydestacfail201925dfc12db8cc8d4df" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopydestacfail[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopydestacfail[3].json new file mode 100644 index 0000000000000..0398c9baca321 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopydestacfail[3].json @@ -0,0 +1,183 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestacfail0blobapitestsynccopydestacfailec96044070?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812EAD86335\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51eaf2a-201e-00c4-78fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:21 GMT", + "x-ms-client-request-id" : "ccf72bca-79e6-4b7c-9c16-3aafa33b0ae5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestacfail0blobapitestsynccopydestacfailec96044070/javablobsynccopydestacfail101876cfaa41ed297e44f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:21 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:21 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812EADDF4CF\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51eaf3e-201e-00c4-08fb-594fb0000000", + "x-ms-client-request-id" : "26576898-d1f7-4b9c-9bec-a29d65324dab" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestacfail0blobapitestsynccopydestacfailec96044070?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812EAE2B138\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51eaf45-201e-00c4-0efb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:21 GMT", + "x-ms-client-request-id" : "a3d57315-030b-4e40-9227-d32c5ae09923" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestacfail0blobapitestsynccopydestacfailec96044070/javablobsynccopydestacfail212309df27b0dc7dac47a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:21 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:21 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812EAE7BB39\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51eaf51-201e-00c4-19fb-594fb0000000", + "x-ms-client-request-id" : "e6b6b48b-0ad3-4396-9e5d-4cbc31b1086e" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestacfail0blobapitestsynccopydestacfailec96044070/javablobsynccopydestacfail212309df27b0dc7dac47a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:21 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:43:21 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812EAE7BB39\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:43:21 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51eaf63-201e-00c4-29fb-594fb0000000", + "x-ms-client-request-id" : "47223c98-a240-42f9-87ec-f8b370a1453e", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestacfail0blobapitestsynccopydestacfailec96044070/javablobsynccopydestacfail212309df27b0dc7dac47a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "d51eaf76-201e-00c4-37fb-594fb0000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:d51eaf76-201e-00c4-37fb-594fb0000000\nTime:2019-08-23T21:43:21.2568316Z", + "Date" : "Fri, 23 Aug 2019 21:43:21 GMT", + "x-ms-client-request-id" : "fca312ef-adb3-4271-8d9a-f64863a5a383", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsynccopydestacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51eaf8c-201e-00c4-4bfb-594fb0000000", + "Body" : "jtcsynccopydestacfailjtcsynccopydestacfail0blobapitestsynccopydestacfailec96044070Fri, 23 Aug 2019 21:43:21 GMT\"0x8D72812EAE2B138\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:21 GMT", + "x-ms-client-request-id" : "f77beb66-efc4-44b8-9111-56f8143ca168", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestacfail0blobapitestsynccopydestacfailec96044070?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51eaf97-201e-00c4-53fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:21 GMT", + "x-ms-client-request-id" : "3935bde0-2d61-417a-906e-4af5e93085dd" + }, + "Exception" : null + } ], + "variables" : [ "jtcsynccopydestacfail0blobapitestsynccopydestacfailec96044070", "javablobsynccopydestacfail101876cfaa41ed297e44f", "javablobsynccopydestacfail212309df27b0dc7dac47a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopydestacfail[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopydestacfail[4].json new file mode 100644 index 0000000000000..be735746856c1 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopydestacfail[4].json @@ -0,0 +1,173 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestacfail0blobapitestsynccopydestacfailf65350020a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812EB155408\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51eaff1-201e-00c4-20fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:21 GMT", + "x-ms-client-request-id" : "86744a3b-091d-4d17-9cc8-b0a12a565776" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestacfail0blobapitestsynccopydestacfailf65350020a/javablobsynccopydestacfail116761d851e35b0b6a404", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:21 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:21 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812EB1AE5D2\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51eb00a-201e-00c4-36fb-594fb0000000", + "x-ms-client-request-id" : "8935ba88-780b-491c-a17b-ad684d08b443" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestacfail0blobapitestsynccopydestacfailf65350020a?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812EB1FA1BB\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51eb023-201e-00c4-49fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:21 GMT", + "x-ms-client-request-id" : "db519602-5e4e-4ffa-b75c-325713eaf60d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestacfail0blobapitestsynccopydestacfailf65350020a/javablobsynccopydestacfail218232970e15f0b13841d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:21 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:21 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812EB24FA70\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51eb040-201e-00c4-64fb-594fb0000000", + "x-ms-client-request-id" : "c65be763-3f1e-4b18-91bb-67b14393c69c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestacfail0blobapitestsynccopydestacfailf65350020a/javablobsynccopydestacfail218232970e15f0b13841d?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812EB24FA70\"", + "x-ms-lease-id" : "7940afdb-bfb6-4a0b-ad71-348568759fac", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51eb053-201e-00c4-76fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:21 GMT", + "x-ms-client-request-id" : "41e1d348-4775-4c02-b3df-3520f51c724d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestacfail0blobapitestsynccopydestacfailf65350020a/javablobsynccopydestacfail218232970e15f0b13841d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "LeaseIdMismatchWithBlobOperation", + "retry-after" : "0", + "Content-Length" : "264", + "StatusCode" : "412", + "x-ms-request-id" : "d51eb09f-201e-00c4-39fb-594fb0000000", + "Body" : "LeaseIdMismatchWithBlobOperationThe lease ID specified did not match the lease ID for the blob.\nRequestId:d51eb09f-201e-00c4-39fb-594fb0000000\nTime:2019-08-23T21:43:21.7913410Z", + "Date" : "Fri, 23 Aug 2019 21:43:21 GMT", + "x-ms-client-request-id" : "7972e275-9698-49c9-8ab9-6e9ab978f0e9", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsynccopydestacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51eb0c1-201e-00c4-59fb-594fb0000000", + "Body" : "jtcsynccopydestacfailjtcsynccopydestacfail0blobapitestsynccopydestacfailf65350020aFri, 23 Aug 2019 21:43:21 GMT\"0x8D72812EB1FA1BB\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:21 GMT", + "x-ms-client-request-id" : "4c9bd4e6-2edc-4a72-97b3-1a8b702928b9", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopydestacfail0blobapitestsynccopydestacfailf65350020a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51eb0ce-201e-00c4-65fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:21 GMT", + "x-ms-client-request-id" : "390887a6-3eb9-4fad-b039-514917032058" + }, + "Exception" : null + } ], + "variables" : [ "jtcsynccopydestacfail0blobapitestsynccopydestacfailf65350020a", "javablobsynccopydestacfail116761d851e35b0b6a404", "javablobsynccopydestacfail218232970e15f0b13841d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopyerror.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopyerror.json new file mode 100644 index 0000000000000..c6f623e35dcb7 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopyerror.json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopyerror0blobapitestsynccopyerror68465174f019ee1?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812EB53CBE9\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51eb0e1-201e-00c4-75fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:21 GMT", + "x-ms-client-request-id" : "ed545584-cdfa-4da2-a762-577728069902" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopyerror0blobapitestsynccopyerror68465174f019ee1/javablobsynccopyerror1blobapitestsynccopyerror684728242ad6", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:21 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:21 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812EB59AC0F\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51eb0f4-201e-00c4-07fb-594fb0000000", + "x-ms-client-request-id" : "0a5deec2-b206-4a96-b32b-5a78e4cafbc4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopyerror0blobapitestsynccopyerror68465174f019ee1/javablobsynccopyerror2blobapitestsynccopyerror68472576912f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "CannotVerifyCopySource", + "retry-after" : "0", + "Content-Length" : "229", + "StatusCode" : "404", + "x-ms-request-id" : "d51eb110-201e-00c4-21fb-594fb0000000", + "Body" : "CannotVerifyCopySourceThe specified resource does not exist.\nRequestId:d51eb110-201e-00c4-21fb-594fb0000000\nTime:2019-08-23T21:43:21.9885288Z", + "Date" : "Fri, 23 Aug 2019 21:43:21 GMT", + "x-ms-client-request-id" : "864fc399-93ad-4145-9ace-968125d4eb64", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsynccopyerror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51eb122-201e-00c4-32fb-594fb0000000", + "Body" : "jtcsynccopyerrorjtcsynccopyerror0blobapitestsynccopyerror68465174f019ee1Fri, 23 Aug 2019 21:43:21 GMT\"0x8D72812EB53CBE9\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:21 GMT", + "x-ms-client-request-id" : "4af64b92-cd2e-44f2-b1f8-0a16c34196e0", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopyerror0blobapitestsynccopyerror68465174f019ee1?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51eb12c-201e-00c4-3cfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:22 GMT", + "x-ms-client-request-id" : "ef680594-9d56-42ed-912b-f3c5d60fcb09" + }, + "Exception" : null + } ], + "variables" : [ "jtcsynccopyerror0blobapitestsynccopyerror68465174f019ee1", "javablobsynccopyerror1blobapitestsynccopyerror684728242ad6", "javablobsynccopyerror2blobapitestsynccopyerror68472576912f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopymetadata[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopymetadata[0].json new file mode 100644 index 0000000000000..82df345273cef --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopymetadata[0].json @@ -0,0 +1,166 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopymetadata0blobapitestsynccopymetadatad5a81869b0f9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E719388A\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51ea26c-201e-00c4-0bfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:14 GMT", + "x-ms-client-request-id" : "779e15b4-842b-45fd-87f1-4b086d258abe" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopymetadata0blobapitestsynccopymetadatad5a81869b0f9/javablobsynccopymetadata1blobapitestsynccopymetadatad5a405931", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:14 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:14 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E71E536A\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51ea278-201e-00c4-16fb-594fb0000000", + "x-ms-client-request-id" : "52e94b5e-4ade-4cdc-9355-e9163933b52b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopymetadata0blobapitestsynccopymetadatad5a81869b0f9?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E722EF08\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51ea281-201e-00c4-1ffb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:14 GMT", + "x-ms-client-request-id" : "21a9a0aa-90aa-485f-8ecc-1db79cc390ac" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopymetadata0blobapitestsynccopymetadatad5a81869b0f9/javablobsynccopymetadata2blobapitestsynccopymetadatad5a534068", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-copy-id" : "50bb1c77-63d8-4c9a-9fe9-7747986901a7", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:14 GMT", + "retry-after" : "0", + "StatusCode" : "202", + "Date" : "Fri, 23 Aug 2019 21:43:14 GMT", + "ETag" : "\"0x8D72812E72AA1E5\"", + "Content-Length" : "0", + "x-ms-copy-status" : "success", + "x-ms-request-id" : "d51ea28e-201e-00c4-28fb-594fb0000000", + "x-ms-client-request-id" : "acc6f9ff-54e1-4888-a568-18ae191d2e12" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopymetadata0blobapitestsynccopymetadatad5a81869b0f9/javablobsynccopymetadata2blobapitestsynccopymetadatad5a534068", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:14 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-blob-type" : "BlockBlob", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:43:14 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51ea2ad-201e-00c4-43fb-594fb0000000", + "Content-Type" : "application/octet-stream", + "x-ms-version" : "2019-02-02", + "x-ms-copy-id" : "50bb1c77-63d8-4c9a-9fe9-7747986901a7", + "x-ms-copy-source" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopymetadata0blobapitestsynccopymetadatad5a81869b0f9/javablobsynccopymetadata1blobapitestsynccopymetadatad5a405931", + "x-ms-copy-progress" : "7/7", + "Date" : "Fri, 23 Aug 2019 21:43:14 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "x-ms-copy-completion-time" : "Fri, 23 Aug 2019 21:43:14 GMT", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "\"0x8D72812E72AA1E5\"", + "x-ms-copy-status" : "success", + "x-ms-client-request-id" : "2cc5c20d-3918-4717-8255-1e77958c8fb7" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsynccopymetadata&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51ea2bb-201e-00c4-50fb-594fb0000000", + "Body" : "jtcsynccopymetadatajtcsynccopymetadata0blobapitestsynccopymetadatad5a81869b0f9Fri, 23 Aug 2019 21:43:14 GMT\"0x8D72812E722EF08\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:14 GMT", + "x-ms-client-request-id" : "87f695b9-19fe-4d51-a2e6-0696e9064c9f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopymetadata0blobapitestsynccopymetadatad5a81869b0f9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51ea2c7-201e-00c4-5bfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:14 GMT", + "x-ms-client-request-id" : "0893f8c6-e326-4ee5-9ece-c791b7193efa" + }, + "Exception" : null + } ], + "variables" : [ "jtcsynccopymetadata0blobapitestsynccopymetadatad5a81869b0f9", "javablobsynccopymetadata1blobapitestsynccopymetadatad5a405931", "javablobsynccopymetadata2blobapitestsynccopymetadatad5a534068" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopymetadata[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopymetadata[1].json new file mode 100644 index 0000000000000..d6867c1bc7e3b --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopymetadata[1].json @@ -0,0 +1,168 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopymetadata0blobapitestsynccopymetadata011752214fba?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E73DB961\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51ea2dc-201e-00c4-6efb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:15 GMT", + "x-ms-client-request-id" : "2178a0da-fd2e-4b25-8f31-6caf4d5f3b0e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopymetadata0blobapitestsynccopymetadata011752214fba/javablobsynccopymetadata1blobapitestsynccopymetadata011940408", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:15 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:15 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E743499E\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51ea2f1-201e-00c4-7efb-594fb0000000", + "x-ms-client-request-id" : "3079eeac-27bb-4b93-9122-4e70332aa7f6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopymetadata0blobapitestsynccopymetadata011752214fba?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E748A884\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51ea300-201e-00c4-0dfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:15 GMT", + "x-ms-client-request-id" : "f8f7ce67-34f4-469c-9f02-d6188fe85f9f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopymetadata0blobapitestsynccopymetadata011752214fba/javablobsynccopymetadata2blobapitestsynccopymetadata011590396", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-copy-id" : "8cd2d3fe-2f4d-4ff1-84d4-82ca7afb5557", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:15 GMT", + "retry-after" : "0", + "StatusCode" : "202", + "Date" : "Fri, 23 Aug 2019 21:43:15 GMT", + "ETag" : "\"0x8D72812E75E8FDC\"", + "Content-Length" : "0", + "x-ms-copy-status" : "success", + "x-ms-request-id" : "d51ea30a-201e-00c4-17fb-594fb0000000", + "x-ms-client-request-id" : "30194873-25c1-4b6b-8ba9-5922dc1c5c4d" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopymetadata0blobapitestsynccopymetadata011752214fba/javablobsynccopymetadata2blobapitestsynccopymetadata011590396", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:15 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-blob-type" : "BlockBlob", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:43:15 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51ea351-201e-00c4-55fb-594fb0000000", + "x-ms-meta-fizz" : "buzz", + "Content-Type" : "application/octet-stream", + "x-ms-version" : "2019-02-02", + "x-ms-copy-id" : "8cd2d3fe-2f4d-4ff1-84d4-82ca7afb5557", + "x-ms-copy-source" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopymetadata0blobapitestsynccopymetadata011752214fba/javablobsynccopymetadata1blobapitestsynccopymetadata011940408", + "x-ms-copy-progress" : "7/7", + "Date" : "Fri, 23 Aug 2019 21:43:15 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "x-ms-meta-foo" : "bar", + "x-ms-copy-completion-time" : "Fri, 23 Aug 2019 21:43:15 GMT", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "\"0x8D72812E75E8FDC\"", + "x-ms-copy-status" : "success", + "x-ms-client-request-id" : "4c371dc9-e3d8-429d-9e3f-35a7917d88b1" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsynccopymetadata&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51ea35d-201e-00c4-5efb-594fb0000000", + "Body" : "jtcsynccopymetadatajtcsynccopymetadata0blobapitestsynccopymetadata011752214fbaFri, 23 Aug 2019 21:43:15 GMT\"0x8D72812E748A884\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:15 GMT", + "x-ms-client-request-id" : "cb4f2488-14dc-4729-af9e-081083f48364", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopymetadata0blobapitestsynccopymetadata011752214fba?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51ea366-201e-00c4-66fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:15 GMT", + "x-ms-client-request-id" : "dbacfee8-5d89-478d-8e5a-5f5b675a985b" + }, + "Exception" : null + } ], + "variables" : [ "jtcsynccopymetadata0blobapitestsynccopymetadata011752214fba", "javablobsynccopymetadata1blobapitestsynccopymetadata011940408", "javablobsynccopymetadata2blobapitestsynccopymetadata011590396" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopymin.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopymin.json new file mode 100644 index 0000000000000..8e10098fdf0af --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopymin.json @@ -0,0 +1,130 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopymin0blobapitestsynccopymin6b2525050da244835?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E6F44263\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51ea1f4-201e-00c4-27fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:14 GMT", + "x-ms-client-request-id" : "f47f9841-d41f-41d5-9251-551f091d3d24" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopymin0blobapitestsynccopymin6b2525050da244835/javablobsynccopymin1blobapitestsynccopymin6b222181f03a44", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:14 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:14 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E6F9F99D\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51ea209-201e-00c4-3afb-594fb0000000", + "x-ms-client-request-id" : "84094363-1048-4574-8f39-23e2c27ab680" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopymin0blobapitestsynccopymin6b2525050da244835?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E6FE957D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51ea212-201e-00c4-41fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:14 GMT", + "x-ms-client-request-id" : "d7aa7425-1a05-40f2-8aff-92a5d501ba72" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopymin0blobapitestsynccopymin6b2525050da244835/javablobsynccopymin2blobapitestsynccopymin6b244212869148", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-copy-id" : "eee85955-3fb2-47b5-8241-c568fd08f1a2", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:14 GMT", + "retry-after" : "0", + "StatusCode" : "202", + "Date" : "Fri, 23 Aug 2019 21:43:14 GMT", + "ETag" : "\"0x8D72812E709A457\"", + "Content-Length" : "0", + "x-ms-copy-status" : "success", + "x-ms-request-id" : "d51ea21a-201e-00c4-48fb-594fb0000000", + "x-ms-client-request-id" : "cdc838bb-ae8d-48c5-a27b-863a3abd0b30" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsynccopymin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51ea24d-201e-00c4-73fb-594fb0000000", + "Body" : "jtcsynccopyminjtcsynccopymin0blobapitestsynccopymin6b2525050da244835Fri, 23 Aug 2019 21:43:14 GMT\"0x8D72812E6FE957D\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:14 GMT", + "x-ms-client-request-id" : "a1d94150-7fa9-42be-b2bc-554745152a97", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopymin0blobapitestsynccopymin6b2525050da244835?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51ea25e-201e-00c4-7efb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:14 GMT", + "x-ms-client-request-id" : "a1d121f4-846e-4cb2-ae12-470cf4ee6051" + }, + "Exception" : null + } ], + "variables" : [ "jtcsynccopymin0blobapitestsynccopymin6b2525050da244835", "javablobsynccopymin1blobapitestsynccopymin6b222181f03a44", "javablobsynccopymin2blobapitestsynccopymin6b244212869148" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopysourceac[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopysourceac[0].json new file mode 100644 index 0000000000000..f900fe42e89fb --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopysourceac[0].json @@ -0,0 +1,130 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopysourceac0blobapitestsynccopysourceacc3c473191cd4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E772B8FB\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51ea382-201e-00c4-7afb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:15 GMT", + "x-ms-client-request-id" : "bbcd2752-54a9-40f3-b7f7-5d300ee54cc2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopysourceac0blobapitestsynccopysourceacc3c473191cd4/javablobsynccopysourceac1blobapitestsynccopysourceacc3c80285f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:15 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:15 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E777D40A\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51ea39a-201e-00c4-10fb-594fb0000000", + "x-ms-client-request-id" : "df59a017-afb7-4376-874e-f81207b9dbc2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopysourceac0blobapitestsynccopysourceacc3c473191cd4?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E77C9632\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51ea3ac-201e-00c4-1ffb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:15 GMT", + "x-ms-client-request-id" : "3b61d087-1e39-45f6-bd6e-e3fadb995b3c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopysourceac0blobapitestsynccopysourceacc3c473191cd4/javablobsynccopysourceac2blobapitestsynccopysourceacc3c30594c", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-copy-id" : "791cee38-8b21-4cf3-82a1-50d60c60c42f", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:15 GMT", + "retry-after" : "0", + "StatusCode" : "202", + "Date" : "Fri, 23 Aug 2019 21:43:15 GMT", + "ETag" : "\"0x8D72812E7842264\"", + "Content-Length" : "0", + "x-ms-copy-status" : "success", + "x-ms-request-id" : "d51ea3bc-201e-00c4-2cfb-594fb0000000", + "x-ms-client-request-id" : "ac65c589-ac2c-4749-99b1-7cb615dd2b76" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsynccopysourceac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51ea3cf-201e-00c4-3dfb-594fb0000000", + "Body" : "jtcsynccopysourceacjtcsynccopysourceac0blobapitestsynccopysourceacc3c473191cd4Fri, 23 Aug 2019 21:43:15 GMT\"0x8D72812E77C9632\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:15 GMT", + "x-ms-client-request-id" : "37aa0a30-7476-4838-9d1a-e468a5f1ef50", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopysourceac0blobapitestsynccopysourceacc3c473191cd4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51ea3d6-201e-00c4-42fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:15 GMT", + "x-ms-client-request-id" : "d3099301-865e-4c68-bc73-cb37c9ff7c02" + }, + "Exception" : null + } ], + "variables" : [ "jtcsynccopysourceac0blobapitestsynccopysourceacc3c473191cd4", "javablobsynccopysourceac1blobapitestsynccopysourceacc3c80285f", "javablobsynccopysourceac2blobapitestsynccopysourceacc3c30594c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopysourceac[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopysourceac[1].json new file mode 100644 index 0000000000000..b951c16f0123a --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopysourceac[1].json @@ -0,0 +1,130 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopysourceac0blobapitestsynccopysourceac5f50404313c6?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E7934148\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51ea3eb-201e-00c4-56fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:15 GMT", + "x-ms-client-request-id" : "820f8c5a-c2cc-4077-ad18-2246bc81f57a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopysourceac0blobapitestsynccopysourceac5f50404313c6/javablobsynccopysourceac1blobapitestsynccopysourceac5f508584f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:15 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:15 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E798AA83\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51ea3fe-201e-00c4-65fb-594fb0000000", + "x-ms-client-request-id" : "5df3e798-6fcd-42f8-92e4-6fa5aec8b657" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopysourceac0blobapitestsynccopysourceac5f50404313c6?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E79D6C7E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51ea40f-201e-00c4-76fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:15 GMT", + "x-ms-client-request-id" : "552e44da-634c-40c6-b91f-cf7767a85159" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopysourceac0blobapitestsynccopysourceac5f50404313c6/javablobsynccopysourceac2blobapitestsynccopysourceac5f5321021", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-copy-id" : "d0166ba7-8f99-4d47-9fd6-af202f425a6d", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:15 GMT", + "retry-after" : "0", + "StatusCode" : "202", + "Date" : "Fri, 23 Aug 2019 21:43:15 GMT", + "ETag" : "\"0x8D72812E7A79182\"", + "Content-Length" : "0", + "x-ms-copy-status" : "success", + "x-ms-request-id" : "d51ea41c-201e-00c4-03fb-594fb0000000", + "x-ms-client-request-id" : "c87c24a8-75e5-48e7-9848-9afff7acdbfa" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsynccopysourceac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51ea445-201e-00c4-2afb-594fb0000000", + "Body" : "jtcsynccopysourceacjtcsynccopysourceac0blobapitestsynccopysourceac5f50404313c6Fri, 23 Aug 2019 21:43:15 GMT\"0x8D72812E79D6C7E\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:15 GMT", + "x-ms-client-request-id" : "eb1a35d7-94c6-4f53-8d94-34093494fea0", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopysourceac0blobapitestsynccopysourceac5f50404313c6?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51ea44d-201e-00c4-31fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:15 GMT", + "x-ms-client-request-id" : "f8484175-65bf-4636-8e03-bcf92a600dbf" + }, + "Exception" : null + } ], + "variables" : [ "jtcsynccopysourceac0blobapitestsynccopysourceac5f50404313c6", "javablobsynccopysourceac1blobapitestsynccopysourceac5f508584f", "javablobsynccopysourceac2blobapitestsynccopysourceac5f5321021" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopysourceac[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopysourceac[2].json new file mode 100644 index 0000000000000..99dc284a34eca --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopysourceac[2].json @@ -0,0 +1,130 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopysourceac0blobapitestsynccopysourceac695084869a31?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E7B773E7\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51ea45b-201e-00c4-3dfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:15 GMT", + "x-ms-client-request-id" : "4876ac1e-6548-4ffc-8c3b-3452c9eb1194" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopysourceac0blobapitestsynccopysourceac695084869a31/javablobsynccopysourceac1blobapitestsynccopysourceac69520517c", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:15 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:15 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E7BD0451\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51ea46b-201e-00c4-49fb-594fb0000000", + "x-ms-client-request-id" : "2d3fbfe4-37e0-4cf5-ad80-2261cbaf4711" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopysourceac0blobapitestsynccopysourceac695084869a31?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E7C19EEE\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51ea481-201e-00c4-5efb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:15 GMT", + "x-ms-client-request-id" : "f64cd53f-1601-47e9-b1d7-6b6becbe0477" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopysourceac0blobapitestsynccopysourceac695084869a31/javablobsynccopysourceac2blobapitestsynccopysourceac695614202", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-copy-id" : "dfb68b64-c9bb-4ed4-a5e3-9e81a4952b70", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:15 GMT", + "retry-after" : "0", + "StatusCode" : "202", + "Date" : "Fri, 23 Aug 2019 21:43:15 GMT", + "ETag" : "\"0x8D72812E7C95296\"", + "Content-Length" : "0", + "x-ms-copy-status" : "success", + "x-ms-request-id" : "d51ea48b-201e-00c4-68fb-594fb0000000", + "x-ms-client-request-id" : "9a7ce81a-c601-431b-814a-2d3c48f8b51d" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsynccopysourceac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51ea49c-201e-00c4-77fb-594fb0000000", + "Body" : "jtcsynccopysourceacjtcsynccopysourceac0blobapitestsynccopysourceac695084869a31Fri, 23 Aug 2019 21:43:15 GMT\"0x8D72812E7C19EEE\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:15 GMT", + "x-ms-client-request-id" : "aae5a880-7af2-4896-88bf-9476cc8d14f9", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopysourceac0blobapitestsynccopysourceac695084869a31?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51ea4ad-201e-00c4-06fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:15 GMT", + "x-ms-client-request-id" : "822a1038-7074-45f4-8fe9-cf232438f4ce" + }, + "Exception" : null + } ], + "variables" : [ "jtcsynccopysourceac0blobapitestsynccopysourceac695084869a31", "javablobsynccopysourceac1blobapitestsynccopysourceac69520517c", "javablobsynccopysourceac2blobapitestsynccopysourceac695614202" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopysourceac[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopysourceac[3].json new file mode 100644 index 0000000000000..70d56c03f8ae8 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopysourceac[3].json @@ -0,0 +1,161 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopysourceac0blobapitestsynccopysourceac89e29644999d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E7D8E6C9\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51ea4b9-201e-00c4-11fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:16 GMT", + "x-ms-client-request-id" : "ec6ba3e4-0f04-4179-915b-a9bafc4e2b0d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopysourceac0blobapitestsynccopysourceac89e29644999d/javablobsynccopysourceac1blobapitestsynccopysourceac89e077997", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:16 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:16 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E7DEC568\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51ea4cf-201e-00c4-23fb-594fb0000000", + "x-ms-client-request-id" : "523627f9-c0d0-4242-8983-a865d1e6f210" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopysourceac0blobapitestsynccopysourceac89e29644999d?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E7E534FD\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51ea4db-201e-00c4-2efb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:16 GMT", + "x-ms-client-request-id" : "076ed50f-e018-4baf-a101-c07366f878e6" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopysourceac0blobapitestsynccopysourceac89e29644999d/javablobsynccopysourceac1blobapitestsynccopysourceac89e077997", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:16 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:43:16 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812E7DEC568\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:43:16 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51ea4f3-201e-00c4-42fb-594fb0000000", + "x-ms-client-request-id" : "b7782507-9ed9-4f0e-a48d-87a83948779f", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopysourceac0blobapitestsynccopysourceac89e29644999d/javablobsynccopysourceac2blobapitestsynccopysourceac89e088314", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-copy-id" : "aaed4433-ba90-40cc-bb99-3b5c570d9c60", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:16 GMT", + "retry-after" : "0", + "StatusCode" : "202", + "Date" : "Fri, 23 Aug 2019 21:43:16 GMT", + "ETag" : "\"0x8D72812E7F0BA55\"", + "Content-Length" : "0", + "x-ms-copy-status" : "success", + "x-ms-request-id" : "d51ea503-201e-00c4-51fb-594fb0000000", + "x-ms-client-request-id" : "45430fec-1772-4f19-83b1-dec707338f4e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsynccopysourceac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51ea520-201e-00c4-6cfb-594fb0000000", + "Body" : "jtcsynccopysourceacjtcsynccopysourceac0blobapitestsynccopysourceac89e29644999dFri, 23 Aug 2019 21:43:16 GMT\"0x8D72812E7E534FD\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:16 GMT", + "x-ms-client-request-id" : "d9037a12-8519-41b0-b566-81be9217fe5d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopysourceac0blobapitestsynccopysourceac89e29644999d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51ea531-201e-00c4-7afb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:16 GMT", + "x-ms-client-request-id" : "9331f4ab-510c-46e6-8710-caac6a9bdd21" + }, + "Exception" : null + } ], + "variables" : [ "jtcsynccopysourceac0blobapitestsynccopysourceac89e29644999d", "javablobsynccopysourceac1blobapitestsynccopysourceac89e077997", "javablobsynccopysourceac2blobapitestsynccopysourceac89e088314" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopysourceac[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopysourceac[4].json new file mode 100644 index 0000000000000..d6248afe35a5d --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopysourceac[4].json @@ -0,0 +1,130 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopysourceac0blobapitestsynccopysourceacde6192891b94?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E8009CB6\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51ea545-201e-00c4-0dfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:16 GMT", + "x-ms-client-request-id" : "9b889299-75d1-4e72-a81e-7bd6b8782f69" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopysourceac0blobapitestsynccopysourceacde6192891b94/javablobsynccopysourceac1blobapitestsynccopysourceacde6407534", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:16 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:16 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E805DEFE\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51ea55a-201e-00c4-1bfb-594fb0000000", + "x-ms-client-request-id" : "d2183b19-0bd3-44d5-8a91-a27ffe022b9d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopysourceac0blobapitestsynccopysourceacde6192891b94?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E80A7926\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51ea564-201e-00c4-23fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:16 GMT", + "x-ms-client-request-id" : "2a4643a0-13f1-4655-9cb3-d312b72dfffc" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopysourceac0blobapitestsynccopysourceacde6192891b94/javablobsynccopysourceac2blobapitestsynccopysourceacde621837a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-copy-id" : "75deca9c-58c4-4671-b2e0-b1ed8f9e5a0a", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:16 GMT", + "retry-after" : "0", + "StatusCode" : "202", + "Date" : "Fri, 23 Aug 2019 21:43:16 GMT", + "ETag" : "\"0x8D72812E830B928\"", + "Content-Length" : "0", + "x-ms-copy-status" : "success", + "x-ms-request-id" : "d51ea570-201e-00c4-2dfb-594fb0000000", + "x-ms-client-request-id" : "1564055e-f160-46f9-b455-63b3776585c4" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsynccopysourceac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51ea5da-201e-00c4-07fb-594fb0000000", + "Body" : "jtcsynccopysourceacjtcsynccopysourceac0blobapitestsynccopysourceacde6192891b94Fri, 23 Aug 2019 21:43:16 GMT\"0x8D72812E80A7926\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:16 GMT", + "x-ms-client-request-id" : "246c2e64-a042-4820-a53f-94974520f3e0", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopysourceac0blobapitestsynccopysourceacde6192891b94?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51ea5e7-201e-00c4-11fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:16 GMT", + "x-ms-client-request-id" : "718bc92a-7db0-4a52-811b-7f12f6c8c877" + }, + "Exception" : null + } ], + "variables" : [ "jtcsynccopysourceac0blobapitestsynccopysourceacde6192891b94", "javablobsynccopysourceac1blobapitestsynccopysourceacde6407534", "javablobsynccopysourceac2blobapitestsynccopysourceacde621837a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopysourceacfail[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopysourceacfail[0].json new file mode 100644 index 0000000000000..6a32192de7871 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopysourceacfail[0].json @@ -0,0 +1,125 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopysourceacfail079788ee2801c9ba7747da9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E83FD802\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51ea5ff-201e-00c4-25fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:16 GMT", + "x-ms-client-request-id" : "3bbdeae1-f1e7-4f07-ab1a-a7ba437dce37" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopysourceacfail079788ee2801c9ba7747da9/javablobsynccopysourceacfail1110088d8ee882d5c441", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:16 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:16 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E8451A73\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51ea608-201e-00c4-2dfb-594fb0000000", + "x-ms-client-request-id" : "4cb56c37-6627-49af-8503-852e9748b6f2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopysourceacfail079788ee2801c9ba7747da9?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E849DB43\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51ea618-201e-00c4-3bfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:16 GMT", + "x-ms-client-request-id" : "0433340a-a753-4a8f-bb4d-241930b77ee6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopysourceacfail079788ee2801c9ba7747da9/javablobsynccopysourceacfail2085072e86b080f77e49", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "CannotVerifyCopySource", + "retry-after" : "0", + "StatusCode" : "304", + "x-ms-request-id" : "d51ea629-201e-00c4-4afb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:16 GMT", + "x-ms-client-request-id" : "4c76a5a5-b1bb-4a46-9d83-b8c939651bb1" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsynccopysourceacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51ea636-201e-00c4-56fb-594fb0000000", + "Body" : "jtcsynccopysourceacfailjtcsynccopysourceacfail079788ee2801c9ba7747da9Fri, 23 Aug 2019 21:43:16 GMT\"0x8D72812E849DB43\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:16 GMT", + "x-ms-client-request-id" : "c63d4bd7-b205-4dc1-84e9-ced18be712d7", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopysourceacfail079788ee2801c9ba7747da9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51ea645-201e-00c4-60fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:16 GMT", + "x-ms-client-request-id" : "19d9d2cb-23dd-481f-851e-206e24a48215" + }, + "Exception" : null + } ], + "variables" : [ "jtcsynccopysourceacfail079788ee2801c9ba7747da9", "javablobsynccopysourceacfail1110088d8ee882d5c441", "javablobsynccopysourceacfail2085072e86b080f77e49" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopysourceacfail[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopysourceacfail[1].json new file mode 100644 index 0000000000000..6220c55e658f3 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopysourceacfail[1].json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopysourceacfail05577536efae65e8ac4517b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E85FC3DF\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51ea654-201e-00c4-6bfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:16 GMT", + "x-ms-client-request-id" : "5ddc0d99-2e48-4887-8231-3275da6ae48d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopysourceacfail05577536efae65e8ac4517b/javablobsynccopysourceacfail181572d810c7c882aa4c", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:16 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:16 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E8652D74\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51ea661-201e-00c4-75fb-594fb0000000", + "x-ms-client-request-id" : "130418b9-5193-49fa-854e-7186397ab44b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopysourceacfail05577536efae65e8ac4517b?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E869C6EE\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51ea66d-201e-00c4-7efb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:16 GMT", + "x-ms-client-request-id" : "e0cf6a68-d77e-4763-aed3-d06b26ae80da" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopysourceacfail05577536efae65e8ac4517b/javablobsynccopysourceacfail288311ee8200da9a354e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "CannotVerifyCopySource", + "retry-after" : "0", + "Content-Length" : "259", + "StatusCode" : "412", + "x-ms-request-id" : "d51ea680-201e-00c4-0dfb-594fb0000000", + "Body" : "CannotVerifyCopySourceThe condition specified using HTTP conditional header(s) is not met.\nRequestId:d51ea680-201e-00c4-0dfb-594fb0000000\nTime:2019-08-23T21:43:17.0358057Z", + "Date" : "Fri, 23 Aug 2019 21:43:17 GMT", + "x-ms-client-request-id" : "cf864282-5111-432a-9a24-8a3aa4cdaaf7", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsynccopysourceacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51ea698-201e-00c4-21fb-594fb0000000", + "Body" : "jtcsynccopysourceacfailjtcsynccopysourceacfail05577536efae65e8ac4517bFri, 23 Aug 2019 21:43:16 GMT\"0x8D72812E869C6EE\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:17 GMT", + "x-ms-client-request-id" : "42a1e8d9-1866-4cfa-911a-b3be7c7150c8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopysourceacfail05577536efae65e8ac4517b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51ea6ad-201e-00c4-34fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:17 GMT", + "x-ms-client-request-id" : "dab5cdfc-0a3f-4f7d-bd19-082175244d34" + }, + "Exception" : null + } ], + "variables" : [ "jtcsynccopysourceacfail05577536efae65e8ac4517b", "javablobsynccopysourceacfail181572d810c7c882aa4c", "javablobsynccopysourceacfail288311ee8200da9a354e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopysourceacfail[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopysourceacfail[2].json new file mode 100644 index 0000000000000..e5847a9a84203 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopysourceacfail[2].json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopysourceacfail00636371ba313329ee4a809?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E87EC524\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51ea6ba-201e-00c4-3ffb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:17 GMT", + "x-ms-client-request-id" : "daa89718-63e6-417a-a357-e1a6b6607f86" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopysourceacfail00636371ba313329ee4a809/javablobsynccopysourceacfail149285a8314f26172345", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:17 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:17 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E88407A7\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51ea6d0-201e-00c4-50fb-594fb0000000", + "x-ms-client-request-id" : "95556454-4403-4c99-89ba-a718178a29a9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopysourceacfail00636371ba313329ee4a809?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E888C805\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51ea6e6-201e-00c4-61fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:17 GMT", + "x-ms-client-request-id" : "24a21e85-41af-49ea-adfc-defc731102d9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopysourceacfail00636371ba313329ee4a809/javablobsynccopysourceacfail2085045ba3a0a0533d4e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "SourceConditionNotMet", + "retry-after" : "0", + "Content-Length" : "265", + "StatusCode" : "412", + "x-ms-request-id" : "d51ea6f4-201e-00c4-6dfb-594fb0000000", + "Body" : "SourceConditionNotMetThe source condition specified using HTTP conditional header(s) is not met.\nRequestId:d51ea6f4-201e-00c4-6dfb-594fb0000000\nTime:2019-08-23T21:43:17.2289906Z", + "Date" : "Fri, 23 Aug 2019 21:43:17 GMT", + "x-ms-client-request-id" : "54b192b5-d7a5-4a12-acce-fd67f738f7a6", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsynccopysourceacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51ea6fd-201e-00c4-74fb-594fb0000000", + "Body" : "jtcsynccopysourceacfailjtcsynccopysourceacfail00636371ba313329ee4a809Fri, 23 Aug 2019 21:43:17 GMT\"0x8D72812E888C805\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:17 GMT", + "x-ms-client-request-id" : "7d508eb5-b276-424f-9462-6a8d64488085", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopysourceacfail00636371ba313329ee4a809?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51ea718-201e-00c4-0bfb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:17 GMT", + "x-ms-client-request-id" : "ad33e3a8-dcf0-4172-a702-efcfb9c313d8" + }, + "Exception" : null + } ], + "variables" : [ "jtcsynccopysourceacfail00636371ba313329ee4a809", "javablobsynccopysourceacfail149285a8314f26172345", "javablobsynccopysourceacfail2085045ba3a0a0533d4e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopysourceacfail[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopysourceacfail[3].json new file mode 100644 index 0000000000000..b67f340cc8ae2 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestsynccopysourceacfail[3].json @@ -0,0 +1,156 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopysourceacfail057516e1e1a70f97794529a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E8A010F3\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51ea734-201e-00c4-1ffb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:17 GMT", + "x-ms-client-request-id" : "2a12efd0-a787-4156-8346-defb568874af" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopysourceacfail057516e1e1a70f97794529a/javablobsynccopysourceacfail15067922201a736af049", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:17 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:17 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812E8A5536B\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51ea74b-201e-00c4-31fb-594fb0000000", + "x-ms-client-request-id" : "a4bb7588-fc57-48f6-8196-f42f86a15e26" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopysourceacfail057516e1e1a70f97794529a?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812E8AA139F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51ea761-201e-00c4-44fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:17 GMT", + "x-ms-client-request-id" : "42d42b5e-bcc2-4dcb-b251-ccf4e7a53789" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopysourceacfail057516e1e1a70f97794529a/javablobsynccopysourceacfail15067922201a736af049", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:17 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:43:17 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812E8A5536B\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:43:17 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51ea78f-201e-00c4-69fb-594fb0000000", + "x-ms-client-request-id" : "406e753d-3f2b-4486-9fa1-7a4722b9843a", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopysourceacfail057516e1e1a70f97794529a/javablobsynccopysourceacfail2682742bb745584ac54d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "CannotVerifyCopySource", + "retry-after" : "0", + "StatusCode" : "304", + "x-ms-request-id" : "d51ea79d-201e-00c4-75fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:17 GMT", + "x-ms-client-request-id" : "c697c529-ff12-413f-b807-9b34387e4e22" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsynccopysourceacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51ea7a7-201e-00c4-7dfb-594fb0000000", + "Body" : "jtcsynccopysourceacfailjtcsynccopysourceacfail057516e1e1a70f97794529aFri, 23 Aug 2019 21:43:17 GMT\"0x8D72812E8AA139F\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:43:17 GMT", + "x-ms-client-request-id" : "ec2d0205-c5c4-4ad8-8783-957f9900c807", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsynccopysourceacfail057516e1e1a70f97794529a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51ea7b3-201e-00c4-06fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:17 GMT", + "x-ms-client-request-id" : "bca39367-cfa2-413e-9ddf-e60ca020531f" + }, + "Exception" : null + } ], + "variables" : [ "jtcsynccopysourceacfail057516e1e1a70f97794529a", "javablobsynccopysourceacfail15067922201a736af049", "javablobsynccopysourceacfail2682742bb745584ac54d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestundelete.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestundelete.json new file mode 100644 index 0000000000000..1740c5cace12c --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestundelete.json @@ -0,0 +1,192 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcundelete0blobapitestundelete26288862f498b9a1e85c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72812F104E00F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51ec6f7-201e-00c4-03fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:31 GMT", + "x-ms-client-request-id" : "5ef83930-e38e-462e-88e3-e819419c2ba9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcundelete0blobapitestundelete26288862f498b9a1e85c/javablobundelete1blobapitestundelete26291852f6e9fd26a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:31 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:43:31 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72812F10AE95B\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51ec70a-201e-00c4-15fb-594fb0000000", + "x-ms-client-request-id" : "17b0b53e-489c-4db9-b3d3-13b5651de9ea" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51ec72f-201e-00c4-39fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:43:31 GMT", + "x-ms-client-request-id" : "7f32ffce-09ca-42e2-a225-bd6ab336490a" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcundelete0blobapitestundelete26288862f498b9a1e85c/javablobundelete1blobapitestundelete26291852f6e9fd26a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-delete-type-permanent" : "false", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51f0668-201e-00c4-57fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:44:01 GMT", + "x-ms-client-request-id" : "fdc46208-6282-4c32-ad98-3cd7e009f3ca" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcundelete0blobapitestundelete26288862f498b9a1e85c/javablobundelete1blobapitestundelete26291852f6e9fd26a?comp=undelete", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51f0685-201e-00c4-6ffb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:44:01 GMT", + "x-ms-client-request-id" : "6d0c17b5-252c-49f6-9b66-b832798de5d2" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcundelete0blobapitestundelete26288862f498b9a1e85c/javablobundelete1blobapitestundelete26291852f6e9fd26a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:43:31 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:44:01 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72812F10AE95B\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:43:31 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d51f06ae-201e-00c4-0dfb-594fb0000000", + "x-ms-client-request-id" : "205f623b-c068-4324-9974-9d91aa8b1baf", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51f06b9-201e-00c4-17fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:44:01 GMT", + "x-ms-client-request-id" : "0d68e8ac-d771-48d5-a61c-292871347333" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcundelete&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51f4792-201e-00c4-64fb-594fb0000000", + "Body" : "jtcundeletejtcundelete0blobapitestundelete26288862f498b9a1e85cFri, 23 Aug 2019 21:43:31 GMT\"0x8D72812F104E00F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:44:31 GMT", + "x-ms-client-request-id" : "de9773cf-29b7-4cab-8967-4d507c0a218f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcundelete0blobapitestundelete26288862f498b9a1e85c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51f47ab-201e-00c4-78fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:44:31 GMT", + "x-ms-client-request-id" : "f400be3a-77f4-4262-9821-96d6884e6f1c" + }, + "Exception" : null + } ], + "variables" : [ "jtcundelete0blobapitestundelete26288862f498b9a1e85c", "javablobundelete1blobapitestundelete26291852f6e9fd26a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestundeleteerror.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestundeleteerror.json new file mode 100644 index 0000000000000..f2cb4313330c9 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestundeleteerror.json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcundeleteerror0blobapitestundeleteerrord87106115f01ea3?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813272FB69F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51f8241-201e-00c4-6ffc-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:45:02 GMT", + "x-ms-client-request-id" : "63e6203c-1dc1-4338-ba75-fd42a4f3f768" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcundeleteerror0blobapitestundeleteerrord87106115f01ea3/javablobundeleteerror1blobapitestundeleteerrord8759561fb6e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:02 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:02 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D728132735867C\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51f8253-201e-00c4-7ffc-594fb0000000", + "x-ms-client-request-id" : "5515c428-3595-48a5-94fb-1964142a82d1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcundeleteerror0blobapitestundeleteerrord87106115f01ea3/javablobundeleteerror2blobapitestundeleteerrord8715978a32f?comp=undelete", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "BlobNotFound", + "retry-after" : "0", + "Content-Length" : "215", + "StatusCode" : "404", + "x-ms-request-id" : "d51f825e-201e-00c4-09fc-594fb0000000", + "Body" : "BlobNotFoundThe specified blob does not exist.\nRequestId:d51f825e-201e-00c4-09fc-594fb0000000\nTime:2019-08-23T21:45:02.3863242Z", + "Date" : "Fri, 23 Aug 2019 21:45:02 GMT", + "x-ms-client-request-id" : "e5791ed0-139d-4762-8c66-6d297cd7c76c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcundeleteerror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51f8273-201e-00c4-1dfc-594fb0000000", + "Body" : "jtcundeleteerrorjtcundeleteerror0blobapitestundeleteerrord87106115f01ea3Fri, 23 Aug 2019 21:45:02 GMT\"0x8D72813272FB69F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:02 GMT", + "x-ms-client-request-id" : "6df12121-14ed-497d-ab18-ea9e710668dc", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcundeleteerror0blobapitestundeleteerrord87106115f01ea3?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51f8287-201e-00c4-2dfc-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:45:02 GMT", + "x-ms-client-request-id" : "3f6db4e1-8c8c-4fc6-b146-f0acf481ab4f" + }, + "Exception" : null + } ], + "variables" : [ "jtcundeleteerror0blobapitestundeleteerrord87106115f01ea3", "javablobundeleteerror1blobapitestundeleteerrord8759561fb6e", "javablobundeleteerror2blobapitestundeleteerrord8715978a32f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestundeletemin.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestundeletemin.json new file mode 100644 index 0000000000000..340970760c2ab --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlobAPITestundeletemin.json @@ -0,0 +1,142 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcundeletemin0blobapitestundeleteminaba3631391824b377?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813151B461C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:44:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51f47cb-201e-00c4-15fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:44:31 GMT", + "x-ms-client-request-id" : "68a3986f-ecb7-46a4-abb8-499c3649fa70" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcundeletemin0blobapitestundeleteminaba3631391824b377/javablobundeletemin1blobapitestundeleteminaba02152f18585", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:44:32 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:44:31 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D728131520E7F9\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51f47e1-201e-00c4-2afb-594fb0000000", + "x-ms-client-request-id" : "2a4da3cc-904d-4fe7-b635-d1bd7ea1250c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51f47ff-201e-00c4-43fb-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:44:31 GMT", + "x-ms-client-request-id" : "b65820b5-275d-455a-bb42-de701d3cb5e1" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcundeletemin0blobapitestundeleteminaba3631391824b377/javablobundeletemin1blobapitestundeleteminaba02152f18585", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-delete-type-permanent" : "false", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51f81b0-201e-00c4-73fc-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:45:02 GMT", + "x-ms-client-request-id" : "66e7f9b5-11bc-4e30-998a-de1bb22cd996" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcundeletemin0blobapitestundeleteminaba3631391824b377/javablobundeletemin1blobapitestundeleteminaba02152f18585?comp=undelete", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51f8204-201e-00c4-3bfc-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:45:02 GMT", + "x-ms-client-request-id" : "3fa5877a-400e-4583-8e51-8607ccefdc5a" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcundeletemin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51f821a-201e-00c4-4efc-594fb0000000", + "Body" : "jtcundeleteminjtcundeletemin0blobapitestundeleteminaba3631391824b377Fri, 23 Aug 2019 21:44:31 GMT\"0x8D72813151B461C\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:02 GMT", + "x-ms-client-request-id" : "95f1c122-14ba-4a53-b861-4aa069399643", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcundeletemin0blobapitestundeleteminaba3631391824b377?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51f8226-201e-00c4-5afc-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:45:02 GMT", + "x-ms-client-request-id" : "db33562e-8993-41f4-9a0d-e6fee68176f4" + }, + "Exception" : null + } ], + "variables" : [ "jtcundeletemin0blobapitestundeleteminaba3631391824b377", "javablobundeletemin1blobapitestundeleteminaba02152f18585" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestcommitblocklist.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestcommitblocklist.json new file mode 100644 index 0000000000000..59fb3c4ad0275 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestcommitblocklist.json @@ -0,0 +1,130 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklist0blockblobapitestcommitblocklist6ca1212931?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728132CEA1AC3\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97b3a6-801e-0123-15fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:11 GMT", + "x-ms-client-request-id" : "97c2d60f-6046-4173-87a7-e18091487cfb" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklist0blockblobapitestcommitblocklist6ca1212931/javablobcommitblocklist125623ccb230d120d64de1b", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:11 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:11 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D728132CF08A5B\"", + "Content-Length" : "0", + "x-ms-request-id" : "ad97b3ba-801e-0123-24fc-5919e8000000", + "x-ms-client-request-id" : "2f4e6f84-dbfa-4c0a-ad89-0028a2c68f76" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklist0blockblobapitestcommitblocklist6ca1212931/javablobcommitblocklist125623ccb230d120d64de1b?blockid=ZTY0ZmQ3MzItMTAyNS00OGJkLThiODgtMTJlODY4MWRiMjMx&comp=block", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97b3cc-801e-0123-35fc-5919e8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:11 GMT", + "x-ms-client-request-id" : "cc44dbe1-cf1b-4cd5-973e-11003550c520" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklist0blockblobapitestcommitblocklist6ca1212931/javablobcommitblocklist125623ccb230d120d64de1b?comp=blocklist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728132CFB626E\"", + "x-ms-content-crc64" : "JKucbA5LDtc=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97b3ea-801e-0123-4dfc-5919e8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:11 GMT", + "x-ms-client-request-id" : "e8494d92-e916-4629-be35-c080022ab7ff" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccommitblocklist&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ad97b3fc-801e-0123-5efc-5919e8000000", + "Body" : "jtccommitblocklistjtccommitblocklist0blockblobapitestcommitblocklist6ca1212931Fri, 23 Aug 2019 21:45:11 GMT\"0x8D728132CEA1AC3\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:11 GMT", + "x-ms-client-request-id" : "00348368-92b2-4cf4-b649-f370b5734a52", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklist0blockblobapitestcommitblocklist6ca1212931?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "ad97b40c-801e-0123-67fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:11 GMT", + "x-ms-client-request-id" : "e4c3e81c-ddca-44ce-97f1-7e1f01d71189" + }, + "Exception" : null + } ], + "variables" : [ "jtccommitblocklist0blockblobapitestcommitblocklist6ca1212931", "javablobcommitblocklist125623ccb230d120d64de1b", "e64fd732-1025-48bd-8b88-12e8681db231" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestcommitblocklistac[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestcommitblocklistac[0].json new file mode 100644 index 0000000000000..62ce0c8974371 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestcommitblocklistac[0].json @@ -0,0 +1,109 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistac0blockblobapitestcommitblocklistac4f405092?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728132DF0CB29\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97b650-801e-0123-4cfc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:12 GMT", + "x-ms-client-request-id" : "f6d36b43-6bb7-4866-be3f-bff4f23ccae2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistac0blockblobapitestcommitblocklistac4f405092/javablobcommitblocklistac1277302e56605f1b844191", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:13 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:12 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D728132DF6A1F8\"", + "Content-Length" : "0", + "x-ms-request-id" : "ad97b65d-801e-0123-58fc-5919e8000000", + "x-ms-client-request-id" : "d284909f-107c-4292-bd3e-b22b71914b62" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistac0blockblobapitestcommitblocklistac4f405092/javablobcommitblocklistac1277302e56605f1b844191?comp=blocklist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728132DFBFA76\"", + "x-ms-content-crc64" : "p1vsGtjjPsk=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97b665-801e-0123-60fc-5919e8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:12 GMT", + "x-ms-client-request-id" : "2736e342-82a5-48b9-90e1-339254b657ad" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccommitblocklistac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ad97b66a-801e-0123-64fc-5919e8000000", + "Body" : "jtccommitblocklistacjtccommitblocklistac0blockblobapitestcommitblocklistac4f405092Fri, 23 Aug 2019 21:45:13 GMT\"0x8D728132DF0CB29\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:12 GMT", + "x-ms-client-request-id" : "3d8a4eb5-bfdd-427c-bd10-ed3b74516707", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistac0blockblobapitestcommitblocklistac4f405092?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "ad97b66f-801e-0123-69fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:13 GMT", + "x-ms-client-request-id" : "0753fd17-e87a-4a18-843b-1d003f1751e2" + }, + "Exception" : null + } ], + "variables" : [ "jtccommitblocklistac0blockblobapitestcommitblocklistac4f405092", "javablobcommitblocklistac1277302e56605f1b844191" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestcommitblocklistac[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestcommitblocklistac[1].json new file mode 100644 index 0000000000000..4ce8a505b026d --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestcommitblocklistac[1].json @@ -0,0 +1,109 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistac0blockblobapitestcommitblocklistac5b124149?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728132E1ACB0A\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97b682-801e-0123-78fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:13 GMT", + "x-ms-client-request-id" : "03f3b523-31df-43a7-aeed-69d9f6ad232e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistac0blockblobapitestcommitblocklistac5b124149/javablobcommitblocklistac187679ec5f025030bd4a14", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:13 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:13 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D728132E20C985\"", + "Content-Length" : "0", + "x-ms-request-id" : "ad97b68e-801e-0123-02fc-5919e8000000", + "x-ms-client-request-id" : "bda9ebef-f3f1-4c1c-a926-87477c719813" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistac0blockblobapitestcommitblocklistac5b124149/javablobcommitblocklistac187679ec5f025030bd4a14?comp=blocklist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728132E26703A\"", + "x-ms-content-crc64" : "p1vsGtjjPsk=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97b69b-801e-0123-0afc-5919e8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:13 GMT", + "x-ms-client-request-id" : "2018a291-1180-47cf-b87f-a6921825f626" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccommitblocklistac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ad97b6b0-801e-0123-1bfc-5919e8000000", + "Body" : "jtccommitblocklistacjtccommitblocklistac0blockblobapitestcommitblocklistac5b124149Fri, 23 Aug 2019 21:45:13 GMT\"0x8D728132E1ACB0A\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:13 GMT", + "x-ms-client-request-id" : "1ff0b436-9107-4b57-bddf-c19b2fea232b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistac0blockblobapitestcommitblocklistac5b124149?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "ad97b6b7-801e-0123-22fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:13 GMT", + "x-ms-client-request-id" : "588d9249-f2a3-407f-aefc-054ec3d96313" + }, + "Exception" : null + } ], + "variables" : [ "jtccommitblocklistac0blockblobapitestcommitblocklistac5b124149", "javablobcommitblocklistac187679ec5f025030bd4a14" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestcommitblocklistac[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestcommitblocklistac[2].json new file mode 100644 index 0000000000000..b595c09f443b6 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestcommitblocklistac[2].json @@ -0,0 +1,109 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistac0blockblobapitestcommitblocklistac47979406?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728132E44CAF4\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97b6c1-801e-0123-2cfc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:13 GMT", + "x-ms-client-request-id" : "41ce1a4a-e0e4-4e35-a224-11b5e2bd6fe5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistac0blockblobapitestcommitblocklistac47979406/javablobcommitblocklistac1122549b5d296f9fca4745", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:14 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:13 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D728132E4AF12D\"", + "Content-Length" : "0", + "x-ms-request-id" : "ad97b6c8-801e-0123-31fc-5919e8000000", + "x-ms-client-request-id" : "c8de8a1f-7107-4757-8995-771fb0110d5c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistac0blockblobapitestcommitblocklistac47979406/javablobcommitblocklistac1122549b5d296f9fca4745?comp=blocklist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728132E515B57\"", + "x-ms-content-crc64" : "p1vsGtjjPsk=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97b6cc-801e-0123-35fc-5919e8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:13 GMT", + "x-ms-client-request-id" : "38617e1e-54ab-4b19-b1e2-84bac8c54ccc" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccommitblocklistac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ad97b6d0-801e-0123-39fc-5919e8000000", + "Body" : "jtccommitblocklistacjtccommitblocklistac0blockblobapitestcommitblocklistac47979406Fri, 23 Aug 2019 21:45:14 GMT\"0x8D728132E44CAF4\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:13 GMT", + "x-ms-client-request-id" : "da0c104d-ee49-410d-bd61-e617dd932c7e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistac0blockblobapitestcommitblocklistac47979406?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "ad97b6d7-801e-0123-3ffc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:13 GMT", + "x-ms-client-request-id" : "042c3bee-99d3-4e5a-90c1-679ce4b1c243" + }, + "Exception" : null + } ], + "variables" : [ "jtccommitblocklistac0blockblobapitestcommitblocklistac47979406", "javablobcommitblocklistac1122549b5d296f9fca4745" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestcommitblocklistac[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestcommitblocklistac[3].json new file mode 100644 index 0000000000000..0ac13937da7bd --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestcommitblocklistac[3].json @@ -0,0 +1,140 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistac0blockblobapitestcommitblocklistacd4999530?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728132E632F62\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97b6e2-801e-0123-45fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:13 GMT", + "x-ms-client-request-id" : "95e462a3-3eea-4448-bff4-d96bcced9701" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistac0blockblobapitestcommitblocklistacd4999530/javablobcommitblocklistac1129141d89ca8f536a4db9", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:14 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:13 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D728132E68E0C2\"", + "Content-Length" : "0", + "x-ms-request-id" : "ad97b6ed-801e-0123-4efc-5919e8000000", + "x-ms-client-request-id" : "92d36f11-b01b-4dc6-93bd-5a33b7dfb515" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistac0blockblobapitestcommitblocklistacd4999530/javablobcommitblocklistac1129141d89ca8f536a4db9", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:14 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:45:13 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D728132E68E0C2\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:45:14 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "ad97b6f5-801e-0123-54fc-5919e8000000", + "x-ms-client-request-id" : "85fb0f17-4bb4-4071-bb92-785222c426f8", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistac0blockblobapitestcommitblocklistacd4999530/javablobcommitblocklistac1129141d89ca8f536a4db9?comp=blocklist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728132E747C57\"", + "x-ms-content-crc64" : "p1vsGtjjPsk=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97b6f7-801e-0123-56fc-5919e8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:13 GMT", + "x-ms-client-request-id" : "8f708134-552b-405a-be91-161c323090ad" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccommitblocklistac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ad97b6fe-801e-0123-5afc-5919e8000000", + "Body" : "jtccommitblocklistacjtccommitblocklistac0blockblobapitestcommitblocklistacd4999530Fri, 23 Aug 2019 21:45:14 GMT\"0x8D728132E632F62\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:13 GMT", + "x-ms-client-request-id" : "822998da-3884-4fbd-81be-4c8877311189", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistac0blockblobapitestcommitblocklistacd4999530?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "ad97b703-801e-0123-5dfc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:13 GMT", + "x-ms-client-request-id" : "3e6a7ee2-36ac-497d-b33e-bee5048b69a4" + }, + "Exception" : null + } ], + "variables" : [ "jtccommitblocklistac0blockblobapitestcommitblocklistacd4999530", "javablobcommitblocklistac1129141d89ca8f536a4db9" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestcommitblocklistac[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestcommitblocklistac[4].json new file mode 100644 index 0000000000000..98c5148509d0b --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestcommitblocklistac[4].json @@ -0,0 +1,109 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistac0blockblobapitestcommitblocklistac29d40089?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728132E84539C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97b708-801e-0123-62fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:13 GMT", + "x-ms-client-request-id" : "397ad32b-a001-4c6f-aeca-8015107966d0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistac0blockblobapitestcommitblocklistac29d40089/javablobcommitblocklistac122216bf2bf72f59c14f65", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:14 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:13 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D728132E8A2C8B\"", + "Content-Length" : "0", + "x-ms-request-id" : "ad97b713-801e-0123-6afc-5919e8000000", + "x-ms-client-request-id" : "207c0e1f-5952-4e34-ab3b-37e107b4116c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistac0blockblobapitestcommitblocklistac29d40089/javablobcommitblocklistac122216bf2bf72f59c14f65?comp=blocklist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728132E8F8509\"", + "x-ms-content-crc64" : "p1vsGtjjPsk=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97b717-801e-0123-6efc-5919e8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:13 GMT", + "x-ms-client-request-id" : "0859f5c8-2a76-49ff-91f7-dbab7c0c0dc7" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccommitblocklistac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ad97b722-801e-0123-75fc-5919e8000000", + "Body" : "jtccommitblocklistacjtccommitblocklistac0blockblobapitestcommitblocklistac29d40089Fri, 23 Aug 2019 21:45:14 GMT\"0x8D728132E84539C\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:13 GMT", + "x-ms-client-request-id" : "121d7fe0-6925-40e0-a9fd-4113550a60e4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistac0blockblobapitestcommitblocklistac29d40089?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "ad97b727-801e-0123-7afc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:13 GMT", + "x-ms-client-request-id" : "5e1852da-5ef7-4660-b6bf-bbee874f61ed" + }, + "Exception" : null + } ], + "variables" : [ "jtccommitblocklistac0blockblobapitestcommitblocklistac29d40089", "javablobcommitblocklistac122216bf2bf72f59c14f65" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestcommitblocklistac[5].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestcommitblocklistac[5].json new file mode 100644 index 0000000000000..ce65bc50849b4 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestcommitblocklistac[5].json @@ -0,0 +1,130 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistac0blockblobapitestcommitblocklistac62425802?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728132E9EBF88\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97b72d-801e-0123-7ffc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:14 GMT", + "x-ms-client-request-id" : "b4ec5794-9b53-4245-837b-b9f07c525f7b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistac0blockblobapitestcommitblocklistac62425802/javablobcommitblocklistac186456512d10f4e9b94fa4", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:14 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:14 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D728132EA44AA7\"", + "Content-Length" : "0", + "x-ms-request-id" : "ad97b736-801e-0123-05fc-5919e8000000", + "x-ms-client-request-id" : "83997fd0-5907-4f93-9a1f-ac118c94bddc" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistac0blockblobapitestcommitblocklistac62425802/javablobcommitblocklistac186456512d10f4e9b94fa4?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728132EA44AA7\"", + "x-ms-lease-id" : "6e8712b9-951c-438c-943e-8dc310491143", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97b744-801e-0123-11fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:14 GMT", + "x-ms-client-request-id" : "cfaac227-6da5-462d-810f-0b2351134c39" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistac0blockblobapitestcommitblocklistac62425802/javablobcommitblocklistac186456512d10f4e9b94fa4?comp=blocklist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728132EAF70F2\"", + "x-ms-content-crc64" : "p1vsGtjjPsk=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97b74e-801e-0123-1bfc-5919e8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:14 GMT", + "x-ms-client-request-id" : "83c648c4-cb63-41e2-ba78-55ce1e699ca9" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccommitblocklistac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ad97b773-801e-0123-3efc-5919e8000000", + "Body" : "jtccommitblocklistacjtccommitblocklistac0blockblobapitestcommitblocklistac62425802Fri, 23 Aug 2019 21:45:14 GMT\"0x8D728132E9EBF88\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:14 GMT", + "x-ms-client-request-id" : "e9adb6e0-f353-40f0-abb2-1c88b1f728d2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistac0blockblobapitestcommitblocklistac62425802?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "ad97b776-801e-0123-41fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:14 GMT", + "x-ms-client-request-id" : "a3b199d5-20ae-4b1e-b337-7a1f8ed39ca8" + }, + "Exception" : null + } ], + "variables" : [ "jtccommitblocklistac0blockblobapitestcommitblocklistac62425802", "javablobcommitblocklistac186456512d10f4e9b94fa4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestcommitblocklistacfail[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestcommitblocklistacfail[0].json new file mode 100644 index 0000000000000..a3c06f0ece657 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestcommitblocklistacfail[0].json @@ -0,0 +1,109 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistacfail003025eb0b648886a64740?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728132ED8EFC6\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97b785-801e-0123-4cfc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:14 GMT", + "x-ms-client-request-id" : "f8fdc7c5-08d7-41b3-98d2-611976467572" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistacfail003025eb0b648886a64740/javablobcommitblocklistacfail17266225f8860f999148", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:15 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:14 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D728132EDF8D7A\"", + "Content-Length" : "0", + "x-ms-request-id" : "ad97b78d-801e-0123-52fc-5919e8000000", + "x-ms-client-request-id" : "5edc0dbb-f36b-4220-8b63-742f6cacce21" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistacfail003025eb0b648886a64740/javablobcommitblocklistacfail17266225f8860f999148?comp=blocklist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Connection" : "close", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "ad97b797-801e-0123-5cfc-5919e8000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:ad97b797-801e-0123-5cfc-5919e8000000\nTime:2019-08-23T21:45:15.2534058Z", + "Date" : "Fri, 23 Aug 2019 21:45:14 GMT", + "x-ms-client-request-id" : "c24419c7-29df-46c1-95cc-343edb7a406a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccommitblocklistacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "0a3ca225-301e-0118-1cfc-595bb6000000", + "Body" : "jtccommitblocklistacfailjtccommitblocklistacfail003025eb0b648886a64740Fri, 23 Aug 2019 21:45:15 GMT\"0x8D728132ED8EFC6\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:15 GMT", + "x-ms-client-request-id" : "d1ca7e80-32a2-4d95-8358-89fd17755878", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistacfail003025eb0b648886a64740?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "0a3ca23c-301e-0118-30fc-595bb6000000", + "Date" : "Fri, 23 Aug 2019 21:45:15 GMT", + "x-ms-client-request-id" : "b717092e-b578-4465-8892-1ffd05035820" + }, + "Exception" : null + } ], + "variables" : [ "jtccommitblocklistacfail003025eb0b648886a64740", "javablobcommitblocklistacfail17266225f8860f999148" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestcommitblocklistacfail[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestcommitblocklistacfail[1].json new file mode 100644 index 0000000000000..369cba85e4670 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestcommitblocklistacfail[1].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistacfail017164ec39fa61c94e4499?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728132F023A83\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "0a3ca252-301e-0118-43fc-595bb6000000", + "Date" : "Fri, 23 Aug 2019 21:45:15 GMT", + "x-ms-client-request-id" : "5b00599c-d638-442f-ae78-adbb554c87dc" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistacfail017164ec39fa61c94e4499/javablobcommitblocklistacfail15606791f9844609b34a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:15 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:15 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D728132F0791A9\"", + "Content-Length" : "0", + "x-ms-request-id" : "0a3ca26f-301e-0118-57fc-595bb6000000", + "x-ms-client-request-id" : "95a25653-6a1d-4b73-bb27-04e583363961" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistacfail017164ec39fa61c94e4499/javablobcommitblocklistacfail15606791f9844609b34a?comp=blocklist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "0a3ca284-301e-0118-6afc-595bb6000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:0a3ca284-301e-0118-6afc-595bb6000000\nTime:2019-08-23T21:45:15.5090070Z", + "Date" : "Fri, 23 Aug 2019 21:45:15 GMT", + "x-ms-client-request-id" : "c27ae265-a604-441f-961c-16685b748921", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccommitblocklistacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "0a3ca299-301e-0118-7efc-595bb6000000", + "Body" : "jtccommitblocklistacfailjtccommitblocklistacfail017164ec39fa61c94e4499Fri, 23 Aug 2019 21:45:15 GMT\"0x8D728132F023A83\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:15 GMT", + "x-ms-client-request-id" : "fa10386c-a6bc-422c-a99e-5c597da6dca6", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistacfail017164ec39fa61c94e4499?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "0a3ca2a9-301e-0118-0cfc-595bb6000000", + "Date" : "Fri, 23 Aug 2019 21:45:15 GMT", + "x-ms-client-request-id" : "e25029e5-a83d-4391-8be1-2d94eaa5fa82" + }, + "Exception" : null + } ], + "variables" : [ "jtccommitblocklistacfail017164ec39fa61c94e4499", "javablobcommitblocklistacfail15606791f9844609b34a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestcommitblocklistacfail[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestcommitblocklistacfail[2].json new file mode 100644 index 0000000000000..3d7972cd62a19 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestcommitblocklistacfail[2].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistacfail041781ba2a0ef8c4134c31?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728132F1CA6D4\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "0a3ca2bb-301e-0118-1cfc-595bb6000000", + "Date" : "Fri, 23 Aug 2019 21:45:15 GMT", + "x-ms-client-request-id" : "9aa77b39-12e7-4b48-b35f-f934846d9519" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistacfail041781ba2a0ef8c4134c31/javablobcommitblocklistacfail1102745c1629ed17a946", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:15 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:15 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D728132F21D6DC\"", + "Content-Length" : "0", + "x-ms-request-id" : "0a3ca2d1-301e-0118-2ffc-595bb6000000", + "x-ms-client-request-id" : "a8443dac-8886-40f0-9f09-353ea45550c6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistacfail041781ba2a0ef8c4134c31/javablobcommitblocklistacfail1102745c1629ed17a946?comp=blocklist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "0a3ca2db-301e-0118-38fc-595bb6000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:0a3ca2db-301e-0118-38fc-595bb6000000\nTime:2019-08-23T21:45:15.6771698Z", + "Date" : "Fri, 23 Aug 2019 21:45:15 GMT", + "x-ms-client-request-id" : "10a88a0a-800a-403a-9d5f-cbcde343c53c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccommitblocklistacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "0a3ca2e9-301e-0118-44fc-595bb6000000", + "Body" : "jtccommitblocklistacfailjtccommitblocklistacfail041781ba2a0ef8c4134c31Fri, 23 Aug 2019 21:45:15 GMT\"0x8D728132F1CA6D4\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:15 GMT", + "x-ms-client-request-id" : "7f2e12db-77f1-44f3-bae7-759ff962b930", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistacfail041781ba2a0ef8c4134c31?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "0a3ca2fc-301e-0118-53fc-595bb6000000", + "Date" : "Fri, 23 Aug 2019 21:45:15 GMT", + "x-ms-client-request-id" : "dd6b8222-fee8-43a4-a37f-64aafd570f47" + }, + "Exception" : null + } ], + "variables" : [ "jtccommitblocklistacfail041781ba2a0ef8c4134c31", "javablobcommitblocklistacfail1102745c1629ed17a946" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestcommitblocklistacfail[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestcommitblocklistacfail[3].json new file mode 100644 index 0000000000000..4479ec82c3d93 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestcommitblocklistacfail[3].json @@ -0,0 +1,139 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistacfail0562821c8b9b1954264793?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728132F360181\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "0a3ca30c-301e-0118-61fc-595bb6000000", + "Date" : "Fri, 23 Aug 2019 21:45:15 GMT", + "x-ms-client-request-id" : "581c6907-6c6d-44bc-9112-c41d723b4846" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistacfail0562821c8b9b1954264793/javablobcommitblocklistacfail1471745d532b7145a041", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:15 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:15 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D728132F3B0A5F\"", + "Content-Length" : "0", + "x-ms-request-id" : "0a3ca326-301e-0118-7afc-595bb6000000", + "x-ms-client-request-id" : "3f59ba41-bc38-4ba8-8381-50855dd6748a" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistacfail0562821c8b9b1954264793/javablobcommitblocklistacfail1471745d532b7145a041", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:15 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:45:15 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D728132F3B0A5F\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:45:15 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "0a3ca346-301e-0118-17fc-595bb6000000", + "x-ms-client-request-id" : "fa9ace47-a841-4772-a0e2-61c6e193a17a", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistacfail0562821c8b9b1954264793/javablobcommitblocklistacfail1471745d532b7145a041?comp=blocklist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "0a3ca364-301e-0118-32fc-595bb6000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:0a3ca364-301e-0118-32fc-595bb6000000\nTime:2019-08-23T21:45:15.8963812Z", + "Date" : "Fri, 23 Aug 2019 21:45:15 GMT", + "x-ms-client-request-id" : "b908441c-14b2-4117-945e-d01cbb15cff4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccommitblocklistacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "0a3ca375-301e-0118-41fc-595bb6000000", + "Body" : "jtccommitblocklistacfailjtccommitblocklistacfail0562821c8b9b1954264793Fri, 23 Aug 2019 21:45:15 GMT\"0x8D728132F360181\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:15 GMT", + "x-ms-client-request-id" : "4acd8dc1-2329-4ec8-8de5-088c5635b600", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistacfail0562821c8b9b1954264793?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "0a3ca385-301e-0118-4dfc-595bb6000000", + "Date" : "Fri, 23 Aug 2019 21:45:15 GMT", + "x-ms-client-request-id" : "96b8d9c9-d511-45e1-ae5a-12c7210c816a" + }, + "Exception" : null + } ], + "variables" : [ "jtccommitblocklistacfail0562821c8b9b1954264793", "javablobcommitblocklistacfail1471745d532b7145a041" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestcommitblocklistacfail[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestcommitblocklistacfail[4].json new file mode 100644 index 0000000000000..7f456823763b8 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestcommitblocklistacfail[4].json @@ -0,0 +1,129 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistacfail04001752373c1ab3cc402d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728132F5689CD\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "0a3ca39e-301e-0118-62fc-595bb6000000", + "Date" : "Fri, 23 Aug 2019 21:45:15 GMT", + "x-ms-client-request-id" : "1df3bf16-4e56-41a4-a6b1-bdff911d14b8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistacfail04001752373c1ab3cc402d/javablobcommitblocklistacfail18967083e0655402444d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:16 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:15 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D728132F5BE0E2\"", + "Content-Length" : "0", + "x-ms-request-id" : "0a3ca3b9-301e-0118-7bfc-595bb6000000", + "x-ms-client-request-id" : "3a4b5cd3-32ba-4bf6-b53c-dfb96518ec34" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistacfail04001752373c1ab3cc402d/javablobcommitblocklistacfail18967083e0655402444d?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728132F5BE0E2\"", + "x-ms-lease-id" : "bde21cf4-aa14-43f1-9e31-7c718aba87bf", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "0a3ca3d2-301e-0118-12fc-595bb6000000", + "Date" : "Fri, 23 Aug 2019 21:45:15 GMT", + "x-ms-client-request-id" : "e7c48aad-6621-465a-b31d-be261195c72b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistacfail04001752373c1ab3cc402d/javablobcommitblocklistacfail18967083e0655402444d?comp=blocklist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "LeaseIdMismatchWithBlobOperation", + "retry-after" : "0", + "Content-Length" : "264", + "StatusCode" : "412", + "x-ms-request-id" : "0a3ca3ec-301e-0118-2bfc-595bb6000000", + "Body" : "LeaseIdMismatchWithBlobOperationThe lease ID specified did not match the lease ID for the blob.\nRequestId:0a3ca3ec-301e-0118-2bfc-595bb6000000\nTime:2019-08-23T21:45:16.0935722Z", + "Date" : "Fri, 23 Aug 2019 21:45:15 GMT", + "x-ms-client-request-id" : "62385797-54a4-4e03-b036-d661d6e77a7c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccommitblocklistacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "0a3ca3fa-301e-0118-36fc-595bb6000000", + "Body" : "jtccommitblocklistacfailjtccommitblocklistacfail04001752373c1ab3cc402dFri, 23 Aug 2019 21:45:15 GMT\"0x8D728132F5689CD\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:15 GMT", + "x-ms-client-request-id" : "8ba17367-9932-4ab1-95d6-d99c024d7457", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistacfail04001752373c1ab3cc402d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "0a3ca40b-301e-0118-46fc-595bb6000000", + "Date" : "Fri, 23 Aug 2019 21:45:15 GMT", + "x-ms-client-request-id" : "443968cb-bf0a-4dd6-9096-60ab9c7a812d" + }, + "Exception" : null + } ], + "variables" : [ "jtccommitblocklistacfail04001752373c1ab3cc402d", "javablobcommitblocklistacfail18967083e0655402444d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestcommitblocklisterror.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestcommitblocklisterror.json new file mode 100644 index 0000000000000..b801f10ef838d --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestcommitblocklisterror.json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklisterror052615630f3125713245fcb?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728132F898D63\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "0a3ca474-301e-0118-21fc-595bb6000000", + "Date" : "Fri, 23 Aug 2019 21:45:15 GMT", + "x-ms-client-request-id" : "2d9d78be-d130-41a7-89dd-c0e1dd00ac2c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklisterror052615630f3125713245fcb/javablobcommitblocklisterror1474947be8f295f1b641", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:16 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:16 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D728132F8F0B5C\"", + "Content-Length" : "0", + "x-ms-request-id" : "0a3ca48b-301e-0118-35fc-595bb6000000", + "x-ms-client-request-id" : "09f72a49-e854-45a7-892d-ac43347065b5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklisterror052615630f3125713245fcb/javablobcommitblocklisterror262343a3d1ef2b66e042?comp=blocklist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "InvalidHeaderValue", + "retry-after" : "0", + "Content-Length" : "326", + "StatusCode" : "400", + "x-ms-request-id" : "0a3ca4a4-301e-0118-4bfc-595bb6000000", + "Body" : "InvalidHeaderValueThe value for one of the HTTP headers is not in the correct format.\nRequestId:0a3ca4a4-301e-0118-4bfc-595bb6000000\nTime:2019-08-23T21:45:18.6240211Zx-ms-lease-idgarbage", + "Date" : "Fri, 23 Aug 2019 21:45:18 GMT", + "x-ms-client-request-id" : "a5c5cabe-7d6d-4e3a-a992-717c6f014910", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccommitblocklisterror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "0a3ca685-301e-0118-4dfc-595bb6000000", + "Body" : "jtccommitblocklisterrorjtccommitblocklisterror052615630f3125713245fcbFri, 23 Aug 2019 21:45:16 GMT\"0x8D728132F898D63\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:18 GMT", + "x-ms-client-request-id" : "90217f9d-a2db-4456-abb3-7cfcae662b84", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklisterror052615630f3125713245fcb?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "0a3ca703-301e-0118-18fc-595bb6000000", + "Date" : "Fri, 23 Aug 2019 21:45:18 GMT", + "x-ms-client-request-id" : "c9475162-a41f-4a49-bbff-874732cc3f6b" + }, + "Exception" : null + } ], + "variables" : [ "jtccommitblocklisterror052615630f3125713245fcb", "javablobcommitblocklisterror1474947be8f295f1b641", "javablobcommitblocklisterror262343a3d1ef2b66e042" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestcommitblocklistheaders[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestcommitblocklistheaders[0].json new file mode 100644 index 0000000000000..4a6c0de160e74 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestcommitblocklistheaders[0].json @@ -0,0 +1,160 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistheaders048061f27e72b2a8784dde?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728132D4C9CDC\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97b4fb-801e-0123-35fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:11 GMT", + "x-ms-client-request-id" : "5c9f4a7b-15b6-4348-9c00-068c8dbf2a57" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistheaders048061f27e72b2a8784dde/javablobcommitblocklistheaders139386309c38aa6e154", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:12 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:11 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D728132D557F6F\"", + "Content-Length" : "0", + "x-ms-request-id" : "ad97b511-801e-0123-48fc-5919e8000000", + "x-ms-client-request-id" : "054b1a8d-039f-45db-b543-213e4113980f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistheaders048061f27e72b2a8784dde/javablobcommitblocklistheaders139386309c38aa6e154?blockid=MGVmOGU2OWYtODk3NS00NWRmLTgxZWMtMmQ4N2UyYzdjYjg4&comp=block", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97b51d-801e-0123-52fc-5919e8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:11 GMT", + "x-ms-client-request-id" : "2fcfc9f0-97cc-4be3-96d2-67fde29f00ad" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistheaders048061f27e72b2a8784dde/javablobcommitblocklistheaders139386309c38aa6e154?comp=blocklist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728132D5FE237\"", + "x-ms-content-crc64" : "QVqhYw2U7Bo=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97b52f-801e-0123-62fc-5919e8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:11 GMT", + "x-ms-client-request-id" : "9ea0d2ef-8213-47b5-aaba-753b790cad74" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistheaders048061f27e72b2a8784dde/javablobcommitblocklistheaders139386309c38aa6e154", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:12 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:45:11 GMT", + "x-ms-blob-type" : "BlockBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D728132D5FE237\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:45:12 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "ad97b542-801e-0123-72fc-5919e8000000", + "x-ms-client-request-id" : "e0c0c380-57c4-4e08-8ad7-75b6c55e571e", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccommitblocklistheaders&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ad97b54d-801e-0123-7bfc-5919e8000000", + "Body" : "jtccommitblocklistheadersjtccommitblocklistheaders048061f27e72b2a8784ddeFri, 23 Aug 2019 21:45:12 GMT\"0x8D728132D4C9CDC\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:11 GMT", + "x-ms-client-request-id" : "be6e6603-1aba-4f37-a4d2-33e03371c8b4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistheaders048061f27e72b2a8784dde?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "ad97b552-801e-0123-7ffc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:12 GMT", + "x-ms-client-request-id" : "2f656c14-20d8-49e5-be40-b26fcb18e85c" + }, + "Exception" : null + } ], + "variables" : [ "jtccommitblocklistheaders048061f27e72b2a8784dde", "javablobcommitblocklistheaders139386309c38aa6e154", "0ef8e69f-8975-45df-81ec-2d87e2c7cb88" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestcommitblocklistheaders[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestcommitblocklistheaders[1].json new file mode 100644 index 0000000000000..60eb58704bb1d --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestcommitblocklistheaders[1].json @@ -0,0 +1,165 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistheaders0031472720cdc7fa6a4130?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728132D76006E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97b55f-801e-0123-0afc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:12 GMT", + "x-ms-client-request-id" : "1b2e6067-45e2-4e18-b915-bc6d7a220e03" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistheaders0031472720cdc7fa6a4130/javablobcommitblocklistheaders190175a022c2fa52334", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:12 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:12 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D728132D7E9558\"", + "Content-Length" : "0", + "x-ms-request-id" : "ad97b577-801e-0123-1efc-5919e8000000", + "x-ms-client-request-id" : "4cb69909-c160-4c99-b6d2-fdd1c39e71a5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistheaders0031472720cdc7fa6a4130/javablobcommitblocklistheaders190175a022c2fa52334?blockid=NDA2ZmVhM2ItY2ExNS00Y2RmLWFkMTAtZjQyZDQ1NjJmZjM1&comp=block", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97b586-801e-0123-2cfc-5919e8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:12 GMT", + "x-ms-client-request-id" : "af340903-fe7a-4c15-9def-209de6196898" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistheaders0031472720cdc7fa6a4130/javablobcommitblocklistheaders190175a022c2fa52334?comp=blocklist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728132D8A30E9\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97b590-801e-0123-35fc-5919e8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:12 GMT", + "x-ms-client-request-id" : "70a70992-18d4-461e-a8a0-4f1583748598", + "Content-MD5" : "nIgsZLgp7L1zP0bYT2lTVw==" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistheaders0031472720cdc7fa6a4130/javablobcommitblocklistheaders190175a022c2fa52334", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:12 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-blob-type" : "BlockBlob", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "Content-Encoding" : "encoding", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:45:12 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "ad97b5a2-801e-0123-43fc-5919e8000000", + "Content-Type" : "type", + "x-ms-version" : "2019-02-02", + "Date" : "Fri, 23 Aug 2019 21:45:12 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "Cache-Control" : "control", + "ETag" : "\"0x8D728132D8A30E9\"", + "Content-Disposition" : "disposition", + "x-ms-client-request-id" : "9df656ab-32c1-41eb-a7bc-f375221f5536", + "Content-Language" : "language" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccommitblocklistheaders&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ad97b5ab-801e-0123-4afc-5919e8000000", + "Body" : "jtccommitblocklistheadersjtccommitblocklistheaders0031472720cdc7fa6a4130Fri, 23 Aug 2019 21:45:12 GMT\"0x8D728132D76006E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:12 GMT", + "x-ms-client-request-id" : "2c4fd59e-5aa6-4b33-8d02-e1d551da8517", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistheaders0031472720cdc7fa6a4130?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "ad97b5bc-801e-0123-59fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:12 GMT", + "x-ms-client-request-id" : "688b7fe2-c2c4-4985-91be-205e58ff8e2c" + }, + "Exception" : null + } ], + "variables" : [ "jtccommitblocklistheaders0031472720cdc7fa6a4130", "javablobcommitblocklistheaders190175a022c2fa52334", "406fea3b-ca15-4cdf-ad10-f42d4562ff35" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestcommitblocklistmetadata[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestcommitblocklistmetadata[0].json new file mode 100644 index 0000000000000..a8739f22a5dfb --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestcommitblocklistmetadata[0].json @@ -0,0 +1,139 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistmetadata063865453ddcef92e3483?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728132DA531E3\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97b5cd-801e-0123-69fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:12 GMT", + "x-ms-client-request-id" : "20e3a0f6-f9a3-4345-bbef-faaebc588b36" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistmetadata063865453ddcef92e3483/javablobcommitblocklistmetadata171869565b0886af234", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:13 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:12 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D728132DAB559F\"", + "Content-Length" : "0", + "x-ms-request-id" : "ad97b5ec-801e-0123-02fc-5919e8000000", + "x-ms-client-request-id" : "7d31de2f-cc37-499d-b52d-9362369c6405" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistmetadata063865453ddcef92e3483/javablobcommitblocklistmetadata171869565b0886af234?comp=blocklist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728132DB0FC54\"", + "x-ms-content-crc64" : "p1vsGtjjPsk=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97b5f9-801e-0123-0cfc-5919e8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:12 GMT", + "x-ms-client-request-id" : "b950fb70-7a99-4e09-8d62-e45c8c7b5998" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistmetadata063865453ddcef92e3483/javablobcommitblocklistmetadata171869565b0886af234", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:13 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:45:12 GMT", + "x-ms-blob-type" : "BlockBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D728132DB0FC54\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:45:13 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "ad97b609-801e-0123-1bfc-5919e8000000", + "x-ms-client-request-id" : "14078953-b492-4721-9af2-f574681b9cab", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccommitblocklistmetadata&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ad97b611-801e-0123-22fc-5919e8000000", + "Body" : "jtccommitblocklistmetadatajtccommitblocklistmetadata063865453ddcef92e3483Fri, 23 Aug 2019 21:45:13 GMT\"0x8D728132DA531E3\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:12 GMT", + "x-ms-client-request-id" : "72d54392-f2b1-47d4-96f9-817285ad82e7", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistmetadata063865453ddcef92e3483?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "ad97b618-801e-0123-26fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:12 GMT", + "x-ms-client-request-id" : "f2cf8e21-ec8e-4db9-9aee-bd8f1825d584" + }, + "Exception" : null + } ], + "variables" : [ "jtccommitblocklistmetadata063865453ddcef92e3483", "javablobcommitblocklistmetadata171869565b0886af234" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestcommitblocklistmetadata[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestcommitblocklistmetadata[1].json new file mode 100644 index 0000000000000..0645209c173c7 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestcommitblocklistmetadata[1].json @@ -0,0 +1,141 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistmetadata0266177a0a00df996f432?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728132DD0DFBD\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97b625-801e-0123-2efc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:12 GMT", + "x-ms-client-request-id" : "7337183e-a969-455f-a016-62d3ddba1ae6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistmetadata0266177a0a00df996f432/javablobcommitblocklistmetadata1917945dfed9261dbc4", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:13 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:12 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D728132DD667D7\"", + "Content-Length" : "0", + "x-ms-request-id" : "ad97b62e-801e-0123-34fc-5919e8000000", + "x-ms-client-request-id" : "49ede8a2-6d1c-4841-b7f3-1280361c3f84" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistmetadata0266177a0a00df996f432/javablobcommitblocklistmetadata1917945dfed9261dbc4?comp=blocklist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728132DDC0E8D\"", + "x-ms-content-crc64" : "p1vsGtjjPsk=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97b635-801e-0123-3afc-5919e8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:12 GMT", + "x-ms-client-request-id" : "9f8e6f2f-0bf0-477b-9418-ca1e7c9d1a2b" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistmetadata0266177a0a00df996f432/javablobcommitblocklistmetadata1917945dfed9261dbc4", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:13 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:45:12 GMT", + "x-ms-meta-foo" : "bar", + "x-ms-blob-type" : "BlockBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D728132DDC0E8D\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:45:13 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "ad97b639-801e-0123-3dfc-5919e8000000", + "x-ms-meta-fizz" : "buzz", + "x-ms-client-request-id" : "99cc8a2f-a3be-41f8-8ad0-121e9d706dca", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccommitblocklistmetadata&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ad97b63b-801e-0123-3efc-5919e8000000", + "Body" : "jtccommitblocklistmetadatajtccommitblocklistmetadata0266177a0a00df996f432Fri, 23 Aug 2019 21:45:13 GMT\"0x8D728132DD0DFBD\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:12 GMT", + "x-ms-client-request-id" : "0bd28a5a-111c-4155-9c9c-b340e009ac8a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistmetadata0266177a0a00df996f432?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "ad97b647-801e-0123-44fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:12 GMT", + "x-ms-client-request-id" : "c7049d59-6d21-4c7e-972a-7955df31dc3c" + }, + "Exception" : null + } ], + "variables" : [ "jtccommitblocklistmetadata0266177a0a00df996f432", "javablobcommitblocklistmetadata1917945dfed9261dbc4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestcommitblocklistmin.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestcommitblocklistmin.json new file mode 100644 index 0000000000000..f3dbe311563a1 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestcommitblocklistmin.json @@ -0,0 +1,130 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistmin0180569be37710ba844d909e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728132D0AC9AF\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97b420-801e-0123-76fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:11 GMT", + "x-ms-client-request-id" : "a15943a8-1e4b-468c-b7f2-04293ca4b202" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistmin0180569be37710ba844d909e/javablobcommitblocklistmin1958582021c7d5b600474", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:12 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:11 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D728132D104F1F\"", + "Content-Length" : "0", + "x-ms-request-id" : "ad97b43b-801e-0123-0ffc-5919e8000000", + "x-ms-client-request-id" : "c76ab6c9-7fbe-4048-9a9a-1a75ae56bd12" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistmin0180569be37710ba844d909e/javablobcommitblocklistmin1958582021c7d5b600474?blockid=YzM0MzExOWItNWQxNC00OGVmLWJhNjEtZWQxYjY4NjYwYWYz&comp=block", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97b44d-801e-0123-1ffc-5919e8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:11 GMT", + "x-ms-client-request-id" : "50671939-922f-4576-bf2c-dfb2fbaf46a5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistmin0180569be37710ba844d909e/javablobcommitblocklistmin1958582021c7d5b600474?comp=blocklist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728132D1D98D0\"", + "x-ms-content-crc64" : "0TvXpb3pSZs=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97b472-801e-0123-3ffc-5919e8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:11 GMT", + "x-ms-client-request-id" : "9877a246-b54d-462b-90dd-8294242c591c" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccommitblocklistmin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ad97b494-801e-0123-5bfc-5919e8000000", + "Body" : "jtccommitblocklistminjtccommitblocklistmin0180569be37710ba844d909eFri, 23 Aug 2019 21:45:12 GMT\"0x8D728132D0AC9AF\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:11 GMT", + "x-ms-client-request-id" : "8d3463db-b1ce-4c79-957e-0efdb5b11aaf", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistmin0180569be37710ba844d909e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "ad97b4a5-801e-0123-68fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:11 GMT", + "x-ms-client-request-id" : "2f0400ff-f266-4957-99a6-15b9c866a6ab" + }, + "Exception" : null + } ], + "variables" : [ "jtccommitblocklistmin0180569be37710ba844d909e", "javablobcommitblocklistmin1958582021c7d5b600474", "c343119b-5d14-48ef-ba61-ed1b68660af3" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestcommitblocklistnull.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestcommitblocklistnull.json new file mode 100644 index 0000000000000..1f8058324ebd5 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestcommitblocklistnull.json @@ -0,0 +1,109 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistnull08120185f88d8185074e8eb?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728132D31E2B8\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97b4af-801e-0123-72fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:11 GMT", + "x-ms-client-request-id" : "274cc756-ff0a-4037-b96d-c878be77d3ed" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistnull08120185f88d8185074e8eb/javablobcommitblocklistnull19360137aac4decaa9434", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:12 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:11 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D728132D378FD0\"", + "Content-Length" : "0", + "x-ms-request-id" : "ad97b4c0-801e-0123-02fc-5919e8000000", + "x-ms-client-request-id" : "d4f59958-3945-4c5e-bced-a65180617da5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistnull08120185f88d8185074e8eb/javablobcommitblocklistnull19360137aac4decaa9434?comp=blocklist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728132D3D368B\"", + "x-ms-content-crc64" : "p1vsGtjjPsk=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97b4cc-801e-0123-0dfc-5919e8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:11 GMT", + "x-ms-client-request-id" : "6229adbf-4331-471e-af0c-b4d47897ddf7" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccommitblocklistnull&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ad97b4d8-801e-0123-17fc-5919e8000000", + "Body" : "jtccommitblocklistnulljtccommitblocklistnull08120185f88d8185074e8ebFri, 23 Aug 2019 21:45:12 GMT\"0x8D728132D31E2B8\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:11 GMT", + "x-ms-client-request-id" : "b9cb2e62-90f1-4d7f-9f1f-a2f34c9da495", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccommitblocklistnull08120185f88d8185074e8eb?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "ad97b4e3-801e-0123-20fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:11 GMT", + "x-ms-client-request-id" : "8be69fa8-7b1d-4591-abcb-e8511d238116" + }, + "Exception" : null + } ], + "variables" : [ "jtccommitblocklistnull08120185f88d8185074e8eb", "javablobcommitblocklistnull19360137aac4decaa9434" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestgetblocklist.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestgetblocklist.json new file mode 100644 index 0000000000000..65c4bdff140f8 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestgetblocklist.json @@ -0,0 +1,216 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetblocklist0blockblobapitestgetblocklist68a18125967d3?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133135D2B3\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:19 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "0a3ca845-301e-0118-3cfc-595bb6000000", + "Date" : "Fri, 23 Aug 2019 21:45:18 GMT", + "x-ms-client-request-id" : "5c5b1661-ecff-4a11-8d51-6aba704b2403" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetblocklist0blockblobapitestgetblocklist68a18125967d3/javablobgetblocklist1blockblobapitestgetblocklist68a39081256", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:19 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:18 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72813313B4FD2\"", + "Content-Length" : "0", + "x-ms-request-id" : "0a3ca863-301e-0118-58fc-595bb6000000", + "x-ms-client-request-id" : "279949b2-2c6e-4b43-a1b3-e33bf369461f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetblocklist0blockblobapitestgetblocklist68a18125967d3/javablobgetblocklist1blockblobapitestgetblocklist68a39081256?blockid=MmEzYWE1NWEtZWQzNS00ODBhLTk3MjctNDA0YjE4OWYxYWYz&comp=block", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "0a3ca882-301e-0118-73fc-595bb6000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:18 GMT", + "x-ms-client-request-id" : "dfd2d8b6-789b-452a-874b-dc3cb6358663" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetblocklist0blockblobapitestgetblocklist68a18125967d3/javablobgetblocklist1blockblobapitestgetblocklist68a39081256?blockid=YTg0YjZlYTQtZjkxNy00OTdlLWE2OGUtZDQxYjhiNThmYmMx&comp=block", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "0a3ca894-301e-0118-02fc-595bb6000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:18 GMT", + "x-ms-client-request-id" : "4bb13bdb-8d88-41c4-bcad-fbed8f1c790e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetblocklist0blockblobapitestgetblocklist68a18125967d3/javablobgetblocklist1blockblobapitestgetblocklist68a39081256?comp=blocklist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813314A4796\"", + "x-ms-content-crc64" : "dRLtaZzjCKM=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:19 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "0a3ca8ac-301e-0118-14fc-595bb6000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:18 GMT", + "x-ms-client-request-id" : "ae2b1477-1e13-4e2e-9b83-408234b5efb8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetblocklist0blockblobapitestgetblocklist68a18125967d3/javablobgetblocklist1blockblobapitestgetblocklist68a39081256?blockid=MDlkOGQwYzYtZjhmNy00OWM1LWJiMmItMjJjZGM5YWQxNTY2&comp=block", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "0a3ca8c4-301e-0118-28fc-595bb6000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:18 GMT", + "x-ms-client-request-id" : "61c7e0e4-6a77-4412-b7eb-e0d850b7967c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetblocklist0blockblobapitestgetblocklist68a18125967d3/javablobgetblocklist1blockblobapitestgetblocklist68a39081256?blockid=ODkxZGExNTEtOWM2MS00MGZhLTlkZjctODA3YzBlNWI2ZTkw&comp=block", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "0a3ca8d5-301e-0118-38fc-595bb6000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:18 GMT", + "x-ms-client-request-id" : "5a4d77e4-7b62-4820-a266-4253c234204a" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetblocklist0blockblobapitestgetblocklist68a18125967d3/javablobgetblocklist1blockblobapitestgetblocklist68a39081256?blocklisttype=all&comp=blocklist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-blob-content-length" : "14", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:19 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:45:19 GMT", + "ETag" : "\"0x8D72813314A4796\"", + "x-ms-request-id" : "0a3ca8eb-301e-0118-4bfc-595bb6000000", + "Body" : "MmEzYWE1NWEtZWQzNS00ODBhLTk3MjctNDA0YjE4OWYxYWYz7YTg0YjZlYTQtZjkxNy00OTdlLWE2OGUtZDQxYjhiNThmYmMx7MDlkOGQwYzYtZjhmNy00OWM1LWJiMmItMjJjZGM5YWQxNTY27ODkxZGExNTEtOWM2MS00MGZhLTlkZjctODA3YzBlNWI2ZTkw7", + "x-ms-client-request-id" : "cf14b931-4320-4fa1-a54c-131ce9b06d7b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetblocklist&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "0a3ca90a-301e-0118-67fc-595bb6000000", + "Body" : "jtcgetblocklistjtcgetblocklist0blockblobapitestgetblocklist68a18125967d3Fri, 23 Aug 2019 21:45:19 GMT\"0x8D728133135D2B3\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:19 GMT", + "x-ms-client-request-id" : "2f5c0e4c-62e8-4f17-9279-c4ee654b8ae4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetblocklist0blockblobapitestgetblocklist68a18125967d3?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "0a3ca91c-301e-0118-76fc-595bb6000000", + "Date" : "Fri, 23 Aug 2019 21:45:19 GMT", + "x-ms-client-request-id" : "f08f02ab-edeb-4fa1-8217-0b71709e8bd1" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetblocklist0blockblobapitestgetblocklist68a18125967d3", "javablobgetblocklist1blockblobapitestgetblocklist68a39081256", "2a3aa55a-ed35-480a-9727-404b189f1af3", "a84b6ea4-f917-497e-a68e-d41b8b58fbc1", "09d8d0c6-f8f7-49c5-bb2b-22cdc9ad1566", "891da151-9c61-40fa-9df7-807c0e5b6e90" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestgetblocklisterror.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestgetblocklisterror.json new file mode 100644 index 0000000000000..859d6688a4e2b --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestgetblocklisterror.json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetblocklisterror0blockblobapitestgetblocklisterror3ce06272?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281332CE1617\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "0a3cae5e-301e-0118-25fc-595bb6000000", + "Date" : "Fri, 23 Aug 2019 21:45:21 GMT", + "x-ms-client-request-id" : "f2571154-466b-4824-b9a5-b0d410342a35" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetblocklisterror0blockblobapitestgetblocklisterror3ce06272/javablobgetblocklisterror1099597fb2f24b9e764e0d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:21 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:21 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D7281332D3925B\"", + "Content-Length" : "0", + "x-ms-request-id" : "0a3cae7f-301e-0118-45fc-595bb6000000", + "x-ms-client-request-id" : "c63b7a14-85cd-4376-ad05-247ff226cf84" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetblocklisterror0blockblobapitestgetblocklisterror3ce06272/javablobgetblocklisterror252195ba8b0a62d5ba4d29?blocklisttype=all&comp=blocklist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "BlobNotFound", + "retry-after" : "0", + "Content-Length" : "215", + "StatusCode" : "404", + "x-ms-request-id" : "0a3cae9c-301e-0118-60fc-595bb6000000", + "Body" : "BlobNotFoundThe specified blob does not exist.\nRequestId:0a3cae9c-301e-0118-60fc-595bb6000000\nTime:2019-08-23T21:45:21.8761732Z", + "Date" : "Fri, 23 Aug 2019 21:45:21 GMT", + "x-ms-client-request-id" : "702a84e6-4854-449f-8257-c29d7edf652a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetblocklisterror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "0a3caeb0-301e-0118-73fc-595bb6000000", + "Body" : "jtcgetblocklisterrorjtcgetblocklisterror0blockblobapitestgetblocklisterror3ce06272Fri, 23 Aug 2019 21:45:21 GMT\"0x8D7281332CE1617\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:21 GMT", + "x-ms-client-request-id" : "525bfd39-8d5f-4ca0-b337-a3e24a94f643", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetblocklisterror0blockblobapitestgetblocklisterror3ce06272?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "0a3caebc-301e-0118-7ffc-595bb6000000", + "Date" : "Fri, 23 Aug 2019 21:45:21 GMT", + "x-ms-client-request-id" : "20346976-8a63-444f-bb45-8f75d466c6eb" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetblocklisterror0blockblobapitestgetblocklisterror3ce06272", "javablobgetblocklisterror1099597fb2f24b9e764e0d", "javablobgetblocklisterror252195ba8b0a62d5ba4d29" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestgetblocklistlease.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestgetblocklistlease.json new file mode 100644 index 0000000000000..5ba68fae03f9e --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestgetblocklistlease.json @@ -0,0 +1,130 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetblocklistlease0blockblobapitestgetblocklistlease89583003?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813328B08F2\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "0a3cad5c-301e-0118-34fc-595bb6000000", + "Date" : "Fri, 23 Aug 2019 21:45:21 GMT", + "x-ms-client-request-id" : "5351f0d8-bc8b-4ca8-8245-162804e5e217" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetblocklistlease0blockblobapitestgetblocklistlease89583003/javablobgetblocklistlease181550cdfd6d8ef3424f1d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:21 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:21 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D728133290857A\"", + "Content-Length" : "0", + "x-ms-request-id" : "0a3cad76-301e-0118-4cfc-595bb6000000", + "x-ms-client-request-id" : "8af66ec1-23b4-4b18-9533-5b8f09043bdf" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetblocklistlease0blockblobapitestgetblocklistlease89583003/javablobgetblocklistlease181550cdfd6d8ef3424f1d?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133290857A\"", + "x-ms-lease-id" : "b57c0039-5699-4c1f-9c6a-1593502991fb", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "0a3cad9b-301e-0118-6efc-595bb6000000", + "Date" : "Fri, 23 Aug 2019 21:45:21 GMT", + "x-ms-client-request-id" : "25ace144-7f6f-4e90-80dd-4ac9f1240b1f" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetblocklistlease0blockblobapitestgetblocklistlease89583003/javablobgetblocklistlease181550cdfd6d8ef3424f1d?blocklisttype=all&comp=blocklist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-blob-content-length" : "7", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:21 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:45:21 GMT", + "ETag" : "\"0x8D728133290857A\"", + "x-ms-request-id" : "0a3cada7-301e-0118-78fc-595bb6000000", + "Body" : "", + "x-ms-client-request-id" : "54f556db-3eaa-4433-a1ad-590bea6b859f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetblocklistlease&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "0a3cadac-301e-0118-7dfc-595bb6000000", + "Body" : "jtcgetblocklistleasejtcgetblocklistlease0blockblobapitestgetblocklistlease89583003Fri, 23 Aug 2019 21:45:21 GMT\"0x8D72813328B08F2\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:21 GMT", + "x-ms-client-request-id" : "b58590c8-b55d-4d37-865e-a0da2da9ef8a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetblocklistlease0blockblobapitestgetblocklistlease89583003?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "0a3cadba-301e-0118-0bfc-595bb6000000", + "Date" : "Fri, 23 Aug 2019 21:45:21 GMT", + "x-ms-client-request-id" : "10e4504d-750e-4b50-9aee-a6dc3453342f" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetblocklistlease0blockblobapitestgetblocklistlease89583003", "javablobgetblocklistlease181550cdfd6d8ef3424f1d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestgetblocklistleasefail.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestgetblocklistleasefail.json new file mode 100644 index 0000000000000..c9422647f45be --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestgetblocklistleasefail.json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetblocklistleasefail026280202f25009e414aa0?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281332AF89F4\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "0a3cadd0-301e-0118-1ffc-595bb6000000", + "Date" : "Fri, 23 Aug 2019 21:45:21 GMT", + "x-ms-client-request-id" : "4a851bef-7101-40f5-9fab-20b3dfd4f952" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetblocklistleasefail026280202f25009e414aa0/javablobgetblocklistleasefail104606ccf05ada9f2a4b", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:21 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:21 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D7281332B55497\"", + "Content-Length" : "0", + "x-ms-request-id" : "0a3cadeb-301e-0118-36fc-595bb6000000", + "x-ms-client-request-id" : "d14f4eb6-ba43-4542-9028-d890343fa5f7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetblocklistleasefail026280202f25009e414aa0/javablobgetblocklistleasefail104606ccf05ada9f2a4b?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281332B55497\"", + "x-ms-lease-id" : "7dd204b6-e982-49ca-8c7d-b2f60b318752", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "0a3cae07-301e-0118-52fc-595bb6000000", + "Date" : "Fri, 23 Aug 2019 21:45:21 GMT", + "x-ms-client-request-id" : "07c1feb1-1545-474d-9ee5-80db36c313df" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetblocklistleasefail026280202f25009e414aa0/javablobgetblocklistleasefail104606ccf05ada9f2a4b?blocklisttype=all&comp=blocklist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "LeaseIdMismatchWithBlobOperation", + "retry-after" : "0", + "Content-Length" : "264", + "StatusCode" : "412", + "x-ms-request-id" : "0a3cae20-301e-0118-6bfc-595bb6000000", + "Body" : "LeaseIdMismatchWithBlobOperationThe lease ID specified did not match the lease ID for the blob.\nRequestId:0a3cae20-301e-0118-6bfc-595bb6000000\nTime:2019-08-23T21:45:21.7110120Z", + "Date" : "Fri, 23 Aug 2019 21:45:21 GMT", + "x-ms-client-request-id" : "8f86cf75-9f8e-4c4a-b920-170ec09df055", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetblocklistleasefail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "0a3cae39-301e-0118-03fc-595bb6000000", + "Body" : "jtcgetblocklistleasefailjtcgetblocklistleasefail026280202f25009e414aa0Fri, 23 Aug 2019 21:45:21 GMT\"0x8D7281332AF89F4\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:21 GMT", + "x-ms-client-request-id" : "d2adf788-c7f9-43ff-8cc7-01137ca9e443", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetblocklistleasefail026280202f25009e414aa0?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "0a3cae46-301e-0118-0efc-595bb6000000", + "Date" : "Fri, 23 Aug 2019 21:45:21 GMT", + "x-ms-client-request-id" : "8b66f4c9-ee3d-4ced-86f1-aad8dfb59eb2" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetblocklistleasefail026280202f25009e414aa0", "javablobgetblocklistleasefail104606ccf05ada9f2a4b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestgetblocklistmin.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestgetblocklistmin.json new file mode 100644 index 0000000000000..b6abfbd9c471d --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestgetblocklistmin.json @@ -0,0 +1,109 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetblocklistmin0blockblobapitestgetblocklistmind0415123da?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281331CC92D8\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "0a3caa90-301e-0118-3dfc-595bb6000000", + "Date" : "Fri, 23 Aug 2019 21:45:19 GMT", + "x-ms-client-request-id" : "2f75aa36-31f4-49a0-a977-020af5cdb572" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetblocklistmin0blockblobapitestgetblocklistmind0415123da/javablobgetblocklistmin142078501ffd61796944c9a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:20 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:19 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D7281331D1E86B\"", + "Content-Length" : "0", + "x-ms-request-id" : "0a3caaa2-301e-0118-4efc-595bb6000000", + "x-ms-client-request-id" : "9270ef47-4462-438d-89b5-3ba3290c3780" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetblocklistmin0blockblobapitestgetblocklistmind0415123da/javablobgetblocklistmin142078501ffd61796944c9a?blocklisttype=all&comp=blocklist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-blob-content-length" : "7", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:20 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:45:19 GMT", + "ETag" : "\"0x8D7281331D1E86B\"", + "x-ms-request-id" : "0a3caab0-301e-0118-5afc-595bb6000000", + "Body" : "", + "x-ms-client-request-id" : "01cbd5f1-ae22-4a51-a507-18fb7266d0db", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetblocklistmin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "0a3caac3-301e-0118-68fc-595bb6000000", + "Body" : "jtcgetblocklistminjtcgetblocklistmin0blockblobapitestgetblocklistmind0415123daFri, 23 Aug 2019 21:45:20 GMT\"0x8D7281331CC92D8\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:19 GMT", + "x-ms-client-request-id" : "7184a733-3369-42db-ae0b-aa0d963ef6fe", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetblocklistmin0blockblobapitestgetblocklistmind0415123da?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "0a3caad9-301e-0118-7cfc-595bb6000000", + "Date" : "Fri, 23 Aug 2019 21:45:19 GMT", + "x-ms-client-request-id" : "05a9ad42-8f2c-4e7c-b9ab-5437f9281bdb" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetblocklistmin0blockblobapitestgetblocklistmind0415123da", "javablobgetblocklistmin142078501ffd61796944c9a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestgetblocklisttype[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestgetblocklisttype[0].json new file mode 100644 index 0000000000000..28232c55bded8 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestgetblocklisttype[0].json @@ -0,0 +1,174 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetblocklisttype0blockblobapitestgetblocklisttype678924903?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281331E79B94\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "0a3caafe-301e-0118-1cfc-595bb6000000", + "Date" : "Fri, 23 Aug 2019 21:45:19 GMT", + "x-ms-client-request-id" : "5b776ac7-6765-4f98-9415-fc744eeede58" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetblocklisttype0blockblobapitestgetblocklisttype678924903/javablobgetblocklisttype1046607da3c96416034844", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:20 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:19 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D7281331ECCA15\"", + "Content-Length" : "0", + "x-ms-request-id" : "0a3cab1c-301e-0118-36fc-595bb6000000", + "x-ms-client-request-id" : "95310a94-f7c6-488e-8361-82af5c623e93" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetblocklisttype0blockblobapitestgetblocklisttype678924903/javablobgetblocklisttype1046607da3c96416034844?blockid=OGMzMjgyY2QtZTUwNy00ZDk1LTkzNGItNDZiNDllZmZlMDk0&comp=block", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "0a3cab37-301e-0118-4cfc-595bb6000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:20 GMT", + "x-ms-client-request-id" : "4314537d-ade2-420f-8adb-319e142390b0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetblocklisttype0blockblobapitestgetblocklisttype678924903/javablobgetblocklisttype1046607da3c96416034844?comp=blocklist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281331F753FE\"", + "x-ms-content-crc64" : "QgvG5WiakHU=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "0a3cab4d-301e-0118-61fc-595bb6000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:20 GMT", + "x-ms-client-request-id" : "6a73ed5a-021b-471c-a28b-07823775be6d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetblocklisttype0blockblobapitestgetblocklisttype678924903/javablobgetblocklisttype1046607da3c96416034844?blockid=MmM0ODcyYjctMGVhZi00YTUxLTljYjktOGM2MDI3MWUxODNk&comp=block", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "0a3cab73-301e-0118-04fc-595bb6000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:20 GMT", + "x-ms-client-request-id" : "83372ad8-7814-4a09-b3b6-519a6ace91aa" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetblocklisttype0blockblobapitestgetblocklisttype678924903/javablobgetblocklisttype1046607da3c96416034844?blocklisttype=all&comp=blocklist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-blob-content-length" : "7", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:20 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:45:20 GMT", + "ETag" : "\"0x8D7281331F753FE\"", + "x-ms-request-id" : "0a3cab8b-301e-0118-1bfc-595bb6000000", + "Body" : "OGMzMjgyY2QtZTUwNy00ZDk1LTkzNGItNDZiNDllZmZlMDk07MmM0ODcyYjctMGVhZi00YTUxLTljYjktOGM2MDI3MWUxODNk7", + "x-ms-client-request-id" : "84b24b53-8480-439f-81dd-8b78124f8bf8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetblocklisttype&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "0a3cabc1-301e-0118-4afc-595bb6000000", + "Body" : "jtcgetblocklisttypejtcgetblocklisttype0blockblobapitestgetblocklisttype678924903Fri, 23 Aug 2019 21:45:20 GMT\"0x8D7281331E79B94\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:20 GMT", + "x-ms-client-request-id" : "f593ce4d-0d6f-432b-b8ac-1bd2394352cb", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetblocklisttype0blockblobapitestgetblocklisttype678924903?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "0a3cabd1-301e-0118-58fc-595bb6000000", + "Date" : "Fri, 23 Aug 2019 21:45:20 GMT", + "x-ms-client-request-id" : "8864bb0e-b3fa-4ded-ad40-ec4a1ece1d3c" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetblocklisttype0blockblobapitestgetblocklisttype678924903", "javablobgetblocklisttype1046607da3c96416034844", "8c3282cd-e507-4d95-934b-46b49effe094", "2c4872b7-0eaf-4a51-9cb9-8c60271e183d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestgetblocklisttype[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestgetblocklisttype[1].json new file mode 100644 index 0000000000000..1a0063df91761 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestgetblocklisttype[1].json @@ -0,0 +1,174 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetblocklisttype0blockblobapitestgetblocklisttype619493539?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281332165841\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "0a3cabef-301e-0118-71fc-595bb6000000", + "Date" : "Fri, 23 Aug 2019 21:45:20 GMT", + "x-ms-client-request-id" : "02406b51-928d-4791-9b67-03c95f10ad7c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetblocklisttype0blockblobapitestgetblocklisttype619493539/javablobgetblocklisttype107843b639cba29f7b4665", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:20 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:20 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72813321BD4F2\"", + "Content-Length" : "0", + "x-ms-request-id" : "0a3cac02-301e-0118-01fc-595bb6000000", + "x-ms-client-request-id" : "3b041113-4a32-4b26-936e-eb00a3afc6db" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetblocklisttype0blockblobapitestgetblocklisttype619493539/javablobgetblocklisttype107843b639cba29f7b4665?blockid=NmRlM2I4MDAtZTk3ZS00NjM1LWFhYmItNTMxOTJhNTQ2N2Ex&comp=block", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "0a3cac0b-301e-0118-09fc-595bb6000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:20 GMT", + "x-ms-client-request-id" : "362fb65c-790f-446c-a36b-37ae355fd52f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetblocklisttype0blockblobapitestgetblocklisttype619493539/javablobgetblocklisttype107843b639cba29f7b4665?comp=blocklist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133226AD13\"", + "x-ms-content-crc64" : "9nG6WJG9ON4=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "0a3cac18-301e-0118-16fc-595bb6000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:20 GMT", + "x-ms-client-request-id" : "488e5036-f4db-4135-8028-fa03b14ceb91" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetblocklisttype0blockblobapitestgetblocklisttype619493539/javablobgetblocklisttype107843b639cba29f7b4665?blockid=MjU2NmMyMmYtZDA0OC00ZDc4LWExZDYtZGQyZTA5OTE5MTM3&comp=block", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "0a3cac2b-301e-0118-25fc-595bb6000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:20 GMT", + "x-ms-client-request-id" : "9c2a3a31-e1ca-4893-bf09-74191744700e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetblocklisttype0blockblobapitestgetblocklisttype619493539/javablobgetblocklisttype107843b639cba29f7b4665?blocklisttype=committed&comp=blocklist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-blob-content-length" : "7", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:20 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:45:20 GMT", + "ETag" : "\"0x8D728133226AD13\"", + "x-ms-request-id" : "0a3cac38-301e-0118-31fc-595bb6000000", + "Body" : "NmRlM2I4MDAtZTk3ZS00NjM1LWFhYmItNTMxOTJhNTQ2N2Ex7", + "x-ms-client-request-id" : "cacab2ce-b172-4b60-8ff9-2461a16f13de", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetblocklisttype&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "0a3cac40-301e-0118-39fc-595bb6000000", + "Body" : "jtcgetblocklisttypejtcgetblocklisttype0blockblobapitestgetblocklisttype619493539Fri, 23 Aug 2019 21:45:20 GMT\"0x8D7281332165841\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:20 GMT", + "x-ms-client-request-id" : "84860b46-305c-4164-a04d-8b89cc1c69c2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetblocklisttype0blockblobapitestgetblocklisttype619493539?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "0a3cac4c-301e-0118-45fc-595bb6000000", + "Date" : "Fri, 23 Aug 2019 21:45:20 GMT", + "x-ms-client-request-id" : "fe9b8fce-7855-48f4-aaca-0a1339a99095" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetblocklisttype0blockblobapitestgetblocklisttype619493539", "javablobgetblocklisttype107843b639cba29f7b4665", "6de3b800-e97e-4635-aabb-53192a5467a1", "2566c22f-d048-4d78-a1d6-dd2e09919137" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestgetblocklisttype[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestgetblocklisttype[2].json new file mode 100644 index 0000000000000..9d69327273c1f --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestgetblocklisttype[2].json @@ -0,0 +1,174 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetblocklisttype0blockblobapitestgetblocklisttypebcd452580?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281332478688\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "0a3cac6b-301e-0118-5ffc-595bb6000000", + "Date" : "Fri, 23 Aug 2019 21:45:20 GMT", + "x-ms-client-request-id" : "a7b0881c-7cb2-4b19-9d42-9d295904d8e6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetblocklisttype0blockblobapitestgetblocklisttypebcd452580/javablobgetblocklisttype170603e3a77048d0654a9f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:20 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:20 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72813324CDC24\"", + "Content-Length" : "0", + "x-ms-request-id" : "0a3cac7d-301e-0118-6efc-595bb6000000", + "x-ms-client-request-id" : "95537b86-042c-4a43-8623-9266e38d2de7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetblocklisttype0blockblobapitestgetblocklisttypebcd452580/javablobgetblocklisttype170603e3a77048d0654a9f?blockid=ZDNlNGY3NWYtMzg3NS00MTgzLTg0ODgtMzUyMDczYmM0ODUy&comp=block", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "0a3cac8d-301e-0118-7bfc-595bb6000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:20 GMT", + "x-ms-client-request-id" : "199829da-29fa-4c0a-bd21-0c8abdb51a79" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetblocklisttype0blockblobapitestgetblocklisttypebcd452580/javablobgetblocklisttype170603e3a77048d0654a9f?comp=blocklist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281332576611\"", + "x-ms-content-crc64" : "7iN06OPlQ7E=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "0a3cac9a-301e-0118-08fc-595bb6000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:20 GMT", + "x-ms-client-request-id" : "4fae3742-770c-441b-a581-239953478040" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetblocklisttype0blockblobapitestgetblocklisttypebcd452580/javablobgetblocklisttype170603e3a77048d0654a9f?blockid=ZWVjYWJiMGUtNTQwNS00ZWNlLWE1MmMtZWQyYTEzNzQ0ZDI0&comp=block", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "0a3cacb0-301e-0118-1bfc-595bb6000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:20 GMT", + "x-ms-client-request-id" : "754a2809-71c0-4c16-ac1f-f8dc2ef9c5ac" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetblocklisttype0blockblobapitestgetblocklisttypebcd452580/javablobgetblocklisttype170603e3a77048d0654a9f?blocklisttype=uncommitted&comp=blocklist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-blob-content-length" : "7", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:21 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:45:20 GMT", + "ETag" : "\"0x8D7281332576611\"", + "x-ms-request-id" : "0a3cacca-301e-0118-32fc-595bb6000000", + "Body" : "ZWVjYWJiMGUtNTQwNS00ZWNlLWE1MmMtZWQyYTEzNzQ0ZDI07", + "x-ms-client-request-id" : "c13ecb26-3a5a-4a8a-a25d-44a0c8f4f200", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetblocklisttype&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "0a3cacda-301e-0118-42fc-595bb6000000", + "Body" : "jtcgetblocklisttypejtcgetblocklisttype0blockblobapitestgetblocklisttypebcd452580Fri, 23 Aug 2019 21:45:20 GMT\"0x8D7281332478688\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:20 GMT", + "x-ms-client-request-id" : "b3ad525e-d3c0-4fc1-86d3-4bf625597cd9", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetblocklisttype0blockblobapitestgetblocklisttypebcd452580?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "0a3cacee-301e-0118-52fc-595bb6000000", + "Date" : "Fri, 23 Aug 2019 21:45:20 GMT", + "x-ms-client-request-id" : "57f84e55-ec91-40d6-82dd-3a9a018aec2d" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetblocklisttype0blockblobapitestgetblocklisttypebcd452580", "javablobgetblocklisttype170603e3a77048d0654a9f", "d3e4f75f-3875-4183-8488-352073bc4852", "eecabb0e-5405-4ece-a52c-ed2a13744d24" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestgetblocklisttypenull.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestgetblocklisttypenull.json new file mode 100644 index 0000000000000..36c28a6a5975f --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestgetblocklisttypenull.json @@ -0,0 +1,109 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetblocklisttypenull078453c00189d1f7054b1c9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281332718727\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "0a3cad04-301e-0118-67fc-595bb6000000", + "Date" : "Fri, 23 Aug 2019 21:45:20 GMT", + "x-ms-client-request-id" : "1b3966e3-2077-486a-8328-23a94154b2aa" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetblocklisttypenull078453c00189d1f7054b1c9/javablobgetblocklisttypenull118353b1b5a1fb1fba49", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:21 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:20 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72813327703C4\"", + "Content-Length" : "0", + "x-ms-request-id" : "0a3cad17-301e-0118-77fc-595bb6000000", + "x-ms-client-request-id" : "76fc12e7-23c9-416e-8caf-f03a510a16c5" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetblocklisttypenull078453c00189d1f7054b1c9/javablobgetblocklisttypenull118353b1b5a1fb1fba49?comp=blocklist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-blob-content-length" : "7", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:21 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:45:20 GMT", + "ETag" : "\"0x8D72813327703C4\"", + "x-ms-request-id" : "0a3cad2b-301e-0118-06fc-595bb6000000", + "Body" : "", + "x-ms-client-request-id" : "31fb98dd-9f62-4280-acd4-0b961f2db575", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetblocklisttypenull&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "0a3cad3a-301e-0118-15fc-595bb6000000", + "Body" : "jtcgetblocklisttypenulljtcgetblocklisttypenull078453c00189d1f7054b1c9Fri, 23 Aug 2019 21:45:21 GMT\"0x8D7281332718727\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:20 GMT", + "x-ms-client-request-id" : "6f5daae3-b53a-4637-a621-9779f2ea52b5", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetblocklisttypenull078453c00189d1f7054b1c9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "0a3cad4c-301e-0118-24fc-595bb6000000", + "Date" : "Fri, 23 Aug 2019 21:45:20 GMT", + "x-ms-client-request-id" : "f6b81583-d65d-44c8-b7b6-b870a18aff51" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetblocklisttypenull078453c00189d1f7054b1c9", "javablobgetblocklisttypenull118353b1b5a1fb1fba49" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblock.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblock.json new file mode 100644 index 0000000000000..0949967c57cdc --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblock.json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblock0blockblobapiteststageblock83117100a2317a8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728132794AB9C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51f83a6-201e-00c4-21fc-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:45:02 GMT", + "x-ms-client-request-id" : "489f7143-e45c-4bba-831e-16d870e6efe9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblock0blockblobapiteststageblock83117100a2317a8/javablobstageblock1blockblobapiteststageblock831232025d686", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:03 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:02 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72813279A2D66\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51f83b5-201e-00c4-2efc-594fb0000000", + "x-ms-client-request-id" : "63b3dcd2-56c6-490b-bc93-7f8e151eb997" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblock0blockblobapiteststageblock83117100a2317a8/javablobstageblock1blockblobapiteststageblock831232025d686?blockid=YjM1OWM2M2UtMDBkNC00NjU4LWIzODItMjU0ZDQzZDc2MmFm&comp=block", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51f83c7-201e-00c4-3efc-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:02 GMT", + "x-ms-client-request-id" : "4c259994-da83-4f82-83b4-bbf32d6a0b06" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcstageblock&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51f83dc-201e-00c4-50fc-594fb0000000", + "Body" : "jtcstageblockjtcstageblock0blockblobapiteststageblock83117100a2317a8Fri, 23 Aug 2019 21:45:02 GMT\"0x8D728132794AB9C\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:02 GMT", + "x-ms-client-request-id" : "cf406642-8d6b-4940-a44b-f0a8ce942c82", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblock0blockblobapiteststageblock83117100a2317a8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51f83ef-201e-00c4-61fc-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:45:02 GMT", + "x-ms-client-request-id" : "687a52a6-76fe-4b2f-adb4-dbb6443ea471" + }, + "Exception" : null + } ], + "variables" : [ "jtcstageblock0blockblobapiteststageblock83117100a2317a8", "javablobstageblock1blockblobapiteststageblock831232025d686", "b359c63e-00d4-4658-b382-254d43d762af" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockemptybody.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockemptybody.json new file mode 100644 index 0000000000000..cbe3f0732178a --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockemptybody.json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockemptybody046146cd3a52249237425cb?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281328406621\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97a38d-801e-0123-41fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:03 GMT", + "x-ms-client-request-id" : "b93b985f-20d4-4b7e-91c3-2a7b130f29f7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockemptybody046146cd3a52249237425cb/javablobstageblockemptybody159949e5efa626f59b4a3", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:04 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:03 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D7281328469D4D\"", + "Content-Length" : "0", + "x-ms-request-id" : "ad97a3a9-801e-0123-59fc-5919e8000000", + "x-ms-client-request-id" : "eb40323b-fbbf-4567-bd96-256362ca1b1a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockemptybody046146cd3a52249237425cb/javablobstageblockemptybody159949e5efa626f59b4a3?blockid=YjZhZmFmYTAtOGQyMC00ZGM2LWFjNzMtODU1NWE5NzZlZTBm&comp=block", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "InvalidHeaderValue", + "retry-after" : "0", + "Content-Length" : "321", + "StatusCode" : "400", + "x-ms-request-id" : "ad97a3bc-801e-0123-6afc-5919e8000000", + "Body" : "InvalidHeaderValueThe value for one of the HTTP headers is not in the correct format.\nRequestId:ad97a3bc-801e-0123-6afc-5919e8000000\nTime:2019-08-23T21:45:04.1743938ZContent-Length0", + "Date" : "Fri, 23 Aug 2019 21:45:03 GMT", + "x-ms-client-request-id" : "9b09e3c6-1768-46cd-a1d5-f9f7fa14c039", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcstageblockemptybody&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ad97a3c9-801e-0123-76fc-5919e8000000", + "Body" : "jtcstageblockemptybodyjtcstageblockemptybody046146cd3a52249237425cbFri, 23 Aug 2019 21:45:04 GMT\"0x8D7281328406621\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:03 GMT", + "x-ms-client-request-id" : "919a2fd4-f8c5-4a97-a7f0-50037a3edf51", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockemptybody046146cd3a52249237425cb?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "ad97a3df-801e-0123-09fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:03 GMT", + "x-ms-client-request-id" : "c119f0e0-a6c8-489e-a959-fbd51158cad7" + }, + "Exception" : null + } ], + "variables" : [ "jtcstageblockemptybody046146cd3a52249237425cb", "javablobstageblockemptybody159949e5efa626f59b4a3", "b6afafa0-8d20-4dc6-ac73-8555a976ee0f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockerror.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockerror.json new file mode 100644 index 0000000000000..8405e7b624449 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockerror.json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockerror0blockblobapiteststageblockerror84f8942695?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281328D59CCB\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:05 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97a5a0-801e-0123-32fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:04 GMT", + "x-ms-client-request-id" : "9ebbe668-bd1b-4d0a-824a-264c09ac85cf" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockerror0blockblobapiteststageblockerror84f8942695/javablobstageblockerror1421721336d06b260446d09", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:05 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:04 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D7281328DCC09F\"", + "Content-Length" : "0", + "x-ms-request-id" : "ad97a5bf-801e-0123-4dfc-5919e8000000", + "x-ms-client-request-id" : "2e270180-7a81-47a3-8ade-cee244c1fc07" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockerror0blockblobapiteststageblockerror84f8942695/javablobstageblockerror21973213605bc5613c40789?blockid=id&comp=block", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "InvalidQueryParameterValue", + "retry-after" : "0", + "Content-Length" : "409", + "StatusCode" : "400", + "x-ms-request-id" : "ad97a5d2-801e-0123-60fc-5919e8000000", + "Body" : "InvalidQueryParameterValueValue for one of the query parameters specified in the request URI is invalid.\nRequestId:ad97a5d2-801e-0123-60fc-5919e8000000\nTime:2019-08-23T21:45:05.1632907ZblockididNot a valid base64 string.", + "Date" : "Fri, 23 Aug 2019 21:45:04 GMT", + "x-ms-client-request-id" : "6862c978-c0be-497a-ac41-f9a547a0e024", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcstageblockerror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ad97a5e7-801e-0123-72fc-5919e8000000", + "Body" : "jtcstageblockerrorjtcstageblockerror0blockblobapiteststageblockerror84f8942695Fri, 23 Aug 2019 21:45:05 GMT\"0x8D7281328D59CCB\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:04 GMT", + "x-ms-client-request-id" : "fc3cedae-3156-4c8e-8a08-00682bef8719", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockerror0blockblobapiteststageblockerror84f8942695?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "ad97a5fb-801e-0123-04fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:04 GMT", + "x-ms-client-request-id" : "1cfe504d-bbba-4cb1-87c5-728eba92dd45" + }, + "Exception" : null + } ], + "variables" : [ "jtcstageblockerror0blockblobapiteststageblockerror84f8942695", "javablobstageblockerror1421721336d06b260446d09", "javablobstageblockerror21973213605bc5613c40789" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockfromurl.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockfromurl.json new file mode 100644 index 0000000000000..81bcd4a3249e8 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockfromurl.json @@ -0,0 +1,199 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurl0blockblobapiteststageblockfromurl39979515?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281328F2EF9C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:05 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97a61b-801e-0123-21fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:04 GMT", + "x-ms-client-request-id" : "7b4c148d-cdb0-4da9-8313-0702896b4cb7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurl0blockblobapiteststageblockfromurl39979515/javablobstageblockfromurl1793409889c9e92f254b05", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:05 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:04 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D7281328F9021D\"", + "Content-Length" : "0", + "x-ms-request-id" : "ad97a62f-801e-0123-33fc-5919e8000000", + "x-ms-client-request-id" : "e0ef6d1c-82d1-4a9c-8103-a4748992488b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurl0blockblobapiteststageblockfromurl39979515?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281328FDE061\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:05 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ad97a648-801e-0123-4cfc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:04 GMT", + "x-ms-client-request-id" : "2ae07584-b22c-4950-b046-ccfcd6c9c1d7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurl0blockblobapiteststageblockfromurl39979515/javablobstageblockfromurl214235fb2c06fff17a4139?blockid=MDViMzRkNzgtMjg1OS00MTQwLWExZTUtYzYzZGI4ZjUxNTg5&comp=block", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97a662-801e-0123-66fc-5919e8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:04 GMT", + "x-ms-client-request-id" : "0e34bf3b-8f69-45cf-9968-45b0841461e3" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurl0blockblobapiteststageblockfromurl39979515/javablobstageblockfromurl214235fb2c06fff17a4139?blocklisttype=all&comp=blocklist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ad97a6ab-801e-0123-2cfc-5919e8000000", + "Body" : "MDViMzRkNzgtMjg1OS00MTQwLWExZTUtYzYzZGI4ZjUxNTg57", + "Date" : "Fri, 23 Aug 2019 21:45:04 GMT", + "x-ms-client-request-id" : "0ebf543d-d36e-4a06-a6f1-59a24e1a252e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurl0blockblobapiteststageblockfromurl39979515/javablobstageblockfromurl214235fb2c06fff17a4139?comp=blocklist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728132919634C\"", + "x-ms-content-crc64" : "1MDujj4vwvE=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:05 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97a6d7-801e-0123-50fc-5919e8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:04 GMT", + "x-ms-client-request-id" : "4a3e10a5-288a-4157-a026-0214c48300e4" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurl0blockblobapiteststageblockfromurl39979515/javablobstageblockfromurl214235fb2c06fff17a4139", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:05 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:45:04 GMT", + "x-ms-blob-type" : "BlockBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "\"0x8D728132919634C\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:45:05 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "ad97a6ee-801e-0123-64fc-5919e8000000", + "Body" : "[100, 101, 102, 97, 117, 108, 116]", + "x-ms-client-request-id" : "4b62f0d0-3891-44f5-98ed-3a07014bbb76", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcstageblockfromurl&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ad97a707-801e-0123-7bfc-5919e8000000", + "Body" : "jtcstageblockfromurljtcstageblockfromurl0blockblobapiteststageblockfromurl39979515Fri, 23 Aug 2019 21:45:05 GMT\"0x8D7281328FDE061\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:04 GMT", + "x-ms-client-request-id" : "6b8641d2-71f3-44d2-b668-71113b8ed8ca", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurl0blockblobapiteststageblockfromurl39979515?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "ad97a719-801e-0123-0bfc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:04 GMT", + "x-ms-client-request-id" : "feff32ba-562d-4771-a492-40d045e913f9" + }, + "Exception" : null + } ], + "variables" : [ "jtcstageblockfromurl0blockblobapiteststageblockfromurl39979515", "javablobstageblockfromurl1793409889c9e92f254b05", "javablobstageblockfromurl214235fb2c06fff17a4139", "05b34d78-2859-4140-a1e5-c63db8f51589" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockfromurlerror.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockfromurlerror.json new file mode 100644 index 0000000000000..02b3de1bad153 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockfromurlerror.json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlerror032360cbdf1822858447aa?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728132B2B61B4\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97ae87-801e-0123-7ffc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:08 GMT", + "x-ms-client-request-id" : "f47f011e-13a3-4436-bc16-5836c5152fe2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlerror032360cbdf1822858447aa/javablobstageblockfromurlerror112528ed28fb106cef4", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:09 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:08 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D728132B31553D\"", + "Content-Length" : "0", + "x-ms-request-id" : "ad97aea1-801e-0123-15fc-5919e8000000", + "x-ms-client-request-id" : "10eba623-7485-416a-96b7-16f02821e982" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlerror257341ce638586517f4cac/javablobstageblockfromurlerror3035275e30e898ccf04?blockid=MTFkZjNkODEtODNmOC00ZmQ1LTkzYmMtNjcxYzQ0MTIzZTNh&comp=block", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "CannotVerifyCopySource", + "retry-after" : "0", + "Content-Length" : "229", + "StatusCode" : "404", + "x-ms-request-id" : "ad97aeb3-801e-0123-27fc-5919e8000000", + "Body" : "CannotVerifyCopySourceThe specified resource does not exist.\nRequestId:ad97aeb3-801e-0123-27fc-5919e8000000\nTime:2019-08-23T21:45:09.0728226Z", + "Date" : "Fri, 23 Aug 2019 21:45:08 GMT", + "x-ms-client-request-id" : "3fffb4f4-e70b-41df-a5ea-74e3999b4244", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcstageblockfromurlerror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ad97aec0-801e-0123-32fc-5919e8000000", + "Body" : "jtcstageblockfromurlerrorjtcstageblockfromurlerror032360cbdf1822858447aaFri, 23 Aug 2019 21:45:08 GMT\"0x8D728132B2B61B4\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:08 GMT", + "x-ms-client-request-id" : "0a3e35a1-f324-4ab8-9775-bbd3844405e9", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlerror032360cbdf1822858447aa?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "ad97aed4-801e-0123-45fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:08 GMT", + "x-ms-client-request-id" : "f7ee75b0-c85b-4bb7-8faa-5a5a28549cfa" + }, + "Exception" : null + } ], + "variables" : [ "jtcstageblockfromurlerror032360cbdf1822858447aa", "javablobstageblockfromurlerror112528ed28fb106cef4", "jtcstageblockfromurlerror257341ce638586517f4cac", "javablobstageblockfromurlerror3035275e30e898ccf04", "11df3d81-83f8-4fd5-93bc-671c44123e3a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockfromurlia[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockfromurlia[0].json new file mode 100644 index 0000000000000..65a15cec2fd2c --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockfromurlia[0].json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlia010578ad63fe35944847dcb?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281329508E8E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:05 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97a7bc-801e-0123-1efc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:05 GMT", + "x-ms-client-request-id" : "16cdb6c2-8e4e-41c4-8d1d-d1a8e7309717" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlia010578ad63fe35944847dcb/javablobstageblockfromurlia19341612b141db05ad416", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:05 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:05 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D7281329562D19\"", + "Content-Length" : "0", + "x-ms-request-id" : "ad97a7cf-801e-0123-2efc-5919e8000000", + "x-ms-client-request-id" : "f0fdc77d-7272-4f8e-bbf7-060d0109fae9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlia010578ad63fe35944847dcb/javablobstageblockfromurlia19341612b141db05ad416?comp=block", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "MissingRequiredQueryParameter", + "retry-after" : "0", + "Content-Length" : "315", + "StatusCode" : "400", + "x-ms-request-id" : "ad97a7e4-801e-0123-41fc-5919e8000000", + "Body" : "MissingRequiredQueryParameterA query parameter that's mandatory for this request is not specified.\nRequestId:ad97a7e4-801e-0123-41fc-5919e8000000\nTime:2019-08-23T21:45:05.9500012Zblockid", + "Date" : "Fri, 23 Aug 2019 21:45:05 GMT", + "x-ms-client-request-id" : "94c81f29-e1b4-4999-b07a-e76616d840c9", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcstageblockfromurlia&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ad97a7f4-801e-0123-51fc-5919e8000000", + "Body" : "jtcstageblockfromurliajtcstageblockfromurlia010578ad63fe35944847dcbFri, 23 Aug 2019 21:45:05 GMT\"0x8D7281329508E8E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:05 GMT", + "x-ms-client-request-id" : "a95bd807-ccf1-4389-b56f-ff36a6061abb", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlia010578ad63fe35944847dcb?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "ad97a809-801e-0123-65fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:05 GMT", + "x-ms-client-request-id" : "b7c68c1a-3305-4c96-9469-40cb205fabe7" + }, + "Exception" : null + } ], + "variables" : [ "jtcstageblockfromurlia010578ad63fe35944847dcb", "javablobstageblockfromurlia19341612b141db05ad416" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockfromurlia[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockfromurlia[1].json new file mode 100644 index 0000000000000..caa84b4c9f6de --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockfromurlia[1].json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlia092773d0fd443e5d3a474b9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728132969254F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97a81c-801e-0123-76fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:05 GMT", + "x-ms-client-request-id" : "abfdbc6d-e758-4e60-aea5-b983a368b01c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlia092773d0fd443e5d3a474b9/javablobstageblockfromurlia152624ad217fa8bf23483", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:06 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:05 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D728132971840C\"", + "Content-Length" : "0", + "x-ms-request-id" : "ad97a836-801e-0123-0ffc-5919e8000000", + "x-ms-client-request-id" : "640fbe6a-7671-4a1d-b47b-a526f2c5bca6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlia092773d0fd443e5d3a474b9/javablobstageblockfromurlia152624ad217fa8bf23483?blockid=MTRiMDAzYTktNWI4MC00ZjNlLTg0MWMtZmMzYTAxZDgyNzlj&comp=block", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "InvalidHeaderValue", + "retry-after" : "0", + "Content-Length" : "321", + "StatusCode" : "400", + "x-ms-request-id" : "ad97a84b-801e-0123-22fc-5919e8000000", + "Body" : "InvalidHeaderValueThe value for one of the HTTP headers is not in the correct format.\nRequestId:ad97a84b-801e-0123-22fc-5919e8000000\nTime:2019-08-23T21:45:06.1321655ZContent-Length0", + "Date" : "Fri, 23 Aug 2019 21:45:05 GMT", + "x-ms-client-request-id" : "07a01df7-8d34-4c49-bf81-68db2278c406", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcstageblockfromurlia&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ad97a857-801e-0123-2efc-5919e8000000", + "Body" : "jtcstageblockfromurliajtcstageblockfromurlia092773d0fd443e5d3a474b9Fri, 23 Aug 2019 21:45:06 GMT\"0x8D728132969254F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:05 GMT", + "x-ms-client-request-id" : "d4a8fa33-7861-4e7b-b3d5-c2aed641af81", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlia092773d0fd443e5d3a474b9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "ad97a865-801e-0123-3cfc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:05 GMT", + "x-ms-client-request-id" : "2b2d3352-d8cc-4808-9736-192e82b702f2" + }, + "Exception" : null + } ], + "variables" : [ "jtcstageblockfromurlia092773d0fd443e5d3a474b9", "javablobstageblockfromurlia152624ad217fa8bf23483", "14b003a9-5b80-4f3e-841c-fc3a01d8279c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockfromurllease.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockfromurllease.json new file mode 100644 index 0000000000000..9b266314f6e7d --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockfromurllease.json @@ -0,0 +1,148 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurllease09369333dd25f2262341d5?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728132A0450A4\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97aa89-801e-0123-46fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:06 GMT", + "x-ms-client-request-id" : "fffeda31-40f3-472f-92a8-e435a6c4e016" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurllease09369333dd25f2262341d5/javablobstageblockfromurllease181617df3679d3eec34", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:07 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:06 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D728132A0AB554\"", + "Content-Length" : "0", + "x-ms-request-id" : "ad97aa9a-801e-0123-54fc-5919e8000000", + "x-ms-client-request-id" : "5806d773-3ff6-443f-9942-6fb4c218c6b2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurllease09369333dd25f2262341d5?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728132A0F91D2\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ad97aaaa-801e-0123-62fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:06 GMT", + "x-ms-client-request-id" : "1c63a87c-acd8-4deb-99eb-d61a1cd8d496" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurllease09369333dd25f2262341d5/javablobstageblockfromurllease181617df3679d3eec34?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728132A0AB554\"", + "x-ms-lease-id" : "88853321-63b6-4ec5-b04b-6b2cecea4bfa", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97aaba-801e-0123-71fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:06 GMT", + "x-ms-client-request-id" : "78ddc977-f896-4807-818a-bca888859071" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurllease09369333dd25f2262341d5/javablobstageblockfromurllease181617df3679d3eec34?blockid=OWRlOGZkNWMtMjY5Mi00ZTFkLWI3MDktOTAxZjMzMTYxNzk2&comp=block", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97aacb-801e-0123-80fc-5919e8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:06 GMT", + "x-ms-client-request-id" : "3aac02d9-0203-4913-aeea-3305da295104" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcstageblockfromurllease&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ad97ab3a-801e-0123-67fc-5919e8000000", + "Body" : "jtcstageblockfromurlleasejtcstageblockfromurllease09369333dd25f2262341d5Fri, 23 Aug 2019 21:45:07 GMT\"0x8D728132A0F91D2\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:06 GMT", + "x-ms-client-request-id" : "1b40dde1-1fe5-41fe-bb5c-57725ca76724", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurllease09369333dd25f2262341d5?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "ad97ab54-801e-0123-7efc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:06 GMT", + "x-ms-client-request-id" : "b127ed03-9203-458f-a4ba-c8a63557388a" + }, + "Exception" : null + } ], + "variables" : [ "jtcstageblockfromurllease09369333dd25f2262341d5", "javablobstageblockfromurllease181617df3679d3eec34", "9de8fd5c-2692-4e1d-b709-901f33161796" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockfromurlleasefail.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockfromurlleasefail.json new file mode 100644 index 0000000000000..707b5599b65f7 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockfromurlleasefail.json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlleasefail071561b4557ae9ced643?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728132A438B23\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97ab67-801e-0123-10fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:06 GMT", + "x-ms-client-request-id" : "36568c59-b729-4960-b188-bdaf8e9f7b20" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlleasefail071561b4557ae9ced643/javablobstageblockfromurlleasefail14303804971a837fd", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:07 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:06 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D728132A4A3EEF\"", + "Content-Length" : "0", + "x-ms-request-id" : "ad97ab77-801e-0123-1dfc-5919e8000000", + "x-ms-client-request-id" : "bc406f80-df30-4ba5-a660-67b498311e8e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlleasefail071561b4557ae9ced643?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728132A4FB762\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ad97ab8e-801e-0123-32fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:06 GMT", + "x-ms-client-request-id" : "c341ae81-7248-431d-9dc0-a82a17473c9c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlleasefail071561b4557ae9ced643/javablobstageblockfromurlleasefail14303804971a837fd?blockid=ZTlkZTM3NWQtZjc0OC00NTRjLWE0OWEtNTg0MzFlMzkzOWEx&comp=block", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "InvalidHeaderValue", + "retry-after" : "0", + "Content-Length" : "326", + "StatusCode" : "400", + "x-ms-request-id" : "ad97abac-801e-0123-4efc-5919e8000000", + "Body" : "InvalidHeaderValueThe value for one of the HTTP headers is not in the correct format.\nRequestId:ad97abac-801e-0123-4efc-5919e8000000\nTime:2019-08-23T21:45:08.9026681Zx-ms-lease-idgarbage", + "Date" : "Fri, 23 Aug 2019 21:45:08 GMT", + "x-ms-client-request-id" : "0ca5575f-c5be-4261-be23-d350d5cc2c90", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcstageblockfromurlleasefail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ad97ae69-801e-0123-63fc-5919e8000000", + "Body" : "jtcstageblockfromurlleasefailjtcstageblockfromurlleasefail071561b4557ae9ced643Fri, 23 Aug 2019 21:45:07 GMT\"0x8D728132A4FB762\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:08 GMT", + "x-ms-client-request-id" : "c582ae6c-be12-4be3-9e91-a6aee2a1f4b0", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlleasefail071561b4557ae9ced643?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "ad97ae73-801e-0123-6bfc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:08 GMT", + "x-ms-client-request-id" : "e87b12fc-9059-417f-8203-aa03ea393fd0" + }, + "Exception" : null + } ], + "variables" : [ "jtcstageblockfromurlleasefail071561b4557ae9ced643", "javablobstageblockfromurlleasefail14303804971a837fd", "e9de375d-f748-454c-a49a-58431e3939a1" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockfromurlmd5.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockfromurlmd5.json new file mode 100644 index 0000000000000..7e63f0a3949df --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockfromurlmd5.json @@ -0,0 +1,127 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlmd5092803a2908d67392c4a959?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281329C27D83\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97a969-801e-0123-2efc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:05 GMT", + "x-ms-client-request-id" : "ed4a1407-6026-4148-a517-4c17336a45db" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlmd5092803a2908d67392c4a959/javablobstageblockfromurlmd51979664b5c5c97ffbf45", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:06 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:05 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D7281329C844D5\"", + "Content-Length" : "0", + "x-ms-request-id" : "ad97a989-801e-0123-49fc-5919e8000000", + "x-ms-client-request-id" : "6e53f077-96fc-46f6-8d54-1af4f9da1af8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlmd5092803a2908d67392c4a959?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281329CD6FF1\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ad97a9a4-801e-0123-64fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:05 GMT", + "x-ms-client-request-id" : "9beb581e-40c7-4fad-8223-7eb3598a315c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlmd5092803a2908d67392c4a959/javablobstageblockfromurlmd5259533a8d9e6ec7c8044?blockid=NjU2NjYyMjktZmFmZS00ODlmLThmM2YtZjIxM2NjOGI0OTg0&comp=block", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97a9bc-801e-0123-7cfc-5919e8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:05 GMT", + "x-ms-client-request-id" : "b673547d-a40b-43a7-acd8-ba7848c3cc89", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcstageblockfromurlmd5&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ad97a9d9-801e-0123-19fc-5919e8000000", + "Body" : "jtcstageblockfromurlmd5jtcstageblockfromurlmd5092803a2908d67392c4a959Fri, 23 Aug 2019 21:45:06 GMT\"0x8D7281329CD6FF1\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:06 GMT", + "x-ms-client-request-id" : "c86757c3-3eda-4ca5-a249-867865b18d07", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlmd5092803a2908d67392c4a959?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "ad97a9e8-801e-0123-28fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:06 GMT", + "x-ms-client-request-id" : "3004780e-064c-4a61-b672-c438a0e3f14f" + }, + "Exception" : null + } ], + "variables" : [ "jtcstageblockfromurlmd5092803a2908d67392c4a959", "javablobstageblockfromurlmd51979664b5c5c97ffbf45", "javablobstageblockfromurlmd5259533a8d9e6ec7c8044", "65666229-fafe-489f-8f3f-f213cc8b4984" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockfromurlmd5fail.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockfromurlmd5fail.json new file mode 100644 index 0000000000000..bbfec31e0c655 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockfromurlmd5fail.json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlmd5fail006776d4e62711b38748d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281329E48C4E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97aa09-801e-0123-48fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:06 GMT", + "x-ms-client-request-id" : "2e7e3b2c-c95b-42fa-9929-8adc4c3b4e1e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlmd5fail006776d4e62711b38748d/javablobstageblockfromurlmd5fail10802099067495e552", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:06 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:06 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D7281329EA2D09\"", + "Content-Length" : "0", + "x-ms-request-id" : "ad97aa26-801e-0123-64fc-5919e8000000", + "x-ms-client-request-id" : "fef53283-7836-465b-ac24-dcae1dfe06a1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlmd5fail006776d4e62711b38748d?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281329EFA61E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ad97aa3e-801e-0123-7cfc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:06 GMT", + "x-ms-client-request-id" : "bd75ed23-b188-4fd3-910c-1067904aa8ee" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlmd5fail006776d4e62711b38748d/javablobstageblockfromurlmd5fail283334768a6e2d69b6?blockid=Mjk2MTE0MDAtNWM3MC00ZGQ4LWJkNTQtZWY2NDI2MmM4MTFj&comp=block", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "InvalidMd5", + "retry-after" : "0", + "Content-Length" : "276", + "StatusCode" : "400", + "x-ms-request-id" : "ad97aa52-801e-0123-10fc-5919e8000000", + "Body" : "InvalidMd5The MD5 value specified in the request is invalid. MD5 value must be 128 bits and base64 encoded.\nRequestId:ad97aa52-801e-0123-10fc-5919e8000000\nTime:2019-08-23T21:45:06.9669190Z", + "Date" : "Fri, 23 Aug 2019 21:45:06 GMT", + "x-ms-client-request-id" : "c3e7b733-dd7b-4d9d-8b9c-7be8966f3387", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcstageblockfromurlmd5fail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ad97aa6e-801e-0123-2bfc-5919e8000000", + "Body" : "jtcstageblockfromurlmd5failjtcstageblockfromurlmd5fail006776d4e62711b38748dFri, 23 Aug 2019 21:45:06 GMT\"0x8D7281329EFA61E\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:06 GMT", + "x-ms-client-request-id" : "3ae2f5d3-ef96-4805-9a39-4ff35139b753", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlmd5fail006776d4e62711b38748d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "ad97aa79-801e-0123-36fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:06 GMT", + "x-ms-client-request-id" : "63baa5ac-62ee-4afc-81db-b5e62c57a38c" + }, + "Exception" : null + } ], + "variables" : [ "jtcstageblockfromurlmd5fail006776d4e62711b38748d", "javablobstageblockfromurlmd5fail10802099067495e552", "javablobstageblockfromurlmd5fail283334768a6e2d69b6", "29611400-5c70-4dd8-bd54-ef64262c811c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockfromurlmin.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockfromurlmin.json new file mode 100644 index 0000000000000..b0c435780fb9c --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockfromurlmin.json @@ -0,0 +1,127 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlmin004513cd1d152a867043d9a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813292EF511\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:05 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97a730-801e-0123-22fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:04 GMT", + "x-ms-client-request-id" : "72127d1e-9add-456a-b611-75beaaf49e9f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlmin004513cd1d152a867043d9a/javablobstageblockfromurlmin114603240a679a69f341", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:05 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:04 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D7281329357DBC\"", + "Content-Length" : "0", + "x-ms-request-id" : "ad97a748-801e-0123-35fc-5919e8000000", + "x-ms-client-request-id" : "91622bd5-af96-4524-845f-57bca13879dc" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlmin004513cd1d152a867043d9a?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813293A5B9B\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:05 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ad97a760-801e-0123-4cfc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:04 GMT", + "x-ms-client-request-id" : "5918b58b-0f89-4954-b0c7-70dcca2cb7c1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlmin004513cd1d152a867043d9a/javablobstageblockfromurlmin207031b58a8f35e84548?blockid=ZTA0ZmZlMGItOWYyYy00YzJmLThkNzMtYjUxZDRlMzllMjVk&comp=block", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97a772-801e-0123-5dfc-5919e8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:05 GMT", + "x-ms-client-request-id" : "5b749331-ed1c-46c5-9bf4-d7215f35fe7a" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcstageblockfromurlmin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ad97a78d-801e-0123-75fc-5919e8000000", + "Body" : "jtcstageblockfromurlminjtcstageblockfromurlmin004513cd1d152a867043d9aFri, 23 Aug 2019 21:45:05 GMT\"0x8D72813293A5B9B\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:05 GMT", + "x-ms-client-request-id" : "e5c8b83b-3aa4-435c-8eaa-1a1eece4d3cc", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlmin004513cd1d152a867043d9a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "ad97a79e-801e-0123-04fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:05 GMT", + "x-ms-client-request-id" : "78d422f1-fd5c-4b36-bed3-8ccea9d5ec1e" + }, + "Exception" : null + } ], + "variables" : [ "jtcstageblockfromurlmin004513cd1d152a867043d9a", "javablobstageblockfromurlmin114603240a679a69f341", "javablobstageblockfromurlmin207031b58a8f35e84548", "e04ffe0b-9f2c-4c2f-8d73-b51d4e39e25d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockfromurlrange.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockfromurlrange.json new file mode 100644 index 0000000000000..1003a36c87205 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockfromurlrange.json @@ -0,0 +1,147 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlrange01700560fd056eb8ed45e6?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728132987D7F8\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97a87d-801e-0123-52fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:05 GMT", + "x-ms-client-request-id" : "f122d6cb-8756-4a17-b20c-b7ebf6e7be33" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlrange01700560fd056eb8ed45e6/javablobstageblockfromurlrange127600dc70ffce963b4", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:06 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:05 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72813299C20E7\"", + "Content-Length" : "0", + "x-ms-request-id" : "ad97a8d9-801e-0123-23fc-5919e8000000", + "x-ms-client-request-id" : "3e901a6f-bee7-4866-acef-1e9b47e4edd6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlrange01700560fd056eb8ed45e6?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281329A65698\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ad97a8ff-801e-0123-47fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:05 GMT", + "x-ms-client-request-id" : "1c2ddec6-445b-4b66-90c8-25448035daf5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlrange01700560fd056eb8ed45e6/javablobstageblockfromurlrange24867177f8e64242f84?blockid=MmY3ZTM1NGQtOGEyNy00MDViLWIxZWQtNjRhZDc5Njk0YjJk&comp=block", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "K07r2U1KQWI=", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97a90c-801e-0123-54fc-5919e8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:05 GMT", + "x-ms-client-request-id" : "d3a130f7-d3e0-4f77-a132-07ebc8dd4efa" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlrange01700560fd056eb8ed45e6/javablobstageblockfromurlrange24867177f8e64242f84?blocklisttype=uncommitted&comp=blocklist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ad97a927-801e-0123-6ffc-5919e8000000", + "Body" : "MmY3ZTM1NGQtOGEyNy00MDViLWIxZWQtNjRhZDc5Njk0YjJk3", + "Date" : "Fri, 23 Aug 2019 21:45:05 GMT", + "x-ms-client-request-id" : "4407cc83-c7de-48ea-ba8d-8a195960d289", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcstageblockfromurlrange&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ad97a941-801e-0123-08fc-5919e8000000", + "Body" : "jtcstageblockfromurlrangejtcstageblockfromurlrange01700560fd056eb8ed45e6Fri, 23 Aug 2019 21:45:06 GMT\"0x8D7281329A65698\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:05 GMT", + "x-ms-client-request-id" : "bef712a4-4063-4380-b025-7349bb8c027d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlrange01700560fd056eb8ed45e6?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "ad97a957-801e-0123-1efc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:05 GMT", + "x-ms-client-request-id" : "d43a215c-86b4-4ac8-88eb-dde31c95364a" + }, + "Exception" : null + } ], + "variables" : [ "jtcstageblockfromurlrange01700560fd056eb8ed45e6", "javablobstageblockfromurlrange127600dc70ffce963b4", "javablobstageblockfromurlrange24867177f8e64242f84", "2f7e354d-8a27-405b-b1ed-64ad79694b2d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockfromurlsourceac[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockfromurlsourceac[0].json new file mode 100644 index 0000000000000..eef5f4b1fd013 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockfromurlsourceac[0].json @@ -0,0 +1,151 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlsourceac02191555bf2374509c4f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728132B469121\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97aeea-801e-0123-59fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:08 GMT", + "x-ms-client-request-id" : "a3a617a7-e7d7-4367-aacd-1e30708ec208" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlsourceac02191555bf2374509c4f/javablobstageblockfromurlsourceac151590c3e38a259ed4", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:09 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:08 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D728132B4C850F\"", + "Content-Length" : "0", + "x-ms-request-id" : "ad97aefd-801e-0123-6bfc-5919e8000000", + "x-ms-client-request-id" : "9eda1b22-c4b8-42b9-a93f-76173d0894e0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlsourceac02191555bf2374509c4f?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728132B518683\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ad97af11-801e-0123-7ffc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:08 GMT", + "x-ms-client-request-id" : "fb086c4e-6256-45b3-8a56-d741c462562b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlsourceac02191555bf2374509c4f/javablobstageblockfromurlsourceac2933557ad17a619466", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:09 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:08 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D728132B5699A8\"", + "Content-Length" : "0", + "x-ms-request-id" : "ad97af29-801e-0123-10fc-5919e8000000", + "x-ms-client-request-id" : "cf06770f-b6f4-41e8-ac74-11a05da3b472" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlsourceac02191555bf2374509c4f/javablobstageblockfromurlsourceac151590c3e38a259ed4?blockid=YTgzNDVhYmUtNDY2My00NmFkLWIxOWItY2E2ZDdmZTkzOTYw&comp=block", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97af42-801e-0123-28fc-5919e8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:08 GMT", + "x-ms-client-request-id" : "faa94720-5e6a-4ef4-ad75-3244183a623d" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcstageblockfromurlsourceac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ad97af59-801e-0123-3efc-5919e8000000", + "Body" : "jtcstageblockfromurlsourceacjtcstageblockfromurlsourceac02191555bf2374509c4fFri, 23 Aug 2019 21:45:09 GMT\"0x8D728132B518683\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:08 GMT", + "x-ms-client-request-id" : "89ae9a9b-8151-4eba-a1d9-6c15b2779a2e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlsourceac02191555bf2374509c4f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "ad97af6c-801e-0123-50fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:08 GMT", + "x-ms-client-request-id" : "2d3fae4f-c96e-4de8-9ddb-a9a48190c35e" + }, + "Exception" : null + } ], + "variables" : [ "jtcstageblockfromurlsourceac02191555bf2374509c4f", "javablobstageblockfromurlsourceac151590c3e38a259ed4", "a8345abe-4663-46ad-b19b-ca6d7fe93960", "javablobstageblockfromurlsourceac2933557ad17a619466" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockfromurlsourceac[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockfromurlsourceac[1].json new file mode 100644 index 0000000000000..e96d5eae2f537 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockfromurlsourceac[1].json @@ -0,0 +1,151 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlsourceac062254bafa99290f794e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728132B6D5C02\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97af7f-801e-0123-63fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:08 GMT", + "x-ms-client-request-id" : "09b1b800-2c5c-42c9-afc2-2e8a98f56fb4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlsourceac062254bafa99290f794e/javablobstageblockfromurlsourceac197071562917d478ff", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:09 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:08 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D728132B824843\"", + "Content-Length" : "0", + "x-ms-request-id" : "ad97afbd-801e-0123-1dfc-5919e8000000", + "x-ms-client-request-id" : "74f83c41-d726-415d-b909-39e9a47dd247" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlsourceac062254bafa99290f794e?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728132B87495D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ad97afce-801e-0123-2dfc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:08 GMT", + "x-ms-client-request-id" : "88c3e736-6362-4ad4-a406-d92b16e70f64" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlsourceac062254bafa99290f794e/javablobstageblockfromurlsourceac218971a921263112ed", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:09 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:08 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D728132B8D6E8D\"", + "Content-Length" : "0", + "x-ms-request-id" : "ad97afe7-801e-0123-41fc-5919e8000000", + "x-ms-client-request-id" : "64a176a7-1da3-45ec-8052-cbee36576e89" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlsourceac062254bafa99290f794e/javablobstageblockfromurlsourceac197071562917d478ff?blockid=ZmMyZmE3YWEtMTQ3NS00OWVhLWIyY2YtNmJlYzdlMWY0ZTVk&comp=block", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97aff9-801e-0123-53fc-5919e8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:08 GMT", + "x-ms-client-request-id" : "3aab1e42-da4b-4b5d-8fa8-8948a63eb567" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcstageblockfromurlsourceac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ad97b009-801e-0123-60fc-5919e8000000", + "Body" : "jtcstageblockfromurlsourceacjtcstageblockfromurlsourceac062254bafa99290f794eFri, 23 Aug 2019 21:45:09 GMT\"0x8D728132B87495D\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:08 GMT", + "x-ms-client-request-id" : "dea9753c-aa36-451e-98db-e747dbc139a4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlsourceac062254bafa99290f794e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "ad97b00b-801e-0123-62fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:09 GMT", + "x-ms-client-request-id" : "8d3f2514-5ef0-4edb-a295-85cd8a9f6799" + }, + "Exception" : null + } ], + "variables" : [ "jtcstageblockfromurlsourceac062254bafa99290f794e", "javablobstageblockfromurlsourceac197071562917d478ff", "fc2fa7aa-1475-49ea-b2cf-6bec7e1f4e5d", "javablobstageblockfromurlsourceac218971a921263112ed" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockfromurlsourceac[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockfromurlsourceac[2].json new file mode 100644 index 0000000000000..4dd2145548ffa --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockfromurlsourceac[2].json @@ -0,0 +1,151 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlsourceac0561481d0d1948bf3946?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728132BA84FC4\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97b010-801e-0123-66fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:09 GMT", + "x-ms-client-request-id" : "fbfadc20-1e39-42ad-ac44-dcbfad483930" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlsourceac0561481d0d1948bf3946/javablobstageblockfromurlsourceac1799753e31f1d2ba2f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:09 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:09 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D728132BAEE176\"", + "Content-Length" : "0", + "x-ms-request-id" : "ad97b014-801e-0123-69fc-5919e8000000", + "x-ms-client-request-id" : "015c0e89-6533-4788-b05e-8b1fa6b19b07" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlsourceac0561481d0d1948bf3946?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728132BB4A5CB\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ad97b01f-801e-0123-74fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:09 GMT", + "x-ms-client-request-id" : "055b4e25-fbfc-4bd4-bd7b-4f79de35958f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlsourceac0561481d0d1948bf3946/javablobstageblockfromurlsourceac212201590758a385c9", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:09 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:09 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D728132BBACB43\"", + "Content-Length" : "0", + "x-ms-request-id" : "ad97b02a-801e-0123-7ffc-5919e8000000", + "x-ms-client-request-id" : "8ec2a228-0472-46a8-a92d-29c7e617231c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlsourceac0561481d0d1948bf3946/javablobstageblockfromurlsourceac1799753e31f1d2ba2f?blockid=OGQxYjVkM2YtMTAyYy00M2QyLWE0NmItMDBlNDkxZjQyYThi&comp=block", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97b045-801e-0123-18fc-5919e8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:09 GMT", + "x-ms-client-request-id" : "d57e80e3-81df-4490-895a-24e24872c8ab" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcstageblockfromurlsourceac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ad97b067-801e-0123-39fc-5919e8000000", + "Body" : "jtcstageblockfromurlsourceacjtcstageblockfromurlsourceac0561481d0d1948bf3946Fri, 23 Aug 2019 21:45:09 GMT\"0x8D728132BB4A5CB\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:09 GMT", + "x-ms-client-request-id" : "d7ff8802-52f4-47f8-a0d9-629fb8f5d195", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlsourceac0561481d0d1948bf3946?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "ad97b076-801e-0123-46fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:09 GMT", + "x-ms-client-request-id" : "96cbcdfb-447b-405e-a94c-4a0ecfacd4a3" + }, + "Exception" : null + } ], + "variables" : [ "jtcstageblockfromurlsourceac0561481d0d1948bf3946", "javablobstageblockfromurlsourceac1799753e31f1d2ba2f", "8d1b5d3f-102c-43d2-a46b-00e491f42a8b", "javablobstageblockfromurlsourceac212201590758a385c9" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockfromurlsourceac[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockfromurlsourceac[3].json new file mode 100644 index 0000000000000..647a6143b20e9 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockfromurlsourceac[3].json @@ -0,0 +1,182 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlsourceac0976157cad9d53116446?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728132BD95629\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97b08a-801e-0123-5afc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:09 GMT", + "x-ms-client-request-id" : "0acd0d2d-06b9-4ccb-88f1-a1e82df7737d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlsourceac0976157cad9d53116446/javablobstageblockfromurlsourceac112234bc09acae1dfd", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:10 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:09 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D728132BDF7351\"", + "Content-Length" : "0", + "x-ms-request-id" : "ad97b09f-801e-0123-6cfc-5919e8000000", + "x-ms-client-request-id" : "a86f8b86-f6a8-4fcc-b8cd-c3c8bcf1cac9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlsourceac0976157cad9d53116446?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728132BE6E55C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ad97b0ab-801e-0123-76fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:09 GMT", + "x-ms-client-request-id" : "b778c5ae-50bd-45d5-b83a-4c5ce7985af0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlsourceac0976157cad9d53116446/javablobstageblockfromurlsourceac2388641b1d72e57f99", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:10 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:09 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D728132BED3253\"", + "Content-Length" : "0", + "x-ms-request-id" : "ad97b0bc-801e-0123-07fc-5919e8000000", + "x-ms-client-request-id" : "b5475c3e-5e71-4777-a49f-e486034db40c" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlsourceac0976157cad9d53116446/javablobstageblockfromurlsourceac2388641b1d72e57f99", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:10 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:45:09 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D728132BED3253\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:45:10 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "ad97b0cd-801e-0123-17fc-5919e8000000", + "x-ms-client-request-id" : "0ff7ef08-63dd-4264-b32e-f05dc174ff20", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlsourceac0976157cad9d53116446/javablobstageblockfromurlsourceac112234bc09acae1dfd?blockid=Zjc0MDg5ZWYtOWYwZS00ZmI5LThlMjUtM2M1M2Q5YzA1Y2I2&comp=block", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97b0d8-801e-0123-22fc-5919e8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:09 GMT", + "x-ms-client-request-id" : "76b1aee8-cdc4-4366-88b5-151cfda6bf48" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcstageblockfromurlsourceac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ad97b0ec-801e-0123-34fc-5919e8000000", + "Body" : "jtcstageblockfromurlsourceacjtcstageblockfromurlsourceac0976157cad9d53116446Fri, 23 Aug 2019 21:45:10 GMT\"0x8D728132BE6E55C\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:09 GMT", + "x-ms-client-request-id" : "fc6c39b9-bb9c-4dde-bd84-a677889eb4a6", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlsourceac0976157cad9d53116446?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "ad97b0fb-801e-0123-43fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:09 GMT", + "x-ms-client-request-id" : "15884ce7-a0d1-4f4e-a557-1b16c2d0a595" + }, + "Exception" : null + } ], + "variables" : [ "jtcstageblockfromurlsourceac0976157cad9d53116446", "javablobstageblockfromurlsourceac112234bc09acae1dfd", "f74089ef-9f0e-4fb9-8e25-3c53d9c05cb6", "javablobstageblockfromurlsourceac2388641b1d72e57f99" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockfromurlsourceac[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockfromurlsourceac[4].json new file mode 100644 index 0000000000000..e2c4c9389a535 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockfromurlsourceac[4].json @@ -0,0 +1,151 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlsourceac0575406ba739c6378d49?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728132C09E73C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97b10c-801e-0123-54fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:09 GMT", + "x-ms-client-request-id" : "ec8c9b98-dea8-428f-a0ec-2db20d069056" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlsourceac0575406ba739c6378d49/javablobstageblockfromurlsourceac17446319078ca6305b", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:10 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:09 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D728132C102C46\"", + "Content-Length" : "0", + "x-ms-request-id" : "ad97b12a-801e-0123-6ffc-5919e8000000", + "x-ms-client-request-id" : "76c90a78-07cc-4380-8962-dcc66a7a43fd" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlsourceac0575406ba739c6378d49?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728132C155375\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ad97b133-801e-0123-78fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:09 GMT", + "x-ms-client-request-id" : "d5f7332f-7e4a-41d7-9247-d263e2dcc961" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlsourceac0575406ba739c6378d49/javablobstageblockfromurlsourceac207277a0c9d5bd71a7", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:10 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:09 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D728132C1AB634\"", + "Content-Length" : "0", + "x-ms-request-id" : "ad97b142-801e-0123-06fc-5919e8000000", + "x-ms-client-request-id" : "2b38f5fa-dd11-4fae-a60b-456d2b473b27" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlsourceac0575406ba739c6378d49/javablobstageblockfromurlsourceac17446319078ca6305b?blockid=Y2NiZDA0ZWMtMmVkOC00Yzk1LTljYjQtNzgzODY1ZDc4Y2Jh&comp=block", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97b14d-801e-0123-11fc-5919e8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:09 GMT", + "x-ms-client-request-id" : "24a972a9-578b-4a68-9e00-fc0070d0fd22" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcstageblockfromurlsourceac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ad97b167-801e-0123-29fc-5919e8000000", + "Body" : "jtcstageblockfromurlsourceacjtcstageblockfromurlsourceac0575406ba739c6378d49Fri, 23 Aug 2019 21:45:10 GMT\"0x8D728132C155375\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:09 GMT", + "x-ms-client-request-id" : "b39fce5f-c6c1-4a99-9d9e-a63374ab71c2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlsourceac0575406ba739c6378d49?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "ad97b171-801e-0123-33fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:09 GMT", + "x-ms-client-request-id" : "2c0d89a0-df83-40d3-8a00-cad218d99c5b" + }, + "Exception" : null + } ], + "variables" : [ "jtcstageblockfromurlsourceac0575406ba739c6378d49", "javablobstageblockfromurlsourceac17446319078ca6305b", "ccbd04ec-2ed8-4c95-9cb4-783865d78cba", "javablobstageblockfromurlsourceac207277a0c9d5bd71a7" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockfromurlsourceacfail[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockfromurlsourceacfail[0].json new file mode 100644 index 0000000000000..1e4775818e574 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockfromurlsourceacfail[0].json @@ -0,0 +1,149 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlsourceacfail058349d53891b78f23?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728132C343553\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97b181-801e-0123-43fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:09 GMT", + "x-ms-client-request-id" : "5f9dd5c3-da3e-4439-a283-43f1ee09be1c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlsourceacfail058349d53891b78f23/javablobstageblockfromurlsourceacfail10421716dfbc0ab2", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:10 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:09 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D728132C399070\"", + "Content-Length" : "0", + "x-ms-request-id" : "ad97b190-801e-0123-4ffc-5919e8000000", + "x-ms-client-request-id" : "8702b383-4977-46ee-844d-74eb276027a1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlsourceacfail058349d53891b78f23?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728132C3E6910\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ad97b19d-801e-0123-5cfc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:10 GMT", + "x-ms-client-request-id" : "ec8785d8-0962-4c29-8b7b-ff2e5c43b1e0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlsourceacfail058349d53891b78f23/javablobstageblockfromurlsourceacfail261225138db30d25", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:10 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:10 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D728132C437DF7\"", + "Content-Length" : "0", + "x-ms-request-id" : "ad97b1ac-801e-0123-69fc-5919e8000000", + "x-ms-client-request-id" : "446c5e0c-0565-460b-bf8a-d9e7f1287074" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlsourceacfail058349d53891b78f23/javablobstageblockfromurlsourceacfail10421716dfbc0ab2?blockid=MzcwMTQzYmYtMGJjZS00MjEwLWJlYWItZjdjNzdmODZmYmI4&comp=block", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "CannotVerifyCopySource", + "retry-after" : "0", + "StatusCode" : "304", + "x-ms-request-id" : "ad97b1bc-801e-0123-74fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:10 GMT", + "x-ms-client-request-id" : "e2ea2925-e9c8-4dc7-a3a7-a1e41b87a551" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcstageblockfromurlsourceacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ad97b1c7-801e-0123-7dfc-5919e8000000", + "Body" : "jtcstageblockfromurlsourceacfailjtcstageblockfromurlsourceacfail058349d53891b78f23Fri, 23 Aug 2019 21:45:10 GMT\"0x8D728132C3E6910\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:10 GMT", + "x-ms-client-request-id" : "f1620c7e-2556-40e8-b56e-30e4fb4d0485", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlsourceacfail058349d53891b78f23?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "ad97b1d5-801e-0123-09fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:10 GMT", + "x-ms-client-request-id" : "e7d35b4a-d6a9-4498-9300-d28799ef93f8" + }, + "Exception" : null + } ], + "variables" : [ "jtcstageblockfromurlsourceacfail058349d53891b78f23", "javablobstageblockfromurlsourceacfail10421716dfbc0ab2", "370143bf-0bce-4210-beab-f7c77f86fbb8", "javablobstageblockfromurlsourceacfail261225138db30d25" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockfromurlsourceacfail[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockfromurlsourceacfail[1].json new file mode 100644 index 0000000000000..07a89748919ca --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockfromurlsourceacfail[1].json @@ -0,0 +1,152 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlsourceacfail0404426ccd0e0cf86b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728132C58194F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97b1ef-801e-0123-1dfc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:10 GMT", + "x-ms-client-request-id" : "dd5a43e6-555a-4ec7-964c-2d3882edcdf6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlsourceacfail0404426ccd0e0cf86b/javablobstageblockfromurlsourceacfail1319658930e4c973", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:11 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:10 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D728132C5E1172\"", + "Content-Length" : "0", + "x-ms-request-id" : "ad97b209-801e-0123-31fc-5919e8000000", + "x-ms-client-request-id" : "482c7c3e-e76a-4851-8562-bfac60bbc2bf" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlsourceacfail0404426ccd0e0cf86b?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728132C6337EF\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ad97b219-801e-0123-3cfc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:10 GMT", + "x-ms-client-request-id" : "5fb0c432-a95a-4c8c-9673-79222e9416de" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlsourceacfail0404426ccd0e0cf86b/javablobstageblockfromurlsourceacfail2331223b70921533", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:11 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:10 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D728132C68743D\"", + "Content-Length" : "0", + "x-ms-request-id" : "ad97b228-801e-0123-4bfc-5919e8000000", + "x-ms-client-request-id" : "70ed6ac9-af27-4b16-b6a2-abc89be50c0f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlsourceacfail0404426ccd0e0cf86b/javablobstageblockfromurlsourceacfail1319658930e4c973?blockid=MTNhNjg5M2YtNmM5NC00MGE2LTllZmItNGY1ZWE4Y2I4NTdk&comp=block", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "CannotVerifyCopySource", + "retry-after" : "0", + "Content-Length" : "259", + "StatusCode" : "412", + "x-ms-request-id" : "ad97b237-801e-0123-55fc-5919e8000000", + "Body" : "CannotVerifyCopySourceThe condition specified using HTTP conditional header(s) is not met.\nRequestId:ad97b237-801e-0123-55fc-5919e8000000\nTime:2019-08-23T21:45:11.1376873Z", + "Date" : "Fri, 23 Aug 2019 21:45:10 GMT", + "x-ms-client-request-id" : "76f1669a-dcf1-400c-8dd6-be092ae95748", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcstageblockfromurlsourceacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ad97b24f-801e-0123-6cfc-5919e8000000", + "Body" : "jtcstageblockfromurlsourceacfailjtcstageblockfromurlsourceacfail0404426ccd0e0cf86bFri, 23 Aug 2019 21:45:11 GMT\"0x8D728132C6337EF\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:10 GMT", + "x-ms-client-request-id" : "6b2a615b-89d6-4414-bd24-adadf6b2d6e9", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlsourceacfail0404426ccd0e0cf86b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "ad97b264-801e-0123-7ffc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:10 GMT", + "x-ms-client-request-id" : "4c8f8a4d-ed15-434a-b019-cc4705b6d890" + }, + "Exception" : null + } ], + "variables" : [ "jtcstageblockfromurlsourceacfail0404426ccd0e0cf86b", "javablobstageblockfromurlsourceacfail1319658930e4c973", "13a6893f-6c94-40a6-9efb-4f5ea8cb857d", "javablobstageblockfromurlsourceacfail2331223b70921533" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockfromurlsourceacfail[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockfromurlsourceacfail[2].json new file mode 100644 index 0000000000000..a1b9a771ce63f --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockfromurlsourceacfail[2].json @@ -0,0 +1,152 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlsourceacfail062506a166c0e48d43?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728132C988C8D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97b2c1-801e-0123-4ffc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:10 GMT", + "x-ms-client-request-id" : "0630af38-d971-47c8-b8eb-7ddfa9481753" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlsourceacfail062506a166c0e48d43/javablobstageblockfromurlsourceacfail113560ef229a6306", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:11 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:10 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D728132C9F220A\"", + "Content-Length" : "0", + "x-ms-request-id" : "ad97b2cf-801e-0123-59fc-5919e8000000", + "x-ms-client-request-id" : "b81b6c1e-e6c1-41e9-9f5e-8d30b6c16c72" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlsourceacfail062506a166c0e48d43?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728132CA49658\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ad97b2e1-801e-0123-69fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:10 GMT", + "x-ms-client-request-id" : "581781af-319e-41ec-a0f2-f8c3dffce42a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlsourceacfail062506a166c0e48d43/javablobstageblockfromurlsourceacfail277227d12ac265c5", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:11 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:10 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D728132CA9ABEA\"", + "Content-Length" : "0", + "x-ms-request-id" : "ad97b2ed-801e-0123-73fc-5919e8000000", + "x-ms-client-request-id" : "962c1a41-d583-401d-8b49-537b4206ce57" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlsourceacfail062506a166c0e48d43/javablobstageblockfromurlsourceacfail113560ef229a6306?blockid=NmNlNGE0MWYtMGViNC00ZDA5LWIzYzAtYTQ5YmQ4OTEwY2M0&comp=block", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "SourceConditionNotMet", + "retry-after" : "0", + "Content-Length" : "265", + "StatusCode" : "412", + "x-ms-request-id" : "ad97b2fc-801e-0123-01fc-5919e8000000", + "Body" : "SourceConditionNotMetThe source condition specified using HTTP conditional header(s) is not met.\nRequestId:ad97b2fc-801e-0123-01fc-5919e8000000\nTime:2019-08-23T21:45:11.5340454Z", + "Date" : "Fri, 23 Aug 2019 21:45:10 GMT", + "x-ms-client-request-id" : "e3750bd0-9456-4533-a717-a5263c00a63b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcstageblockfromurlsourceacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ad97b30b-801e-0123-0ffc-5919e8000000", + "Body" : "jtcstageblockfromurlsourceacfailjtcstageblockfromurlsourceacfail062506a166c0e48d43Fri, 23 Aug 2019 21:45:11 GMT\"0x8D728132CA49658\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:10 GMT", + "x-ms-client-request-id" : "516f7b71-9736-423a-b875-a181cd0246bb", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlsourceacfail062506a166c0e48d43?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "ad97b311-801e-0123-15fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:10 GMT", + "x-ms-client-request-id" : "bc2277a3-a010-489b-ad5a-2604486a2b46" + }, + "Exception" : null + } ], + "variables" : [ "jtcstageblockfromurlsourceacfail062506a166c0e48d43", "javablobstageblockfromurlsourceacfail113560ef229a6306", "6ce4a41f-0eb4-4d09-b3c0-a49bd8910cc4", "javablobstageblockfromurlsourceacfail277227d12ac265c5" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockfromurlsourceacfail[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockfromurlsourceacfail[3].json new file mode 100644 index 0000000000000..5f0bc8b39d42b --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockfromurlsourceacfail[3].json @@ -0,0 +1,180 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlsourceacfail099330c3e4b0eead36?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728132CBDD068\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97b323-801e-0123-24fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:10 GMT", + "x-ms-client-request-id" : "676bf837-193a-46f5-83e8-4f3ff674c8e0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlsourceacfail099330c3e4b0eead36/javablobstageblockfromurlsourceacfail18601394fd03523e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:11 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:10 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D728132CC3CA0B\"", + "Content-Length" : "0", + "x-ms-request-id" : "ad97b337-801e-0123-37fc-5919e8000000", + "x-ms-client-request-id" : "a800195b-f347-438c-865c-4990f93c5a17" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlsourceacfail099330c3e4b0eead36?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728132CC8A1B1\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ad97b346-801e-0123-43fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:10 GMT", + "x-ms-client-request-id" : "e1f50f0a-1790-4098-aa10-17ae7df4aed9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlsourceacfail099330c3e4b0eead36/javablobstageblockfromurlsourceacfail298689b0627100f8", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:11 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:10 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D728132CCE7B14\"", + "Content-Length" : "0", + "x-ms-request-id" : "ad97b354-801e-0123-50fc-5919e8000000", + "x-ms-client-request-id" : "4511b7ce-f3b6-49e1-88a0-4a5a1c968d57" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlsourceacfail099330c3e4b0eead36/javablobstageblockfromurlsourceacfail298689b0627100f8", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:11 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:45:11 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D728132CCE7B14\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:45:11 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "ad97b361-801e-0123-5dfc-5919e8000000", + "x-ms-client-request-id" : "3d4b1e0a-cbbd-440d-9510-d6692a3b4b0e", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlsourceacfail099330c3e4b0eead36/javablobstageblockfromurlsourceacfail18601394fd03523e?blockid=N2NjODIyZjQtNGNjNC00YjRhLTliMzEtZDczOWExZTQ2MmUw&comp=block", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "CannotVerifyCopySource", + "retry-after" : "0", + "StatusCode" : "304", + "x-ms-request-id" : "ad97b370-801e-0123-6afc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:11 GMT", + "x-ms-client-request-id" : "cd2f76aa-a3dc-45d7-9c85-31ec5927c87e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcstageblockfromurlsourceacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ad97b380-801e-0123-76fc-5919e8000000", + "Body" : "jtcstageblockfromurlsourceacfailjtcstageblockfromurlsourceacfail099330c3e4b0eead36Fri, 23 Aug 2019 21:45:11 GMT\"0x8D728132CC8A1B1\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:11 GMT", + "x-ms-client-request-id" : "c7008019-ee18-4c88-85d5-6980ab6ab73c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockfromurlsourceacfail099330c3e4b0eead36?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "ad97b38d-801e-0123-80fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:11 GMT", + "x-ms-client-request-id" : "e8acbffc-1dee-4b00-ba12-41ddab522180" + }, + "Exception" : null + } ], + "variables" : [ "jtcstageblockfromurlsourceacfail099330c3e4b0eead36", "javablobstageblockfromurlsourceacfail18601394fd03523e", "7cc822f4-4cc4-4b4a-9b31-d739a1e462e0", "javablobstageblockfromurlsourceacfail298689b0627100f8" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockillegalarguments[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockillegalarguments[0].json new file mode 100644 index 0000000000000..9c9a5a8b845be --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockillegalarguments[0].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockillegalarguments070081464c1ef347c842?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281327C82432\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51f845d-201e-00c4-40fc-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:45:03 GMT", + "x-ms-client-request-id" : "860c86bf-2935-4726-b4c7-75f6c562fe6d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockillegalarguments070081464c1ef347c842/javablobstageblockillegalarguments118207fe4ad367287", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:03 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:03 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D7281327CDA621\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51f846b-201e-00c4-4bfc-594fb0000000", + "x-ms-client-request-id" : "364f64ad-9505-431c-b329-de5ad71fe74b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockillegalarguments070081464c1ef347c842/javablobstageblockillegalarguments118207fe4ad367287?comp=block", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "MissingRequiredQueryParameter", + "retry-after" : "0", + "Content-Length" : "315", + "StatusCode" : "400", + "x-ms-request-id" : "d51f847e-201e-00c4-5bfc-594fb0000000", + "Body" : "MissingRequiredQueryParameterA query parameter that's mandatory for this request is not specified.\nRequestId:d51f847e-201e-00c4-5bfc-594fb0000000\nTime:2019-08-23T21:45:03.3802724Zblockid", + "Date" : "Fri, 23 Aug 2019 21:45:03 GMT", + "x-ms-client-request-id" : "ea9185b2-2c64-4e14-a83b-92fbb09c0861", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcstageblockillegalarguments&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51f8488-201e-00c4-65fc-594fb0000000", + "Body" : "jtcstageblockillegalargumentsjtcstageblockillegalarguments070081464c1ef347c842Fri, 23 Aug 2019 21:45:03 GMT\"0x8D7281327C82432\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:03 GMT", + "x-ms-client-request-id" : "90793cee-1beb-4b67-a116-cf386b79474a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockillegalarguments070081464c1ef347c842?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51f849a-201e-00c4-74fc-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:45:03 GMT", + "x-ms-client-request-id" : "1cf20c35-ab94-454e-bb01-1d3abbe53741" + }, + "Exception" : null + } ], + "variables" : [ "jtcstageblockillegalarguments070081464c1ef347c842", "javablobstageblockillegalarguments118207fe4ad367287" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockillegalarguments[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockillegalarguments[1].json new file mode 100644 index 0000000000000..dfee3af27840a --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockillegalarguments[1].json @@ -0,0 +1,591 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockillegalarguments05987332379d57c9d948?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281327E43E8A\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51f84af-201e-00c4-03fc-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:45:03 GMT", + "x-ms-client-request-id" : "56665d90-cf50-44ea-b5cf-753e93ec2cf9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockillegalarguments05987332379d57c9d948/javablobstageblockillegalarguments126478c6703e48549", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:03 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:03 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D7281327E9E7A0\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51f84bd-201e-00c4-0ffc-594fb0000000", + "x-ms-client-request-id" : "14a53439-555a-46cc-b55a-7f45190df121" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockillegalarguments05987332379d57c9d948/javablobstageblockillegalarguments126478c6703e48549?blockid=Y2JiNDkwYzctODY3OC00MjQ4LWJmYzUtMjA3YzY2YWI2NThk&comp=block", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : null, + "Exception" : { + "Throwable" : { + "cause" : null, + "stackTrace" : [ { + "methodName" : "lambda$null$4", + "fileName" : "BlockBlobClient.java", + "lineNumber" : 235, + "className" : "com.azure.storage.blob.BlockBlobClient", + "nativeMethod" : false + }, { + "methodName" : "call", + "fileName" : "MonoCallable.java", + "lineNumber" : 91, + "className" : "reactor.core.publisher.MonoCallable", + "nativeMethod" : false + }, { + "methodName" : "drain", + "fileName" : "FluxConcatMap.java", + "lineNumber" : 402, + "className" : "reactor.core.publisher.FluxConcatMap$ConcatMapImmediate", + "nativeMethod" : false + }, { + "methodName" : "onNext", + "fileName" : "FluxConcatMap.java", + "lineNumber" : 244, + "className" : "reactor.core.publisher.FluxConcatMap$ConcatMapImmediate", + "nativeMethod" : false + }, { + "methodName" : "onNext", + "fileName" : "FluxMapFuseable.java", + "lineNumber" : 121, + "className" : "reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber", + "nativeMethod" : false + }, { + "methodName" : "request", + "fileName" : "FluxJust.java", + "lineNumber" : 99, + "className" : "reactor.core.publisher.FluxJust$WeakScalarSubscription", + "nativeMethod" : false + }, { + "methodName" : "request", + "fileName" : "FluxMapFuseable.java", + "lineNumber" : 162, + "className" : "reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber", + "nativeMethod" : false + }, { + "methodName" : "onSubscribe", + "fileName" : "FluxConcatMap.java", + "lineNumber" : 229, + "className" : "reactor.core.publisher.FluxConcatMap$ConcatMapImmediate", + "nativeMethod" : false + }, { + "methodName" : "onSubscribe", + "fileName" : "FluxMapFuseable.java", + "lineNumber" : 90, + "className" : "reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber", + "nativeMethod" : false + }, { + "methodName" : "subscribe", + "fileName" : "FluxJust.java", + "lineNumber" : 70, + "className" : "reactor.core.publisher.FluxJust", + "nativeMethod" : false + }, { + "methodName" : "subscribe", + "fileName" : "FluxMapFuseable.java", + "lineNumber" : 63, + "className" : "reactor.core.publisher.FluxMapFuseable", + "nativeMethod" : false + }, { + "methodName" : "subscribe", + "fileName" : "FluxConcatMap.java", + "lineNumber" : 121, + "className" : "reactor.core.publisher.FluxConcatMap", + "nativeMethod" : false + }, { + "methodName" : "subscribe", + "fileName" : "Flux.java", + "lineNumber" : 7921, + "className" : "reactor.core.publisher.Flux", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "FluxSubscribeOn.java", + "lineNumber" : 194, + "className" : "reactor.core.publisher.FluxSubscribeOn$SubscribeOnSubscriber", + "nativeMethod" : false + }, { + "methodName" : "call", + "fileName" : "WorkerTask.java", + "lineNumber" : 84, + "className" : "reactor.core.scheduler.WorkerTask", + "nativeMethod" : false + }, { + "methodName" : "call", + "fileName" : "WorkerTask.java", + "lineNumber" : 37, + "className" : "reactor.core.scheduler.WorkerTask", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "FutureTask.java", + "lineNumber" : 266, + "className" : "java.util.concurrent.FutureTask", + "nativeMethod" : false + }, { + "methodName" : "access$201", + "fileName" : "ScheduledThreadPoolExecutor.java", + "lineNumber" : 180, + "className" : "java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "ScheduledThreadPoolExecutor.java", + "lineNumber" : 293, + "className" : "java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask", + "nativeMethod" : false + }, { + "methodName" : "runWorker", + "fileName" : "ThreadPoolExecutor.java", + "lineNumber" : 1149, + "className" : "java.util.concurrent.ThreadPoolExecutor", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "ThreadPoolExecutor.java", + "lineNumber" : 624, + "className" : "java.util.concurrent.ThreadPoolExecutor$Worker", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "Thread.java", + "lineNumber" : 748, + "className" : "java.lang.Thread", + "nativeMethod" : false + } ], + "message" : null, + "localizedMessage" : null, + "suppressed" : [ { + "cause" : null, + "stackTrace" : [ { + "methodName" : "blockingGet", + "fileName" : "BlockingSingleSubscriber.java", + "lineNumber" : 93, + "className" : "reactor.core.publisher.BlockingSingleSubscriber", + "nativeMethod" : false + }, { + "methodName" : "block", + "fileName" : "Mono.java", + "lineNumber" : 1494, + "className" : "reactor.core.publisher.Mono", + "nativeMethod" : false + }, { + "methodName" : "blockWithOptionalTimeout", + "fileName" : "Utility.java", + "lineNumber" : 235, + "className" : "com.azure.storage.common.Utility", + "nativeMethod" : false + }, { + "methodName" : "stageBlockWithResponse", + "fileName" : "BlockBlobClient.java", + "lineNumber" : 242, + "className" : "com.azure.storage.blob.BlockBlobClient", + "nativeMethod" : false + }, { + "methodName" : "stageBlock", + "fileName" : "BlockBlobClient.java", + "lineNumber" : 205, + "className" : "com.azure.storage.blob.BlockBlobClient", + "nativeMethod" : false + }, { + "methodName" : "invoke0", + "fileName" : "NativeMethodAccessorImpl.java", + "lineNumber" : -2, + "className" : "sun.reflect.NativeMethodAccessorImpl", + "nativeMethod" : true + }, { + "methodName" : "invoke", + "fileName" : "NativeMethodAccessorImpl.java", + "lineNumber" : 62, + "className" : "sun.reflect.NativeMethodAccessorImpl", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "DelegatingMethodAccessorImpl.java", + "lineNumber" : 43, + "className" : "sun.reflect.DelegatingMethodAccessorImpl", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "Method.java", + "lineNumber" : 498, + "className" : "java.lang.reflect.Method", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "PojoMetaMethodSite.java", + "lineNumber" : 213, + "className" : "org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrap", + "nativeMethod" : false + }, { + "methodName" : "call", + "fileName" : "PojoMetaMethodSite.java", + "lineNumber" : 56, + "className" : "org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite", + "nativeMethod" : false + }, { + "methodName" : "defaultCall", + "fileName" : "CallSiteArray.java", + "lineNumber" : 48, + "className" : "org.codehaus.groovy.runtime.callsite.CallSiteArray", + "nativeMethod" : false + }, { + "methodName" : "call", + "fileName" : "PojoMetaMethodSite.java", + "lineNumber" : 58, + "className" : "org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite", + "nativeMethod" : false + }, { + "methodName" : "call", + "fileName" : "AbstractCallSite.java", + "lineNumber" : 141, + "className" : "org.codehaus.groovy.runtime.callsite.AbstractCallSite", + "nativeMethod" : false + }, { + "methodName" : "$spock_feature_1_2", + "fileName" : "BlockBlobAPITest.groovy", + "lineNumber" : 58, + "className" : "com.azure.storage.blob.BlockBlobAPITest", + "nativeMethod" : false + }, { + "methodName" : "invoke0", + "fileName" : "NativeMethodAccessorImpl.java", + "lineNumber" : -2, + "className" : "sun.reflect.NativeMethodAccessorImpl", + "nativeMethod" : true + }, { + "methodName" : "invoke", + "fileName" : "NativeMethodAccessorImpl.java", + "lineNumber" : 62, + "className" : "sun.reflect.NativeMethodAccessorImpl", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "DelegatingMethodAccessorImpl.java", + "lineNumber" : 43, + "className" : "sun.reflect.DelegatingMethodAccessorImpl", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "Method.java", + "lineNumber" : 498, + "className" : "java.lang.reflect.Method", + "nativeMethod" : false + }, { + "methodName" : "invokeMethod", + "fileName" : "ReflectionUtil.java", + "lineNumber" : 188, + "className" : "org.spockframework.util.ReflectionUtil", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "MethodInfo.java", + "lineNumber" : 84, + "className" : "org.spockframework.runtime.model.MethodInfo", + "nativeMethod" : false + }, { + "methodName" : "invokeRaw", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 481, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 464, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "runFeatureMethod", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 406, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "doRunIteration", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 324, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 309, + "className" : "org.spockframework.runtime.BaseSpecRunner$6", + "nativeMethod" : false + }, { + "methodName" : "invokeRaw", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 481, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 464, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "runIteration", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 288, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "initializeAndRunIteration", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 278, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "runIterations", + "fileName" : "ParameterizedSpecRunner.java", + "lineNumber" : 139, + "className" : "org.spockframework.runtime.ParameterizedSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "runParameterizedFeature", + "fileName" : "ParameterizedSpecRunner.java", + "lineNumber" : 41, + "className" : "org.spockframework.runtime.ParameterizedSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "doRunFeature", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 262, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 246, + "className" : "org.spockframework.runtime.BaseSpecRunner$5", + "nativeMethod" : false + }, { + "methodName" : "invokeRaw", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 481, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 464, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "runFeature", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 238, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "runFeatures", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 188, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "doRunSpec", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 98, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 84, + "className" : "org.spockframework.runtime.BaseSpecRunner$1", + "nativeMethod" : false + }, { + "methodName" : "invokeRaw", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 481, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 464, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "runSpec", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 76, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 67, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "Sputnik.java", + "lineNumber" : 63, + "className" : "org.spockframework.runtime.Sputnik", + "nativeMethod" : false + }, { + "methodName" : "runChild", + "fileName" : "Suite.java", + "lineNumber" : 128, + "className" : "org.junit.runners.Suite", + "nativeMethod" : false + }, { + "methodName" : "runChild", + "fileName" : "Suite.java", + "lineNumber" : 27, + "className" : "org.junit.runners.Suite", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "ParentRunner.java", + "lineNumber" : 290, + "className" : "org.junit.runners.ParentRunner$3", + "nativeMethod" : false + }, { + "methodName" : "schedule", + "fileName" : "ParentRunner.java", + "lineNumber" : 71, + "className" : "org.junit.runners.ParentRunner$1", + "nativeMethod" : false + }, { + "methodName" : "runChildren", + "fileName" : "ParentRunner.java", + "lineNumber" : 288, + "className" : "org.junit.runners.ParentRunner", + "nativeMethod" : false + }, { + "methodName" : "access$000", + "fileName" : "ParentRunner.java", + "lineNumber" : 58, + "className" : "org.junit.runners.ParentRunner", + "nativeMethod" : false + }, { + "methodName" : "evaluate", + "fileName" : "ParentRunner.java", + "lineNumber" : 268, + "className" : "org.junit.runners.ParentRunner$2", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "ParentRunner.java", + "lineNumber" : 363, + "className" : "org.junit.runners.ParentRunner", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "JUnitCore.java", + "lineNumber" : 137, + "className" : "org.junit.runner.JUnitCore", + "nativeMethod" : false + }, { + "methodName" : "startRunnerWithArgs", + "fileName" : "JUnit4IdeaTestRunner.java", + "lineNumber" : 68, + "className" : "com.intellij.junit4.JUnit4IdeaTestRunner", + "nativeMethod" : false + }, { + "methodName" : "startRunnerWithArgs", + "fileName" : "IdeaTestRunner.java", + "lineNumber" : 47, + "className" : "com.intellij.rt.execution.junit.IdeaTestRunner$Repeater", + "nativeMethod" : false + }, { + "methodName" : "prepareStreamsAndStart", + "fileName" : "JUnitStarter.java", + "lineNumber" : 242, + "className" : "com.intellij.rt.execution.junit.JUnitStarter", + "nativeMethod" : false + }, { + "methodName" : "main", + "fileName" : "JUnitStarter.java", + "lineNumber" : 70, + "className" : "com.intellij.rt.execution.junit.JUnitStarter", + "nativeMethod" : false + } ], + "message" : "#block terminated with an error", + "localizedMessage" : "#block terminated with an error", + "suppressed" : [ ] + } ] + }, + "ClassName" : "java.lang.NullPointerException" + } + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcstageblockillegalarguments&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "4a536bfc-101e-004f-4bfc-59f46e000000", + "Body" : "jtcstageblockillegalargumentsjtcstageblockillegalarguments05987332379d57c9d948Fri, 23 Aug 2019 21:45:03 GMT\"0x8D7281327E43E8A\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:03 GMT", + "x-ms-client-request-id" : "957bd219-8504-4f27-b5ee-d9c48e9a17c4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockillegalarguments05987332379d57c9d948?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "4a536c0e-101e-004f-5bfc-59f46e000000", + "Date" : "Fri, 23 Aug 2019 21:45:03 GMT", + "x-ms-client-request-id" : "784dacf3-0731-415a-afe0-e667f2ce6f9d" + }, + "Exception" : null + } ], + "variables" : [ "jtcstageblockillegalarguments05987332379d57c9d948", "javablobstageblockillegalarguments126478c6703e48549", "cbb490c7-8678-4248-bfc5-207c66ab658d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockillegalarguments[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockillegalarguments[2].json new file mode 100644 index 0000000000000..65b60a2333ae3 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockillegalarguments[2].json @@ -0,0 +1,597 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockillegalarguments0215444474213c8c604c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813281C9E8C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "4a536c3b-101e-004f-02fc-59f46e000000", + "Date" : "Fri, 23 Aug 2019 21:45:03 GMT", + "x-ms-client-request-id" : "b746c638-a4f0-42bf-a41f-a5c33d7bd1e1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockillegalarguments0215444474213c8c604c/javablobstageblockillegalarguments166963259ada2a711", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:03 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:03 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D728132821F551\"", + "Content-Length" : "0", + "x-ms-request-id" : "4a536c4e-101e-004f-0efc-59f46e000000", + "x-ms-client-request-id" : "d7bd2fcf-ed08-458c-b543-1873bcaca353" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockillegalarguments0215444474213c8c604c/javablobstageblockillegalarguments166963259ada2a711?blockid=MjdmMDY1OWEtMmMwYi00Njg0LThkMTMtNzFmYzlhZjc1YzQz&comp=block", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : null, + "Exception" : { + "Throwable" : { + "cause" : null, + "stackTrace" : [ { + "methodName" : "read", + "fileName" : "ByteArrayInputStream.java", + "lineNumber" : 180, + "className" : "java.io.ByteArrayInputStream", + "nativeMethod" : false + }, { + "methodName" : "lambda$null$4", + "fileName" : "BlockBlobClient.java", + "lineNumber" : 235, + "className" : "com.azure.storage.blob.BlockBlobClient", + "nativeMethod" : false + }, { + "methodName" : "call", + "fileName" : "MonoCallable.java", + "lineNumber" : 91, + "className" : "reactor.core.publisher.MonoCallable", + "nativeMethod" : false + }, { + "methodName" : "drain", + "fileName" : "FluxConcatMap.java", + "lineNumber" : 402, + "className" : "reactor.core.publisher.FluxConcatMap$ConcatMapImmediate", + "nativeMethod" : false + }, { + "methodName" : "onNext", + "fileName" : "FluxConcatMap.java", + "lineNumber" : 244, + "className" : "reactor.core.publisher.FluxConcatMap$ConcatMapImmediate", + "nativeMethod" : false + }, { + "methodName" : "onNext", + "fileName" : "FluxMapFuseable.java", + "lineNumber" : 121, + "className" : "reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber", + "nativeMethod" : false + }, { + "methodName" : "request", + "fileName" : "FluxJust.java", + "lineNumber" : 99, + "className" : "reactor.core.publisher.FluxJust$WeakScalarSubscription", + "nativeMethod" : false + }, { + "methodName" : "request", + "fileName" : "FluxMapFuseable.java", + "lineNumber" : 162, + "className" : "reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber", + "nativeMethod" : false + }, { + "methodName" : "onSubscribe", + "fileName" : "FluxConcatMap.java", + "lineNumber" : 229, + "className" : "reactor.core.publisher.FluxConcatMap$ConcatMapImmediate", + "nativeMethod" : false + }, { + "methodName" : "onSubscribe", + "fileName" : "FluxMapFuseable.java", + "lineNumber" : 90, + "className" : "reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber", + "nativeMethod" : false + }, { + "methodName" : "subscribe", + "fileName" : "FluxJust.java", + "lineNumber" : 70, + "className" : "reactor.core.publisher.FluxJust", + "nativeMethod" : false + }, { + "methodName" : "subscribe", + "fileName" : "FluxMapFuseable.java", + "lineNumber" : 63, + "className" : "reactor.core.publisher.FluxMapFuseable", + "nativeMethod" : false + }, { + "methodName" : "subscribe", + "fileName" : "FluxConcatMap.java", + "lineNumber" : 121, + "className" : "reactor.core.publisher.FluxConcatMap", + "nativeMethod" : false + }, { + "methodName" : "subscribe", + "fileName" : "Flux.java", + "lineNumber" : 7921, + "className" : "reactor.core.publisher.Flux", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "FluxSubscribeOn.java", + "lineNumber" : 194, + "className" : "reactor.core.publisher.FluxSubscribeOn$SubscribeOnSubscriber", + "nativeMethod" : false + }, { + "methodName" : "call", + "fileName" : "WorkerTask.java", + "lineNumber" : 84, + "className" : "reactor.core.scheduler.WorkerTask", + "nativeMethod" : false + }, { + "methodName" : "call", + "fileName" : "WorkerTask.java", + "lineNumber" : 37, + "className" : "reactor.core.scheduler.WorkerTask", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "FutureTask.java", + "lineNumber" : 266, + "className" : "java.util.concurrent.FutureTask", + "nativeMethod" : false + }, { + "methodName" : "access$201", + "fileName" : "ScheduledThreadPoolExecutor.java", + "lineNumber" : 180, + "className" : "java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "ScheduledThreadPoolExecutor.java", + "lineNumber" : 293, + "className" : "java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask", + "nativeMethod" : false + }, { + "methodName" : "runWorker", + "fileName" : "ThreadPoolExecutor.java", + "lineNumber" : 1149, + "className" : "java.util.concurrent.ThreadPoolExecutor", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "ThreadPoolExecutor.java", + "lineNumber" : 624, + "className" : "java.util.concurrent.ThreadPoolExecutor$Worker", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "Thread.java", + "lineNumber" : 748, + "className" : "java.lang.Thread", + "nativeMethod" : false + } ], + "message" : null, + "localizedMessage" : null, + "suppressed" : [ { + "cause" : null, + "stackTrace" : [ { + "methodName" : "blockingGet", + "fileName" : "BlockingSingleSubscriber.java", + "lineNumber" : 93, + "className" : "reactor.core.publisher.BlockingSingleSubscriber", + "nativeMethod" : false + }, { + "methodName" : "block", + "fileName" : "Mono.java", + "lineNumber" : 1494, + "className" : "reactor.core.publisher.Mono", + "nativeMethod" : false + }, { + "methodName" : "blockWithOptionalTimeout", + "fileName" : "Utility.java", + "lineNumber" : 235, + "className" : "com.azure.storage.common.Utility", + "nativeMethod" : false + }, { + "methodName" : "stageBlockWithResponse", + "fileName" : "BlockBlobClient.java", + "lineNumber" : 242, + "className" : "com.azure.storage.blob.BlockBlobClient", + "nativeMethod" : false + }, { + "methodName" : "stageBlock", + "fileName" : "BlockBlobClient.java", + "lineNumber" : 205, + "className" : "com.azure.storage.blob.BlockBlobClient", + "nativeMethod" : false + }, { + "methodName" : "invoke0", + "fileName" : "NativeMethodAccessorImpl.java", + "lineNumber" : -2, + "className" : "sun.reflect.NativeMethodAccessorImpl", + "nativeMethod" : true + }, { + "methodName" : "invoke", + "fileName" : "NativeMethodAccessorImpl.java", + "lineNumber" : 62, + "className" : "sun.reflect.NativeMethodAccessorImpl", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "DelegatingMethodAccessorImpl.java", + "lineNumber" : 43, + "className" : "sun.reflect.DelegatingMethodAccessorImpl", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "Method.java", + "lineNumber" : 498, + "className" : "java.lang.reflect.Method", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "PojoMetaMethodSite.java", + "lineNumber" : 213, + "className" : "org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrap", + "nativeMethod" : false + }, { + "methodName" : "call", + "fileName" : "PojoMetaMethodSite.java", + "lineNumber" : 56, + "className" : "org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite", + "nativeMethod" : false + }, { + "methodName" : "defaultCall", + "fileName" : "CallSiteArray.java", + "lineNumber" : 48, + "className" : "org.codehaus.groovy.runtime.callsite.CallSiteArray", + "nativeMethod" : false + }, { + "methodName" : "call", + "fileName" : "PojoMetaMethodSite.java", + "lineNumber" : 58, + "className" : "org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite", + "nativeMethod" : false + }, { + "methodName" : "call", + "fileName" : "AbstractCallSite.java", + "lineNumber" : 141, + "className" : "org.codehaus.groovy.runtime.callsite.AbstractCallSite", + "nativeMethod" : false + }, { + "methodName" : "$spock_feature_1_2", + "fileName" : "BlockBlobAPITest.groovy", + "lineNumber" : 58, + "className" : "com.azure.storage.blob.BlockBlobAPITest", + "nativeMethod" : false + }, { + "methodName" : "invoke0", + "fileName" : "NativeMethodAccessorImpl.java", + "lineNumber" : -2, + "className" : "sun.reflect.NativeMethodAccessorImpl", + "nativeMethod" : true + }, { + "methodName" : "invoke", + "fileName" : "NativeMethodAccessorImpl.java", + "lineNumber" : 62, + "className" : "sun.reflect.NativeMethodAccessorImpl", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "DelegatingMethodAccessorImpl.java", + "lineNumber" : 43, + "className" : "sun.reflect.DelegatingMethodAccessorImpl", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "Method.java", + "lineNumber" : 498, + "className" : "java.lang.reflect.Method", + "nativeMethod" : false + }, { + "methodName" : "invokeMethod", + "fileName" : "ReflectionUtil.java", + "lineNumber" : 188, + "className" : "org.spockframework.util.ReflectionUtil", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "MethodInfo.java", + "lineNumber" : 84, + "className" : "org.spockframework.runtime.model.MethodInfo", + "nativeMethod" : false + }, { + "methodName" : "invokeRaw", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 481, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 464, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "runFeatureMethod", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 406, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "doRunIteration", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 324, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 309, + "className" : "org.spockframework.runtime.BaseSpecRunner$6", + "nativeMethod" : false + }, { + "methodName" : "invokeRaw", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 481, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 464, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "runIteration", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 288, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "initializeAndRunIteration", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 278, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "runIterations", + "fileName" : "ParameterizedSpecRunner.java", + "lineNumber" : 139, + "className" : "org.spockframework.runtime.ParameterizedSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "runParameterizedFeature", + "fileName" : "ParameterizedSpecRunner.java", + "lineNumber" : 41, + "className" : "org.spockframework.runtime.ParameterizedSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "doRunFeature", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 262, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 246, + "className" : "org.spockframework.runtime.BaseSpecRunner$5", + "nativeMethod" : false + }, { + "methodName" : "invokeRaw", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 481, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 464, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "runFeature", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 238, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "runFeatures", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 188, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "doRunSpec", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 98, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 84, + "className" : "org.spockframework.runtime.BaseSpecRunner$1", + "nativeMethod" : false + }, { + "methodName" : "invokeRaw", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 481, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 464, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "runSpec", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 76, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 67, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "Sputnik.java", + "lineNumber" : 63, + "className" : "org.spockframework.runtime.Sputnik", + "nativeMethod" : false + }, { + "methodName" : "runChild", + "fileName" : "Suite.java", + "lineNumber" : 128, + "className" : "org.junit.runners.Suite", + "nativeMethod" : false + }, { + "methodName" : "runChild", + "fileName" : "Suite.java", + "lineNumber" : 27, + "className" : "org.junit.runners.Suite", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "ParentRunner.java", + "lineNumber" : 290, + "className" : "org.junit.runners.ParentRunner$3", + "nativeMethod" : false + }, { + "methodName" : "schedule", + "fileName" : "ParentRunner.java", + "lineNumber" : 71, + "className" : "org.junit.runners.ParentRunner$1", + "nativeMethod" : false + }, { + "methodName" : "runChildren", + "fileName" : "ParentRunner.java", + "lineNumber" : 288, + "className" : "org.junit.runners.ParentRunner", + "nativeMethod" : false + }, { + "methodName" : "access$000", + "fileName" : "ParentRunner.java", + "lineNumber" : 58, + "className" : "org.junit.runners.ParentRunner", + "nativeMethod" : false + }, { + "methodName" : "evaluate", + "fileName" : "ParentRunner.java", + "lineNumber" : 268, + "className" : "org.junit.runners.ParentRunner$2", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "ParentRunner.java", + "lineNumber" : 363, + "className" : "org.junit.runners.ParentRunner", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "JUnitCore.java", + "lineNumber" : 137, + "className" : "org.junit.runner.JUnitCore", + "nativeMethod" : false + }, { + "methodName" : "startRunnerWithArgs", + "fileName" : "JUnit4IdeaTestRunner.java", + "lineNumber" : 68, + "className" : "com.intellij.junit4.JUnit4IdeaTestRunner", + "nativeMethod" : false + }, { + "methodName" : "startRunnerWithArgs", + "fileName" : "IdeaTestRunner.java", + "lineNumber" : 47, + "className" : "com.intellij.rt.execution.junit.IdeaTestRunner$Repeater", + "nativeMethod" : false + }, { + "methodName" : "prepareStreamsAndStart", + "fileName" : "JUnitStarter.java", + "lineNumber" : 242, + "className" : "com.intellij.rt.execution.junit.JUnitStarter", + "nativeMethod" : false + }, { + "methodName" : "main", + "fileName" : "JUnitStarter.java", + "lineNumber" : 70, + "className" : "com.intellij.rt.execution.junit.JUnitStarter", + "nativeMethod" : false + } ], + "message" : "#block terminated with an error", + "localizedMessage" : "#block terminated with an error", + "suppressed" : [ ] + } ] + }, + "ClassName" : "java.lang.IndexOutOfBoundsException" + } + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcstageblockillegalarguments&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ad97a363-801e-0123-1efc-5919e8000000", + "Body" : "jtcstageblockillegalargumentsjtcstageblockillegalarguments0215444474213c8c604cFri, 23 Aug 2019 21:45:03 GMT\"0x8D72813281C9E8C\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:03 GMT", + "x-ms-client-request-id" : "7ce37b87-5e49-4b07-bc33-fedb0faddaf1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockillegalarguments0215444474213c8c604c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "ad97a379-801e-0123-30fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:03 GMT", + "x-ms-client-request-id" : "d2acc367-f0b8-44ff-952d-11cc1a0303c2" + }, + "Exception" : null + } ], + "variables" : [ "jtcstageblockillegalarguments0215444474213c8c604c", "javablobstageblockillegalarguments166963259ada2a711", "27f0659a-2c0b-4684-8d13-71fc9af75c43" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblocklease.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblocklease.json new file mode 100644 index 0000000000000..feaed2cc793fd --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblocklease.json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblocklease0blockblobapiteststageblocklease14d3102541?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813287BCF2A\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97a459-801e-0123-7ffc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:03 GMT", + "x-ms-client-request-id" : "f875c6d4-f84d-44fa-8f47-3c76874dea26" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblocklease0blockblobapiteststageblocklease14d3102541/javablobstageblocklease17065345e653301cfd40c98", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:04 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:03 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72813288BCD99\"", + "Content-Length" : "0", + "x-ms-request-id" : "ad97a48b-801e-0123-2ffc-5919e8000000", + "x-ms-client-request-id" : "359a445b-2fdd-45a3-966e-410f75a9cdb0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblocklease0blockblobapiteststageblocklease14d3102541/javablobstageblocklease17065345e653301cfd40c98?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813288BCD99\"", + "x-ms-lease-id" : "d1bd6816-f4a1-4c6c-be22-fe1e2e8b950f", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97a4a2-801e-0123-42fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:03 GMT", + "x-ms-client-request-id" : "3ac4fde8-7983-406b-8e37-597d4f3ce553" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblocklease0blockblobapiteststageblocklease14d3102541/javablobstageblocklease17065345e653301cfd40c98?blockid=NzFjYmVkNDctMDlhNi00MDM3LTk3YjktNjQ3MzUzMWYyNzNl&comp=block", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97a4be-801e-0123-5efc-5919e8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:03 GMT", + "x-ms-client-request-id" : "69d5186b-06a4-44ce-ab78-30dfbbdac69e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcstageblocklease&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ad97a4da-801e-0123-78fc-5919e8000000", + "Body" : "jtcstageblockleasejtcstageblocklease0blockblobapiteststageblocklease14d3102541Fri, 23 Aug 2019 21:45:04 GMT\"0x8D72813287BCF2A\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:03 GMT", + "x-ms-client-request-id" : "2e35aa41-e9c0-4384-bfe9-7fb4ea18fe50", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblocklease0blockblobapiteststageblocklease14d3102541?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "ad97a4e7-801e-0123-05fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:03 GMT", + "x-ms-client-request-id" : "114c3688-8bdc-4e98-9eea-895b4e09bdd2" + }, + "Exception" : null + } ], + "variables" : [ "jtcstageblocklease0blockblobapiteststageblocklease14d3102541", "javablobstageblocklease17065345e653301cfd40c98", "71cbed47-09a6-4037-97b9-6473531f273e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockleasefail.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockleasefail.json new file mode 100644 index 0000000000000..da1ebf887adda --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockleasefail.json @@ -0,0 +1,129 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockleasefail08281212a884a2b06944e28?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281328ABC3F1\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97a502-801e-0123-1ffc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:04 GMT", + "x-ms-client-request-id" : "1fb0391b-5ef9-4c5b-95ac-9baca5acaacf" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockleasefail08281212a884a2b06944e28/javablobstageblockleasefail1327293d7f6f05dd53446", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:04 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:04 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D7281328B77C38\"", + "Content-Length" : "0", + "x-ms-request-id" : "ad97a526-801e-0123-42fc-5919e8000000", + "x-ms-client-request-id" : "d1d266c8-3c79-4c43-80e4-812e23d24fb2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockleasefail08281212a884a2b06944e28/javablobstageblockleasefail1327293d7f6f05dd53446?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281328B77C38\"", + "x-ms-lease-id" : "7b81e23a-1756-4adb-b96e-4e2ffa983135", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97a53d-801e-0123-58fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:04 GMT", + "x-ms-client-request-id" : "0599afcc-63a0-4414-9755-17ae2e32494b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockleasefail08281212a884a2b06944e28/javablobstageblockleasefail1327293d7f6f05dd53446?blockid=YWM0NmViMTUtNGU1MS00NjBlLWFmZGQtYjY0YTFmMjM3OGYy&comp=block", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "LeaseIdMismatchWithBlobOperation", + "retry-after" : "0", + "Content-Length" : "264", + "StatusCode" : "412", + "x-ms-request-id" : "ad97a559-801e-0123-73fc-5919e8000000", + "Body" : "LeaseIdMismatchWithBlobOperationThe lease ID specified did not match the lease ID for the blob.\nRequestId:ad97a559-801e-0123-73fc-5919e8000000\nTime:2019-08-23T21:45:04.9480946Z", + "Date" : "Fri, 23 Aug 2019 21:45:04 GMT", + "x-ms-client-request-id" : "60829348-54bb-42ac-90d8-0089a3a73e36", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcstageblockleasefail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ad97a573-801e-0123-0afc-5919e8000000", + "Body" : "jtcstageblockleasefailjtcstageblockleasefail08281212a884a2b06944e28Fri, 23 Aug 2019 21:45:04 GMT\"0x8D7281328ABC3F1\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:04 GMT", + "x-ms-client-request-id" : "9bd89bea-a782-47f4-9c30-60f72ef5bb66", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockleasefail08281212a884a2b06944e28?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "ad97a585-801e-0123-18fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:04 GMT", + "x-ms-client-request-id" : "9014a50b-ad1d-4fa3-85f5-18d5c20f92d0" + }, + "Exception" : null + } ], + "variables" : [ "jtcstageblockleasefail08281212a884a2b06944e28", "javablobstageblockleasefail1327293d7f6f05dd53446", "ac46eb15-4e51-460e-afdd-b64a1f2378f2" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockmin.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockmin.json new file mode 100644 index 0000000000000..e9688e0a8e0cb --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblockmin.json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockmin0blockblobapiteststageblockminc0b2967121a0?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281327AEF0BD\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51f8409-201e-00c4-79fc-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:45:02 GMT", + "x-ms-client-request-id" : "456883d4-297b-4745-b2a8-ed3a4cdefb0d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockmin0blockblobapiteststageblockminc0b2967121a0/javablobstageblockmin1blockblobapiteststageblockminc0b073741d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:03 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:03 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D7281327B47291\"", + "Content-Length" : "0", + "x-ms-request-id" : "d51f8420-201e-00c4-0bfc-594fb0000000", + "x-ms-client-request-id" : "f6f01600-ecb4-4a35-98a7-803d69c0167d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockmin0blockblobapiteststageblockminc0b2967121a0/javablobstageblockmin1blockblobapiteststageblockminc0b073741d?blockid=NzAwYmY1YjUtNjc5ZS00NjhkLWFhNTYtMjNiOGZiMDI1MDlm&comp=block", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d51f842f-201e-00c4-18fc-594fb0000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:03 GMT", + "x-ms-client-request-id" : "5bc4e6db-6a56-415b-b93c-5cadc013c3b8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcstageblockmin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d51f843c-201e-00c4-24fc-594fb0000000", + "Body" : "jtcstageblockminjtcstageblockmin0blockblobapiteststageblockminc0b2967121a0Fri, 23 Aug 2019 21:45:03 GMT\"0x8D7281327AEF0BD\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:03 GMT", + "x-ms-client-request-id" : "c1a6a4e7-7be5-4257-b7af-8386b467b723", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblockmin0blockblobapiteststageblockminc0b2967121a0?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d51f8449-201e-00c4-31fc-594fb0000000", + "Date" : "Fri, 23 Aug 2019 21:45:03 GMT", + "x-ms-client-request-id" : "c0435dd4-5579-4976-b4ae-990deb439ba7" + }, + "Exception" : null + } ], + "variables" : [ "jtcstageblockmin0blockblobapiteststageblockminc0b2967121a0", "javablobstageblockmin1blockblobapiteststageblockminc0b073741d", "700bf5b5-679e-468d-aa56-23b8fb02509f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblocknullbody.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblocknullbody.json new file mode 100644 index 0000000000000..0f9fd2ecb74e4 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITeststageblocknullbody.json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblocknullbody0768594ca52eb9bf1b4e8c80?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813285FDC45\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ad97a3f1-801e-0123-1bfc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:03 GMT", + "x-ms-client-request-id" : "88ec0426-f822-4857-8645-1f038a442a07" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblocknullbody0768594ca52eb9bf1b4e8c80/javablobstageblocknullbody12540728693b10f1854b8", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:04 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:03 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D7281328666216\"", + "Content-Length" : "0", + "x-ms-request-id" : "ad97a408-801e-0123-30fc-5919e8000000", + "x-ms-client-request-id" : "fd693dd6-6956-4a75-ac1a-e3131dfa75c8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblocknullbody0768594ca52eb9bf1b4e8c80/javablobstageblocknullbody12540728693b10f1854b8?blockid=ZTNjNzhhZDEtZTU2NS00MGIzLWJjNGQtM2U0ZWZlZmMxZjk0&comp=block", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "InvalidHeaderValue", + "retry-after" : "0", + "Content-Length" : "321", + "StatusCode" : "400", + "x-ms-request-id" : "ad97a421-801e-0123-49fc-5919e8000000", + "Body" : "InvalidHeaderValueThe value for one of the HTTP headers is not in the correct format.\nRequestId:ad97a421-801e-0123-49fc-5919e8000000\nTime:2019-08-23T21:45:04.3815806ZContent-Length0", + "Date" : "Fri, 23 Aug 2019 21:45:03 GMT", + "x-ms-client-request-id" : "92b7354a-0d2b-41d8-bd6e-c8c0391b55b9", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcstageblocknullbody&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ad97a430-801e-0123-58fc-5919e8000000", + "Body" : "jtcstageblocknullbodyjtcstageblocknullbody0768594ca52eb9bf1b4e8c80Fri, 23 Aug 2019 21:45:04 GMT\"0x8D72813285FDC45\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:03 GMT", + "x-ms-client-request-id" : "f1e294bf-1b36-4396-8c16-5aaf2298d529", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstageblocknullbody0768594ca52eb9bf1b4e8c80?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "ad97a442-801e-0123-69fc-5919e8000000", + "Date" : "Fri, 23 Aug 2019 21:45:03 GMT", + "x-ms-client-request-id" : "416a254a-f0e3-448b-aa5c-f12bae8c4df8" + }, + "Exception" : null + } ], + "variables" : [ "jtcstageblocknullbody0768594ca52eb9bf1b4e8c80", "javablobstageblocknullbody12540728693b10f1854b8", "e3c78ad1-e565-40b3-bc4d-3e4efefc1f94" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestupload.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestupload.json new file mode 100644 index 0000000000000..d60ab81e3a8c7 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestupload.json @@ -0,0 +1,140 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcupload0blockblobapitestuploade4a758427fd49c60c59?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281332E945F0\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "0a3caedc-301e-0118-1bfc-595bb6000000", + "Date" : "Fri, 23 Aug 2019 21:45:21 GMT", + "x-ms-client-request-id" : "dc738663-d096-4f95-bb02-13d33ec2670d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcupload0blockblobapitestuploade4a758427fd49c60c59/javablobupload1blockblobapitestuploade4a47146f807a807f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:22 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:21 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D7281332EEE944\"", + "Content-Length" : "0", + "x-ms-request-id" : "0a3caef8-301e-0118-33fc-595bb6000000", + "x-ms-client-request-id" : "a741d105-49c1-4f90-85c8-708a0d6e5494" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcupload0blockblobapitestuploade4a758427fd49c60c59/javablobupload1blockblobapitestuploade4a47146f807a807f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:22 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:21 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D7281332F41AAF\"", + "Content-Length" : "0", + "x-ms-request-id" : "0a3caf06-301e-0118-41fc-595bb6000000", + "x-ms-client-request-id" : "f55d13da-38f5-4fca-8854-35c3d71fb079" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcupload0blockblobapitestuploade4a758427fd49c60c59/javablobupload1blockblobapitestuploade4a47146f807a807f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:22 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:45:21 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "\"0x8D7281332F41AAF\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:45:22 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "0a3caf29-301e-0118-5efc-595bb6000000", + "Body" : "[100, 101, 102, 97, 117, 108, 116]", + "x-ms-client-request-id" : "0fda6d76-d8f2-4567-847f-d164adddc723", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcupload&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "0a3caf53-301e-0118-7ffc-595bb6000000", + "Body" : "jtcuploadjtcupload0blockblobapitestuploade4a758427fd49c60c59Fri, 23 Aug 2019 21:45:21 GMT\"0x8D7281332E945F0\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:21 GMT", + "x-ms-client-request-id" : "f13a4dd0-bb22-4f21-9f34-076d6bb2cf40", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcupload0blockblobapitestuploade4a758427fd49c60c59?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "0a3caf6a-301e-0118-12fc-595bb6000000", + "Date" : "Fri, 23 Aug 2019 21:45:21 GMT", + "x-ms-client-request-id" : "d5e405c6-87e2-44fe-935f-c87572cbd4c4" + }, + "Exception" : null + } ], + "variables" : [ "jtcupload0blockblobapitestuploade4a758427fd49c60c59", "javablobupload1blockblobapitestuploade4a47146f807a807f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploadac[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploadac[0].json new file mode 100644 index 0000000000000..bf025df21d122 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploadac[0].json @@ -0,0 +1,110 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadac0blockblobapitestuploadac6a379924cd22c7b4f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281334354A13\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1de3a97-001e-00f1-6afc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:23 GMT", + "x-ms-client-request-id" : "526ac0b8-f727-4a22-97cc-27bad240598d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadac0blockblobapitestuploadac6a379924cd22c7b4f/javablobuploadac1blockblobapitestuploadac6a3798478d76cee", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:24 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:23 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72813343AF4AF\"", + "Content-Length" : "0", + "x-ms-request-id" : "b1de3add-001e-00f1-2afc-59e1e5000000", + "x-ms-client-request-id" : "17ccb70e-bbb7-4bef-90fa-8592c477ed63" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadac0blockblobapitestuploadac6a379924cd22c7b4f/javablobuploadac1blockblobapitestuploadac6a3798478d76cee", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:24 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:23 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D728133440C281\"", + "Content-Length" : "0", + "x-ms-request-id" : "b1de3b26-001e-00f1-70fc-59e1e5000000", + "x-ms-client-request-id" : "ce34cf05-8c3b-4275-b268-21c64d6bf834" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1de3b69-001e-00f1-2efc-59e1e5000000", + "Body" : "jtcuploadacjtcuploadac0blockblobapitestuploadac6a379924cd22c7b4fFri, 23 Aug 2019 21:45:24 GMT\"0x8D7281334354A13\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:23 GMT", + "x-ms-client-request-id" : "db5a14c2-969e-438c-99ba-10a0bc0fd08f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadac0blockblobapitestuploadac6a379924cd22c7b4f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1de3b92-001e-00f1-57fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:23 GMT", + "x-ms-client-request-id" : "8f791d2f-1580-4ce1-989e-9a3abafb77a2" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadac0blockblobapitestuploadac6a379924cd22c7b4f", "javablobuploadac1blockblobapitestuploadac6a3798478d76cee" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploadac[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploadac[1].json new file mode 100644 index 0000000000000..a4248a418d38a --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploadac[1].json @@ -0,0 +1,110 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadac0blockblobapitestuploadac04f8691947caa8067?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133450049C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1de3bf1-001e-00f1-2efc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:23 GMT", + "x-ms-client-request-id" : "31672dbe-9307-4d18-bdb6-937faed529f2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadac0blockblobapitestuploadac04f8691947caa8067/javablobuploadac1blockblobapitestuploadac04f13306285cc75", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:24 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:23 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D728133455FD6E\"", + "Content-Length" : "0", + "x-ms-request-id" : "b1de3c44-001e-00f1-7afc-59e1e5000000", + "x-ms-client-request-id" : "41466df8-2590-4a04-90bf-7526b49a0b94" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadac0blockblobapitestuploadac04f8691947caa8067/javablobuploadac1blockblobapitestuploadac04f13306285cc75", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:24 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:23 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72813345AE09D\"", + "Content-Length" : "0", + "x-ms-request-id" : "b1de3c80-001e-00f1-36fc-59e1e5000000", + "x-ms-client-request-id" : "da1ba2c2-5666-494d-8130-d719425b16e4" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1de3cb3-001e-00f1-69fc-59e1e5000000", + "Body" : "jtcuploadacjtcuploadac0blockblobapitestuploadac04f8691947caa8067Fri, 23 Aug 2019 21:45:24 GMT\"0x8D728133450049C\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:23 GMT", + "x-ms-client-request-id" : "ee7bc220-ce49-49d3-a21b-30f1cee1cd8b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadac0blockblobapitestuploadac04f8691947caa8067?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1de3ce9-001e-00f1-1bfc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:23 GMT", + "x-ms-client-request-id" : "0f7b885f-6a22-4b1f-9b51-8cc858311425" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadac0blockblobapitestuploadac04f8691947caa8067", "javablobuploadac1blockblobapitestuploadac04f13306285cc75" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploadac[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploadac[2].json new file mode 100644 index 0000000000000..8aeaf9059bae1 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploadac[2].json @@ -0,0 +1,110 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadac0blockblobapitestuploadac1583128133c7c41e0?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813346A22BD\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1de3d40-001e-00f1-70fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:23 GMT", + "x-ms-client-request-id" : "de3e4313-826e-4167-928c-be9cc9341a2f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadac0blockblobapitestuploadac1583128133c7c41e0/javablobuploadac1blockblobapitestuploadac158038446e81f0e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:24 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:23 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72813346FA632\"", + "Content-Length" : "0", + "x-ms-request-id" : "b1de3d8b-001e-00f1-37fc-59e1e5000000", + "x-ms-client-request-id" : "c3f3f772-ef82-4e0b-90dc-8a88c573a91e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadac0blockblobapitestuploadac1583128133c7c41e0/javablobuploadac1blockblobapitestuploadac158038446e81f0e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:24 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:23 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D7281334746258\"", + "Content-Length" : "0", + "x-ms-request-id" : "b1de3dcf-001e-00f1-79fc-59e1e5000000", + "x-ms-client-request-id" : "0ddc0a37-f81b-4599-830a-688b53b9eb40" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1de3e18-001e-00f1-3dfc-59e1e5000000", + "Body" : "jtcuploadacjtcuploadac0blockblobapitestuploadac1583128133c7c41e0Fri, 23 Aug 2019 21:45:24 GMT\"0x8D72813346A22BD\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:24 GMT", + "x-ms-client-request-id" : "a3d558b4-b348-4a73-b6ee-f11d16224545", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadac0blockblobapitestuploadac1583128133c7c41e0?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1de3e7a-001e-00f1-1afc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:24 GMT", + "x-ms-client-request-id" : "6c9ce6c5-38d6-4dff-870f-abb3fb0674f7" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadac0blockblobapitestuploadac1583128133c7c41e0", "javablobuploadac1blockblobapitestuploadac158038446e81f0e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploadac[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploadac[3].json new file mode 100644 index 0000000000000..9093cd9f92762 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploadac[3].json @@ -0,0 +1,141 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadac0blockblobapitestuploadac4ca927683ee0a7e57?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813348A5CCD\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1de3ec1-001e-00f1-5cfc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:24 GMT", + "x-ms-client-request-id" : "56168e6c-5d8c-4772-a843-11d14102c0de" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadac0blockblobapitestuploadac4ca927683ee0a7e57/javablobuploadac1blockblobapitestuploadac4ca216009ce9fb3", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:24 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:24 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72813348FB933\"", + "Content-Length" : "0", + "x-ms-request-id" : "b1de3f1c-001e-00f1-2bfc-59e1e5000000", + "x-ms-client-request-id" : "5742d933-0c80-4e9b-b6bb-4cbfb25e3306" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadac0blockblobapitestuploadac4ca927683ee0a7e57/javablobuploadac1blockblobapitestuploadac4ca216009ce9fb3", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:24 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:45:24 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72813348FB933\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:45:24 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "b1de3f4f-001e-00f1-5dfc-59e1e5000000", + "x-ms-client-request-id" : "19284277-2610-4007-8dd3-bdea9ab0aa0e", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadac0blockblobapitestuploadac4ca927683ee0a7e57/javablobuploadac1blockblobapitestuploadac4ca216009ce9fb3", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:24 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:24 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72813349894FB\"", + "Content-Length" : "0", + "x-ms-request-id" : "b1de3f80-001e-00f1-0dfc-59e1e5000000", + "x-ms-client-request-id" : "dd2ee01d-6723-4e86-bcff-8dffbe0e9868" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1de3fba-001e-00f1-47fc-59e1e5000000", + "Body" : "jtcuploadacjtcuploadac0blockblobapitestuploadac4ca927683ee0a7e57Fri, 23 Aug 2019 21:45:24 GMT\"0x8D72813348A5CCD\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:24 GMT", + "x-ms-client-request-id" : "b0d134ca-76aa-4a70-8251-7762c884f677", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadac0blockblobapitestuploadac4ca927683ee0a7e57?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1de3fe1-001e-00f1-6efc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:24 GMT", + "x-ms-client-request-id" : "17b544c7-6a49-4241-b722-41088ba705cc" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadac0blockblobapitestuploadac4ca927683ee0a7e57", "javablobuploadac1blockblobapitestuploadac4ca216009ce9fb3" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploadac[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploadac[4].json new file mode 100644 index 0000000000000..3e077b409c44b --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploadac[4].json @@ -0,0 +1,110 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadac0blockblobapitestuploadac9640278652e45da53?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281334A73AB7\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1de403e-001e-00f1-45fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:24 GMT", + "x-ms-client-request-id" : "084b9f63-9585-4ef2-9e96-e25b18a21cb5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadac0blockblobapitestuploadac9640278652e45da53/javablobuploadac1blockblobapitestuploadac96411417073390e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:24 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:24 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D7281334AC9721\"", + "Content-Length" : "0", + "x-ms-request-id" : "b1de408e-001e-00f1-11fc-59e1e5000000", + "x-ms-client-request-id" : "8fc2e8dc-2296-45f7-8354-106950d8eb19" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadac0blockblobapitestuploadac9640278652e45da53/javablobuploadac1blockblobapitestuploadac96411417073390e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:24 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:24 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D7281334B17A4F\"", + "Content-Length" : "0", + "x-ms-request-id" : "b1de40dc-001e-00f1-5bfc-59e1e5000000", + "x-ms-client-request-id" : "e4c132d2-480f-46e6-adfe-a92ae94cd8da" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1de411f-001e-00f1-19fc-59e1e5000000", + "Body" : "jtcuploadacjtcuploadac0blockblobapitestuploadac9640278652e45da53Fri, 23 Aug 2019 21:45:24 GMT\"0x8D7281334A73AB7\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:24 GMT", + "x-ms-client-request-id" : "9a3016a4-3cb2-43cf-90cb-0181bfa024eb", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadac0blockblobapitestuploadac9640278652e45da53?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1de4145-001e-00f1-3efc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:24 GMT", + "x-ms-client-request-id" : "75839b3c-a54b-4306-82eb-5f2f1bd6403c" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadac0blockblobapitestuploadac9640278652e45da53", "javablobuploadac1blockblobapitestuploadac96411417073390e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploadac[5].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploadac[5].json new file mode 100644 index 0000000000000..e2c931050920c --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploadac[5].json @@ -0,0 +1,131 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadac0blockblobapitestuploadac8cb90711ab7098786?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281334C0471A\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1de4198-001e-00f1-0efc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:24 GMT", + "x-ms-client-request-id" : "9e19fa92-8ad6-4a70-a0c8-fe1910672e14" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadac0blockblobapitestuploadac8cb90711ab7098786/javablobuploadac1blockblobapitestuploadac8cb66487b881fc8", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:25 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:24 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D7281334C5A383\"", + "Content-Length" : "0", + "x-ms-request-id" : "b1de41f5-001e-00f1-65fc-59e1e5000000", + "x-ms-client-request-id" : "a687b94b-7478-4c77-9ee4-07ac1271fad5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadac0blockblobapitestuploadac8cb90711ab7098786/javablobuploadac1blockblobapitestuploadac8cb66487b881fc8?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281334C5A383\"", + "x-ms-lease-id" : "c86fd891-fb2e-4bc7-a6b1-55607fea3005", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1de423c-001e-00f1-28fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:24 GMT", + "x-ms-client-request-id" : "d8c1e2d1-b50b-44a0-9cd4-d8c72d0ea679" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadac0blockblobapitestuploadac8cb90711ab7098786/javablobuploadac1blockblobapitestuploadac8cb66487b881fc8", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:25 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:24 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D7281334CF9101\"", + "Content-Length" : "0", + "x-ms-request-id" : "b1de426d-001e-00f1-57fc-59e1e5000000", + "x-ms-client-request-id" : "f0617f67-2f33-49a9-8cda-1c55bbf4e168" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1de42b2-001e-00f1-18fc-59e1e5000000", + "Body" : "jtcuploadacjtcuploadac0blockblobapitestuploadac8cb90711ab7098786Fri, 23 Aug 2019 21:45:25 GMT\"0x8D7281334C0471A\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:24 GMT", + "x-ms-client-request-id" : "182c7fdf-886d-4125-bd16-f6da085c0ebf", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadac0blockblobapitestuploadac8cb90711ab7098786?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1de42da-001e-00f1-3efc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:24 GMT", + "x-ms-client-request-id" : "882ad95f-4e8e-4c60-aa1c-7ec8123a463a" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadac0blockblobapitestuploadac8cb90711ab7098786", "javablobuploadac1blockblobapitestuploadac8cb66487b881fc8" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploadacfail[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploadacfail[0].json new file mode 100644 index 0000000000000..72e0ce0e11ec4 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploadacfail[0].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadacfail0blockblobapitestuploadacfail213303531633d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281334DED320\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1de4341-001e-00f1-1cfc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:24 GMT", + "x-ms-client-request-id" : "3eb4906d-75ae-4b5d-9cfb-ebf23b4008a2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadacfail0blockblobapitestuploadacfail213303531633d/javablobuploadacfail1blockblobapitestuploadacfail213351052c6", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:25 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:24 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D7281334F0DCCE\"", + "Content-Length" : "0", + "x-ms-request-id" : "b1de441f-001e-00f1-68fc-59e1e5000000", + "x-ms-client-request-id" : "43699c02-b888-4029-a5b5-24f9eb7d9657" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadacfail0blockblobapitestuploadacfail213303531633d/javablobuploadacfail1blockblobapitestuploadacfail213351052c6", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "b1de445e-001e-00f1-26fc-59e1e5000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:b1de445e-001e-00f1-26fc-59e1e5000000\nTime:2019-08-23T21:45:25.4293974Z", + "Date" : "Fri, 23 Aug 2019 21:45:24 GMT", + "x-ms-client-request-id" : "ea967c88-4e70-4354-9c03-f59aa51396fa", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1de448a-001e-00f1-52fc-59e1e5000000", + "Body" : "jtcuploadacfailjtcuploadacfail0blockblobapitestuploadacfail213303531633dFri, 23 Aug 2019 21:45:25 GMT\"0x8D7281334DED320\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:24 GMT", + "x-ms-client-request-id" : "0bc42ac5-d716-40ac-9472-4a7272dda19d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadacfail0blockblobapitestuploadacfail213303531633d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1de44b3-001e-00f1-76fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:24 GMT", + "x-ms-client-request-id" : "56331b90-3678-4523-ab5c-852d718af09d" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadacfail0blockblobapitestuploadacfail213303531633d", "javablobuploadacfail1blockblobapitestuploadacfail213351052c6" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploadacfail[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploadacfail[1].json new file mode 100644 index 0000000000000..7c3844f932506 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploadacfail[1].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadacfail0blockblobapitestuploadacfail8bd10045916f3?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281335052947\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1de44ea-001e-00f1-2dfc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:24 GMT", + "x-ms-client-request-id" : "c88b2556-f5b9-484d-9e3b-923fbd412b03" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadacfail0blockblobapitestuploadacfail8bd10045916f3/javablobuploadacfail1blockblobapitestuploadacfail8bd243611d7", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:25 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:24 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72813350AD3CE\"", + "Content-Length" : "0", + "x-ms-request-id" : "b1de452c-001e-00f1-69fc-59e1e5000000", + "x-ms-client-request-id" : "4c765bf2-ec6b-46ac-9db4-c2bcfc000759" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadacfail0blockblobapitestuploadacfail8bd10045916f3/javablobuploadacfail1blockblobapitestuploadacfail8bd243611d7", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "b1de456e-001e-00f1-28fc-59e1e5000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:b1de456e-001e-00f1-28fc-59e1e5000000\nTime:2019-08-23T21:45:25.5955569Z", + "Date" : "Fri, 23 Aug 2019 21:45:25 GMT", + "x-ms-client-request-id" : "8968ff48-b6c3-4418-b6d2-e217334f8afc", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1de45a9-001e-00f1-61fc-59e1e5000000", + "Body" : "jtcuploadacfailjtcuploadacfail0blockblobapitestuploadacfail8bd10045916f3Fri, 23 Aug 2019 21:45:25 GMT\"0x8D7281335052947\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:25 GMT", + "x-ms-client-request-id" : "e67cbba0-f246-45aa-8929-fcd31e68616c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadacfail0blockblobapitestuploadacfail8bd10045916f3?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1de45d3-001e-00f1-09fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:25 GMT", + "x-ms-client-request-id" : "c5e324a7-2ef1-499c-b2e3-a096442bdc3c" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadacfail0blockblobapitestuploadacfail8bd10045916f3", "javablobuploadacfail1blockblobapitestuploadacfail8bd243611d7" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploadacfail[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploadacfail[2].json new file mode 100644 index 0000000000000..b81ceecb33074 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploadacfail[2].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadacfail0blockblobapitestuploadacfailf234332713cd2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813351EAAEB\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1de4613-001e-00f1-47fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:25 GMT", + "x-ms-client-request-id" : "c045c216-9265-4529-9d42-cf1c431eacaa" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadacfail0blockblobapitestuploadacfailf234332713cd2/javablobuploadacfail1blockblobapitestuploadacfailf239727472c", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:25 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:25 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D7281335242E6D\"", + "Content-Length" : "0", + "x-ms-request-id" : "b1de464d-001e-00f1-7efc-59e1e5000000", + "x-ms-client-request-id" : "2876c8af-b561-47b5-b709-bc47544125f3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadacfail0blockblobapitestuploadacfailf234332713cd2/javablobuploadacfail1blockblobapitestuploadacfailf239727472c", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "b1de4679-001e-00f1-24fc-59e1e5000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:b1de4679-001e-00f1-24fc-59e1e5000000\nTime:2019-08-23T21:45:25.7567128Z", + "Date" : "Fri, 23 Aug 2019 21:45:25 GMT", + "x-ms-client-request-id" : "5ae7c0a9-3810-4e67-9116-555fb33b8f77", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1de469e-001e-00f1-44fc-59e1e5000000", + "Body" : "jtcuploadacfailjtcuploadacfail0blockblobapitestuploadacfailf234332713cd2Fri, 23 Aug 2019 21:45:25 GMT\"0x8D72813351EAAEB\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:25 GMT", + "x-ms-client-request-id" : "c088a11d-ac0c-4311-883c-4da4d82f7c32", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadacfail0blockblobapitestuploadacfailf234332713cd2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1de46d1-001e-00f1-69fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:25 GMT", + "x-ms-client-request-id" : "531b753d-4dd4-49ec-a151-4472f543231e" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadacfail0blockblobapitestuploadacfailf234332713cd2", "javablobuploadacfail1blockblobapitestuploadacfailf239727472c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploadacfail[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploadacfail[3].json new file mode 100644 index 0000000000000..f219eb8b26c22 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploadacfail[3].json @@ -0,0 +1,139 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadacfail0blockblobapitestuploadacfaild660308559dc1?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133537DE6E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1de4723-001e-00f1-2dfc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:25 GMT", + "x-ms-client-request-id" : "18a72003-d2f6-4347-a684-0d4e10bf66a2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadacfail0blockblobapitestuploadacfaild660308559dc1/javablobuploadacfail1blockblobapitestuploadacfaild6616517bfb", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:25 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:25 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72813353CC585\"", + "Content-Length" : "0", + "x-ms-request-id" : "b1de475c-001e-00f1-59fc-59e1e5000000", + "x-ms-client-request-id" : "e0121f72-4da1-49ee-93c2-4e611b754325" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadacfail0blockblobapitestuploadacfaild660308559dc1/javablobuploadacfail1blockblobapitestuploadacfaild6616517bfb", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:25 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:45:25 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72813353CC585\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:45:25 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "b1de4799-001e-00f1-0efc-59e1e5000000", + "x-ms-client-request-id" : "0eb013c8-8c0a-44a8-a607-d8f6fdb02d46", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadacfail0blockblobapitestuploadacfaild660308559dc1/javablobuploadacfail1blockblobapitestuploadacfaild6616517bfb", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "b1de47ce-001e-00f1-37fc-59e1e5000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:b1de47ce-001e-00f1-37fc-59e1e5000000\nTime:2019-08-23T21:45:25.9478951Z", + "Date" : "Fri, 23 Aug 2019 21:45:25 GMT", + "x-ms-client-request-id" : "1231344f-fbd0-43ba-a36c-578499e2b5ee", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1de47ff-001e-00f1-61fc-59e1e5000000", + "Body" : "jtcuploadacfailjtcuploadacfail0blockblobapitestuploadacfaild660308559dc1Fri, 23 Aug 2019 21:45:25 GMT\"0x8D728133537DE6E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:25 GMT", + "x-ms-client-request-id" : "92fdaa10-44f0-4d1b-b071-659ab70c4ba4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadacfail0blockblobapitestuploadacfaild660308559dc1?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1de4828-001e-00f1-03fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:25 GMT", + "x-ms-client-request-id" : "54dd293e-a493-43b9-8c18-b82dce6d41b4" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadacfail0blockblobapitestuploadacfaild660308559dc1", "javablobuploadacfail1blockblobapitestuploadacfaild6616517bfb" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploadacfail[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploadacfail[4].json new file mode 100644 index 0000000000000..40d5c88cb8a92 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploadacfail[4].json @@ -0,0 +1,129 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadacfail0blockblobapitestuploadacfailb2b779694fb50?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133553D1BA\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1de4871-001e-00f1-3ffc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:25 GMT", + "x-ms-client-request-id" : "42eb4292-64e9-403e-9c63-e2041e47e5bf" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadacfail0blockblobapitestuploadacfailb2b779694fb50/javablobuploadacfail1blockblobapitestuploadacfailb2b60147ad2", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:26 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:25 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72813355906FE\"", + "Content-Length" : "0", + "x-ms-request-id" : "b1de48a4-001e-00f1-69fc-59e1e5000000", + "x-ms-client-request-id" : "02c9a0c2-eebe-4450-919c-1dd9fb437acf" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadacfail0blockblobapitestuploadacfailb2b779694fb50/javablobuploadacfail1blockblobapitestuploadacfailb2b60147ad2?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813355906FE\"", + "x-ms-lease-id" : "647b4c06-9226-446a-a4e1-cd539f8af5d8", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1de48f3-001e-00f1-29fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:25 GMT", + "x-ms-client-request-id" : "cd5abf6e-8d0c-4520-9b89-317a5a70cc15" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadacfail0blockblobapitestuploadacfailb2b779694fb50/javablobuploadacfail1blockblobapitestuploadacfailb2b60147ad2", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "LeaseIdMismatchWithBlobOperation", + "retry-after" : "0", + "Content-Length" : "264", + "StatusCode" : "412", + "x-ms-request-id" : "b1de4937-001e-00f1-65fc-59e1e5000000", + "Body" : "LeaseIdMismatchWithBlobOperationThe lease ID specified did not match the lease ID for the blob.\nRequestId:b1de4937-001e-00f1-65fc-59e1e5000000\nTime:2019-08-23T21:45:26.1390779Z", + "Date" : "Fri, 23 Aug 2019 21:45:25 GMT", + "x-ms-client-request-id" : "0a9ca887-cb51-481a-9a57-5b8c636e9bb3", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1de496c-001e-00f1-13fc-59e1e5000000", + "Body" : "jtcuploadacfailjtcuploadacfail0blockblobapitestuploadacfailb2b779694fb50Fri, 23 Aug 2019 21:45:26 GMT\"0x8D728133553D1BA\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:25 GMT", + "x-ms-client-request-id" : "42e7fa02-75c5-440a-a0e9-2636b3e1e49b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadacfail0blockblobapitestuploadacfailb2b779694fb50?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1de49cd-001e-00f1-68fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:25 GMT", + "x-ms-client-request-id" : "9608b8c2-4d5e-402e-92c4-abf9c664323f" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadacfail0blockblobapitestuploadacfailb2b779694fb50", "javablobuploadacfail1blockblobapitestuploadacfailb2b60147ad2" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploademptybody.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploademptybody.json new file mode 100644 index 0000000000000..2da30245d74aa --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploademptybody.json @@ -0,0 +1,110 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploademptybody0blockblobapitestuploademptybodyb2a3806431?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813336D0DEE\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1de306e-001e-00f1-47fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:22 GMT", + "x-ms-client-request-id" : "9d6d3186-b077-43cf-9a19-6194257af343" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploademptybody0blockblobapitestuploademptybodyb2a3806431/javablobuploademptybody1451389d2ea735a09f48e59", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:22 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:22 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D728133372434A\"", + "Content-Length" : "0", + "x-ms-request-id" : "b1de30aa-001e-00f1-7ffc-59e1e5000000", + "x-ms-client-request-id" : "69f79e23-a1ea-4c7b-a524-cca46cb8fad6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploademptybody0blockblobapitestuploademptybodyb2a3806431/javablobuploademptybody1451389d2ea735a09f48e59", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "AAAAAAAAAAA=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:22 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:22 GMT", + "Content-MD5" : "1B2M2Y8AsgTpgAmY7PhCfg==", + "ETag" : "\"0x8D728133376FF66\"", + "Content-Length" : "0", + "x-ms-request-id" : "b1de30df-001e-00f1-32fc-59e1e5000000", + "x-ms-client-request-id" : "86dd47b6-8efc-4cdd-99ba-e933091b751d" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploademptybody&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1de312a-001e-00f1-7bfc-59e1e5000000", + "Body" : "jtcuploademptybodyjtcuploademptybody0blockblobapitestuploademptybodyb2a3806431Fri, 23 Aug 2019 21:45:22 GMT\"0x8D72813336D0DEE\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:22 GMT", + "x-ms-client-request-id" : "6cbfef90-2e00-478a-85b5-81c1a6943ae4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploademptybody0blockblobapitestuploademptybodyb2a3806431?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1de315f-001e-00f1-30fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:22 GMT", + "x-ms-client-request-id" : "0938ed53-db27-4a13-a91b-25e4ab181c76" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploademptybody0blockblobapitestuploademptybodyb2a3806431", "javablobuploademptybody1451389d2ea735a09f48e59" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploaderror.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploaderror.json new file mode 100644 index 0000000000000..6480d4920e502 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploaderror.json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploaderror0blockblobapitestuploaderroraee087398438bb?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813357544A9\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1de4a36-001e-00f1-3ffc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:25 GMT", + "x-ms-client-request-id" : "fbc6c2af-09fc-4537-b2c9-c86441a44d91" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploaderror0blockblobapitestuploaderroraee087398438bb/javablobuploaderror1blockblobapitestuploaderroraee681093858", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:26 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:25 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72813357A79E7\"", + "Content-Length" : "0", + "x-ms-request-id" : "b1de4a7c-001e-00f1-7bfc-59e1e5000000", + "x-ms-client-request-id" : "cec43924-8550-451c-b55b-fd6684dd1101" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploaderror0blockblobapitestuploaderroraee087398438bb/javablobuploaderror2blockblobapitestuploaderroraee299465371", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "InvalidHeaderValue", + "retry-after" : "0", + "Content-Length" : "321", + "StatusCode" : "400", + "x-ms-request-id" : "b1de4ac0-001e-00f1-38fc-59e1e5000000", + "Body" : "InvalidHeaderValueThe value for one of the HTTP headers is not in the correct format.\nRequestId:b1de4ac0-001e-00f1-38fc-59e1e5000000\nTime:2019-08-23T21:45:26.3232551Zx-ms-lease-idid", + "Date" : "Fri, 23 Aug 2019 21:45:25 GMT", + "x-ms-client-request-id" : "7d04d0cd-b20e-4414-96bd-a33e9078a1e4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploaderror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1de4afb-001e-00f1-6efc-59e1e5000000", + "Body" : "jtcuploaderrorjtcuploaderror0blockblobapitestuploaderroraee087398438bbFri, 23 Aug 2019 21:45:26 GMT\"0x8D72813357544A9\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:25 GMT", + "x-ms-client-request-id" : "2f55201c-14ff-432a-bf46-1800194bbde3", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploaderror0blockblobapitestuploaderroraee087398438bb?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1de4b2d-001e-00f1-1dfc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:25 GMT", + "x-ms-client-request-id" : "9eb24512-0ed9-42b1-bbb4-e9035e885378" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploaderror0blockblobapitestuploaderroraee087398438bb", "javablobuploaderror1blockblobapitestuploaderroraee681093858", "javablobuploaderror2blockblobapitestuploaderroraee299465371" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploadheaders[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploadheaders[0].json new file mode 100644 index 0000000000000..59534091519ac --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploadheaders[0].json @@ -0,0 +1,141 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadheaders0blockblobapitestuploadheaders090709876112?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281333AEE212\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1de33ba-001e-00f1-69fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:22 GMT", + "x-ms-client-request-id" : "81528682-4720-4d4d-90e2-e7621206709b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadheaders0blockblobapitestuploadheaders090709876112/javablobuploadheaders1blockblobapitestuploadheaders09015856f3", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:23 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:22 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D7281333B4176C\"", + "Content-Length" : "0", + "x-ms-request-id" : "b1de33ff-001e-00f1-2afc-59e1e5000000", + "x-ms-client-request-id" : "034bdab0-1359-4b91-817f-874cda542491" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadheaders0blockblobapitestuploadheaders090709876112/javablobuploadheaders1blockblobapitestuploadheaders09015856f3", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:23 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:22 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D7281333B8D37A\"", + "Content-Length" : "0", + "x-ms-request-id" : "b1de343b-001e-00f1-63fc-59e1e5000000", + "x-ms-client-request-id" : "5c30ba78-fe8d-4648-91bf-ed41ac6f2536" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadheaders0blockblobapitestuploadheaders090709876112/javablobuploadheaders1blockblobapitestuploadheaders09015856f3", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:23 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:45:22 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D7281333B8D37A\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:45:23 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "b1de3483-001e-00f1-26fc-59e1e5000000", + "x-ms-client-request-id" : "18a566fe-b455-4803-b789-d16fbb8ef50d", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadheaders&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1de34bf-001e-00f1-60fc-59e1e5000000", + "Body" : "jtcuploadheadersjtcuploadheaders0blockblobapitestuploadheaders090709876112Fri, 23 Aug 2019 21:45:23 GMT\"0x8D7281333AEE212\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:22 GMT", + "x-ms-client-request-id" : "158c738e-2f4f-4399-b85c-92d702562983", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadheaders0blockblobapitestuploadheaders090709876112?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1de34fd-001e-00f1-1afc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:22 GMT", + "x-ms-client-request-id" : "742c4a90-3f50-4aaf-b897-1d933242ff91" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadheaders0blockblobapitestuploadheaders090709876112", "javablobuploadheaders1blockblobapitestuploadheaders09015856f3" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploadheaders[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploadheaders[1].json new file mode 100644 index 0000000000000..81bd006395bcb --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploadheaders[1].json @@ -0,0 +1,145 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadheaders0blockblobapitestuploadheadersd9454081a1ff?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281333CB98E5\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1de354b-001e-00f1-5ffc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:22 GMT", + "x-ms-client-request-id" : "205f1678-ea29-4859-9d1f-99c9b07cf7db" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadheaders0blockblobapitestuploadheadersd9454081a1ff/javablobuploadheaders1blockblobapitestuploadheadersd9498528fb", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:23 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:22 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D7281333D191B2\"", + "Content-Length" : "0", + "x-ms-request-id" : "b1de3586-001e-00f1-17fc-59e1e5000000", + "x-ms-client-request-id" : "7f1e2feb-8702-4882-8080-3c422d506069" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadheaders0blockblobapitestuploadheadersd9454081a1ff/javablobuploadheaders1blockblobapitestuploadheadersd9498528fb", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:23 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:22 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D7281333D64DCA\"", + "Content-Length" : "0", + "x-ms-request-id" : "b1de35bf-001e-00f1-4efc-59e1e5000000", + "x-ms-client-request-id" : "57b9e25e-0827-4afb-a5f8-6e31d152b376" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadheaders0blockblobapitestuploadheadersd9454081a1ff/javablobuploadheaders1blockblobapitestuploadheadersd9498528fb", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:23 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-blob-type" : "BlockBlob", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "Content-Encoding" : "encoding", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:45:23 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "b1de360f-001e-00f1-1dfc-59e1e5000000", + "Content-Type" : "type", + "x-ms-version" : "2019-02-02", + "Date" : "Fri, 23 Aug 2019 21:45:22 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "Cache-Control" : "control", + "ETag" : "\"0x8D7281333D64DCA\"", + "Content-Disposition" : "disposition", + "x-ms-client-request-id" : "77656b59-c4de-4c9a-bfdb-6b3c65c1f58d", + "Content-Language" : "language" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadheaders&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1de3647-001e-00f1-52fc-59e1e5000000", + "Body" : "jtcuploadheadersjtcuploadheaders0blockblobapitestuploadheadersd9454081a1ffFri, 23 Aug 2019 21:45:23 GMT\"0x8D7281333CB98E5\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:23 GMT", + "x-ms-client-request-id" : "b0cb6541-48f8-45c9-b5f0-9cf7ee52cf7f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadheaders0blockblobapitestuploadheadersd9454081a1ff?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1de3680-001e-00f1-04fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:23 GMT", + "x-ms-client-request-id" : "d1189a2c-446f-4d17-b9f7-78b199b4610e" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadheaders0blockblobapitestuploadheadersd9454081a1ff", "javablobuploadheaders1blockblobapitestuploadheadersd9498528fb" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploadillegalargument[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploadillegalargument[0].json new file mode 100644 index 0000000000000..c1850d5532a59 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploadillegalargument[0].json @@ -0,0 +1,585 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadillegalargument01194916250bb935144ece?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281333296C22\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "0a3caff1-301e-0118-0afc-595bb6000000", + "Date" : "Fri, 23 Aug 2019 21:45:22 GMT", + "x-ms-client-request-id" : "d1e3b487-6a6b-4b7d-b14e-8ee2f1ddabb5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadillegalargument01194916250bb935144ece/javablobuploadillegalargument16061627597d63ddfb4f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:22 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:22 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72813332EC116\"", + "Content-Length" : "0", + "x-ms-request-id" : "0a3cafff-301e-0118-16fc-595bb6000000", + "x-ms-client-request-id" : "804cb461-c027-4207-9b1d-84546dbd5dfc" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadillegalargument01194916250bb935144ece/javablobuploadillegalargument16061627597d63ddfb4f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : null, + "Exception" : { + "Throwable" : { + "cause" : null, + "stackTrace" : [ { + "methodName" : "lambda$null$1", + "fileName" : "BlockBlobClient.java", + "lineNumber" : 147, + "className" : "com.azure.storage.blob.BlockBlobClient", + "nativeMethod" : false + }, { + "methodName" : "call", + "fileName" : "MonoCallable.java", + "lineNumber" : 91, + "className" : "reactor.core.publisher.MonoCallable", + "nativeMethod" : false + }, { + "methodName" : "drain", + "fileName" : "FluxConcatMap.java", + "lineNumber" : 402, + "className" : "reactor.core.publisher.FluxConcatMap$ConcatMapImmediate", + "nativeMethod" : false + }, { + "methodName" : "onNext", + "fileName" : "FluxConcatMap.java", + "lineNumber" : 244, + "className" : "reactor.core.publisher.FluxConcatMap$ConcatMapImmediate", + "nativeMethod" : false + }, { + "methodName" : "onNext", + "fileName" : "FluxMapFuseable.java", + "lineNumber" : 121, + "className" : "reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber", + "nativeMethod" : false + }, { + "methodName" : "request", + "fileName" : "FluxJust.java", + "lineNumber" : 99, + "className" : "reactor.core.publisher.FluxJust$WeakScalarSubscription", + "nativeMethod" : false + }, { + "methodName" : "request", + "fileName" : "FluxMapFuseable.java", + "lineNumber" : 162, + "className" : "reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber", + "nativeMethod" : false + }, { + "methodName" : "onSubscribe", + "fileName" : "FluxConcatMap.java", + "lineNumber" : 229, + "className" : "reactor.core.publisher.FluxConcatMap$ConcatMapImmediate", + "nativeMethod" : false + }, { + "methodName" : "onSubscribe", + "fileName" : "FluxMapFuseable.java", + "lineNumber" : 90, + "className" : "reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber", + "nativeMethod" : false + }, { + "methodName" : "subscribe", + "fileName" : "FluxJust.java", + "lineNumber" : 70, + "className" : "reactor.core.publisher.FluxJust", + "nativeMethod" : false + }, { + "methodName" : "subscribe", + "fileName" : "FluxMapFuseable.java", + "lineNumber" : 63, + "className" : "reactor.core.publisher.FluxMapFuseable", + "nativeMethod" : false + }, { + "methodName" : "subscribe", + "fileName" : "FluxConcatMap.java", + "lineNumber" : 121, + "className" : "reactor.core.publisher.FluxConcatMap", + "nativeMethod" : false + }, { + "methodName" : "subscribe", + "fileName" : "Flux.java", + "lineNumber" : 7921, + "className" : "reactor.core.publisher.Flux", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "FluxSubscribeOn.java", + "lineNumber" : 194, + "className" : "reactor.core.publisher.FluxSubscribeOn$SubscribeOnSubscriber", + "nativeMethod" : false + }, { + "methodName" : "call", + "fileName" : "WorkerTask.java", + "lineNumber" : 84, + "className" : "reactor.core.scheduler.WorkerTask", + "nativeMethod" : false + }, { + "methodName" : "call", + "fileName" : "WorkerTask.java", + "lineNumber" : 37, + "className" : "reactor.core.scheduler.WorkerTask", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "FutureTask.java", + "lineNumber" : 266, + "className" : "java.util.concurrent.FutureTask", + "nativeMethod" : false + }, { + "methodName" : "access$201", + "fileName" : "ScheduledThreadPoolExecutor.java", + "lineNumber" : 180, + "className" : "java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "ScheduledThreadPoolExecutor.java", + "lineNumber" : 293, + "className" : "java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask", + "nativeMethod" : false + }, { + "methodName" : "runWorker", + "fileName" : "ThreadPoolExecutor.java", + "lineNumber" : 1149, + "className" : "java.util.concurrent.ThreadPoolExecutor", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "ThreadPoolExecutor.java", + "lineNumber" : 624, + "className" : "java.util.concurrent.ThreadPoolExecutor$Worker", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "Thread.java", + "lineNumber" : 748, + "className" : "java.lang.Thread", + "nativeMethod" : false + } ], + "message" : null, + "localizedMessage" : null, + "suppressed" : [ { + "cause" : null, + "stackTrace" : [ { + "methodName" : "blockingGet", + "fileName" : "BlockingSingleSubscriber.java", + "lineNumber" : 93, + "className" : "reactor.core.publisher.BlockingSingleSubscriber", + "nativeMethod" : false + }, { + "methodName" : "block", + "fileName" : "Mono.java", + "lineNumber" : 1494, + "className" : "reactor.core.publisher.Mono", + "nativeMethod" : false + }, { + "methodName" : "blockWithOptionalTimeout", + "fileName" : "Utility.java", + "lineNumber" : 235, + "className" : "com.azure.storage.common.Utility", + "nativeMethod" : false + }, { + "methodName" : "uploadWithResponse", + "fileName" : "BlockBlobClient.java", + "lineNumber" : 156, + "className" : "com.azure.storage.blob.BlockBlobClient", + "nativeMethod" : false + }, { + "methodName" : "upload", + "fileName" : "BlockBlobClient.java", + "lineNumber" : 115, + "className" : "com.azure.storage.blob.BlockBlobClient", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : null, + "lineNumber" : -1, + "className" : "sun.reflect.GeneratedMethodAccessor49", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "DelegatingMethodAccessorImpl.java", + "lineNumber" : 43, + "className" : "sun.reflect.DelegatingMethodAccessorImpl", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "Method.java", + "lineNumber" : 498, + "className" : "java.lang.reflect.Method", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "PojoMetaMethodSite.java", + "lineNumber" : 213, + "className" : "org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrap", + "nativeMethod" : false + }, { + "methodName" : "call", + "fileName" : "PojoMetaMethodSite.java", + "lineNumber" : 56, + "className" : "org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite", + "nativeMethod" : false + }, { + "methodName" : "defaultCall", + "fileName" : "CallSiteArray.java", + "lineNumber" : 48, + "className" : "org.codehaus.groovy.runtime.callsite.CallSiteArray", + "nativeMethod" : false + }, { + "methodName" : "call", + "fileName" : "AbstractCallSite.java", + "lineNumber" : 113, + "className" : "org.codehaus.groovy.runtime.callsite.AbstractCallSite", + "nativeMethod" : false + }, { + "methodName" : "call", + "fileName" : "AbstractCallSite.java", + "lineNumber" : 133, + "className" : "org.codehaus.groovy.runtime.callsite.AbstractCallSite", + "nativeMethod" : false + }, { + "methodName" : "$spock_feature_1_36", + "fileName" : "BlockBlobAPITest.groovy", + "lineNumber" : 583, + "className" : "com.azure.storage.blob.BlockBlobAPITest", + "nativeMethod" : false + }, { + "methodName" : "invoke0", + "fileName" : "NativeMethodAccessorImpl.java", + "lineNumber" : -2, + "className" : "sun.reflect.NativeMethodAccessorImpl", + "nativeMethod" : true + }, { + "methodName" : "invoke", + "fileName" : "NativeMethodAccessorImpl.java", + "lineNumber" : 62, + "className" : "sun.reflect.NativeMethodAccessorImpl", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "DelegatingMethodAccessorImpl.java", + "lineNumber" : 43, + "className" : "sun.reflect.DelegatingMethodAccessorImpl", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "Method.java", + "lineNumber" : 498, + "className" : "java.lang.reflect.Method", + "nativeMethod" : false + }, { + "methodName" : "invokeMethod", + "fileName" : "ReflectionUtil.java", + "lineNumber" : 188, + "className" : "org.spockframework.util.ReflectionUtil", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "MethodInfo.java", + "lineNumber" : 84, + "className" : "org.spockframework.runtime.model.MethodInfo", + "nativeMethod" : false + }, { + "methodName" : "invokeRaw", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 481, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 464, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "runFeatureMethod", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 406, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "doRunIteration", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 324, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 309, + "className" : "org.spockframework.runtime.BaseSpecRunner$6", + "nativeMethod" : false + }, { + "methodName" : "invokeRaw", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 481, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 464, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "runIteration", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 288, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "initializeAndRunIteration", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 278, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "runIterations", + "fileName" : "ParameterizedSpecRunner.java", + "lineNumber" : 139, + "className" : "org.spockframework.runtime.ParameterizedSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "runParameterizedFeature", + "fileName" : "ParameterizedSpecRunner.java", + "lineNumber" : 41, + "className" : "org.spockframework.runtime.ParameterizedSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "doRunFeature", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 262, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 246, + "className" : "org.spockframework.runtime.BaseSpecRunner$5", + "nativeMethod" : false + }, { + "methodName" : "invokeRaw", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 481, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 464, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "runFeature", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 238, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "runFeatures", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 188, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "doRunSpec", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 98, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 84, + "className" : "org.spockframework.runtime.BaseSpecRunner$1", + "nativeMethod" : false + }, { + "methodName" : "invokeRaw", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 481, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 464, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "runSpec", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 76, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 67, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "Sputnik.java", + "lineNumber" : 63, + "className" : "org.spockframework.runtime.Sputnik", + "nativeMethod" : false + }, { + "methodName" : "runChild", + "fileName" : "Suite.java", + "lineNumber" : 128, + "className" : "org.junit.runners.Suite", + "nativeMethod" : false + }, { + "methodName" : "runChild", + "fileName" : "Suite.java", + "lineNumber" : 27, + "className" : "org.junit.runners.Suite", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "ParentRunner.java", + "lineNumber" : 290, + "className" : "org.junit.runners.ParentRunner$3", + "nativeMethod" : false + }, { + "methodName" : "schedule", + "fileName" : "ParentRunner.java", + "lineNumber" : 71, + "className" : "org.junit.runners.ParentRunner$1", + "nativeMethod" : false + }, { + "methodName" : "runChildren", + "fileName" : "ParentRunner.java", + "lineNumber" : 288, + "className" : "org.junit.runners.ParentRunner", + "nativeMethod" : false + }, { + "methodName" : "access$000", + "fileName" : "ParentRunner.java", + "lineNumber" : 58, + "className" : "org.junit.runners.ParentRunner", + "nativeMethod" : false + }, { + "methodName" : "evaluate", + "fileName" : "ParentRunner.java", + "lineNumber" : 268, + "className" : "org.junit.runners.ParentRunner$2", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "ParentRunner.java", + "lineNumber" : 363, + "className" : "org.junit.runners.ParentRunner", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "JUnitCore.java", + "lineNumber" : 137, + "className" : "org.junit.runner.JUnitCore", + "nativeMethod" : false + }, { + "methodName" : "startRunnerWithArgs", + "fileName" : "JUnit4IdeaTestRunner.java", + "lineNumber" : 68, + "className" : "com.intellij.junit4.JUnit4IdeaTestRunner", + "nativeMethod" : false + }, { + "methodName" : "startRunnerWithArgs", + "fileName" : "IdeaTestRunner.java", + "lineNumber" : 47, + "className" : "com.intellij.rt.execution.junit.IdeaTestRunner$Repeater", + "nativeMethod" : false + }, { + "methodName" : "prepareStreamsAndStart", + "fileName" : "JUnitStarter.java", + "lineNumber" : 242, + "className" : "com.intellij.rt.execution.junit.JUnitStarter", + "nativeMethod" : false + }, { + "methodName" : "main", + "fileName" : "JUnitStarter.java", + "lineNumber" : 70, + "className" : "com.intellij.rt.execution.junit.JUnitStarter", + "nativeMethod" : false + } ], + "message" : "#block terminated with an error", + "localizedMessage" : "#block terminated with an error", + "suppressed" : [ ] + } ] + }, + "ClassName" : "java.lang.NullPointerException" + } + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadillegalargument&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "a4f5b8a3-e01e-00fb-36fc-59f86c000000", + "Body" : "jtcuploadillegalargumentjtcuploadillegalargument01194916250bb935144eceFri, 23 Aug 2019 21:45:22 GMT\"0x8D7281333296C22\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:21 GMT", + "x-ms-client-request-id" : "3c4e31ba-40a9-4faa-b85a-0f857a220da7", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadillegalargument01194916250bb935144ece?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "a4f5b8c5-e01e-00fb-56fc-59f86c000000", + "Date" : "Fri, 23 Aug 2019 21:45:21 GMT", + "x-ms-client-request-id" : "481389f5-6560-4736-8359-1bcb5d6058ae" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadillegalargument01194916250bb935144ece", "javablobuploadillegalargument16061627597d63ddfb4f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploadillegalargument[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploadillegalargument[1].json new file mode 100644 index 0000000000000..7884287911162 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploadillegalargument[1].json @@ -0,0 +1,591 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadillegalargument055604137b214d37d2427a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813334B4DE0\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "a4f5b8e3-e01e-00fb-72fc-59f86c000000", + "Date" : "Fri, 23 Aug 2019 21:45:21 GMT", + "x-ms-client-request-id" : "d6518b45-fd20-4bbb-ae5c-a64d76ba58b7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadillegalargument055604137b214d37d2427a/javablobuploadillegalargument134088e206f176748948", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:22 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:21 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D728133350F77D\"", + "Content-Length" : "0", + "x-ms-request-id" : "a4f5b8f7-e01e-00fb-05fc-59f86c000000", + "x-ms-client-request-id" : "85ab9f4f-864a-41a0-89ce-785c2e7ce1e2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadillegalargument055604137b214d37d2427a/javablobuploadillegalargument134088e206f176748948", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : null, + "Exception" : { + "Throwable" : { + "cause" : null, + "stackTrace" : [ { + "methodName" : "read", + "fileName" : "ByteArrayInputStream.java", + "lineNumber" : 180, + "className" : "java.io.ByteArrayInputStream", + "nativeMethod" : false + }, { + "methodName" : "lambda$null$1", + "fileName" : "BlockBlobClient.java", + "lineNumber" : 147, + "className" : "com.azure.storage.blob.BlockBlobClient", + "nativeMethod" : false + }, { + "methodName" : "call", + "fileName" : "MonoCallable.java", + "lineNumber" : 91, + "className" : "reactor.core.publisher.MonoCallable", + "nativeMethod" : false + }, { + "methodName" : "drain", + "fileName" : "FluxConcatMap.java", + "lineNumber" : 402, + "className" : "reactor.core.publisher.FluxConcatMap$ConcatMapImmediate", + "nativeMethod" : false + }, { + "methodName" : "onNext", + "fileName" : "FluxConcatMap.java", + "lineNumber" : 244, + "className" : "reactor.core.publisher.FluxConcatMap$ConcatMapImmediate", + "nativeMethod" : false + }, { + "methodName" : "onNext", + "fileName" : "FluxMapFuseable.java", + "lineNumber" : 121, + "className" : "reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber", + "nativeMethod" : false + }, { + "methodName" : "request", + "fileName" : "FluxJust.java", + "lineNumber" : 99, + "className" : "reactor.core.publisher.FluxJust$WeakScalarSubscription", + "nativeMethod" : false + }, { + "methodName" : "request", + "fileName" : "FluxMapFuseable.java", + "lineNumber" : 162, + "className" : "reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber", + "nativeMethod" : false + }, { + "methodName" : "onSubscribe", + "fileName" : "FluxConcatMap.java", + "lineNumber" : 229, + "className" : "reactor.core.publisher.FluxConcatMap$ConcatMapImmediate", + "nativeMethod" : false + }, { + "methodName" : "onSubscribe", + "fileName" : "FluxMapFuseable.java", + "lineNumber" : 90, + "className" : "reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber", + "nativeMethod" : false + }, { + "methodName" : "subscribe", + "fileName" : "FluxJust.java", + "lineNumber" : 70, + "className" : "reactor.core.publisher.FluxJust", + "nativeMethod" : false + }, { + "methodName" : "subscribe", + "fileName" : "FluxMapFuseable.java", + "lineNumber" : 63, + "className" : "reactor.core.publisher.FluxMapFuseable", + "nativeMethod" : false + }, { + "methodName" : "subscribe", + "fileName" : "FluxConcatMap.java", + "lineNumber" : 121, + "className" : "reactor.core.publisher.FluxConcatMap", + "nativeMethod" : false + }, { + "methodName" : "subscribe", + "fileName" : "Flux.java", + "lineNumber" : 7921, + "className" : "reactor.core.publisher.Flux", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "FluxSubscribeOn.java", + "lineNumber" : 194, + "className" : "reactor.core.publisher.FluxSubscribeOn$SubscribeOnSubscriber", + "nativeMethod" : false + }, { + "methodName" : "call", + "fileName" : "WorkerTask.java", + "lineNumber" : 84, + "className" : "reactor.core.scheduler.WorkerTask", + "nativeMethod" : false + }, { + "methodName" : "call", + "fileName" : "WorkerTask.java", + "lineNumber" : 37, + "className" : "reactor.core.scheduler.WorkerTask", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "FutureTask.java", + "lineNumber" : 266, + "className" : "java.util.concurrent.FutureTask", + "nativeMethod" : false + }, { + "methodName" : "access$201", + "fileName" : "ScheduledThreadPoolExecutor.java", + "lineNumber" : 180, + "className" : "java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "ScheduledThreadPoolExecutor.java", + "lineNumber" : 293, + "className" : "java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask", + "nativeMethod" : false + }, { + "methodName" : "runWorker", + "fileName" : "ThreadPoolExecutor.java", + "lineNumber" : 1149, + "className" : "java.util.concurrent.ThreadPoolExecutor", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "ThreadPoolExecutor.java", + "lineNumber" : 624, + "className" : "java.util.concurrent.ThreadPoolExecutor$Worker", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "Thread.java", + "lineNumber" : 748, + "className" : "java.lang.Thread", + "nativeMethod" : false + } ], + "message" : null, + "localizedMessage" : null, + "suppressed" : [ { + "cause" : null, + "stackTrace" : [ { + "methodName" : "blockingGet", + "fileName" : "BlockingSingleSubscriber.java", + "lineNumber" : 93, + "className" : "reactor.core.publisher.BlockingSingleSubscriber", + "nativeMethod" : false + }, { + "methodName" : "block", + "fileName" : "Mono.java", + "lineNumber" : 1494, + "className" : "reactor.core.publisher.Mono", + "nativeMethod" : false + }, { + "methodName" : "blockWithOptionalTimeout", + "fileName" : "Utility.java", + "lineNumber" : 235, + "className" : "com.azure.storage.common.Utility", + "nativeMethod" : false + }, { + "methodName" : "uploadWithResponse", + "fileName" : "BlockBlobClient.java", + "lineNumber" : 156, + "className" : "com.azure.storage.blob.BlockBlobClient", + "nativeMethod" : false + }, { + "methodName" : "upload", + "fileName" : "BlockBlobClient.java", + "lineNumber" : 115, + "className" : "com.azure.storage.blob.BlockBlobClient", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : null, + "lineNumber" : -1, + "className" : "sun.reflect.GeneratedMethodAccessor49", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "DelegatingMethodAccessorImpl.java", + "lineNumber" : 43, + "className" : "sun.reflect.DelegatingMethodAccessorImpl", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "Method.java", + "lineNumber" : 498, + "className" : "java.lang.reflect.Method", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "PojoMetaMethodSite.java", + "lineNumber" : 213, + "className" : "org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrap", + "nativeMethod" : false + }, { + "methodName" : "call", + "fileName" : "PojoMetaMethodSite.java", + "lineNumber" : 56, + "className" : "org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite", + "nativeMethod" : false + }, { + "methodName" : "defaultCall", + "fileName" : "CallSiteArray.java", + "lineNumber" : 48, + "className" : "org.codehaus.groovy.runtime.callsite.CallSiteArray", + "nativeMethod" : false + }, { + "methodName" : "call", + "fileName" : "PojoMetaMethodSite.java", + "lineNumber" : 58, + "className" : "org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite", + "nativeMethod" : false + }, { + "methodName" : "call", + "fileName" : "AbstractCallSite.java", + "lineNumber" : 133, + "className" : "org.codehaus.groovy.runtime.callsite.AbstractCallSite", + "nativeMethod" : false + }, { + "methodName" : "$spock_feature_1_36", + "fileName" : "BlockBlobAPITest.groovy", + "lineNumber" : 583, + "className" : "com.azure.storage.blob.BlockBlobAPITest", + "nativeMethod" : false + }, { + "methodName" : "invoke0", + "fileName" : "NativeMethodAccessorImpl.java", + "lineNumber" : -2, + "className" : "sun.reflect.NativeMethodAccessorImpl", + "nativeMethod" : true + }, { + "methodName" : "invoke", + "fileName" : "NativeMethodAccessorImpl.java", + "lineNumber" : 62, + "className" : "sun.reflect.NativeMethodAccessorImpl", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "DelegatingMethodAccessorImpl.java", + "lineNumber" : 43, + "className" : "sun.reflect.DelegatingMethodAccessorImpl", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "Method.java", + "lineNumber" : 498, + "className" : "java.lang.reflect.Method", + "nativeMethod" : false + }, { + "methodName" : "invokeMethod", + "fileName" : "ReflectionUtil.java", + "lineNumber" : 188, + "className" : "org.spockframework.util.ReflectionUtil", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "MethodInfo.java", + "lineNumber" : 84, + "className" : "org.spockframework.runtime.model.MethodInfo", + "nativeMethod" : false + }, { + "methodName" : "invokeRaw", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 481, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 464, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "runFeatureMethod", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 406, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "doRunIteration", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 324, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 309, + "className" : "org.spockframework.runtime.BaseSpecRunner$6", + "nativeMethod" : false + }, { + "methodName" : "invokeRaw", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 481, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 464, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "runIteration", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 288, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "initializeAndRunIteration", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 278, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "runIterations", + "fileName" : "ParameterizedSpecRunner.java", + "lineNumber" : 139, + "className" : "org.spockframework.runtime.ParameterizedSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "runParameterizedFeature", + "fileName" : "ParameterizedSpecRunner.java", + "lineNumber" : 41, + "className" : "org.spockframework.runtime.ParameterizedSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "doRunFeature", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 262, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 246, + "className" : "org.spockframework.runtime.BaseSpecRunner$5", + "nativeMethod" : false + }, { + "methodName" : "invokeRaw", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 481, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 464, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "runFeature", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 238, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "runFeatures", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 188, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "doRunSpec", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 98, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 84, + "className" : "org.spockframework.runtime.BaseSpecRunner$1", + "nativeMethod" : false + }, { + "methodName" : "invokeRaw", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 481, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 464, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "runSpec", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 76, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 67, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "Sputnik.java", + "lineNumber" : 63, + "className" : "org.spockframework.runtime.Sputnik", + "nativeMethod" : false + }, { + "methodName" : "runChild", + "fileName" : "Suite.java", + "lineNumber" : 128, + "className" : "org.junit.runners.Suite", + "nativeMethod" : false + }, { + "methodName" : "runChild", + "fileName" : "Suite.java", + "lineNumber" : 27, + "className" : "org.junit.runners.Suite", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "ParentRunner.java", + "lineNumber" : 290, + "className" : "org.junit.runners.ParentRunner$3", + "nativeMethod" : false + }, { + "methodName" : "schedule", + "fileName" : "ParentRunner.java", + "lineNumber" : 71, + "className" : "org.junit.runners.ParentRunner$1", + "nativeMethod" : false + }, { + "methodName" : "runChildren", + "fileName" : "ParentRunner.java", + "lineNumber" : 288, + "className" : "org.junit.runners.ParentRunner", + "nativeMethod" : false + }, { + "methodName" : "access$000", + "fileName" : "ParentRunner.java", + "lineNumber" : 58, + "className" : "org.junit.runners.ParentRunner", + "nativeMethod" : false + }, { + "methodName" : "evaluate", + "fileName" : "ParentRunner.java", + "lineNumber" : 268, + "className" : "org.junit.runners.ParentRunner$2", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "ParentRunner.java", + "lineNumber" : 363, + "className" : "org.junit.runners.ParentRunner", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "JUnitCore.java", + "lineNumber" : 137, + "className" : "org.junit.runner.JUnitCore", + "nativeMethod" : false + }, { + "methodName" : "startRunnerWithArgs", + "fileName" : "JUnit4IdeaTestRunner.java", + "lineNumber" : 68, + "className" : "com.intellij.junit4.JUnit4IdeaTestRunner", + "nativeMethod" : false + }, { + "methodName" : "startRunnerWithArgs", + "fileName" : "IdeaTestRunner.java", + "lineNumber" : 47, + "className" : "com.intellij.rt.execution.junit.IdeaTestRunner$Repeater", + "nativeMethod" : false + }, { + "methodName" : "prepareStreamsAndStart", + "fileName" : "JUnitStarter.java", + "lineNumber" : 242, + "className" : "com.intellij.rt.execution.junit.JUnitStarter", + "nativeMethod" : false + }, { + "methodName" : "main", + "fileName" : "JUnitStarter.java", + "lineNumber" : 70, + "className" : "com.intellij.rt.execution.junit.JUnitStarter", + "nativeMethod" : false + } ], + "message" : "#block terminated with an error", + "localizedMessage" : "#block terminated with an error", + "suppressed" : [ ] + } ] + }, + "ClassName" : "java.lang.IndexOutOfBoundsException" + } + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadillegalargument&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1de2ffc-001e-00f1-5bfc-59e1e5000000", + "Body" : "jtcuploadillegalargumentjtcuploadillegalargument055604137b214d37d2427aFri, 23 Aug 2019 21:45:22 GMT\"0x8D72813334B4DE0\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:22 GMT", + "x-ms-client-request-id" : "c7942780-22c4-42b6-8f45-921dad48a7ab", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadillegalargument055604137b214d37d2427a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1de3034-001e-00f1-0efc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:22 GMT", + "x-ms-client-request-id" : "2b6a9da1-c139-4c77-80e0-3389667bb4d7" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadillegalargument055604137b214d37d2427a", "javablobuploadillegalargument134088e206f176748948" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploadmetadata[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploadmetadata[0].json new file mode 100644 index 0000000000000..47304fffb6241 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploadmetadata[0].json @@ -0,0 +1,141 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadmetadata0blockblobapitestuploadmetadata24683293c92?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281333E9D6AE\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1de36d8-001e-00f1-58fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:23 GMT", + "x-ms-client-request-id" : "09145a76-39a9-4abd-be3e-5124fa9b126c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadmetadata0blockblobapitestuploadmetadata24683293c92/javablobuploadmetadata1blockblobapitestuploadmetadata24624888e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:23 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:23 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D7281333EF0C02\"", + "Content-Length" : "0", + "x-ms-request-id" : "b1de371e-001e-00f1-1dfc-59e1e5000000", + "x-ms-client-request-id" : "05c4cf28-d319-4b82-898c-30d3e3ee4e3a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadmetadata0blockblobapitestuploadmetadata24683293c92/javablobuploadmetadata1blockblobapitestuploadmetadata24624888e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:23 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:23 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D7281333F72448\"", + "Content-Length" : "0", + "x-ms-request-id" : "b1de378f-001e-00f1-08fc-59e1e5000000", + "x-ms-client-request-id" : "1b5af6f4-3ecc-475f-9514-e8f2be142568" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadmetadata0blockblobapitestuploadmetadata24683293c92/javablobuploadmetadata1blockblobapitestuploadmetadata24624888e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:23 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:45:23 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D7281333F72448\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:45:23 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "b1de37db-001e-00f1-50fc-59e1e5000000", + "x-ms-client-request-id" : "06bdee40-f367-441f-813a-f735cdf5fe30", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadmetadata&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1de3803-001e-00f1-75fc-59e1e5000000", + "Body" : "jtcuploadmetadatajtcuploadmetadata0blockblobapitestuploadmetadata24683293c92Fri, 23 Aug 2019 21:45:23 GMT\"0x8D7281333E9D6AE\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:23 GMT", + "x-ms-client-request-id" : "d6ef5358-1850-4076-b997-f709cf9439b9", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadmetadata0blockblobapitestuploadmetadata24683293c92?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1de382f-001e-00f1-1ffc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:23 GMT", + "x-ms-client-request-id" : "1cb8a78a-58e0-4c3a-a77b-621c6d839421" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadmetadata0blockblobapitestuploadmetadata24683293c92", "javablobuploadmetadata1blockblobapitestuploadmetadata24624888e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploadmetadata[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploadmetadata[1].json new file mode 100644 index 0000000000000..6a4bb85a66683 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploadmetadata[1].json @@ -0,0 +1,143 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadmetadata0blockblobapitestuploadmetadata12c10244c64?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813340CA978\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1de3890-001e-00f1-7dfc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:23 GMT", + "x-ms-client-request-id" : "a1d0e12e-eba4-401d-af18-624d6e444aa8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadmetadata0blockblobapitestuploadmetadata12c10244c64/javablobuploadmetadata1blockblobapitestuploadmetadata12c819691", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:23 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:23 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72813341C1A80\"", + "Content-Length" : "0", + "x-ms-request-id" : "b1de3931-001e-00f1-1afc-59e1e5000000", + "x-ms-client-request-id" : "47a5c1d8-4359-49d4-95c1-01c2763c350e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadmetadata0blockblobapitestuploadmetadata12c10244c64/javablobuploadmetadata1blockblobapitestuploadmetadata12c819691", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:24 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:23 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D7281334214BE2\"", + "Content-Length" : "0", + "x-ms-request-id" : "b1de395e-001e-00f1-46fc-59e1e5000000", + "x-ms-client-request-id" : "b2325b73-e6aa-47dc-99fa-23818f9e6fb3" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadmetadata0blockblobapitestuploadmetadata12c10244c64/javablobuploadmetadata1blockblobapitestuploadmetadata12c819691", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:24 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:45:23 GMT", + "x-ms-meta-foo" : "bar", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D7281334214BE2\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:45:23 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "b1de39a4-001e-00f1-07fc-59e1e5000000", + "x-ms-meta-fizz" : "buzz", + "x-ms-client-request-id" : "f6356430-660c-4eae-89ca-20b1a937f27e", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadmetadata&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1de39f2-001e-00f1-4dfc-59e1e5000000", + "Body" : "jtcuploadmetadatajtcuploadmetadata0blockblobapitestuploadmetadata12c10244c64Fri, 23 Aug 2019 21:45:23 GMT\"0x8D72813340CA978\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:23 GMT", + "x-ms-client-request-id" : "4bab3007-f913-4e72-bf64-5108a123deb8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadmetadata0blockblobapitestuploadmetadata12c10244c64?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1de3a36-001e-00f1-0bfc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:23 GMT", + "x-ms-client-request-id" : "fce60f18-586c-46b4-b298-61cb0cf664f2" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadmetadata0blockblobapitestuploadmetadata12c10244c64", "javablobuploadmetadata1blockblobapitestuploadmetadata12c819691" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploadmin.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploadmin.json new file mode 100644 index 0000000000000..175ba76688039 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploadmin.json @@ -0,0 +1,110 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadmin0blockblobapitestuploadminf0b04292417c9764?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813330FEA54\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "0a3caf8c-301e-0118-34fc-595bb6000000", + "Date" : "Fri, 23 Aug 2019 21:45:21 GMT", + "x-ms-client-request-id" : "b2c8b1f2-49b5-4437-9e44-df1386054f9c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadmin0blockblobapitestuploadminf0b04292417c9764/javablobuploadmin1blockblobapitestuploadminf0b934307aed13", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:22 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:21 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D7281333153F65\"", + "Content-Length" : "0", + "x-ms-request-id" : "0a3cafa8-301e-0118-4cfc-595bb6000000", + "x-ms-client-request-id" : "29244fe2-2c71-409f-a79d-66c52fbf17e3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadmin0blockblobapitestuploadminf0b04292417c9764/javablobuploadmin1blockblobapitestuploadminf0b934307aed13", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:22 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:21 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72813331A2298\"", + "Content-Length" : "0", + "x-ms-request-id" : "0a3cafb9-301e-0118-5afc-595bb6000000", + "x-ms-client-request-id" : "11e4c12e-283d-412b-86f5-c61520c93728" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadmin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "0a3cafc6-301e-0118-66fc-595bb6000000", + "Body" : "jtcuploadminjtcuploadmin0blockblobapitestuploadminf0b04292417c9764Fri, 23 Aug 2019 21:45:22 GMT\"0x8D72813330FEA54\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:21 GMT", + "x-ms-client-request-id" : "6ccb7eab-2dca-49a9-9414-7d94def14373", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadmin0blockblobapitestuploadminf0b04292417c9764?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "0a3cafd9-301e-0118-75fc-595bb6000000", + "Date" : "Fri, 23 Aug 2019 21:45:22 GMT", + "x-ms-client-request-id" : "3568499d-e2cf-4842-95a3-b1767ff4f78c" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadmin0blockblobapitestuploadminf0b04292417c9764", "javablobuploadmin1blockblobapitestuploadminf0b934307aed13" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploadnullbody.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploadnullbody.json new file mode 100644 index 0000000000000..56fa5b8543bf2 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/BlockBlobAPITestuploadnullbody.json @@ -0,0 +1,110 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadnullbody0blockblobapitestuploadnullbody75c50615baa?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133386DDE6\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1de31a5-001e-00f1-74fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:22 GMT", + "x-ms-client-request-id" : "da12f559-2550-4645-92df-4cceecf15edb" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadnullbody0blockblobapitestuploadnullbody75c50615baa/javablobuploadnullbody1blockblobapitestuploadnullbody75c48194f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:23 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:22 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72813338C132F\"", + "Content-Length" : "0", + "x-ms-request-id" : "b1de31e3-001e-00f1-2ffc-59e1e5000000", + "x-ms-client-request-id" : "a8857365-1fbf-4be0-bf71-c46601efdb7d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadnullbody0blockblobapitestuploadnullbody75c50615baa/javablobuploadnullbody1blockblobapitestuploadnullbody75c48194f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "AAAAAAAAAAA=", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:23 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:22 GMT", + "Content-MD5" : "1B2M2Y8AsgTpgAmY7PhCfg==", + "ETag" : "\"0x8D7281333914491\"", + "Content-Length" : "0", + "x-ms-request-id" : "b1de3235-001e-00f1-7cfc-59e1e5000000", + "x-ms-client-request-id" : "352be704-eada-4ed3-98ce-d44f383c3aef" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadnullbody&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1de328b-001e-00f1-4bfc-59e1e5000000", + "Body" : "jtcuploadnullbodyjtcuploadnullbody0blockblobapitestuploadnullbody75c50615baaFri, 23 Aug 2019 21:45:23 GMT\"0x8D728133386DDE6\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:22 GMT", + "x-ms-client-request-id" : "97deffb7-70c3-4684-bea3-ec449bf07ac0", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadnullbody0blockblobapitestuploadnullbody75c50615baa?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1de32b5-001e-00f1-73fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:22 GMT", + "x-ms-client-request-id" : "3670257f-f122-4421-a728-20a225ddf47f" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadnullbody0blockblobapitestuploadnullbody75c50615baa", "javablobuploadnullbody1blockblobapitestuploadnullbody75c48194f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestacquirelease[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestacquirelease[0].json new file mode 100644 index 0000000000000..51fdfa6031a8e --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestacquirelease[0].json @@ -0,0 +1,131 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquirelease0containerapitestacquirelease7bf27978ef1d9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281396D5A21F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf2b3b-501e-00c0-7bfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:09 GMT", + "x-ms-client-request-id" : "417a31f3-9559-46db-ba80-f0406e8e5739" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquirelease0containerapitestacquirelease7bf27978ef1d9?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281396D5A21F\"", + "x-ms-lease-id" : "ea56ed3a-96a9-48e7-ad0d-75b81bf978d8", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf2b5e-501e-00c0-19fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:09 GMT", + "x-ms-client-request-id" : "163742f4-e9d1-46be-ac0e-0e648a4dc1b7" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquirelease0containerapitestacquirelease7bf27978ef1d9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "locked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "leased", + "x-ms-deny-encryption-scope-override" : "false", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:09 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:48:09 GMT", + "x-ms-has-legal-hold" : "false", + "x-ms-default-encryption-scope" : "$account-encryption-key", + "ETag" : "\"0x8D7281396D5A21F\"", + "x-ms-has-immutability-policy" : "false", + "x-ms-lease-duration" : "infinite", + "Content-Length" : "0", + "x-ms-request-id" : "77cf2b7d-501e-00c0-37fc-59ba32000000", + "x-ms-client-request-id" : "ddb24773-9b28-4cbb-b8ba-19d33ef3eb3f" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcacquirelease&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77cf2b9a-501e-00c0-54fc-59ba32000000", + "Body" : "jtcacquireleasejtcacquirelease0containerapitestacquirelease7bf27978ef1d9Fri, 23 Aug 2019 21:48:09 GMT\"0x8D7281396D5A21F\"lockedleasedinfinite$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:48:09 GMT", + "x-ms-client-request-id" : "91b21a06-7c5e-4c49-81f6-94110df14ee6", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquirelease0containerapitestacquirelease7bf27978ef1d9?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281396D5A21F\"", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77cf2bb5-501e-00c0-6efc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:09 GMT", + "x-ms-client-request-id" : "1404a80c-ca84-4cce-b53f-5dd55316db04" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquirelease0containerapitestacquirelease7bf27978ef1d9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77cf2bea-501e-00c0-23fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:09 GMT", + "x-ms-client-request-id" : "4ced83b1-79d5-4192-bcbf-e72aae4b8e6d" + }, + "Exception" : null + } ], + "variables" : [ "jtcacquirelease0containerapitestacquirelease7bf27978ef1d9" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestacquirelease[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestacquirelease[1].json new file mode 100644 index 0000000000000..e39771de47e6d --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestacquirelease[1].json @@ -0,0 +1,131 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquirelease0containerapitestacquirelease7e835298c1bb2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281396F7D87D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf2c20-501e-00c0-57fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:09 GMT", + "x-ms-client-request-id" : "c70e6105-6718-49e7-8f08-9e5c30411426" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquirelease0containerapitestacquirelease7e835298c1bb2?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281396F7D87D\"", + "x-ms-lease-id" : "18beedc1-f494-4ea8-b1bb-46dca50c6046", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf2c47-501e-00c0-78fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:09 GMT", + "x-ms-client-request-id" : "fb37c619-c4fb-4a9d-8d98-1b5e827fdcbe" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquirelease0containerapitestacquirelease7e835298c1bb2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "locked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "leased", + "x-ms-deny-encryption-scope-override" : "false", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:09 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:48:09 GMT", + "x-ms-has-legal-hold" : "false", + "x-ms-default-encryption-scope" : "$account-encryption-key", + "ETag" : "\"0x8D7281396F7D87D\"", + "x-ms-has-immutability-policy" : "false", + "x-ms-lease-duration" : "fixed", + "Content-Length" : "0", + "x-ms-request-id" : "77cf2c5d-501e-00c0-0efc-59ba32000000", + "x-ms-client-request-id" : "24ae9994-ab7b-452c-b7b2-85898b42032a" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcacquirelease&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77cf2c78-501e-00c0-29fc-59ba32000000", + "Body" : "jtcacquireleasejtcacquirelease0containerapitestacquirelease7e835298c1bb2Fri, 23 Aug 2019 21:48:09 GMT\"0x8D7281396F7D87D\"lockedleasedfixed$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:48:09 GMT", + "x-ms-client-request-id" : "b1e27091-ba03-497e-92f7-0fdcadb69ca9", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquirelease0containerapitestacquirelease7e835298c1bb2?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281396F7D87D\"", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77cf2c9b-501e-00c0-4cfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:09 GMT", + "x-ms-client-request-id" : "a0fa70fa-24cf-434c-9b14-4681e89a6d72" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquirelease0containerapitestacquirelease7e835298c1bb2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77cf2cc0-501e-00c0-70fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:09 GMT", + "x-ms-client-request-id" : "bc38b8d0-db52-4b35-b5a2-468645dfe9b1" + }, + "Exception" : null + } ], + "variables" : [ "jtcacquirelease0containerapitestacquirelease7e835298c1bb2" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestacquirelease[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestacquirelease[2].json new file mode 100644 index 0000000000000..2cf4e0c1bfae0 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestacquirelease[2].json @@ -0,0 +1,131 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquirelease0containerapitestacquirelease80b91128c0048?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728139716646C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf2ce4-501e-00c0-11fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:09 GMT", + "x-ms-client-request-id" : "2af3b186-6bed-4089-8054-990981f11a8f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquirelease0containerapitestacquirelease80b91128c0048?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728139716646C\"", + "x-ms-lease-id" : "dd214ddc-e49e-4696-b43e-206c16a59135", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf2d10-501e-00c0-38fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:09 GMT", + "x-ms-client-request-id" : "2cec289a-0a93-4797-afdc-92f08fe20693" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquirelease0containerapitestacquirelease80b91128c0048?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "locked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "leased", + "x-ms-deny-encryption-scope-override" : "false", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:10 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:48:09 GMT", + "x-ms-has-legal-hold" : "false", + "x-ms-default-encryption-scope" : "$account-encryption-key", + "ETag" : "\"0x8D728139716646C\"", + "x-ms-has-immutability-policy" : "false", + "x-ms-lease-duration" : "infinite", + "Content-Length" : "0", + "x-ms-request-id" : "77cf2d31-501e-00c0-59fc-59ba32000000", + "x-ms-client-request-id" : "225ca774-5fb2-467a-aed2-08950eb23750" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcacquirelease&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77cf2d56-501e-00c0-7cfc-59ba32000000", + "Body" : "jtcacquireleasejtcacquirelease0containerapitestacquirelease80b91128c0048Fri, 23 Aug 2019 21:48:10 GMT\"0x8D728139716646C\"lockedleasedinfinite$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:48:09 GMT", + "x-ms-client-request-id" : "59f46ba0-95a3-4bca-823a-4d912115120c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquirelease0containerapitestacquirelease80b91128c0048?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728139716646C\"", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77cf2d6c-501e-00c0-11fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:09 GMT", + "x-ms-client-request-id" : "7c9e6e4a-7673-4a64-acfc-cf31d005b4c7" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquirelease0containerapitestacquirelease80b91128c0048?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77cf2d7c-501e-00c0-21fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:09 GMT", + "x-ms-client-request-id" : "30194551-ea92-46c7-99ed-556747af19a4" + }, + "Exception" : null + } ], + "variables" : [ "jtcacquirelease0containerapitestacquirelease80b91128c0048" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestacquireleaseac[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestacquireleaseac[0].json new file mode 100644 index 0000000000000..b2c9ed594b0b4 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestacquireleaseac[0].json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseac0containerapitestacquireleaseaca41670399de?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813974F3593\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf2e22-501e-00c0-3afc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:09 GMT", + "x-ms-client-request-id" : "3f1659cd-0779-4894-a6c4-c8c4a000556f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseac0containerapitestacquireleaseaca41670399de?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813974F3593\"", + "x-ms-lease-id" : "20ca41dc-b0ae-4f43-b048-d43c8928156f", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf2e42-501e-00c0-55fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:09 GMT", + "x-ms-client-request-id" : "1015531e-d174-4902-a194-7a6e42318870" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcacquireleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77cf2e5e-501e-00c0-70fc-59ba32000000", + "Body" : "jtcacquireleaseacjtcacquireleaseac0containerapitestacquireleaseaca41670399deFri, 23 Aug 2019 21:48:10 GMT\"0x8D72813974F3593\"lockedleasedinfinite$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:48:09 GMT", + "x-ms-client-request-id" : "d283b381-3a13-4fee-a7ed-e37fd1e02a43", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseac0containerapitestacquireleaseaca41670399de?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813974F3593\"", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77cf2e76-501e-00c0-07fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:09 GMT", + "x-ms-client-request-id" : "a8e3e026-da4b-439c-aff2-5495d3f21f8a" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseac0containerapitestacquireleaseaca41670399de?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77cf2e8f-501e-00c0-1ffc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:09 GMT", + "x-ms-client-request-id" : "de7c03d7-6671-42ff-b9e5-9501fa6969ee" + }, + "Exception" : null + } ], + "variables" : [ "jtcacquireleaseac0containerapitestacquireleaseaca41670399de" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestacquireleaseac[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestacquireleaseac[1].json new file mode 100644 index 0000000000000..9f28e15a1a6cf --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestacquireleaseac[1].json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseac0containerapitestacquireleaseac97c71743095?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728139769F002\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf2eae-501e-00c0-3dfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:10 GMT", + "x-ms-client-request-id" : "e0ab7f38-0d9b-4fce-ac06-7a23552a00dc" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseac0containerapitestacquireleaseac97c71743095?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728139769F002\"", + "x-ms-lease-id" : "3c67c794-e4cb-4b29-896a-2aa298f697f1", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf2ed2-501e-00c0-5efc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:10 GMT", + "x-ms-client-request-id" : "3ebb3217-08cd-4165-a054-595370ae5b6e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcacquireleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77cf2efd-501e-00c0-05fc-59ba32000000", + "Body" : "jtcacquireleaseacjtcacquireleaseac0containerapitestacquireleaseac97c71743095Fri, 23 Aug 2019 21:48:10 GMT\"0x8D728139769F002\"lockedleasedinfinite$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:48:10 GMT", + "x-ms-client-request-id" : "d50a14f5-e6d7-497c-b24d-9911bbee85dc", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseac0containerapitestacquireleaseac97c71743095?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728139769F002\"", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77cf2f15-501e-00c0-1cfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:10 GMT", + "x-ms-client-request-id" : "6ad13a3a-c80b-462e-b83e-f427f2ecdd76" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseac0containerapitestacquireleaseac97c71743095?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77cf2f2b-501e-00c0-31fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:10 GMT", + "x-ms-client-request-id" : "58f58e35-4996-4ace-bbdd-4d458378f891" + }, + "Exception" : null + } ], + "variables" : [ "jtcacquireleaseac0containerapitestacquireleaseac97c71743095" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestacquireleaseac[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestacquireleaseac[2].json new file mode 100644 index 0000000000000..5fddf5eac0a81 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestacquireleaseac[2].json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseac0containerapitestacquireleaseac73480829fb3?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813978546DC\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf2f5a-501e-00c0-5bfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:10 GMT", + "x-ms-client-request-id" : "1bfc8055-34be-4959-b885-746a96f2441e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseac0containerapitestacquireleaseac73480829fb3?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813978546DC\"", + "x-ms-lease-id" : "6904f8da-8054-48b2-bf86-5fd449678ea9", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf2f7f-501e-00c0-7bfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:10 GMT", + "x-ms-client-request-id" : "63684051-080b-4782-8367-290796c7f8ca" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcacquireleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77cf2f91-501e-00c0-0bfc-59ba32000000", + "Body" : "jtcacquireleaseacjtcacquireleaseac0containerapitestacquireleaseac73480829fb3Fri, 23 Aug 2019 21:48:10 GMT\"0x8D72813978546DC\"lockedleasedinfinite$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:48:10 GMT", + "x-ms-client-request-id" : "db89217c-0be4-4add-9e50-cb5020e74bdc", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseac0containerapitestacquireleaseac73480829fb3?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813978546DC\"", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77cf2fa5-501e-00c0-1ffc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:10 GMT", + "x-ms-client-request-id" : "bf79a26a-e006-429c-b927-2e0e64d40845" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseac0containerapitestacquireleaseac73480829fb3?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77cf2fbd-501e-00c0-35fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:10 GMT", + "x-ms-client-request-id" : "d0c31552-8489-47a2-a463-b795c9135246" + }, + "Exception" : null + } ], + "variables" : [ "jtcacquireleaseac0containerapitestacquireleaseac73480829fb3" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestacquireleaseacfail[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestacquireleaseacfail[0].json new file mode 100644 index 0000000000000..aebec707c064f --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestacquireleaseacfail[0].json @@ -0,0 +1,83 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseacfail0640729d1073fe8a24411eb5?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281397A0015D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf2fe9-501e-00c0-61fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:10 GMT", + "x-ms-client-request-id" : "7bc5dd53-e482-4296-bee7-6c5b62859b7a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseacfail0640729d1073fe8a24411eb5?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "77cf3065-501e-00c0-53fc-59ba32000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:77cf3065-501e-00c0-53fc-59ba32000000\nTime:2019-08-23T21:48:11.0721031Z", + "Date" : "Fri, 23 Aug 2019 21:48:10 GMT", + "x-ms-client-request-id" : "35d360b8-c4d3-4bf1-9e6f-5733fbb8c0bf", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcacquireleaseacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77cf3085-501e-00c0-71fc-59ba32000000", + "Body" : "jtcacquireleaseacfailjtcacquireleaseacfail0640729d1073fe8a24411eb5Fri, 23 Aug 2019 21:48:10 GMT\"0x8D7281397A0015D\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:48:10 GMT", + "x-ms-client-request-id" : "6e9d9dcd-a7bc-4efd-9797-aceee77f083f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseacfail0640729d1073fe8a24411eb5?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77cf30ae-501e-00c0-17fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:10 GMT", + "x-ms-client-request-id" : "8379b2c4-7c30-466d-af40-5334fb1b45e3" + }, + "Exception" : null + } ], + "variables" : [ "jtcacquireleaseacfail0640729d1073fe8a24411eb5" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestacquireleaseacfail[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestacquireleaseacfail[1].json new file mode 100644 index 0000000000000..82b1434461974 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestacquireleaseacfail[1].json @@ -0,0 +1,83 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseacfail0222312ad2cb4ded3342838d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281397C1E97A\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf30d6-501e-00c0-39fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:10 GMT", + "x-ms-client-request-id" : "fc52a491-e4d3-4e24-a2f0-ecc5bb51d7f4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseacfail0222312ad2cb4ded3342838d?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "77cf30fd-501e-00c0-5cfc-59ba32000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:77cf30fd-501e-00c0-5cfc-59ba32000000\nTime:2019-08-23T21:48:11.2102343Z", + "Date" : "Fri, 23 Aug 2019 21:48:10 GMT", + "x-ms-client-request-id" : "17683e3b-5da3-4fb4-abe9-4d3be7943920", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcacquireleaseacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77cf3123-501e-00c0-79fc-59ba32000000", + "Body" : "jtcacquireleaseacfailjtcacquireleaseacfail0222312ad2cb4ded3342838dFri, 23 Aug 2019 21:48:11 GMT\"0x8D7281397C1E97A\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:48:10 GMT", + "x-ms-client-request-id" : "a3cdc574-e989-4c9f-ad8c-86b742d8bd2f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseacfail0222312ad2cb4ded3342838d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77cf3150-501e-00c0-1afc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:10 GMT", + "x-ms-client-request-id" : "6976eb35-b49d-4e18-87dd-23a71cc228ef" + }, + "Exception" : null + } ], + "variables" : [ "jtcacquireleaseacfail0222312ad2cb4ded3342838d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestacquireleaseacillegal[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestacquireleaseacillegal[0].json new file mode 100644 index 0000000000000..c26acc85fef66 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestacquireleaseacillegal[0].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseacillegal074704c1b8d43e78164d0b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281397D5EB93\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf318b-501e-00c0-45fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:10 GMT", + "x-ms-client-request-id" : "3e47da1d-6288-4956-b2db-1cb12643cde9" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcacquireleaseacillegal&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77cf31b8-501e-00c0-6cfc-59ba32000000", + "Body" : "jtcacquireleaseacillegaljtcacquireleaseacillegal074704c1b8d43e78164d0bFri, 23 Aug 2019 21:48:11 GMT\"0x8D7281397D5EB93\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:48:10 GMT", + "x-ms-client-request-id" : "b8970764-6ada-40fa-ba36-0c7a7a04c29c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseacillegal074704c1b8d43e78164d0b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77cf31d6-501e-00c0-05fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:10 GMT", + "x-ms-client-request-id" : "a05c03b4-8a5b-41fc-a17d-7be0916f71fe" + }, + "Exception" : null + } ], + "variables" : [ "jtcacquireleaseacillegal074704c1b8d43e78164d0b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestacquireleaseacillegal[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestacquireleaseacillegal[1].json new file mode 100644 index 0000000000000..14593e6fbd9a1 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestacquireleaseacillegal[1].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseacillegal066588661b8e9d14464592?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281397E64334\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf3206-501e-00c0-2ffc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:10 GMT", + "x-ms-client-request-id" : "34d18e2d-bba1-4b4d-9be3-187f78e237fe" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcacquireleaseacillegal&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77cf322a-501e-00c0-4efc-59ba32000000", + "Body" : "jtcacquireleaseacillegaljtcacquireleaseacillegal066588661b8e9d14464592Fri, 23 Aug 2019 21:48:11 GMT\"0x8D7281397E64334\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:48:10 GMT", + "x-ms-client-request-id" : "d25f4a48-f07d-42ce-aa52-f51adb8dc848", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseacillegal066588661b8e9d14464592?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77cf3244-501e-00c0-63fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:10 GMT", + "x-ms-client-request-id" : "39921f50-432e-44fd-813d-14e709c78db3" + }, + "Exception" : null + } ], + "variables" : [ "jtcacquireleaseacillegal066588661b8e9d14464592" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestacquireleaseerror.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestacquireleaseerror.json new file mode 100644 index 0000000000000..568c6ae90514b --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestacquireleaseerror.json @@ -0,0 +1,83 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseerror0containerapitestacquireleaseerrorab869217?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281397F62833\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf3276-501e-00c0-0dfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:10 GMT", + "x-ms-client-request-id" : "c8e913ca-db32-4cd0-a89c-f8f8fb669a7d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseerror1containerapitestacquireleaseerrorab802648?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ContainerNotFound", + "retry-after" : "0", + "Content-Length" : "225", + "StatusCode" : "404", + "x-ms-request-id" : "77cf32a5-501e-00c0-33fc-59ba32000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:77cf32a5-501e-00c0-33fc-59ba32000000\nTime:2019-08-23T21:48:11.5625718Z", + "Date" : "Fri, 23 Aug 2019 21:48:10 GMT", + "x-ms-client-request-id" : "afd9b986-54cb-4a60-bcec-d002b440369b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcacquireleaseerror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77cf32c9-501e-00c0-4cfc-59ba32000000", + "Body" : "jtcacquireleaseerrorjtcacquireleaseerror0containerapitestacquireleaseerrorab869217Fri, 23 Aug 2019 21:48:11 GMT\"0x8D7281397F62833\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:48:11 GMT", + "x-ms-client-request-id" : "bc2361b6-4312-4128-bb5f-2c12eeb97a70", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleaseerror0containerapitestacquireleaseerrorab869217?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77cf32e0-501e-00c0-61fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:11 GMT", + "x-ms-client-request-id" : "801dfcb5-4d84-4be4-838f-bb8e03e39895" + }, + "Exception" : null + } ], + "variables" : [ "jtcacquireleaseerror0containerapitestacquireleaseerrorab869217", "jtcacquireleaseerror1containerapitestacquireleaseerrorab802648" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestacquireleasemin.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestacquireleasemin.json new file mode 100644 index 0000000000000..0b00f36dda665 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestacquireleasemin.json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleasemin0containerapitestacquireleaseminea0803015b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728139735177D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf2da0-501e-00c0-43fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:09 GMT", + "x-ms-client-request-id" : "baebe301-bbe5-4b28-b552-7829f70065c9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleasemin0containerapitestacquireleaseminea0803015b?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728139735177D\"", + "x-ms-lease-id" : "39160c1e-fa59-4091-968a-87f55a97f4e5", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf2db9-501e-00c0-56fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:09 GMT", + "x-ms-client-request-id" : "d11cc831-3b0b-419a-a785-e0024f4f9b22" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcacquireleasemin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77cf2dd2-501e-00c0-6dfc-59ba32000000", + "Body" : "jtcacquireleaseminjtcacquireleasemin0containerapitestacquireleaseminea0803015bFri, 23 Aug 2019 21:48:10 GMT\"0x8D728139735177D\"lockedleasedinfinite$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:48:09 GMT", + "x-ms-client-request-id" : "0a5ab0d6-3931-4eed-b58d-600df92cc979", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleasemin0containerapitestacquireleaseminea0803015b?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728139735177D\"", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77cf2de7-501e-00c0-02fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:09 GMT", + "x-ms-client-request-id" : "bb0c87be-7815-4cda-a645-bce1f48a06c0" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcacquireleasemin0containerapitestacquireleaseminea0803015b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77cf2e03-501e-00c0-1dfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:09 GMT", + "x-ms-client-request-id" : "3bbc4c84-83c8-46e2-8ab5-53c2c5e92c0b" + }, + "Exception" : null + } ], + "variables" : [ "jtcacquireleasemin0containerapitestacquireleaseminea0803015b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestbreaklease[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestbreaklease[0].json new file mode 100644 index 0000000000000..2f25272b7cd0a --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestbreaklease[0].json @@ -0,0 +1,130 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreaklease0containerapitestbreakleaseada3191925c988d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813A3A4A9FA\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf7ccd-501e-00c0-0ffc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:30 GMT", + "x-ms-client-request-id" : "c4d629f2-6b7a-42e8-b297-5fa8779caca3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreaklease0containerapitestbreakleaseada3191925c988d?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813A3A4A9FA\"", + "x-ms-lease-id" : "613949e1-7325-483d-9545-b79e0cf5a2f3", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf7cea-501e-00c0-2afc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:30 GMT", + "x-ms-client-request-id" : "fe370b57-fb73-4b84-866d-774ea646e7c3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreaklease0containerapitestbreakleaseada3191925c988d?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813A3A4A9FA\"", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77cf7d0c-501e-00c0-49fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:30 GMT", + "x-ms-client-request-id" : "a6fd17b2-808f-421c-87d5-ec81882b963f" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreaklease0containerapitestbreakleaseada3191925c988d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "broken", + "x-ms-deny-encryption-scope-override" : "false", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:31 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:48:30 GMT", + "x-ms-has-legal-hold" : "false", + "x-ms-default-encryption-scope" : "$account-encryption-key", + "ETag" : "\"0x8D72813A3A4A9FA\"", + "x-ms-has-immutability-policy" : "false", + "Content-Length" : "0", + "x-ms-request-id" : "77cf7d27-501e-00c0-61fc-59ba32000000", + "x-ms-client-request-id" : "2d872a14-393d-4c86-8559-e28c08828148" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcbreaklease&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77cf7d4e-501e-00c0-7ffc-59ba32000000", + "Body" : "jtcbreakleasejtcbreaklease0containerapitestbreakleaseada3191925c988dFri, 23 Aug 2019 21:48:31 GMT\"0x8D72813A3A4A9FA\"unlockedbroken$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:48:30 GMT", + "x-ms-client-request-id" : "9f0562d8-19f6-4ea3-90f9-251e21c07a48", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreaklease0containerapitestbreakleaseada3191925c988d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77cf7d6d-501e-00c0-18fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:30 GMT", + "x-ms-client-request-id" : "ab62bd5f-22f3-4d0f-8cd2-2e9d776b26fe" + }, + "Exception" : null + } ], + "variables" : [ "jtcbreaklease0containerapitestbreakleaseada3191925c988d", "613949e1-7325-483d-9545-b79e0cf5a2f3" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestbreaklease[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestbreaklease[1].json new file mode 100644 index 0000000000000..6874459f30453 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestbreaklease[1].json @@ -0,0 +1,130 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreaklease0containerapitestbreaklease572650765ba77c1?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813A3C11278\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf7d94-501e-00c0-39fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:30 GMT", + "x-ms-client-request-id" : "373f43d4-0c36-4d4a-b0fb-3b210b10c2cc" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreaklease0containerapitestbreaklease572650765ba77c1?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813A3C11278\"", + "x-ms-lease-id" : "86cc76fe-778a-464d-81c3-dc1071c4bd6f", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf7db0-501e-00c0-4ffc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:30 GMT", + "x-ms-client-request-id" : "a9902700-544a-40a4-ab9e-cfe714c5c67b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreaklease0containerapitestbreaklease572650765ba77c1?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813A3C11278\"", + "x-ms-lease-time" : "20", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77cf7dc6-501e-00c0-63fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:30 GMT", + "x-ms-client-request-id" : "6d747b4c-d295-45ac-a8a8-16a05f80419f" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreaklease0containerapitestbreaklease572650765ba77c1?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "locked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "breaking", + "x-ms-deny-encryption-scope-override" : "false", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:31 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:48:30 GMT", + "x-ms-has-legal-hold" : "false", + "x-ms-default-encryption-scope" : "$account-encryption-key", + "ETag" : "\"0x8D72813A3C11278\"", + "x-ms-has-immutability-policy" : "false", + "Content-Length" : "0", + "x-ms-request-id" : "77cf7de6-501e-00c0-80fc-59ba32000000", + "x-ms-client-request-id" : "d05f76db-ed8e-4fd6-93fa-ed9f58313ec9" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcbreaklease&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77cfc982-501e-00c0-3ffc-59ba32000000", + "Body" : "jtcbreakleasejtcbreaklease0containerapitestbreaklease572650765ba77c1Fri, 23 Aug 2019 21:48:31 GMT\"0x8D72813A3C11278\"unlockedbroken$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:48:50 GMT", + "x-ms-client-request-id" : "4fb60179-a24b-4de6-89d7-dbea890cf00d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreaklease0containerapitestbreaklease572650765ba77c1?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77cfc99e-501e-00c0-59fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:50 GMT", + "x-ms-client-request-id" : "d3221a31-4a47-4a57-a44a-9db3e5a98006" + }, + "Exception" : null + } ], + "variables" : [ "jtcbreaklease0containerapitestbreaklease572650765ba77c1", "86cc76fe-778a-464d-81c3-dc1071c4bd6f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestbreaklease[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestbreaklease[2].json new file mode 100644 index 0000000000000..7adaef0cd3061 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestbreaklease[2].json @@ -0,0 +1,130 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreaklease0containerapitestbreaklease15918112e89565c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813AFCA503E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cfc9bd-501e-00c0-77fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:50 GMT", + "x-ms-client-request-id" : "fc5bf8a6-8342-4949-9063-f183c7edc0a8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreaklease0containerapitestbreaklease15918112e89565c?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813AFCA503E\"", + "x-ms-lease-id" : "478424cb-fd35-440f-9562-e92b88f012d2", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cfc9d7-501e-00c0-0cfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:50 GMT", + "x-ms-client-request-id" : "aa19aa7d-c2f4-438b-a87d-fb90939a9a80" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreaklease0containerapitestbreaklease15918112e89565c?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813AFCA503E\"", + "x-ms-lease-time" : "15", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77cfc9e9-501e-00c0-1bfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:50 GMT", + "x-ms-client-request-id" : "05510ac6-07bc-4de9-9b7c-0132cc2ae27d" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreaklease0containerapitestbreaklease15918112e89565c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "locked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "breaking", + "x-ms-deny-encryption-scope-override" : "false", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:51 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:48:50 GMT", + "x-ms-has-legal-hold" : "false", + "x-ms-default-encryption-scope" : "$account-encryption-key", + "ETag" : "\"0x8D72813AFCA503E\"", + "x-ms-has-immutability-policy" : "false", + "Content-Length" : "0", + "x-ms-request-id" : "77cfca03-501e-00c0-33fc-59ba32000000", + "x-ms-client-request-id" : "5f6ee632-ae9c-4152-b510-04005223a061" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcbreaklease&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77cfffc3-501e-00c0-45fc-59ba32000000", + "Body" : "jtcbreakleasejtcbreaklease0containerapitestbreaklease15918112e89565cFri, 23 Aug 2019 21:48:51 GMT\"0x8D72813AFCA503E\"unlockedbroken$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:05 GMT", + "x-ms-client-request-id" : "0cee0891-2f7c-44b3-aec6-67c7fea24e11", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreaklease0containerapitestbreaklease15918112e89565c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77cfffe8-501e-00c0-65fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:06 GMT", + "x-ms-client-request-id" : "46c8d5e0-0b86-4d70-b7a2-e0f9261ae56b" + }, + "Exception" : null + } ], + "variables" : [ "jtcbreaklease0containerapitestbreaklease15918112e89565c", "478424cb-fd35-440f-9562-e92b88f012d2" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestbreakleaseac[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestbreakleaseac[0].json new file mode 100644 index 0000000000000..725731c8874f1 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestbreakleaseac[0].json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseac0containerapitestbreakleaseac62f231779dfe8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813B8F6212D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d000a0-501e-00c0-0ffc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:06 GMT", + "x-ms-client-request-id" : "51c263e9-2b4d-485d-bdb2-00cca92c78d4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseac0containerapitestbreakleaseac62f231779dfe8?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813B8F6212D\"", + "x-ms-lease-id" : "d59300ce-b4d7-4d66-8669-9a4fce046923", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d000bf-501e-00c0-27fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:06 GMT", + "x-ms-client-request-id" : "26cee4cc-6d4b-4f40-816c-37f00e158458" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseac0containerapitestbreakleaseac62f231779dfe8?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813B8F6212D\"", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d000e0-501e-00c0-47fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:06 GMT", + "x-ms-client-request-id" : "0888c378-ed60-452c-a395-5d7d573e895a" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcbreakleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d000f8-501e-00c0-5cfc-59ba32000000", + "Body" : "jtcbreakleaseacjtcbreakleaseac0containerapitestbreakleaseac62f231779dfe8Fri, 23 Aug 2019 21:49:06 GMT\"0x8D72813B8F6212D\"unlockedbroken$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:06 GMT", + "x-ms-client-request-id" : "e645e249-36b1-4f35-86f0-93dcb81f8de1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseac0containerapitestbreakleaseac62f231779dfe8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d00117-501e-00c0-79fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:06 GMT", + "x-ms-client-request-id" : "47796c3c-6260-4109-802b-27c3b591824d" + }, + "Exception" : null + } ], + "variables" : [ "jtcbreakleaseac0containerapitestbreakleaseac62f231779dfe8" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestbreakleaseac[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestbreakleaseac[1].json new file mode 100644 index 0000000000000..4452cca73a299 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestbreakleaseac[1].json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseac0containerapitestbreakleaseac0e0832759c455?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813B912629B\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d00158-501e-00c0-35fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:06 GMT", + "x-ms-client-request-id" : "1bf9cbbb-3672-4547-a3b9-e99d0afebfe3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseac0containerapitestbreakleaseac0e0832759c455?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813B912629B\"", + "x-ms-lease-id" : "8b596804-5fe7-41b8-ba4d-3613de558fbe", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d00195-501e-00c0-6dfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:06 GMT", + "x-ms-client-request-id" : "00938a97-4021-4755-84f7-8bd78e837007" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseac0containerapitestbreakleaseac0e0832759c455?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813B912629B\"", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d001b0-501e-00c0-05fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:06 GMT", + "x-ms-client-request-id" : "d49c842d-8231-4c91-95fe-0d652b6a0c1a" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcbreakleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d001c5-501e-00c0-19fc-59ba32000000", + "Body" : "jtcbreakleaseacjtcbreakleaseac0containerapitestbreakleaseac0e0832759c455Fri, 23 Aug 2019 21:49:07 GMT\"0x8D72813B912629B\"unlockedbroken$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:06 GMT", + "x-ms-client-request-id" : "399c03ae-16d6-4543-94c3-197f06662926", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseac0containerapitestbreakleaseac0e0832759c455?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d001dd-501e-00c0-2efc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:06 GMT", + "x-ms-client-request-id" : "1231c4f2-845d-408e-8bd3-503b28608367" + }, + "Exception" : null + } ], + "variables" : [ "jtcbreakleaseac0containerapitestbreakleaseac0e0832759c455" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestbreakleaseac[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestbreakleaseac[2].json new file mode 100644 index 0000000000000..b65090c4e597d --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestbreakleaseac[2].json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseac0containerapitestbreakleaseac67b3829828ae5?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813B92E55E0\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d00204-501e-00c0-53fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:06 GMT", + "x-ms-client-request-id" : "a40c40cb-a33f-4454-841f-66e5bd702094" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseac0containerapitestbreakleaseac67b3829828ae5?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813B92E55E0\"", + "x-ms-lease-id" : "4fba081c-8a94-4da7-a16a-1813b368f58a", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d00225-501e-00c0-70fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:06 GMT", + "x-ms-client-request-id" : "c7b7ac49-c14d-4780-b311-d974805bc186" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseac0containerapitestbreakleaseac67b3829828ae5?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813B92E55E0\"", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d00239-501e-00c0-03fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:06 GMT", + "x-ms-client-request-id" : "385ddfbc-c764-4892-8d66-30fc58c69417" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcbreakleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d0024f-501e-00c0-19fc-59ba32000000", + "Body" : "jtcbreakleaseacjtcbreakleaseac0containerapitestbreakleaseac67b3829828ae5Fri, 23 Aug 2019 21:49:07 GMT\"0x8D72813B92E55E0\"unlockedbroken$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:06 GMT", + "x-ms-client-request-id" : "afb0bc8b-ae2b-4235-b1a2-a1e7e8bc5263", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseac0containerapitestbreakleaseac67b3829828ae5?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d00264-501e-00c0-2dfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:06 GMT", + "x-ms-client-request-id" : "91387a52-d2e3-40dc-9732-9270d284323e" + }, + "Exception" : null + } ], + "variables" : [ "jtcbreakleaseac0containerapitestbreakleaseac67b3829828ae5" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestbreakleaseacfail[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestbreakleaseacfail[0].json new file mode 100644 index 0000000000000..e7501cbabc737 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestbreakleaseacfail[0].json @@ -0,0 +1,125 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseacfail0containerapitestbreakleaseacfaile7503558f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813B947D78C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d0028d-501e-00c0-52fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:06 GMT", + "x-ms-client-request-id" : "cef66af3-43cc-4b98-8bbf-f89d91b16008" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseacfail0containerapitestbreakleaseacfaile7503558f?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813B947D78C\"", + "x-ms-lease-id" : "0564c9a2-89ce-4336-8cb2-df48e69c152a", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d002b0-501e-00c0-71fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:06 GMT", + "x-ms-client-request-id" : "0804af79-a4b6-4a10-810d-6975b658dc72" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseacfail0containerapitestbreakleaseacfaile7503558f?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "77d002d8-501e-00c0-17fc-59ba32000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:77d002d8-501e-00c0-17fc-59ba32000000\nTime:2019-08-23T21:49:07.5008154Z", + "Date" : "Fri, 23 Aug 2019 21:49:06 GMT", + "x-ms-client-request-id" : "cd696224-8c5d-489f-91a1-ae84a45b8eba", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcbreakleaseacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d002f1-501e-00c0-2dfc-59ba32000000", + "Body" : "jtcbreakleaseacfailjtcbreakleaseacfail0containerapitestbreakleaseacfaile7503558fFri, 23 Aug 2019 21:49:07 GMT\"0x8D72813B947D78C\"lockedleasedinfinite$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:06 GMT", + "x-ms-client-request-id" : "9e405a41-8a01-4c03-9dd5-c2c37d4df174", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseacfail0containerapitestbreakleaseacfaile7503558f?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813B947D78C\"", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d00308-501e-00c0-41fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:06 GMT", + "x-ms-client-request-id" : "4f1d2746-e83b-418f-b515-f8c88494c8b5" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseacfail0containerapitestbreakleaseacfaile7503558f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d00341-501e-00c0-72fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:06 GMT", + "x-ms-client-request-id" : "88b7893b-de54-44b8-9f10-244a1e28f07b" + }, + "Exception" : null + } ], + "variables" : [ "jtcbreakleaseacfail0containerapitestbreakleaseacfaile7503558f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestbreakleaseacfail[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestbreakleaseacfail[1].json new file mode 100644 index 0000000000000..6dfd0b4ceb2a0 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestbreakleaseacfail[1].json @@ -0,0 +1,125 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseacfail0containerapitestbreakleaseacfail362809974?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813B96DDF61\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d0036d-501e-00c0-1bfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:07 GMT", + "x-ms-client-request-id" : "6ef45fb4-13c0-494d-85e5-bcc8a47d1d4b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseacfail0containerapitestbreakleaseacfail362809974?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813B96DDF61\"", + "x-ms-lease-id" : "e4e8dd96-92d0-457a-bd52-cdccd2abbbbc", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d00398-501e-00c0-44fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:07 GMT", + "x-ms-client-request-id" : "0fecde24-2ff5-4bab-8600-bc8e087f6862" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseacfail0containerapitestbreakleaseacfail362809974?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "77d003b8-501e-00c0-61fc-59ba32000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:77d003b8-501e-00c0-61fc-59ba32000000\nTime:2019-08-23T21:49:07.7390429Z", + "Date" : "Fri, 23 Aug 2019 21:49:07 GMT", + "x-ms-client-request-id" : "cdde68fa-277d-48cd-a954-fccad83b8122", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcbreakleaseacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d003d4-501e-00c0-7afc-59ba32000000", + "Body" : "jtcbreakleaseacfailjtcbreakleaseacfail0containerapitestbreakleaseacfail362809974Fri, 23 Aug 2019 21:49:07 GMT\"0x8D72813B96DDF61\"lockedleasedinfinite$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:07 GMT", + "x-ms-client-request-id" : "89e5aae9-2102-4175-913b-0f68c7d2159e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseacfail0containerapitestbreakleaseacfail362809974?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813B96DDF61\"", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d003f7-501e-00c0-18fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:07 GMT", + "x-ms-client-request-id" : "effd0c1a-b4f7-4fa6-bef6-20f1a8067507" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseacfail0containerapitestbreakleaseacfail362809974?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d0042a-501e-00c0-42fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:07 GMT", + "x-ms-client-request-id" : "d16f542e-8f1e-47ae-b85b-7085734dc549" + }, + "Exception" : null + } ], + "variables" : [ "jtcbreakleaseacfail0containerapitestbreakleaseacfail362809974" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestbreakleaseacillegal[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestbreakleaseacillegal[0].json new file mode 100644 index 0000000000000..30fd97da6c229 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestbreakleaseacillegal[0].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseacillegal034371ad05826a374f4021a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813B98DF263\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d00475-501e-00c0-05fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:07 GMT", + "x-ms-client-request-id" : "5c4f4948-f3bc-4f7c-bd59-93fe6d548119" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcbreakleaseacillegal&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d0049d-501e-00c0-29fc-59ba32000000", + "Body" : "jtcbreakleaseacillegaljtcbreakleaseacillegal034371ad05826a374f4021aFri, 23 Aug 2019 21:49:07 GMT\"0x8D72813B98DF263\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:07 GMT", + "x-ms-client-request-id" : "a2441711-1ada-46a8-9bd5-5bd908b81e2e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseacillegal034371ad05826a374f4021a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d004b4-501e-00c0-3dfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:07 GMT", + "x-ms-client-request-id" : "f06bb2ba-c68a-489a-8a84-3d1f0bf0f895" + }, + "Exception" : null + } ], + "variables" : [ "jtcbreakleaseacillegal034371ad05826a374f4021a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestbreakleaseacillegal[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestbreakleaseacillegal[1].json new file mode 100644 index 0000000000000..e80788e6b3f69 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestbreakleaseacillegal[1].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseacillegal0614022fd6253f93204df99?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813B99DAD99\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d004d9-501e-00c0-60fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:07 GMT", + "x-ms-client-request-id" : "dc1f145c-20a0-43a3-9665-97675117a420" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcbreakleaseacillegal&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d004fa-501e-00c0-7bfc-59ba32000000", + "Body" : "jtcbreakleaseacillegaljtcbreakleaseacillegal0614022fd6253f93204df99Fri, 23 Aug 2019 21:49:07 GMT\"0x8D72813B99DAD99\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:07 GMT", + "x-ms-client-request-id" : "d70e2f3f-4f91-40cb-873f-cf75bb14d2cf", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseacillegal0614022fd6253f93204df99?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d00512-501e-00c0-13fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:07 GMT", + "x-ms-client-request-id" : "8385dde8-da5f-4eb0-8905-680ed65108ac" + }, + "Exception" : null + } ], + "variables" : [ "jtcbreakleaseacillegal0614022fd6253f93204df99" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestbreakleaseerror.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestbreakleaseerror.json new file mode 100644 index 0000000000000..fa8740ab5baa1 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestbreakleaseerror.json @@ -0,0 +1,83 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseerror0containerapitestbreakleaseerror58b076375e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813B9AD41C7\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d00540-501e-00c0-3dfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:07 GMT", + "x-ms-client-request-id" : "7268fbc6-46a6-489c-bf93-249b23325e71" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseerror1containerapitestbreakleaseerror58b0463492?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ContainerNotFound", + "retry-after" : "0", + "Content-Length" : "225", + "StatusCode" : "404", + "x-ms-request-id" : "77d00568-501e-00c0-62fc-59ba32000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:77d00568-501e-00c0-62fc-59ba32000000\nTime:2019-08-23T21:49:08.1184048Z", + "Date" : "Fri, 23 Aug 2019 21:49:07 GMT", + "x-ms-client-request-id" : "de59a28d-2616-4bf2-828b-75f1d3f67bd5", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcbreakleaseerror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d00588-501e-00c0-80fc-59ba32000000", + "Body" : "jtcbreakleaseerrorjtcbreakleaseerror0containerapitestbreakleaseerror58b076375eFri, 23 Aug 2019 21:49:08 GMT\"0x8D72813B9AD41C7\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:07 GMT", + "x-ms-client-request-id" : "efe48bcd-9e37-467f-8337-ddc267f2eefe", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleaseerror0containerapitestbreakleaseerror58b076375e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d005a0-501e-00c0-17fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:07 GMT", + "x-ms-client-request-id" : "6157b239-e291-4638-aeca-abaaaeaf7db4" + }, + "Exception" : null + } ], + "variables" : [ "jtcbreakleaseerror0containerapitestbreakleaseerror58b076375e", "jtcbreakleaseerror1containerapitestbreakleaseerror58b0463492" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestbreakleasemin.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestbreakleasemin.json new file mode 100644 index 0000000000000..fb1379c1d726d --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestbreakleasemin.json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleasemin0containerapitestbreakleaseminab1043331b84?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813B8DA7C17\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d00005-501e-00c0-7ffc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:06 GMT", + "x-ms-client-request-id" : "3498aab7-d930-4a86-a305-133f318810f7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleasemin0containerapitestbreakleaseminab1043331b84?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813B8DA7C17\"", + "x-ms-lease-id" : "6cb7cf0d-614f-4315-bc55-312e3956e6ad", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d00031-501e-00c0-25fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:06 GMT", + "x-ms-client-request-id" : "a79844c2-fca4-41fa-b9f6-05c2e5d6483f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleasemin0containerapitestbreakleaseminab1043331b84?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813B8DA7C17\"", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d00051-501e-00c0-42fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:06 GMT", + "x-ms-client-request-id" : "f45dbf68-6a06-4c3e-974d-11f37988f128" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcbreakleasemin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d0006a-501e-00c0-5afc-59ba32000000", + "Body" : "jtcbreakleaseminjtcbreakleasemin0containerapitestbreakleaseminab1043331b84Fri, 23 Aug 2019 21:49:06 GMT\"0x8D72813B8DA7C17\"unlockedbroken$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:06 GMT", + "x-ms-client-request-id" : "8b29b99a-856a-47b9-bb96-da273dedeeda", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbreakleasemin0containerapitestbreakleaseminab1043331b84?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d00083-501e-00c0-73fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:06 GMT", + "x-ms-client-request-id" : "c724e6b8-1de8-4806-b150-8d16ecd560e4" + }, + "Exception" : null + } ], + "variables" : [ "jtcbreakleasemin0containerapitestbreakleaseminab1043331b84" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestchangelease.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestchangelease.json new file mode 100644 index 0000000000000..0260175da7175 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestchangelease.json @@ -0,0 +1,124 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangelease0containerapitestchangeleaseddd36703f0033a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813B9C0CE8C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d005ce-501e-00c0-42fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:07 GMT", + "x-ms-client-request-id" : "bf91b46d-398f-4c3d-b6db-0b074a7c9a01" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangelease0containerapitestchangeleaseddd36703f0033a?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813B9C0CE8C\"", + "x-ms-lease-id" : "db047a81-449f-484f-be23-9d4ebf2d468d", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d005eb-501e-00c0-5afc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:07 GMT", + "x-ms-client-request-id" : "9a0ec789-9782-4dc9-87e6-1d6823ef0530" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangelease0containerapitestchangeleaseddd36703f0033a?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813B9C0CE8C\"", + "x-ms-lease-id" : "fe0d4db8-0379-48ab-871f-4f0c0ada55f2", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d0063e-501e-00c0-27fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:07 GMT", + "x-ms-client-request-id" : "c48efccb-a325-4871-8d8a-be3f73e31592" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangelease0containerapitestchangeleaseddd36703f0033a?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813B9C0CE8C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d00668-501e-00c0-4efc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:07 GMT", + "x-ms-client-request-id" : "b4677602-b609-4b97-814a-f0015cf9c40f" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcchangelease&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d0067a-501e-00c0-5efc-59ba32000000", + "Body" : "jtcchangeleasejtcchangelease0containerapitestchangeleaseddd36703f0033aFri, 23 Aug 2019 21:49:08 GMT\"0x8D72813B9C0CE8C\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:07 GMT", + "x-ms-client-request-id" : "65efb275-96de-4a73-8e62-a6575281c2d7", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangelease0containerapitestchangeleaseddd36703f0033a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d0068a-501e-00c0-6efc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:07 GMT", + "x-ms-client-request-id" : "671ff06d-5adc-4f92-ab96-b666af405f1f" + }, + "Exception" : null + } ], + "variables" : [ "jtcchangelease0containerapitestchangeleaseddd36703f0033a", "fe0d4db8-0379-48ab-871f-4f0c0ada55f2" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestchangeleaseac[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestchangeleaseac[0].json new file mode 100644 index 0000000000000..b1cec42ed6ab1 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestchangeleaseac[0].json @@ -0,0 +1,125 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseac0containerapitestchangeleaseacd2b50636656c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BA0F28BD\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d00780-501e-00c0-52fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:08 GMT", + "x-ms-client-request-id" : "d3d0b077-745b-48d4-b37b-6619c0c49a72" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseac0containerapitestchangeleaseacd2b50636656c?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BA0F28BD\"", + "x-ms-lease-id" : "ff1daa47-2c8b-44d4-b9b1-9d623c7a8778", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d0079e-501e-00c0-6dfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:08 GMT", + "x-ms-client-request-id" : "d6215176-2fba-47ad-a719-73801623d901" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseac0containerapitestchangeleaseacd2b50636656c?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BA0F28BD\"", + "x-ms-lease-id" : "8876669d-e1df-43e5-b935-437d2609fd5c", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d007c6-501e-00c0-0afc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:08 GMT", + "x-ms-client-request-id" : "b095466a-d090-40cc-8e90-ab56d7baab89" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcchangeleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d007e0-501e-00c0-23fc-59ba32000000", + "Body" : "jtcchangeleaseacjtcchangeleaseac0containerapitestchangeleaseacd2b50636656cFri, 23 Aug 2019 21:49:08 GMT\"0x8D72813BA0F28BD\"lockedleasedinfinite$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:08 GMT", + "x-ms-client-request-id" : "592d5893-c513-42fd-a7b4-8fe3e899f2aa", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseac0containerapitestchangeleaseacd2b50636656c?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BA0F28BD\"", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d007fb-501e-00c0-3efc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:08 GMT", + "x-ms-client-request-id" : "b0c8fff7-0762-4609-988b-6db6d253b789" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseac0containerapitestchangeleaseacd2b50636656c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d0081f-501e-00c0-5ffc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:08 GMT", + "x-ms-client-request-id" : "ce5c502d-ca25-4f95-beb6-4a6bb6aea0df" + }, + "Exception" : null + } ], + "variables" : [ "jtcchangeleaseac0containerapitestchangeleaseacd2b50636656c", "8876669d-e1df-43e5-b935-437d2609fd5c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestchangeleaseac[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestchangeleaseac[1].json new file mode 100644 index 0000000000000..b6511259ac285 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestchangeleaseac[1].json @@ -0,0 +1,125 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseac0containerapitestchangeleaseac60248279b1eb?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BA2C069B\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d00849-501e-00c0-04fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:08 GMT", + "x-ms-client-request-id" : "03ad339e-6195-406b-8b73-d33c8eb04bf0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseac0containerapitestchangeleaseac60248279b1eb?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BA2C069B\"", + "x-ms-lease-id" : "bdd7e8f5-cd92-4fb8-98da-a8329411f23a", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d0086e-501e-00c0-26fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:08 GMT", + "x-ms-client-request-id" : "87468061-bf60-4fd9-a73d-d0a00bbc667d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseac0containerapitestchangeleaseac60248279b1eb?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BA2C069B\"", + "x-ms-lease-id" : "5e6f1be6-0ee3-4a8c-85ca-eb6a9febf335", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d0088b-501e-00c0-41fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:08 GMT", + "x-ms-client-request-id" : "eeb6d1cd-2ba3-48aa-91ca-f9d0af67041b" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcchangeleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d008a3-501e-00c0-57fc-59ba32000000", + "Body" : "jtcchangeleaseacjtcchangeleaseac0containerapitestchangeleaseac60248279b1ebFri, 23 Aug 2019 21:49:08 GMT\"0x8D72813BA2C069B\"lockedleasedinfinite$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:08 GMT", + "x-ms-client-request-id" : "d589288a-8b2a-4ef6-9fa6-1b9f0733e5db", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseac0containerapitestchangeleaseac60248279b1eb?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BA2C069B\"", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d008bb-501e-00c0-6efc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:08 GMT", + "x-ms-client-request-id" : "92b1788c-8882-4283-aabb-56b43ff067be" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseac0containerapitestchangeleaseac60248279b1eb?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d008da-501e-00c0-0bfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:08 GMT", + "x-ms-client-request-id" : "e198b62d-4e83-4081-8310-e797b741f556" + }, + "Exception" : null + } ], + "variables" : [ "jtcchangeleaseac0containerapitestchangeleaseac60248279b1eb", "5e6f1be6-0ee3-4a8c-85ca-eb6a9febf335" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestchangeleaseac[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestchangeleaseac[2].json new file mode 100644 index 0000000000000..fd4707afd6958 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestchangeleaseac[2].json @@ -0,0 +1,125 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseac0containerapitestchangeleaseacffb42542aab5?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BA47F9D6\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d00926-501e-00c0-4ffc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:08 GMT", + "x-ms-client-request-id" : "40f921ef-a94b-4456-b649-059f94700a89" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseac0containerapitestchangeleaseacffb42542aab5?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BA47F9D6\"", + "x-ms-lease-id" : "af289272-84d0-41c1-b72e-079ec949788c", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d00956-501e-00c0-79fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:08 GMT", + "x-ms-client-request-id" : "40dcfaaf-7441-4a58-9539-ba42a2730dba" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseac0containerapitestchangeleaseacffb42542aab5?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BA47F9D6\"", + "x-ms-lease-id" : "4ef2211a-af36-4e8b-80bd-211063678c5e", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d00972-501e-00c0-11fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:08 GMT", + "x-ms-client-request-id" : "a0c957cf-45b9-4423-af0b-54c708c51427" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcchangeleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d0099d-501e-00c0-3afc-59ba32000000", + "Body" : "jtcchangeleaseacjtcchangeleaseac0containerapitestchangeleaseacffb42542aab5Fri, 23 Aug 2019 21:49:09 GMT\"0x8D72813BA47F9D6\"lockedleasedinfinite$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:08 GMT", + "x-ms-client-request-id" : "fca1f8f8-d9d6-4e6d-997e-223b6ae5978c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseac0containerapitestchangeleaseacffb42542aab5?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BA47F9D6\"", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d009b4-501e-00c0-50fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:08 GMT", + "x-ms-client-request-id" : "35ba8cfb-6300-42f6-ada8-20f5fdd9c71d" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseac0containerapitestchangeleaseacffb42542aab5?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d009dd-501e-00c0-76fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:08 GMT", + "x-ms-client-request-id" : "e6741302-9173-4cfb-9d1d-49b987cb2f2a" + }, + "Exception" : null + } ], + "variables" : [ "jtcchangeleaseac0containerapitestchangeleaseacffb42542aab5", "4ef2211a-af36-4e8b-80bd-211063678c5e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestchangeleaseacfail[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestchangeleaseacfail[0].json new file mode 100644 index 0000000000000..be8a31e0f4235 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestchangeleaseacfail[0].json @@ -0,0 +1,125 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseacfail0containerapitestchangeleaseacfailf9870759?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BA6525EC\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d00a13-501e-00c0-25fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:08 GMT", + "x-ms-client-request-id" : "ba69c218-e9d0-4bfc-8138-2573d2493b51" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseacfail0containerapitestchangeleaseacfailf9870759?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BA6525EC\"", + "x-ms-lease-id" : "cdf8a6bf-36db-4ffa-b75a-84f8767f2027", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d00a30-501e-00c0-41fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:08 GMT", + "x-ms-client-request-id" : "dde3fed6-8035-42e5-9238-b996f21d76f2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseacfail0containerapitestchangeleaseacfailf9870759?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "77d00a4b-501e-00c0-5afc-59ba32000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:77d00a4b-501e-00c0-5afc-59ba32000000\nTime:2019-08-23T21:49:09.3495779Z", + "Date" : "Fri, 23 Aug 2019 21:49:08 GMT", + "x-ms-client-request-id" : "c44ada20-b545-4d5e-a0e8-da62248b363d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcchangeleaseacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d00a5e-501e-00c0-6cfc-59ba32000000", + "Body" : "jtcchangeleaseacfailjtcchangeleaseacfail0containerapitestchangeleaseacfailf9870759Fri, 23 Aug 2019 21:49:09 GMT\"0x8D72813BA6525EC\"lockedleasedinfinite$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:08 GMT", + "x-ms-client-request-id" : "9d6e6362-6184-45cb-8cee-596c2472e843", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseacfail0containerapitestchangeleaseacfailf9870759?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BA6525EC\"", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d00a85-501e-00c0-10fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:08 GMT", + "x-ms-client-request-id" : "1e3d21e9-c6e4-4ded-9e68-61c46b4e1ca1" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseacfail0containerapitestchangeleaseacfailf9870759?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d00aa0-501e-00c0-2bfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:08 GMT", + "x-ms-client-request-id" : "56d4faf0-ec1f-4f9b-92f9-2c2117a2488b" + }, + "Exception" : null + } ], + "variables" : [ "jtcchangeleaseacfail0containerapitestchangeleaseacfailf9870759", "01fd9631-76dc-44fe-8ff4-4f1376b6b502" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestchangeleaseacfail[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestchangeleaseacfail[1].json new file mode 100644 index 0000000000000..a22b1b7b3415d --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestchangeleaseacfail[1].json @@ -0,0 +1,125 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseacfail0containerapitestchangeleaseacfail71f24634?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BA80F210\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d00acb-501e-00c0-52fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:08 GMT", + "x-ms-client-request-id" : "77acf5eb-5c31-4968-b193-72c34ed67e1e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseacfail0containerapitestchangeleaseacfail71f24634?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BA80F210\"", + "x-ms-lease-id" : "32f14f39-bd69-49ee-84d3-c783f09d30ba", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d00af2-501e-00c0-71fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:08 GMT", + "x-ms-client-request-id" : "b3b1df28-8c98-4110-bea0-fc90ba49cbde" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseacfail0containerapitestchangeleaseacfail71f24634?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "77d00b0d-501e-00c0-0cfc-59ba32000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:77d00b0d-501e-00c0-0cfc-59ba32000000\nTime:2019-08-23T21:49:09.5317516Z", + "Date" : "Fri, 23 Aug 2019 21:49:08 GMT", + "x-ms-client-request-id" : "97d23b33-e338-4e11-a630-95b7b814c51d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcchangeleaseacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d00b26-501e-00c0-24fc-59ba32000000", + "Body" : "jtcchangeleaseacfailjtcchangeleaseacfail0containerapitestchangeleaseacfail71f24634Fri, 23 Aug 2019 21:49:09 GMT\"0x8D72813BA80F210\"lockedleasedinfinite$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:08 GMT", + "x-ms-client-request-id" : "4cad8b18-2489-4d9b-a673-6bd486702330", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseacfail0containerapitestchangeleaseacfail71f24634?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BA80F210\"", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d00b3b-501e-00c0-37fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:08 GMT", + "x-ms-client-request-id" : "410a0a88-61ef-4dc1-b510-282eab01e99a" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseacfail0containerapitestchangeleaseacfail71f24634?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d00b5e-501e-00c0-59fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:08 GMT", + "x-ms-client-request-id" : "50007d43-36cd-4bc3-b9aa-b2f162f46b47" + }, + "Exception" : null + } ], + "variables" : [ "jtcchangeleaseacfail0containerapitestchangeleaseacfail71f24634", "aca7fd51-6a8f-4f47-8db9-d755ca934d0e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestchangeleaseacillegal[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestchangeleaseacillegal[0].json new file mode 100644 index 0000000000000..9149d693990d2 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestchangeleaseacillegal[0].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseacillegal040942d95ecf7d1b8448dd9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BA9CE551\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d00b82-501e-00c0-7afc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:09 GMT", + "x-ms-client-request-id" : "e73edd1e-266e-4787-8fdb-aa662b8e4ead" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcchangeleaseacillegal&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d00ba7-501e-00c0-1afc-59ba32000000", + "Body" : "jtcchangeleaseacillegaljtcchangeleaseacillegal040942d95ecf7d1b8448dd9Fri, 23 Aug 2019 21:49:09 GMT\"0x8D72813BA9CE551\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:09 GMT", + "x-ms-client-request-id" : "fb4b856f-81c3-417e-a5a7-650aab9f467b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseacillegal040942d95ecf7d1b8448dd9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d00bbe-501e-00c0-2ffc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:09 GMT", + "x-ms-client-request-id" : "50f2ef2f-9894-4f5e-874a-b21158d76ce9" + }, + "Exception" : null + } ], + "variables" : [ "jtcchangeleaseacillegal040942d95ecf7d1b8448dd9" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestchangeleaseacillegal[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestchangeleaseacillegal[1].json new file mode 100644 index 0000000000000..db6ec6563ac43 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestchangeleaseacillegal[1].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseacillegal0124521f173842a8fe4566a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BAABB5FB\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d00beb-501e-00c0-5bfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:09 GMT", + "x-ms-client-request-id" : "e782c3b6-5b94-414d-a4b3-cce12877e19e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcchangeleaseacillegal&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d00c10-501e-00c0-7efc-59ba32000000", + "Body" : "jtcchangeleaseacillegaljtcchangeleaseacillegal0124521f173842a8fe4566aFri, 23 Aug 2019 21:49:09 GMT\"0x8D72813BAABB5FB\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:09 GMT", + "x-ms-client-request-id" : "d3a0d8de-3fec-48b8-bf20-c518fde12f54", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseacillegal0124521f173842a8fe4566a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d00c30-501e-00c0-1cfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:09 GMT", + "x-ms-client-request-id" : "623afff1-1189-4b33-82ab-57d3b4815ccd" + }, + "Exception" : null + } ], + "variables" : [ "jtcchangeleaseacillegal0124521f173842a8fe4566a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestchangeleaseerror.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestchangeleaseerror.json new file mode 100644 index 0000000000000..b2ee0f413707b --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestchangeleaseerror.json @@ -0,0 +1,83 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseerror0containerapitestchangeleaseerror45a696329?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BABA86A4\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d00c51-501e-00c0-3cfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:09 GMT", + "x-ms-client-request-id" : "8784e19d-2621-4ead-861c-af00c91bb769" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseerror1containerapitestchangeleaseerror45a90288e?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "InvalidHeaderValue", + "retry-after" : "0", + "Content-Length" : "321", + "StatusCode" : "400", + "x-ms-request-id" : "77d00c73-501e-00c0-59fc-59ba32000000", + "Body" : "InvalidHeaderValueThe value for one of the HTTP headers is not in the correct format.\nRequestId:77d00c73-501e-00c0-59fc-59ba32000000\nTime:2019-08-23T21:49:09.8790817Zx-ms-lease-idid", + "Date" : "Fri, 23 Aug 2019 21:49:09 GMT", + "x-ms-client-request-id" : "9946c12d-6a2e-46c0-8377-0f761acd0f99", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcchangeleaseerror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d00c87-501e-00c0-6dfc-59ba32000000", + "Body" : "jtcchangeleaseerrorjtcchangeleaseerror0containerapitestchangeleaseerror45a696329Fri, 23 Aug 2019 21:49:09 GMT\"0x8D72813BABA86A4\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:09 GMT", + "x-ms-client-request-id" : "a38a06d4-1df2-4bbe-87fb-2606ecd5a93c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleaseerror0containerapitestchangeleaseerror45a696329?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d00cae-501e-00c0-12fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:09 GMT", + "x-ms-client-request-id" : "0e92d739-5d48-4dfc-ab00-c1e45d15c39a" + }, + "Exception" : null + } ], + "variables" : [ "jtcchangeleaseerror0containerapitestchangeleaseerror45a696329", "jtcchangeleaseerror1containerapitestchangeleaseerror45a90288e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestchangeleasemin.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestchangeleasemin.json new file mode 100644 index 0000000000000..2ec3e53ceecb2 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestchangeleasemin.json @@ -0,0 +1,125 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleasemin0containerapitestchangeleaseminbd4063186d8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813B9EE2B48\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d006ab-501e-00c0-0efc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:07 GMT", + "x-ms-client-request-id" : "4100d825-9952-4e51-8e34-f9fe6374fde4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleasemin0containerapitestchangeleaseminbd4063186d8?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813B9EE2B48\"", + "x-ms-lease-id" : "94f52350-e5e5-4e08-947a-5bb8bee97857", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d006cb-501e-00c0-2bfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:07 GMT", + "x-ms-client-request-id" : "820c2b44-1c00-4cbd-8e0b-c74cf2c21a86" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleasemin0containerapitestchangeleaseminbd4063186d8?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813B9EE2B48\"", + "x-ms-lease-id" : "923d3b73-b53d-4ffe-9ab3-63f253047e94", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d006ea-501e-00c0-47fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:07 GMT", + "x-ms-client-request-id" : "4fd25aa4-90e9-4161-bc94-a9dd2c62390e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcchangeleasemin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d0072f-501e-00c0-06fc-59ba32000000", + "Body" : "jtcchangeleaseminjtcchangeleasemin0containerapitestchangeleaseminbd4063186d8Fri, 23 Aug 2019 21:49:08 GMT\"0x8D72813B9EE2B48\"lockedleasedinfinite$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:07 GMT", + "x-ms-client-request-id" : "deacd975-1e99-4136-91f4-d86c326317ba", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleasemin0containerapitestchangeleaseminbd4063186d8?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813B9EE2B48\"", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d00745-501e-00c0-1bfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:08 GMT", + "x-ms-client-request-id" : "d6ad9691-7224-4401-986f-3123ffb33ab2" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcchangeleasemin0containerapitestchangeleaseminbd4063186d8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d00760-501e-00c0-35fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:08 GMT", + "x-ms-client-request-id" : "ffd14303-f817-4fd9-8fdb-40e50d2265d7" + }, + "Exception" : null + } ], + "variables" : [ "jtcchangeleasemin0containerapitestchangeleaseminbd4063186d8", "923d3b73-b53d-4ffe-9ab3-63f253047e94" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestcreateallnull.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestcreateallnull.json new file mode 100644 index 0000000000000..84ea9406b212c --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestcreateallnull.json @@ -0,0 +1,100 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateallnull0containerapitestcreateallnull2235619008cb?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133CE9AFBF\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:38 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1de9cc2-001e-00f1-39fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:38 GMT", + "x-ms-client-request-id" : "e2c2f0b6-6359-4c29-83d7-f0b7797377e0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateallnull1containerapitestcreateallnull22396350c931?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133CEE92F3\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:38 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1de9cfb-001e-00f1-69fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:38 GMT", + "x-ms-client-request-id" : "bf9d1352-8c57-48e0-bc67-e39fc7bbe8d3" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccreateallnull&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1de9d2f-001e-00f1-16fc-59e1e5000000", + "Body" : "jtccreateallnulljtccreateallnull0containerapitestcreateallnull2235619008cbFri, 23 Aug 2019 21:45:38 GMT\"0x8D728133CE9AFBF\"unlockedavailable$account-encryption-keyfalsefalsefalsejtccreateallnull1containerapitestcreateallnull22396350c931Fri, 23 Aug 2019 21:45:38 GMT\"0x8D728133CEE92F3\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:38 GMT", + "x-ms-client-request-id" : "b2f4d65b-9382-4e36-99ed-35297b0fc239", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateallnull0containerapitestcreateallnull2235619008cb?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1de9d5a-001e-00f1-3dfc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:38 GMT", + "x-ms-client-request-id" : "3a95bff5-52c4-4bc4-8b23-86d6e70b3e25" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateallnull1containerapitestcreateallnull22396350c931?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1de9d96-001e-00f1-72fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:38 GMT", + "x-ms-client-request-id" : "08718da0-292f-471a-bb62-992f0a7d8a0a" + }, + "Exception" : null + } ], + "variables" : [ "jtccreateallnull0containerapitestcreateallnull2235619008cb", "jtccreateallnull1containerapitestcreateallnull22396350c931" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestcreateerror.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestcreateerror.json new file mode 100644 index 0000000000000..769ea7517ed68 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestcreateerror.json @@ -0,0 +1,83 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateerror0containerapitestcreateerror55e48012617dc8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133DAE8FB1\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1dea577-001e-00f1-40fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:39 GMT", + "x-ms-client-request-id" : "81aa711a-596c-47ef-beb6-6d87c428f0da" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateerror0containerapitestcreateerror55e48012617dc8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ContainerAlreadyExists", + "retry-after" : "0", + "Content-Length" : "230", + "StatusCode" : "409", + "x-ms-request-id" : "b1dea5be-001e-00f1-04fc-59e1e5000000", + "Body" : "ContainerAlreadyExistsThe specified container already exists.\nRequestId:b1dea5be-001e-00f1-04fc-59e1e5000000\nTime:2019-08-23T21:45:40.0884727Z", + "Date" : "Fri, 23 Aug 2019 21:45:39 GMT", + "x-ms-client-request-id" : "bb699546-6def-4edb-9e67-2ab8ec93106e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccreateerror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1dea5f5-001e-00f1-39fc-59e1e5000000", + "Body" : "jtccreateerrorjtccreateerror0containerapitestcreateerror55e48012617dc8Fri, 23 Aug 2019 21:45:40 GMT\"0x8D728133DAE8FB1\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:39 GMT", + "x-ms-client-request-id" : "26246271-34b2-49e6-a3b7-6aa9510b4c05", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateerror0containerapitestcreateerror55e48012617dc8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1dea61a-001e-00f1-5bfc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:39 GMT", + "x-ms-client-request-id" : "885bc614-953b-458b-a700-e4b9a8a78120" + }, + "Exception" : null + } ], + "variables" : [ "jtccreateerror0containerapitestcreateerror55e48012617dc8" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestcreatemetadata[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestcreatemetadata[0].json new file mode 100644 index 0000000000000..bb3697a9b6b2f --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestcreatemetadata[0].json @@ -0,0 +1,126 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatemetadata0containerapitestcreatemetadatad3077891def?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133D1B533F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1de9f0a-001e-00f1-4bfc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:38 GMT", + "x-ms-client-request-id" : "1a3b3f28-6162-4321-9023-b8cfd7d51826" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatemetadata1containerapitestcreatemetadatad30320645c4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133D203685\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1de9f59-001e-00f1-15fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:38 GMT", + "x-ms-client-request-id" : "9806c997-b48a-4d5d-84ae-57c2949f2b02" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatemetadata1containerapitestcreatemetadatad30320645c4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "x-ms-deny-encryption-scope-override" : "false", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:39 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:45:38 GMT", + "x-ms-has-legal-hold" : "false", + "x-ms-default-encryption-scope" : "$account-encryption-key", + "ETag" : "\"0x8D728133D203685\"", + "x-ms-has-immutability-policy" : "false", + "Content-Length" : "0", + "x-ms-request-id" : "b1de9f94-001e-00f1-4cfc-59e1e5000000", + "x-ms-client-request-id" : "ca307e3e-c5d2-4dcb-8a39-da749d9fffb3" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccreatemetadata&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1de9fd3-001e-00f1-08fc-59e1e5000000", + "Body" : "jtccreatemetadatajtccreatemetadata0containerapitestcreatemetadatad3077891defFri, 23 Aug 2019 21:45:39 GMT\"0x8D728133D1B533F\"unlockedavailable$account-encryption-keyfalsefalsefalsejtccreatemetadata1containerapitestcreatemetadatad30320645c4Fri, 23 Aug 2019 21:45:39 GMT\"0x8D728133D203685\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:38 GMT", + "x-ms-client-request-id" : "132bb118-38d9-45e1-be1c-7b0fb7a7fba2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatemetadata0containerapitestcreatemetadatad3077891def?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1dea01a-001e-00f1-48fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:38 GMT", + "x-ms-client-request-id" : "4cbbad53-8f9a-4ad5-9fdd-ed907f8f69d6" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatemetadata1containerapitestcreatemetadatad30320645c4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1dea049-001e-00f1-76fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:38 GMT", + "x-ms-client-request-id" : "fb448dd5-9ef9-4534-8340-37f1af6f2b59" + }, + "Exception" : null + } ], + "variables" : [ "jtccreatemetadata0containerapitestcreatemetadatad3077891def", "jtccreatemetadata1containerapitestcreatemetadatad30320645c4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestcreatemetadata[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestcreatemetadata[1].json new file mode 100644 index 0000000000000..516a94f3f2f56 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestcreatemetadata[1].json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatemetadata0containerapitestcreatemetadata0996661646d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133D38A66F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1dea090-001e-00f1-38fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:38 GMT", + "x-ms-client-request-id" : "0aba7e60-21c0-46a9-a54b-a60176dbadd5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatemetadata1containerapitestcreatemetadata0998841117c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133D3DB0C8\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1dea0c4-001e-00f1-68fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:38 GMT", + "x-ms-client-request-id" : "d83f08fe-69b8-458e-aa69-fe4cc1c1c46f" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatemetadata1containerapitestcreatemetadata0998841117c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "x-ms-deny-encryption-scope-override" : "false", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:39 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:45:38 GMT", + "x-ms-has-legal-hold" : "false", + "x-ms-meta-foo" : "bar", + "x-ms-default-encryption-scope" : "$account-encryption-key", + "ETag" : "\"0x8D728133D3DB0C8\"", + "x-ms-has-immutability-policy" : "false", + "Content-Length" : "0", + "x-ms-request-id" : "b1dea105-001e-00f1-26fc-59e1e5000000", + "x-ms-meta-fizz" : "buzz", + "x-ms-client-request-id" : "c15a5979-0c65-43ea-9fd2-982a7dc0554c" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccreatemetadata&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1dea132-001e-00f1-4ffc-59e1e5000000", + "Body" : "jtccreatemetadatajtccreatemetadata0containerapitestcreatemetadata0996661646dFri, 23 Aug 2019 21:45:39 GMT\"0x8D728133D38A66F\"unlockedavailable$account-encryption-keyfalsefalsefalsejtccreatemetadata1containerapitestcreatemetadata0998841117cFri, 23 Aug 2019 21:45:39 GMT\"0x8D728133D3DB0C8\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:38 GMT", + "x-ms-client-request-id" : "d9cba537-3c6c-46e0-a477-1084b0e9058a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatemetadata0containerapitestcreatemetadata0996661646d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1dea157-001e-00f1-74fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:38 GMT", + "x-ms-client-request-id" : "34c82077-2301-4f90-9173-bd00ae8b21fb" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatemetadata1containerapitestcreatemetadata0998841117c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1dea18e-001e-00f1-28fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:38 GMT", + "x-ms-client-request-id" : "53d137e0-62e6-4b45-9d34-4164ad63473a" + }, + "Exception" : null + } ], + "variables" : [ "jtccreatemetadata0containerapitestcreatemetadata0996661646d", "jtccreatemetadata1containerapitestcreatemetadata0998841117c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestcreatemin.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestcreatemin.json new file mode 100644 index 0000000000000..f87ee91a66576 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestcreatemin.json @@ -0,0 +1,100 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatemin0containerapitestcreateminf1e937775347a08a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133D02BC27\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:38 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1de9de9-001e-00f1-40fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:38 GMT", + "x-ms-client-request-id" : "04679dbe-6bdb-40b7-8fd3-2badd5fccf1f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatemin1containerapitestcreateminf1e571363422f482?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133D07783E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:38 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1de9e1b-001e-00f1-6ffc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:38 GMT", + "x-ms-client-request-id" : "99359648-9476-4a76-8332-2ec200b2099b" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccreatemin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1de9e54-001e-00f1-22fc-59e1e5000000", + "Body" : "jtccreateminjtccreatemin0containerapitestcreateminf1e937775347a08aFri, 23 Aug 2019 21:45:38 GMT\"0x8D728133D02BC27\"unlockedavailable$account-encryption-keyfalsefalsefalsejtccreatemin1containerapitestcreateminf1e571363422f482Fri, 23 Aug 2019 21:45:38 GMT\"0x8D728133D07783E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:38 GMT", + "x-ms-client-request-id" : "22af1047-b768-4f50-aef6-7f3a09e8512b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatemin0containerapitestcreateminf1e937775347a08a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1de9e79-001e-00f1-44fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:38 GMT", + "x-ms-client-request-id" : "620a7059-deea-4ea5-ab75-acc5e2339936" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatemin1containerapitestcreateminf1e571363422f482?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1de9ea9-001e-00f1-72fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:38 GMT", + "x-ms-client-request-id" : "0058e1eb-d228-49b4-99ca-11b517915c4e" + }, + "Exception" : null + } ], + "variables" : [ "jtccreatemin0containerapitestcreateminf1e937775347a08a", "jtccreatemin1containerapitestcreateminf1e571363422f482" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestcreatepublicaccess[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestcreatepublicaccess[0].json new file mode 100644 index 0000000000000..7a3a1327df646 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestcreatepublicaccess[0].json @@ -0,0 +1,127 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatepublicaccess015750feed4014bed341f1bd?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133D558459\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1dea1cc-001e-00f1-60fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:38 GMT", + "x-ms-client-request-id" : "b3450bf7-1e5d-40d1-b889-a485d0dbd361" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatepublicaccess140049e93588693c3149af9c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133D5B03F3\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1dea201-001e-00f1-10fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:38 GMT", + "x-ms-client-request-id" : "eff23941-4e05-485c-8e1a-d03a4ff468d0" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatepublicaccess140049e93588693c3149af9c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "x-ms-deny-encryption-scope-override" : "false", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:39 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:45:38 GMT", + "x-ms-has-legal-hold" : "false", + "x-ms-default-encryption-scope" : "$account-encryption-key", + "ETag" : "\"0x8D728133D5B03F3\"", + "x-ms-has-immutability-policy" : "false", + "Content-Length" : "0", + "x-ms-blob-public-access" : "blob", + "x-ms-request-id" : "b1dea225-001e-00f1-30fc-59e1e5000000", + "x-ms-client-request-id" : "ba5a230c-e63a-438b-b1dd-a3b3a60a0172" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccreatepublicaccess&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1dea24c-001e-00f1-55fc-59e1e5000000", + "Body" : "jtccreatepublicaccessjtccreatepublicaccess015750feed4014bed341f1bdFri, 23 Aug 2019 21:45:39 GMT\"0x8D728133D558459\"unlockedavailable$account-encryption-keyfalsefalsefalsejtccreatepublicaccess140049e93588693c3149af9cFri, 23 Aug 2019 21:45:39 GMT\"0x8D728133D5B03F3\"unlockedavailableblob$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:38 GMT", + "x-ms-client-request-id" : "58e53c14-d022-4420-94a1-c3193b40bfba", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatepublicaccess015750feed4014bed341f1bd?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1dea27b-001e-00f1-7ffc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:39 GMT", + "x-ms-client-request-id" : "358640f5-25bd-44fd-84c8-e3adbb048869" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatepublicaccess140049e93588693c3149af9c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1dea2b3-001e-00f1-35fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:39 GMT", + "x-ms-client-request-id" : "4980bb0b-c408-4c6d-a841-6b4d0fed77af" + }, + "Exception" : null + } ], + "variables" : [ "jtccreatepublicaccess015750feed4014bed341f1bd", "jtccreatepublicaccess140049e93588693c3149af9c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestcreatepublicaccess[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestcreatepublicaccess[1].json new file mode 100644 index 0000000000000..b2f3673e4643c --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestcreatepublicaccess[1].json @@ -0,0 +1,127 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatepublicaccess041976201f6b6188b24d3796?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133D72D78E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1dea2ea-001e-00f1-66fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:39 GMT", + "x-ms-client-request-id" : "555fc5ce-c18c-448d-a3c0-d9782f053730" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatepublicaccess157929b09afc30a1d1438e94?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133D77BAC6\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1dea31a-001e-00f1-14fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:39 GMT", + "x-ms-client-request-id" : "674859fb-0e38-43a6-8c9d-308a6a2f6a0c" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatepublicaccess157929b09afc30a1d1438e94?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "x-ms-deny-encryption-scope-override" : "false", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:39 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:45:39 GMT", + "x-ms-has-legal-hold" : "false", + "x-ms-default-encryption-scope" : "$account-encryption-key", + "ETag" : "\"0x8D728133D77BAC6\"", + "x-ms-has-immutability-policy" : "false", + "Content-Length" : "0", + "x-ms-blob-public-access" : "container", + "x-ms-request-id" : "b1dea35d-001e-00f1-52fc-59e1e5000000", + "x-ms-client-request-id" : "953ae175-46de-4ef0-b7df-80d26b956ab0" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccreatepublicaccess&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1dea392-001e-00f1-7ffc-59e1e5000000", + "Body" : "jtccreatepublicaccessjtccreatepublicaccess041976201f6b6188b24d3796Fri, 23 Aug 2019 21:45:39 GMT\"0x8D728133D72D78E\"unlockedavailable$account-encryption-keyfalsefalsefalsejtccreatepublicaccess157929b09afc30a1d1438e94Fri, 23 Aug 2019 21:45:39 GMT\"0x8D728133D77BAC6\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:39 GMT", + "x-ms-client-request-id" : "5749d1e8-86a1-4fee-a903-9cde13eb7916", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatepublicaccess041976201f6b6188b24d3796?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1dea3b4-001e-00f1-1ffc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:39 GMT", + "x-ms-client-request-id" : "5260a8a5-214a-4523-afaf-2bef2e1f6c25" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatepublicaccess157929b09afc30a1d1438e94?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1dea3eb-001e-00f1-53fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:39 GMT", + "x-ms-client-request-id" : "0d33193f-bec6-4ac0-9595-40f0039bc9e0" + }, + "Exception" : null + } ], + "variables" : [ "jtccreatepublicaccess041976201f6b6188b24d3796", "jtccreatepublicaccess157929b09afc30a1d1438e94" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestcreatepublicaccess[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestcreatepublicaccess[2].json new file mode 100644 index 0000000000000..48c46a005a261 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestcreatepublicaccess[2].json @@ -0,0 +1,126 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatepublicaccess01822860bf8cbfa310435fbd?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133D90C72D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1dea42b-001e-00f1-0dfc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:39 GMT", + "x-ms-client-request-id" : "3a5b791f-6c78-4421-b613-38a3586cfe55" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatepublicaccess172306d00e968936444de488?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133D958345\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1dea458-001e-00f1-38fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:39 GMT", + "x-ms-client-request-id" : "31ecbc6b-7dca-4fe6-b26c-4a722e70df24" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatepublicaccess172306d00e968936444de488?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "x-ms-deny-encryption-scope-override" : "false", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:39 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:45:39 GMT", + "x-ms-has-legal-hold" : "false", + "x-ms-default-encryption-scope" : "$account-encryption-key", + "ETag" : "\"0x8D728133D958345\"", + "x-ms-has-immutability-policy" : "false", + "Content-Length" : "0", + "x-ms-request-id" : "b1dea495-001e-00f1-72fc-59e1e5000000", + "x-ms-client-request-id" : "1acab04d-307d-43c1-ba90-8e778e29cb91" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccreatepublicaccess&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1dea4d2-001e-00f1-28fc-59e1e5000000", + "Body" : "jtccreatepublicaccessjtccreatepublicaccess01822860bf8cbfa310435fbdFri, 23 Aug 2019 21:45:39 GMT\"0x8D728133D90C72D\"unlockedavailable$account-encryption-keyfalsefalsefalsejtccreatepublicaccess172306d00e968936444de488Fri, 23 Aug 2019 21:45:39 GMT\"0x8D728133D958345\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:39 GMT", + "x-ms-client-request-id" : "9f8942a3-eae8-4ade-b4ce-541686cf2a7e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatepublicaccess01822860bf8cbfa310435fbd?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1dea4fe-001e-00f1-4efc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:39 GMT", + "x-ms-client-request-id" : "c8ea46b5-3195-4483-8759-66b28ec4df05" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatepublicaccess172306d00e968936444de488?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1dea523-001e-00f1-72fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:39 GMT", + "x-ms-client-request-id" : "6a9b30a7-f946-4a08-915b-5787a42006ee" + }, + "Exception" : null + } ], + "variables" : [ "jtccreatepublicaccess01822860bf8cbfa310435fbd", "jtccreatepublicaccess172306d00e968936444de488" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestcreateurlspecialchars[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestcreateurlspecialchars[0].json new file mode 100644 index 0000000000000..3f82770669998 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestcreateurlspecialchars[0].json @@ -0,0 +1,179 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateurlspecialchars083446d43f4e08c18241ae?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BACD01A8\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d00cd1-501e-00c0-30fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:09 GMT", + "x-ms-client-request-id" : "ce58d978-1b09-40f2-9b2e-be4c0f2430b5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateurlspecialchars083446d43f4e08c18241ae/az[]", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BAD25587\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d00cec-501e-00c0-47fc-59ba32000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:09 GMT", + "x-ms-client-request-id" : "53415921-a971-4ca4-8d14-8bcb0aabd6a7" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateurlspecialchars083446d43f4e08c18241ae/az[]", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "x-ms-blob-committed-block-count" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:10 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:49:09 GMT", + "x-ms-blob-type" : "AppendBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72813BAD25587\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:49:10 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "77d00d1c-501e-00c0-72fc-59ba32000000", + "x-ms-client-request-id" : "820bed6f-e8fd-4c77-b2b8-2729c9849cc5", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateurlspecialchars083446d43f4e08c18241ae/az[]2", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BADC6A2E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d00d37-501e-00c0-0dfc-59ba32000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:09 GMT", + "x-ms-client-request-id" : "220e1fb4-2000-4ab5-bc40-b57751fa1d0b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateurlspecialchars083446d43f4e08c18241ae/az[]3", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:10 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:09 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72813BAE17477\"", + "Content-Length" : "0", + "x-ms-request-id" : "77d00d66-501e-00c0-3bfc-59ba32000000", + "x-ms-client-request-id" : "e28beb1f-0dfc-456c-92f4-936c6bdd634d" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateurlspecialchars083446d43f4e08c18241ae?include=&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d00d8e-501e-00c0-61fc-59ba32000000", + "Body" : "az[]Fri, 23 Aug 2019 21:49:10 GMTFri, 23 Aug 2019 21:49:10 GMT0x8D72813BAD255870application/octet-streamAppendBlobHottrueunlockedavailabletrue0az[]2Fri, 23 Aug 2019 21:49:10 GMTFri, 23 Aug 2019 21:49:10 GMT0x8D72813BADC6A2E512application/octet-stream0PageBlobHottrueunlockedavailabletrue0az[]3Fri, 23 Aug 2019 21:49:10 GMTFri, 23 Aug 2019 21:49:10 GMT0x8D72813BAE174777application/octet-stream6RYQPwaVsyQ=wh+Wm18D0z1D4E+PE252gg==BlockBlobHottrueunlockedavailabletrue0", + "Date" : "Fri, 23 Aug 2019 21:49:09 GMT", + "x-ms-client-request-id" : "3a15356d-4de3-4761-93fe-89f121641434", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccreateurlspecialchars&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d00dc1-501e-00c0-0cfc-59ba32000000", + "Body" : "jtccreateurlspecialcharsjtccreateurlspecialchars083446d43f4e08c18241aeFri, 23 Aug 2019 21:49:09 GMT\"0x8D72813BACD01A8\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:09 GMT", + "x-ms-client-request-id" : "e7bc99f4-aa73-4ab2-ba2a-532b14da79e3", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateurlspecialchars083446d43f4e08c18241ae?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d00dd3-501e-00c0-1cfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:09 GMT", + "x-ms-client-request-id" : "3e5c2ff7-32b1-4a2e-9130-f8f70b30495d" + }, + "Exception" : null + } ], + "variables" : [ "jtccreateurlspecialchars083446d43f4e08c18241ae" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestcreateurlspecialchars[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestcreateurlspecialchars[1].json new file mode 100644 index 0000000000000..1a291131cc8c1 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestcreateurlspecialchars[1].json @@ -0,0 +1,179 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateurlspecialchars06559382df0bea09d84390?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BAF77753\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d00dfe-501e-00c0-46fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:09 GMT", + "x-ms-client-request-id" : "c8849941-bfa1-4c62-a3d6-4a316072ac9f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateurlspecialchars06559382df0bea09d84390/hello/world", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BAFCA44F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d00e2f-501e-00c0-6dfc-59ba32000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:09 GMT", + "x-ms-client-request-id" : "74bd1854-3ff7-4d4b-bb38-53902ce6bb37" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateurlspecialchars06559382df0bea09d84390/hello/world", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "x-ms-blob-committed-block-count" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:10 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:49:09 GMT", + "x-ms-blob-type" : "AppendBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72813BAFCA44F\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:49:10 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "77d00e56-501e-00c0-12fc-59ba32000000", + "x-ms-client-request-id" : "c7b199a0-d4f5-4b39-bd38-043e5c896360", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateurlspecialchars06559382df0bea09d84390/hello/world2", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BB0643A8\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d00e81-501e-00c0-39fc-59ba32000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:09 GMT", + "x-ms-client-request-id" : "022c37be-2a97-4398-abf4-adc3c9c4456d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateurlspecialchars06559382df0bea09d84390/hello/world3", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:10 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:09 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72813BB0DBF87\"", + "Content-Length" : "0", + "x-ms-request-id" : "77d00eb8-501e-00c0-6cfc-59ba32000000", + "x-ms-client-request-id" : "76445507-2d54-4736-bac5-010fd3e0bfc8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateurlspecialchars06559382df0bea09d84390?include=&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d00edc-501e-00c0-0dfc-59ba32000000", + "Body" : "hello/worldFri, 23 Aug 2019 21:49:10 GMTFri, 23 Aug 2019 21:49:10 GMT0x8D72813BAFCA44F0application/octet-streamAppendBlobHottrueunlockedavailabletrue0hello/world2Fri, 23 Aug 2019 21:49:10 GMTFri, 23 Aug 2019 21:49:10 GMT0x8D72813BB0643A8512application/octet-stream0PageBlobHottrueunlockedavailabletrue0hello/world3Fri, 23 Aug 2019 21:49:10 GMTFri, 23 Aug 2019 21:49:10 GMT0x8D72813BB0DBF877application/octet-stream6RYQPwaVsyQ=wh+Wm18D0z1D4E+PE252gg==BlockBlobHottrueunlockedavailabletrue0", + "Date" : "Fri, 23 Aug 2019 21:49:09 GMT", + "x-ms-client-request-id" : "a07ce8a6-6d06-41bb-baf2-51f785436901", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccreateurlspecialchars&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d00f05-501e-00c0-33fc-59ba32000000", + "Body" : "jtccreateurlspecialcharsjtccreateurlspecialchars06559382df0bea09d84390Fri, 23 Aug 2019 21:49:10 GMT\"0x8D72813BAF77753\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:09 GMT", + "x-ms-client-request-id" : "eb8719f6-d87e-495c-9f2c-f00a06aebdec", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateurlspecialchars06559382df0bea09d84390?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d00f21-501e-00c0-4efc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:09 GMT", + "x-ms-client-request-id" : "9b88922e-2dfc-4b39-96b5-d9e4dd8c3cda" + }, + "Exception" : null + } ], + "variables" : [ "jtccreateurlspecialchars06559382df0bea09d84390" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestcreateurlspecialchars[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestcreateurlspecialchars[2].json new file mode 100644 index 0000000000000..a324be473185c --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestcreateurlspecialchars[2].json @@ -0,0 +1,179 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateurlspecialchars069694b13353bbb7664a63?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BB25E5A1\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d00f49-501e-00c0-73fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:09 GMT", + "x-ms-client-request-id" : "38be1e6c-0d3b-49e4-8b8d-9dd77561e398" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateurlspecialchars069694b13353bbb7664a63/hello&world", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BB2B12B2\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d00f6f-501e-00c0-15fc-59ba32000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:09 GMT", + "x-ms-client-request-id" : "5cbc765e-7757-4904-a98a-d62729ceb33c" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateurlspecialchars069694b13353bbb7664a63/hello&world", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "x-ms-blob-committed-block-count" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:10 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:49:09 GMT", + "x-ms-blob-type" : "AppendBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72813BB2B12B2\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:49:10 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "77d00f8c-501e-00c0-30fc-59ba32000000", + "x-ms-client-request-id" : "3785f90a-fee8-429f-831a-3a3aff5bd168", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateurlspecialchars069694b13353bbb7664a63/hello&world2", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BB343CB6\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d00fa4-501e-00c0-47fc-59ba32000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:10 GMT", + "x-ms-client-request-id" : "45e885a1-7761-4c1a-9536-e7121ae3a24b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateurlspecialchars069694b13353bbb7664a63/hello&world3", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:10 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:10 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72813BB396E18\"", + "Content-Length" : "0", + "x-ms-request-id" : "77d00fc8-501e-00c0-67fc-59ba32000000", + "x-ms-client-request-id" : "cab5d69d-cd2d-4886-82ef-bcb547010f70" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateurlspecialchars069694b13353bbb7664a63?include=&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d01003-501e-00c0-1dfc-59ba32000000", + "Body" : "hello&worldFri, 23 Aug 2019 21:49:10 GMTFri, 23 Aug 2019 21:49:10 GMT0x8D72813BB2B12B20application/octet-streamAppendBlobHottrueunlockedavailabletrue0hello&world2Fri, 23 Aug 2019 21:49:10 GMTFri, 23 Aug 2019 21:49:10 GMT0x8D72813BB343CB6512application/octet-stream0PageBlobHottrueunlockedavailabletrue0hello&world3Fri, 23 Aug 2019 21:49:10 GMTFri, 23 Aug 2019 21:49:10 GMT0x8D72813BB396E187application/octet-stream6RYQPwaVsyQ=wh+Wm18D0z1D4E+PE252gg==BlockBlobHottrueunlockedavailabletrue0", + "Date" : "Fri, 23 Aug 2019 21:49:10 GMT", + "x-ms-client-request-id" : "4ffc6a02-44b0-4286-915a-9c25e6f9a9f4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccreateurlspecialchars&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d01033-501e-00c0-49fc-59ba32000000", + "Body" : "jtccreateurlspecialcharsjtccreateurlspecialchars069694b13353bbb7664a63Fri, 23 Aug 2019 21:49:10 GMT\"0x8D72813BB25E5A1\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:10 GMT", + "x-ms-client-request-id" : "df8fab28-5c8d-418a-8cdb-5917c8b5683b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateurlspecialchars069694b13353bbb7664a63?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d01062-501e-00c0-75fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:10 GMT", + "x-ms-client-request-id" : "c2cde942-ec1f-4ebb-b3e1-87fa4c67252d" + }, + "Exception" : null + } ], + "variables" : [ "jtccreateurlspecialchars069694b13353bbb7664a63" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestdelete.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestdelete.json new file mode 100644 index 0000000000000..372396e573f4e --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestdelete.json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdelete0containerapitestdeleted2e05811ba8fe4b506a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813412D6EB9\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1deceed-001e-00f1-0dfc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:45 GMT", + "x-ms-client-request-id" : "33285539-4487-491d-a3fc-a354f8afa7a9" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdelete0containerapitestdeleted2e05811ba8fe4b506a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1decf15-001e-00f1-33fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:45 GMT", + "x-ms-client-request-id" : "0eb218ac-e54d-4b52-a816-c162ea4278a2" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcdelete&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1decf3e-001e-00f1-59fc-59e1e5000000", + "Body" : "jtcdelete", + "Date" : "Fri, 23 Aug 2019 21:45:45 GMT", + "x-ms-client-request-id" : "2aeed1db-586f-4da4-8601-8b5e4f92ec4c", + "Content-Type" : "application/xml" + }, + "Exception" : null + } ], + "variables" : [ "jtcdelete0containerapitestdeleted2e05811ba8fe4b506a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestdeleteac[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestdeleteac[0].json new file mode 100644 index 0000000000000..f93e9cdacfe44 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestdeleteac[0].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteac0containerapitestdeleteacc937620660b33182f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813414CBE3D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1ded043-001e-00f1-48fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:45 GMT", + "x-ms-client-request-id" : "83931370-7def-4033-a97f-664f391858d1" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteac0containerapitestdeleteacc937620660b33182f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1ded07a-001e-00f1-79fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:45 GMT", + "x-ms-client-request-id" : "938370c6-6e83-442c-b204-001d52249961" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcdeleteac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1ded0ad-001e-00f1-26fc-59e1e5000000", + "Body" : "jtcdeleteac", + "Date" : "Fri, 23 Aug 2019 21:45:45 GMT", + "x-ms-client-request-id" : "7f85e7c9-0314-4b72-adf7-faa997be57ac", + "Content-Type" : "application/xml" + }, + "Exception" : null + } ], + "variables" : [ "jtcdeleteac0containerapitestdeleteacc937620660b33182f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestdeleteac[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestdeleteac[1].json new file mode 100644 index 0000000000000..7adbe93b9ad9b --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestdeleteac[1].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteac0containerapitestdeleteac9a635709c44655d14?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813415D6422\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1ded0fd-001e-00f1-71fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:45 GMT", + "x-ms-client-request-id" : "1201a5a0-47ea-4dbb-a413-34e0396ab60d" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteac0containerapitestdeleteac9a635709c44655d14?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1ded13e-001e-00f1-2afc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:45 GMT", + "x-ms-client-request-id" : "07c737c0-9b4a-4996-b732-7526e8c9b8fa" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcdeleteac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1ded163-001e-00f1-4efc-59e1e5000000", + "Body" : "jtcdeleteac", + "Date" : "Fri, 23 Aug 2019 21:45:45 GMT", + "x-ms-client-request-id" : "afd6bc74-a714-4496-bb2e-ff6f61c5a697", + "Content-Type" : "application/xml" + }, + "Exception" : null + } ], + "variables" : [ "jtcdeleteac0containerapitestdeleteac9a635709c44655d14" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestdeleteac[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestdeleteac[2].json new file mode 100644 index 0000000000000..f9854cf694372 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestdeleteac[2].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteac0containerapitestdeleteacfcb393878f0b50624?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813416C830B\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1ded1a8-001e-00f1-0efc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:45 GMT", + "x-ms-client-request-id" : "a0f67633-b0e9-4e53-b71a-d9a57380ec4e" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteac0containerapitestdeleteacfcb393878f0b50624?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1ded208-001e-00f1-6bfc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:45 GMT", + "x-ms-client-request-id" : "d091be03-1274-465b-97bf-4e577fb054f3" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcdeleteac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1ded23e-001e-00f1-1cfc-59e1e5000000", + "Body" : "jtcdeleteac", + "Date" : "Fri, 23 Aug 2019 21:45:45 GMT", + "x-ms-client-request-id" : "c628aa2c-7e21-47f1-8caa-07d56d62d32d", + "Content-Type" : "application/xml" + }, + "Exception" : null + } ], + "variables" : [ "jtcdeleteac0containerapitestdeleteacfcb393878f0b50624" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestdeleteac[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestdeleteac[3].json new file mode 100644 index 0000000000000..343040f9f8183 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestdeleteac[3].json @@ -0,0 +1,83 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteac0containerapitestdeleteac8d3499457bd942f71?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813417CB3AA\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1ded27c-001e-00f1-5afc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:45 GMT", + "x-ms-client-request-id" : "1fda2f24-1a83-4a45-b947-b22366592197" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteac0containerapitestdeleteac8d3499457bd942f71?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813417CB3AA\"", + "x-ms-lease-id" : "332c2712-912b-4126-a5aa-8d5965a56143", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1ded2b7-001e-00f1-11fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:45 GMT", + "x-ms-client-request-id" : "21f47a40-c5dd-43ea-8386-76feb24a131a" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteac0containerapitestdeleteac8d3499457bd942f71?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1ded2eb-001e-00f1-43fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:45 GMT", + "x-ms-client-request-id" : "8ae10602-48b3-4c29-83e8-fb46ed0ca386" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcdeleteac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1ded328-001e-00f1-7efc-59e1e5000000", + "Body" : "jtcdeleteac", + "Date" : "Fri, 23 Aug 2019 21:45:45 GMT", + "x-ms-client-request-id" : "068f7baf-e663-400c-b1dd-f9cc227e898a", + "Content-Type" : "application/xml" + }, + "Exception" : null + } ], + "variables" : [ "jtcdeleteac0containerapitestdeleteac8d3499457bd942f71" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestdeleteacfail[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestdeleteacfail[0].json new file mode 100644 index 0000000000000..8007d00640bc4 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestdeleteacfail[0].json @@ -0,0 +1,83 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteacfail0containerapitestdeleteacfail01f08110cf0b7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281341908EB0\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1ded365-001e-00f1-38fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:45 GMT", + "x-ms-client-request-id" : "178b2468-89fc-4f1a-a03a-6bdcb64aad0f" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteacfail0containerapitestdeleteacfail01f08110cf0b7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "b1ded39b-001e-00f1-69fc-59e1e5000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:b1ded39b-001e-00f1-69fc-59e1e5000000\nTime:2019-08-23T21:45:46.6027249Z", + "Date" : "Fri, 23 Aug 2019 21:45:45 GMT", + "x-ms-client-request-id" : "e5e85ce3-4728-423e-ba18-ac5099280dd6", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcdeleteacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1ded3de-001e-00f1-29fc-59e1e5000000", + "Body" : "jtcdeleteacfailjtcdeleteacfail0containerapitestdeleteacfail01f08110cf0b7Fri, 23 Aug 2019 21:45:46 GMT\"0x8D7281341908EB0\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:46 GMT", + "x-ms-client-request-id" : "a6432200-eef7-49d4-b51a-f4005b811b92", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteacfail0containerapitestdeleteacfail01f08110cf0b7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1ded41a-001e-00f1-62fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:46 GMT", + "x-ms-client-request-id" : "4671c51b-1e9f-456e-87db-e779961f4a59" + }, + "Exception" : null + } ], + "variables" : [ "jtcdeleteacfail0containerapitestdeleteacfail01f08110cf0b7" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestdeleteacfail[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestdeleteacfail[1].json new file mode 100644 index 0000000000000..87401e41f2dad --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestdeleteacfail[1].json @@ -0,0 +1,83 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteacfail0containerapitestdeleteacfailcc98550151fd5?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281341A57B5D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1ded46b-001e-00f1-32fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:46 GMT", + "x-ms-client-request-id" : "6739416a-abbf-4b54-bdee-980a9d88b1d5" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteacfail0containerapitestdeleteacfailcc98550151fd5?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "b1ded4aa-001e-00f1-6bfc-59e1e5000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:b1ded4aa-001e-00f1-6bfc-59e1e5000000\nTime:2019-08-23T21:45:46.7438606Z", + "Date" : "Fri, 23 Aug 2019 21:45:46 GMT", + "x-ms-client-request-id" : "9fb57ab9-89c3-4e18-b709-f8431032df9d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcdeleteacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1ded4da-001e-00f1-1afc-59e1e5000000", + "Body" : "jtcdeleteacfailjtcdeleteacfail0containerapitestdeleteacfailcc98550151fd5Fri, 23 Aug 2019 21:45:46 GMT\"0x8D7281341A57B5D\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:46 GMT", + "x-ms-client-request-id" : "f338c4d0-4b0f-4939-b292-443613d84fa4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteacfail0containerapitestdeleteacfailcc98550151fd5?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1ded511-001e-00f1-4cfc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:46 GMT", + "x-ms-client-request-id" : "866de455-6a8c-4f1e-8882-6019ca3fb26b" + }, + "Exception" : null + } ], + "variables" : [ "jtcdeleteacfail0containerapitestdeleteacfailcc98550151fd5" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestdeleteacfail[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestdeleteacfail[2].json new file mode 100644 index 0000000000000..eda565753b7e6 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestdeleteacfail[2].json @@ -0,0 +1,83 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteacfail0containerapitestdeleteacfail94b587862ca0c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281341B90826\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1ded554-001e-00f1-0efc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:46 GMT", + "x-ms-client-request-id" : "2b0091c7-c881-45ac-94c0-5ea9b417bf56" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteacfail0containerapitestdeleteacfail94b587862ca0c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "LeaseNotPresentWithContainerOperation", + "retry-after" : "0", + "Content-Length" : "251", + "StatusCode" : "412", + "x-ms-request-id" : "b1ded584-001e-00f1-3bfc-59e1e5000000", + "Body" : "LeaseNotPresentWithContainerOperationThere is currently no lease on the container.\nRequestId:b1ded584-001e-00f1-3bfc-59e1e5000000\nTime:2019-08-23T21:45:46.8689809Z", + "Date" : "Fri, 23 Aug 2019 21:45:46 GMT", + "x-ms-client-request-id" : "1c625dda-7a45-405f-8cf9-ca7428c74b14", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcdeleteacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1ded5ac-001e-00f1-61fc-59e1e5000000", + "Body" : "jtcdeleteacfailjtcdeleteacfail0containerapitestdeleteacfail94b587862ca0cFri, 23 Aug 2019 21:45:46 GMT\"0x8D7281341B90826\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:46 GMT", + "x-ms-client-request-id" : "c527fb4f-c444-4e88-b536-0d124084aea8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteacfail0containerapitestdeleteacfail94b587862ca0c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1ded5dc-001e-00f1-0dfc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:46 GMT", + "x-ms-client-request-id" : "46d156ed-96e1-4b3f-b652-9105b6cdf236" + }, + "Exception" : null + } ], + "variables" : [ "jtcdeleteacfail0containerapitestdeleteacfail94b587862ca0c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestdeleteacillegal[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestdeleteacillegal[0].json new file mode 100644 index 0000000000000..5039acf1e7a7f --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestdeleteacillegal[0].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteacillegal0containerapitestdeleteacillegal93b5948474?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281341CDA6A9\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1ded622-001e-00f1-4efc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:46 GMT", + "x-ms-client-request-id" : "27d0df23-c0ad-4b66-8d8c-eb64d8f6b1f8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcdeleteacillegal&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1ded669-001e-00f1-0dfc-59e1e5000000", + "Body" : "jtcdeleteacillegaljtcdeleteacillegal0containerapitestdeleteacillegal93b5948474Fri, 23 Aug 2019 21:45:46 GMT\"0x8D7281341CDA6A9\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:46 GMT", + "x-ms-client-request-id" : "d6e69e60-7e16-45ea-9d88-095c021219ca", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteacillegal0containerapitestdeleteacillegal93b5948474?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1ded68a-001e-00f1-2cfc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:46 GMT", + "x-ms-client-request-id" : "fe32924c-1c57-4096-b33a-12e15d743e41" + }, + "Exception" : null + } ], + "variables" : [ "jtcdeleteacillegal0containerapitestdeleteacillegal93b5948474" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestdeleteacillegal[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestdeleteacillegal[1].json new file mode 100644 index 0000000000000..2d31af82e1721 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestdeleteacillegal[1].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteacillegal0containerapitestdeleteacillegalfc903527c0?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281341DDFE5B\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:47 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1ded6f7-001e-00f1-12fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:46 GMT", + "x-ms-client-request-id" : "8c3f51c6-5a2e-4cc8-83d7-94195c988148" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcdeleteacillegal&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1ded744-001e-00f1-59fc-59e1e5000000", + "Body" : "jtcdeleteacillegaljtcdeleteacillegal0containerapitestdeleteacillegalfc903527c0Fri, 23 Aug 2019 21:45:47 GMT\"0x8D7281341DDFE5B\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:46 GMT", + "x-ms-client-request-id" : "236064c9-bd4e-4a3a-9f24-997fd8ce0d1e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteacillegal0containerapitestdeleteacillegalfc903527c0?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1ded77c-001e-00f1-0cfc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:46 GMT", + "x-ms-client-request-id" : "ed8232fc-9e6a-4407-b858-e5c442976794" + }, + "Exception" : null + } ], + "variables" : [ "jtcdeleteacillegal0containerapitestdeleteacillegalfc903527c0" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestdeleteerror.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestdeleteerror.json new file mode 100644 index 0000000000000..78241d615c912 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestdeleteerror.json @@ -0,0 +1,83 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteerror0containerapitestdeleteerror85e91912a903ad?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281341EDB9B4\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:47 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1ded7d3-001e-00f1-5ffc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:46 GMT", + "x-ms-client-request-id" : "1240e656-8358-4f97-9c9a-3ae0690d82bf" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteerror1containerapitestdeleteerror85e878055752f1?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ContainerNotFound", + "retry-after" : "0", + "Content-Length" : "225", + "StatusCode" : "404", + "x-ms-request-id" : "b1ded824-001e-00f1-27fc-59e1e5000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:b1ded824-001e-00f1-27fc-59e1e5000000\nTime:2019-08-23T21:45:47.2133114Z", + "Date" : "Fri, 23 Aug 2019 21:45:46 GMT", + "x-ms-client-request-id" : "47b16528-6170-484c-9eea-fb24f0177fa4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcdeleteerror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1ded864-001e-00f1-65fc-59e1e5000000", + "Body" : "jtcdeleteerrorjtcdeleteerror0containerapitestdeleteerror85e91912a903adFri, 23 Aug 2019 21:45:47 GMT\"0x8D7281341EDB9B4\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:46 GMT", + "x-ms-client-request-id" : "4ee56972-a51c-4ace-bb9c-808a37d7869b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeleteerror0containerapitestdeleteerror85e91912a903ad?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1ded897-001e-00f1-15fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:46 GMT", + "x-ms-client-request-id" : "af22789d-1b14-48a8-8ea2-3ff6dfc1fc00" + }, + "Exception" : null + } ], + "variables" : [ "jtcdeleteerror0containerapitestdeleteerror85e91912a903ad", "jtcdeleteerror1containerapitestdeleteerror85e878055752f1" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestdeletemin.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestdeletemin.json new file mode 100644 index 0000000000000..d0c808e516950 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestdeletemin.json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeletemin0containerapitestdeletemin73e0848436e97006?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813413CDBD6\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1decf73-001e-00f1-0afc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:45 GMT", + "x-ms-client-request-id" : "225b3d67-48f6-4c9a-8787-4d0a891e980c" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcdeletemin0containerapitestdeletemin73e0848436e97006?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1decfaa-001e-00f1-3dfc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:45 GMT", + "x-ms-client-request-id" : "b8198c4b-9d1b-4d20-a645-c968538607d7" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcdeletemin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1decff4-001e-00f1-03fc-59e1e5000000", + "Body" : "jtcdeletemin", + "Date" : "Fri, 23 Aug 2019 21:45:45 GMT", + "x-ms-client-request-id" : "7178ed9e-6b5a-475a-8e55-c3ecee3ce232", + "Content-Type" : "application/xml" + }, + "Exception" : null + } ], + "variables" : [ "jtcdeletemin0containerapitestdeletemin73e0848436e97006" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestgetaccesspolicy.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestgetaccesspolicy.json new file mode 100644 index 0000000000000..e9b47280a3ea8 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestgetaccesspolicy.json @@ -0,0 +1,106 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetaccesspolicy0containerapitestgetaccesspolicy5ff8328084?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281340D2671C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1decb01-001e-00f1-6dfc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:44 GMT", + "x-ms-client-request-id" : "4ef4e813-9e92-4200-9338-4247cb8abe75" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetaccesspolicy0containerapitestgetaccesspolicy5ff8328084?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281340D720A4\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1decb3d-001e-00f1-23fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:44 GMT", + "x-ms-client-request-id" : "368bf916-b5cc-4a97-80c3-1c2b21626e8f" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetaccesspolicy0containerapitestgetaccesspolicy5ff8328084?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:45 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:45:44 GMT", + "ETag" : "\"0x8D7281340D720A4\"", + "x-ms-blob-public-access" : "blob", + "x-ms-request-id" : "b1decb6e-001e-00f1-51fc-59e1e5000000", + "Body" : "00002019-08-23T21:45:45.0000000Z2019-08-24T21:45:45.0000000Zr", + "x-ms-client-request-id" : "05ba0fb5-5a65-4754-95ad-95f0f2e0b146", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetaccesspolicy&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1decb9c-001e-00f1-7dfc-59e1e5000000", + "Body" : "jtcgetaccesspolicyjtcgetaccesspolicy0containerapitestgetaccesspolicy5ff8328084Fri, 23 Aug 2019 21:45:45 GMT\"0x8D7281340D720A4\"unlockedavailableblob$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:44 GMT", + "x-ms-client-request-id" : "24f76748-9232-4dfd-862c-2294d48f3fb6", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetaccesspolicy0containerapitestgetaccesspolicy5ff8328084?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1decbbd-001e-00f1-1dfc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:44 GMT", + "x-ms-client-request-id" : "808644d8-ac6b-4613-84ba-42b8ac0b4d86" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetaccesspolicy0containerapitestgetaccesspolicy5ff8328084", "2019-08-23T21:45:45.374Z", "2019-08-23T21:45:45.374Z" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestgetaccesspolicyerror.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestgetaccesspolicyerror.json new file mode 100644 index 0000000000000..9ffc827190c0c --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestgetaccesspolicyerror.json @@ -0,0 +1,83 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetaccesspolicyerror0773019d63ad9e78494d63b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813411A3024\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1dece33-001e-00f1-5ffc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:45 GMT", + "x-ms-client-request-id" : "0769e083-392b-40b9-b03e-1507203620ae" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetaccesspolicyerror1339977390cc49fe8548718?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ContainerNotFound", + "retry-after" : "0", + "Content-Length" : "225", + "StatusCode" : "404", + "x-ms-request-id" : "b1dece67-001e-00f1-0bfc-59e1e5000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:b1dece67-001e-00f1-0bfc-59e1e5000000\nTime:2019-08-23T21:45:45.8259804Z", + "Date" : "Fri, 23 Aug 2019 21:45:45 GMT", + "x-ms-client-request-id" : "4849311c-fbaf-4ceb-8609-7922cacae12e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetaccesspolicyerror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1dece84-001e-00f1-26fc-59e1e5000000", + "Body" : "jtcgetaccesspolicyerrorjtcgetaccesspolicyerror0773019d63ad9e78494d63bFri, 23 Aug 2019 21:45:45 GMT\"0x8D72813411A3024\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:45 GMT", + "x-ms-client-request-id" : "bcefa02b-f0ea-45dd-a743-895397cc591a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetaccesspolicyerror0773019d63ad9e78494d63b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1decea2-001e-00f1-44fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:45 GMT", + "x-ms-client-request-id" : "acd41a4e-d4d9-441d-af52-be86c9acf438" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetaccesspolicyerror0773019d63ad9e78494d63b", "jtcgetaccesspolicyerror1339977390cc49fe8548718" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestgetaccesspolicylease.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestgetaccesspolicylease.json new file mode 100644 index 0000000000000..f41dc42651502 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestgetaccesspolicylease.json @@ -0,0 +1,126 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetaccesspolicylease0332482c5408ece2f944b5a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281340E92905\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1decc04-001e-00f1-5efc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:44 GMT", + "x-ms-client-request-id" : "15d2f01c-ae94-434e-97c2-ad26d5cc586a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetaccesspolicylease0332482c5408ece2f944b5a?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281340E92905\"", + "x-ms-lease-id" : "b6088bcb-81f2-4d70-98a3-8b800a8f1613", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1decc47-001e-00f1-1dfc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:44 GMT", + "x-ms-client-request-id" : "1a0016d6-2ace-4d15-b046-d1dbc1138be9" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetaccesspolicylease0332482c5408ece2f944b5a?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281340E92905\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:45 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1decc73-001e-00f1-49fc-59e1e5000000", + "Body" : "", + "Date" : "Fri, 23 Aug 2019 21:45:44 GMT", + "x-ms-client-request-id" : "80971a75-fe5e-4bff-81bd-8219450fdec7", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetaccesspolicylease&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1decca8-001e-00f1-7cfc-59e1e5000000", + "Body" : "jtcgetaccesspolicyleasejtcgetaccesspolicylease0332482c5408ece2f944b5aFri, 23 Aug 2019 21:45:45 GMT\"0x8D7281340E92905\"lockedleasedinfinite$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:44 GMT", + "x-ms-client-request-id" : "f6d20796-60b0-4a20-9ae0-202a2dda7b70", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetaccesspolicylease0332482c5408ece2f944b5a?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281340E92905\"", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1deccda-001e-00f1-2bfc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:44 GMT", + "x-ms-client-request-id" : "97290437-b88c-4b8c-aad4-fa562f52dd07" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetaccesspolicylease0332482c5408ece2f944b5a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1decd0d-001e-00f1-5dfc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:45 GMT", + "x-ms-client-request-id" : "125ee3cc-9f38-4917-b17a-cf508e24e6fb" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetaccesspolicylease0332482c5408ece2f944b5a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestgetaccesspolicyleasefail.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestgetaccesspolicyleasefail.json new file mode 100644 index 0000000000000..c3f8f25942484 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestgetaccesspolicyleasefail.json @@ -0,0 +1,83 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetaccesspolicyleasefail087228107d14ef5e904bd?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728134106F184\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1decd63-001e-00f1-2cfc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:45 GMT", + "x-ms-client-request-id" : "195b382e-6ec1-428d-8553-29b82811a671" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetaccesspolicyleasefail087228107d14ef5e904bd?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "LeaseNotPresentWithContainerOperation", + "retry-after" : "0", + "Content-Length" : "251", + "StatusCode" : "412", + "x-ms-request-id" : "b1decd9b-001e-00f1-5efc-59e1e5000000", + "Body" : "LeaseNotPresentWithContainerOperationThere is currently no lease on the container.\nRequestId:b1decd9b-001e-00f1-5efc-59e1e5000000\nTime:2019-08-23T21:45:45.6988586Z", + "Date" : "Fri, 23 Aug 2019 21:45:45 GMT", + "x-ms-client-request-id" : "99579746-0fe8-4eb2-bbb5-b79f4c1510d2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetaccesspolicyleasefail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1decdc7-001e-00f1-03fc-59e1e5000000", + "Body" : "jtcgetaccesspolicyleasefailjtcgetaccesspolicyleasefail087228107d14ef5e904bdFri, 23 Aug 2019 21:45:45 GMT\"0x8D728134106F184\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:45 GMT", + "x-ms-client-request-id" : "c2b529db-c945-4ac8-8aad-142c75a4b624", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetaccesspolicyleasefail087228107d14ef5e904bd?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1decdea-001e-00f1-23fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:45 GMT", + "x-ms-client-request-id" : "ef815a79-7050-4e85-84fd-4e7befd2611b" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetaccesspolicyleasefail087228107d14ef5e904bd" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestgetaccountinfo.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestgetaccountinfo.json new file mode 100644 index 0000000000000..c43b69aeea845 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestgetaccountinfo.json @@ -0,0 +1,82 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetaccountinfo0containerapitestgetaccountinfo68135841f94?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BBC867B8\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d01466-501e-00c0-73fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:10 GMT", + "x-ms-client-request-id" : "04a03f7c-df14-4414-9c65-85f8671baa32" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=account&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-account-kind" : "StorageV2", + "retry-after" : "0", + "Content-Length" : "0", + "x-ms-sku-name" : "Standard_RAGRS", + "StatusCode" : "200", + "x-ms-request-id" : "77d01493-501e-00c0-18fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:11 GMT", + "x-ms-client-request-id" : "5aaf3d8a-efbc-451f-9368-b89d4a4cd0e4" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetaccountinfo&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d014b6-501e-00c0-37fc-59ba32000000", + "Body" : "jtcgetaccountinfojtcgetaccountinfo0containerapitestgetaccountinfo68135841f94Fri, 23 Aug 2019 21:49:11 GMT\"0x8D72813BBC867B8\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:11 GMT", + "x-ms-client-request-id" : "bea50bf6-ea5f-41a0-a56d-f1f8a027b4e4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetaccountinfo0containerapitestgetaccountinfo68135841f94?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d014e8-501e-00c0-68fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:11 GMT", + "x-ms-client-request-id" : "74331d71-415b-44fb-af5f-e1fd27e359e3" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetaccountinfo0containerapitestgetaccountinfo68135841f94" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestgetaccountinfoerror.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestgetaccountinfoerror.json new file mode 100644 index 0000000000000..46f8cce3a974d --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestgetaccountinfoerror.json @@ -0,0 +1,83 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetaccountinfoerror084383442b6eb994ca434c8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BBF01DAD\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d015ba-501e-00c0-24fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:11 GMT", + "x-ms-client-request-id" : "90d4178d-fa0b-475e-892b-d31e58e4d1c6" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetaccountinfoerror14707915f4595eb94d4f5eb?restype=account&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ResourceNotFound", + "retry-after" : "0", + "Content-Length" : "223", + "StatusCode" : "404", + "x-ms-request-id" : "77d015f2-501e-00c0-51fc-59ba32000000", + "Body" : "ResourceNotFoundThe specified resource does not exist.\nRequestId:77d015f2-501e-00c0-51fc-59ba32000000\nTime:2019-08-23T21:49:11.9070096Z", + "Date" : "Fri, 23 Aug 2019 21:49:11 GMT", + "x-ms-client-request-id" : "4f600643-ab31-4d6a-8402-327dc647f002", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetaccountinfoerror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d01610-501e-00c0-6cfc-59ba32000000", + "Body" : "jtcgetaccountinfoerrorjtcgetaccountinfoerror084383442b6eb994ca434c8Fri, 23 Aug 2019 21:49:11 GMT\"0x8D72813BBF01DAD\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:11 GMT", + "x-ms-client-request-id" : "25e0380d-b0f9-4813-8bc6-d1cfc2929746", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetaccountinfoerror084383442b6eb994ca434c8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d01631-501e-00c0-0afc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:11 GMT", + "x-ms-client-request-id" : "5128b13a-3356-4abb-8e80-7f45d301351f" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetaccountinfoerror084383442b6eb994ca434c8", "jtcgetaccountinfoerror14707915f4595eb94d4f5eb" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestgetaccountinfomin.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestgetaccountinfomin.json new file mode 100644 index 0000000000000..37ff1facb4e6a --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestgetaccountinfomin.json @@ -0,0 +1,82 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetaccountinfomin0containerapitestgetaccountinfominc5624299?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BBDE3EFA\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d01524-501e-00c0-21fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:11 GMT", + "x-ms-client-request-id" : "86b8f417-2b01-459d-b82d-8456a2c87758" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=account&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-account-kind" : "StorageV2", + "retry-after" : "0", + "Content-Length" : "0", + "x-ms-sku-name" : "Standard_RAGRS", + "StatusCode" : "200", + "x-ms-request-id" : "77d0154d-501e-00c0-44fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:11 GMT", + "x-ms-client-request-id" : "b0f69851-8afe-491f-b59b-7536f1a5bce3" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetaccountinfomin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d01566-501e-00c0-59fc-59ba32000000", + "Body" : "jtcgetaccountinfominjtcgetaccountinfomin0containerapitestgetaccountinfominc5624299Fri, 23 Aug 2019 21:49:11 GMT\"0x8D72813BBDE3EFA\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:11 GMT", + "x-ms-client-request-id" : "655e732a-b41e-4db3-8b63-892eb539eca4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetaccountinfomin0containerapitestgetaccountinfominc5624299?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d0158e-501e-00c0-7cfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:11 GMT", + "x-ms-client-request-id" : "0871ea44-4b97-4809-b8eb-2e989b70aa02" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetaccountinfomin0containerapitestgetaccountinfominc5624299" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestgetpropertieserror.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestgetpropertieserror.json new file mode 100644 index 0000000000000..109c890211513 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestgetpropertieserror.json @@ -0,0 +1,83 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertieserror004414fb6fed5c1cec4305aa?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133E2143C9\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1deaa3f-001e-00f1-3dfc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:40 GMT", + "x-ms-client-request-id" : "2b3ba3ef-3449-4c27-bd5e-1105ef6e746b" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertieserror1075274f153dc863b54059bd?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ContainerNotFound", + "retry-after" : "0", + "Content-Length" : "225", + "StatusCode" : "404", + "x-ms-request-id" : "b1deaa78-001e-00f1-6dfc-59e1e5000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:b1deaa78-001e-00f1-6dfc-59e1e5000000\nTime:2019-08-23T21:45:40.8381930Z", + "Date" : "Fri, 23 Aug 2019 21:45:40 GMT", + "x-ms-client-request-id" : "0bccbc14-6f2f-495c-a652-51413975fc23", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetpropertieserror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1deaab8-001e-00f1-1afc-59e1e5000000", + "Body" : "jtcgetpropertieserrorjtcgetpropertieserror004414fb6fed5c1cec4305aaFri, 23 Aug 2019 21:45:40 GMT\"0x8D728133E2143C9\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:40 GMT", + "x-ms-client-request-id" : "7e822e27-5d97-4f93-ab10-8be52e02ab3b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertieserror004414fb6fed5c1cec4305aa?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1deaae9-001e-00f1-44fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:40 GMT", + "x-ms-client-request-id" : "e0ff18b0-fdce-4e34-b818-0f5a96d2ad6a" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetpropertieserror004414fb6fed5c1cec4305aa", "jtcgetpropertieserror1075274f153dc863b54059bd" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestgetpropertieslease.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestgetpropertieslease.json new file mode 100644 index 0000000000000..17586c9948128 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestgetpropertieslease.json @@ -0,0 +1,131 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertieslease090373dcf18032036c4e4f9f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133DEC6B36\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1dea813-001e-00f1-32fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:39 GMT", + "x-ms-client-request-id" : "a52e8e1f-042f-403d-8858-4b3855a4e571" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertieslease090373dcf18032036c4e4f9f?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133DEC6B36\"", + "x-ms-lease-id" : "332a9646-06ed-4244-a91b-cb7aef9dda98", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1dea855-001e-00f1-6ffc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:39 GMT", + "x-ms-client-request-id" : "a2e74263-52ee-4546-b4a7-857824820234" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertieslease090373dcf18032036c4e4f9f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "locked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "leased", + "x-ms-deny-encryption-scope-override" : "false", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:40 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:45:39 GMT", + "x-ms-has-legal-hold" : "false", + "x-ms-default-encryption-scope" : "$account-encryption-key", + "ETag" : "\"0x8D728133DEC6B36\"", + "x-ms-has-immutability-policy" : "false", + "x-ms-lease-duration" : "infinite", + "Content-Length" : "0", + "x-ms-request-id" : "b1dea884-001e-00f1-1cfc-59e1e5000000", + "x-ms-client-request-id" : "e93fbd73-b084-42b4-8652-2db378a52792" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetpropertieslease&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1dea8b7-001e-00f1-4afc-59e1e5000000", + "Body" : "jtcgetpropertiesleasejtcgetpropertieslease090373dcf18032036c4e4f9fFri, 23 Aug 2019 21:45:40 GMT\"0x8D728133DEC6B36\"lockedleasedinfinite$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:39 GMT", + "x-ms-client-request-id" : "4eda558c-05d3-4284-b6a6-e1a9bf2efac3", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertieslease090373dcf18032036c4e4f9f?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133DEC6B36\"", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1dea8d5-001e-00f1-66fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:39 GMT", + "x-ms-client-request-id" : "b0851861-3439-472c-ba98-adfd1ec99ccb" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertieslease090373dcf18032036c4e4f9f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1dea916-001e-00f1-24fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:40 GMT", + "x-ms-client-request-id" : "5ad10d1f-2618-4da9-8173-7c104de3d9b1" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetpropertieslease090373dcf18032036c4e4f9f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestgetpropertiesleasefail.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestgetpropertiesleasefail.json new file mode 100644 index 0000000000000..d8185175d6300 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestgetpropertiesleasefail.json @@ -0,0 +1,83 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesleasefail070422f50077898324473b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133E09BE6B\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1dea959-001e-00f1-63fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:40 GMT", + "x-ms-client-request-id" : "04e6bb2b-cb0f-4a81-a6b3-d0c7a378bacc" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesleasefail070422f50077898324473b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "InvalidHeaderValue", + "retry-after" : "0", + "Content-Length" : "326", + "StatusCode" : "400", + "x-ms-request-id" : "b1dea990-001e-00f1-16fc-59e1e5000000", + "Body" : "InvalidHeaderValueThe value for one of the HTTP headers is not in the correct format.\nRequestId:b1dea990-001e-00f1-16fc-59e1e5000000\nTime:2019-08-23T21:45:40.6810414Zx-ms-lease-idgarbage", + "Date" : "Fri, 23 Aug 2019 21:45:40 GMT", + "x-ms-client-request-id" : "c90ccd10-dfb4-4a3b-ada2-2d9e0553e05d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetpropertiesleasefail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1dea9ae-001e-00f1-34fc-59e1e5000000", + "Body" : "jtcgetpropertiesleasefailjtcgetpropertiesleasefail070422f50077898324473bFri, 23 Aug 2019 21:45:40 GMT\"0x8D728133E09BE6B\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:40 GMT", + "x-ms-client-request-id" : "242314e7-0d4a-4aae-b1e9-29f71440a23f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesleasefail070422f50077898324473b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1dea9f6-001e-00f1-79fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:40 GMT", + "x-ms-client-request-id" : "9c945168-e159-4256-8b22-c34d3945dfd3" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetpropertiesleasefail070422f50077898324473b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestgetpropertiesmin.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestgetpropertiesmin.json new file mode 100644 index 0000000000000..44ee9cc350586 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestgetpropertiesmin.json @@ -0,0 +1,88 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesmin0containerapitestgetpropertiesmincf0633124?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133DD7304C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1dea717-001e-00f1-48fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:39 GMT", + "x-ms-client-request-id" : "b44391b8-0aa7-4fb7-b4be-070b249bce46" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesmin0containerapitestgetpropertiesmincf0633124?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "x-ms-deny-encryption-scope-override" : "false", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:40 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:45:39 GMT", + "x-ms-has-legal-hold" : "false", + "x-ms-default-encryption-scope" : "$account-encryption-key", + "ETag" : "\"0x8D728133DD7304C\"", + "x-ms-has-immutability-policy" : "false", + "Content-Length" : "0", + "x-ms-request-id" : "b1dea772-001e-00f1-19fc-59e1e5000000", + "x-ms-client-request-id" : "ce4e9436-f9dc-42db-8afa-4d5ed721f248" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetpropertiesmin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1dea7af-001e-00f1-54fc-59e1e5000000", + "Body" : "jtcgetpropertiesminjtcgetpropertiesmin0containerapitestgetpropertiesmincf0633124Fri, 23 Aug 2019 21:45:40 GMT\"0x8D728133DD7304C\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:39 GMT", + "x-ms-client-request-id" : "82895c69-5fc5-4ead-8cdb-d3ec8d53066f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesmin0containerapitestgetpropertiesmincf0633124?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1dea7d9-001e-00f1-7bfc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:39 GMT", + "x-ms-client-request-id" : "37b53ea2-c9ef-476b-91af-78fb4e667d8e" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetpropertiesmin0containerapitestgetpropertiesmincf0633124" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestgetpropertiesnull.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestgetpropertiesnull.json new file mode 100644 index 0000000000000..541c120021458 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestgetpropertiesnull.json @@ -0,0 +1,88 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesnull0containerapitestgetpropertiesnull13742670?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133DC26AA9\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1dea64d-001e-00f1-0cfc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:39 GMT", + "x-ms-client-request-id" : "149559f2-1521-4341-85ea-10596aa58e46" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesnull0containerapitestgetpropertiesnull13742670?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "x-ms-deny-encryption-scope-override" : "false", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:40 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:45:39 GMT", + "x-ms-has-legal-hold" : "false", + "x-ms-default-encryption-scope" : "$account-encryption-key", + "ETag" : "\"0x8D728133DC26AA9\"", + "x-ms-has-immutability-policy" : "false", + "Content-Length" : "0", + "x-ms-request-id" : "b1dea680-001e-00f1-3dfc-59e1e5000000", + "x-ms-client-request-id" : "3e4b529b-b9a9-41b4-bf1c-6621a0aa7407" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetpropertiesnull&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1dea6b7-001e-00f1-6efc-59e1e5000000", + "Body" : "jtcgetpropertiesnulljtcgetpropertiesnull0containerapitestgetpropertiesnull13742670Fri, 23 Aug 2019 21:45:40 GMT\"0x8D728133DC26AA9\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:39 GMT", + "x-ms-client-request-id" : "aff90f21-397a-48ef-a22e-2795f1db41ec", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropertiesnull0containerapitestgetpropertiesnull13742670?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1dea6d6-001e-00f1-0dfc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:39 GMT", + "x-ms-client-request-id" : "f739890e-3996-4ca1-a991-6a00b58c361a" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetpropertiesnull0containerapitestgetpropertiesnull13742670" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobsflat.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobsflat.json new file mode 100644 index 0000000000000..e65f1b3c3de33 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobsflat.json @@ -0,0 +1,103 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflat0containerapitestlistblobsflatad5391376f13?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728134202F495\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:47 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1ded8f5-001e-00f1-69fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:46 GMT", + "x-ms-client-request-id" : "cd554019-68dc-4313-9409-da63d1917ea0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflat0containerapitestlistblobsflatad5391376f13/javabloblistblobsflat1containerapitestlistblobsflatad59616770", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728134207DB88\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:47 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1ded939-001e-00f1-28fc-59e1e5000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:46 GMT", + "x-ms-client-request-id" : "b33036e1-8e13-4a16-a659-a1da7e189f6e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflat0containerapitestlistblobsflatad5391376f13?include=&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1ded974-001e-00f1-5ffc-59e1e5000000", + "Body" : "javabloblistblobsflat1containerapitestlistblobsflatad59616770Fri, 23 Aug 2019 21:45:47 GMTFri, 23 Aug 2019 21:45:47 GMT0x8D728134207DB88512application/octet-stream0PageBlobHottrueunlockedavailabletrue0", + "Date" : "Fri, 23 Aug 2019 21:45:46 GMT", + "x-ms-client-request-id" : "9df43e7b-4692-4391-96d8-5ecafff8ee7b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtclistblobsflat&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1ded9a3-001e-00f1-09fc-59e1e5000000", + "Body" : "jtclistblobsflatjtclistblobsflat0containerapitestlistblobsflatad5391376f13Fri, 23 Aug 2019 21:45:47 GMT\"0x8D728134202F495\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:46 GMT", + "x-ms-client-request-id" : "90b2f4e9-16a7-4774-81e7-e70d96e0d236", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflat0containerapitestlistblobsflatad5391376f13?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1ded9fd-001e-00f1-5bfc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:46 GMT", + "x-ms-client-request-id" : "f9a177e7-a2e0-4bfb-a147-b308aec81cd0" + }, + "Exception" : null + } ], + "variables" : [ "jtclistblobsflat0containerapitestlistblobsflatad5391376f13", "javabloblistblobsflat1containerapitestlistblobsflatad59616770" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobsflaterror.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobsflaterror.json new file mode 100644 index 0000000000000..89ca09e5e2a92 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobsflaterror.json @@ -0,0 +1,83 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflaterror0614900b7b078de964447a8e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728136C583C0C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:46:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e0c3de-001e-00f1-51fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:46:57 GMT", + "x-ms-client-request-id" : "4fe29db2-9535-4f70-8aed-b2b3c9c59830" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflaterror105337125ef22a08e4469a86?include=&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ContainerNotFound", + "retry-after" : "0", + "Content-Length" : "225", + "StatusCode" : "404", + "x-ms-request-id" : "b1e0c418-001e-00f1-04fc-59e1e5000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:b1e0c418-001e-00f1-04fc-59e1e5000000\nTime:2019-08-23T21:46:58.3746367Z", + "Date" : "Fri, 23 Aug 2019 21:46:57 GMT", + "x-ms-client-request-id" : "322b4420-65d6-4a6f-b3fc-b99ae5f5a7d1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtclistblobsflaterror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1e0c448-001e-00f1-31fc-59e1e5000000", + "Body" : "jtclistblobsflaterrorjtclistblobsflaterror0614900b7b078de964447a8eFri, 23 Aug 2019 21:46:58 GMT\"0x8D728136C583C0C\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:46:57 GMT", + "x-ms-client-request-id" : "b05a291b-8b52-4e74-9902-cb22a2408f01", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflaterror0614900b7b078de964447a8e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1e0c46c-001e-00f1-54fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:46:57 GMT", + "x-ms-client-request-id" : "7b63ac50-f6b6-40a8-848b-415a6d226173" + }, + "Exception" : null + } ], + "variables" : [ "jtclistblobsflaterror0614900b7b078de964447a8e", "jtclistblobsflaterror105337125ef22a08e4469a86" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobsflatmarker.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobsflatmarker.json new file mode 100644 index 0000000000000..133b30986624d --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobsflatmarker.json @@ -0,0 +1,372 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatmarker0666130fc2dd5e79754e05a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728136BF99481\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:46:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77ce0618-501e-00c0-1efc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:46:57 GMT", + "x-ms-client-request-id" : "7409161a-c492-4bd4-8e33-c9e435526f14" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatmarker0666130fc2dd5e79754e05a/javabloblistblobsflatmarker188125d253258451244c6", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728136BFE978E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:46:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77ce0637-501e-00c0-3bfc-59ba32000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:46:57 GMT", + "x-ms-client-request-id" : "c579c811-5d8b-496d-8b77-73db0339d72c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatmarker0666130fc2dd5e79754e05a/javabloblistblobsflatmarker259667d57f7ab628b8403", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728136C03C8F0\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:46:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77ce0663-501e-00c0-62fc-59ba32000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:46:57 GMT", + "x-ms-client-request-id" : "c30626e3-85c8-4173-8bae-7f668b298715" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatmarker0666130fc2dd5e79754e05a/javabloblistblobsflatmarker345749adaabb10823e46c", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728136C08D336\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:46:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77ce0685-501e-00c0-80fc-59ba32000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:46:57 GMT", + "x-ms-client-request-id" : "1ad8e34f-b626-45a2-8c75-3f3f7b8a1578" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatmarker0666130fc2dd5e79754e05a/javabloblistblobsflatmarker4014856eaac4bff62d4c0", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728136C0DDD85\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:46:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77ce06a0-501e-00c0-1bfc-59ba32000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:46:57 GMT", + "x-ms-client-request-id" : "142d6b77-fe79-4341-8ee7-b989561869e7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatmarker0666130fc2dd5e79754e05a/javabloblistblobsflatmarker55446528bf08483e1243a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728136C12C0CB\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:46:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77ce06cd-501e-00c0-43fc-59ba32000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:46:57 GMT", + "x-ms-client-request-id" : "86f35db5-df47-4682-b82e-833a5293bc39" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatmarker0666130fc2dd5e79754e05a/javabloblistblobsflatmarker6065415ecd98b72de74f0", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728136C17CB11\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:46:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77ce06eb-501e-00c0-5dfc-59ba32000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:46:57 GMT", + "x-ms-client-request-id" : "abeeefe4-dd9b-4d3d-94ba-666626a30a12" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatmarker0666130fc2dd5e79754e05a/javabloblistblobsflatmarker7003791ce87e9f85d4498", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728136C1CFC6E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:46:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77ce070a-501e-00c0-76fc-59ba32000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:46:57 GMT", + "x-ms-client-request-id" : "4e6fec66-a264-4099-babd-25253b94e035" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatmarker0666130fc2dd5e79754e05a/javabloblistblobsflatmarker8213457c1e77c938fd4f0", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728136C21DFAF\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:46:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77ce0738-501e-00c0-1ffc-59ba32000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:46:57 GMT", + "x-ms-client-request-id" : "21899722-3288-4644-8842-13f4b6909dd1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatmarker0666130fc2dd5e79754e05a/javabloblistblobsflatmarker950846695b8e97fc1e421", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728136C26E9EC\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:46:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77ce0764-501e-00c0-4afc-59ba32000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:46:57 GMT", + "x-ms-client-request-id" : "50f83593-eb65-4fdf-b571-dc17aaef1512" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatmarker0666130fc2dd5e79754e05a/javabloblistblobsflatmarker107866236e1caf4c37d4a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728136C2BCD1F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:46:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77ce078e-501e-00c0-73fc-59ba32000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:46:57 GMT", + "x-ms-client-request-id" : "219aef92-1a6d-4e56-91fd-bf8bc9567857" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatmarker0666130fc2dd5e79754e05a?maxresults=6&include=&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77ce07c0-501e-00c0-1cfc-59ba32000000", + "Body" : "6javabloblistblobsflatmarker107866236e1caf4c37d4aFri, 23 Aug 2019 21:46:58 GMTFri, 23 Aug 2019 21:46:58 GMT0x8D728136C2BCD1F512application/octet-stream0PageBlobHottrueunlockedavailabletrue0javabloblistblobsflatmarker188125d253258451244c6Fri, 23 Aug 2019 21:46:57 GMTFri, 23 Aug 2019 21:46:57 GMT0x8D728136BFE978E512application/octet-stream0PageBlobHottrueunlockedavailabletrue0javabloblistblobsflatmarker259667d57f7ab628b8403Fri, 23 Aug 2019 21:46:57 GMTFri, 23 Aug 2019 21:46:57 GMT0x8D728136C03C8F0512application/octet-stream0PageBlobHottrueunlockedavailabletrue0javabloblistblobsflatmarker345749adaabb10823e46cFri, 23 Aug 2019 21:46:57 GMTFri, 23 Aug 2019 21:46:57 GMT0x8D728136C08D336512application/octet-stream0PageBlobHottrueunlockedavailabletrue0javabloblistblobsflatmarker4014856eaac4bff62d4c0Fri, 23 Aug 2019 21:46:57 GMTFri, 23 Aug 2019 21:46:57 GMT0x8D728136C0DDD85512application/octet-stream0PageBlobHottrueunlockedavailabletrue0javabloblistblobsflatmarker55446528bf08483e1243aFri, 23 Aug 2019 21:46:57 GMTFri, 23 Aug 2019 21:46:57 GMT0x8D728136C12C0CB512application/octet-stream0PageBlobHottrueunlockedavailabletrue02!124!MDAwMDQ4IWphdmFibG9ibGlzdGJsb2JzZmxhdG1hcmtlcjYwNjU0MTVlY2Q5OGI3MmRlNzRmMCEwMDAwMjghOTk5OS0xMi0zMVQyMzo1OTo1OS45OTk5OTk5WiE-", + "Date" : "Fri, 23 Aug 2019 21:46:57 GMT", + "x-ms-client-request-id" : "c3a0d5b8-dece-46bb-bfaf-4252122d3bb4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatmarker0666130fc2dd5e79754e05a?marker=2%21124%21MDAwMDQ4IWphdmFibG9ibGlzdGJsb2JzZmxhdG1hcmtlcjYwNjU0MTVlY2Q5OGI3MmRlNzRmMCEwMDAwMjghOTk5OS0xMi0zMVQyMzo1OTo1OS45OTk5OTk5WiE-&maxresults=6&include=&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77ce0805-501e-00c0-5bfc-59ba32000000", + "Body" : "2!124!MDAwMDQ4IWphdmFibG9ibGlzdGJsb2JzZmxhdG1hcmtlcjYwNjU0MTVlY2Q5OGI3MmRlNzRmMCEwMDAwMjghOTk5OS0xMi0zMVQyMzo1OTo1OS45OTk5OTk5WiE-6javabloblistblobsflatmarker6065415ecd98b72de74f0Fri, 23 Aug 2019 21:46:57 GMTFri, 23 Aug 2019 21:46:57 GMT0x8D728136C17CB11512application/octet-stream0PageBlobHottrueunlockedavailabletrue0javabloblistblobsflatmarker7003791ce87e9f85d4498Fri, 23 Aug 2019 21:46:57 GMTFri, 23 Aug 2019 21:46:57 GMT0x8D728136C1CFC6E512application/octet-stream0PageBlobHottrueunlockedavailabletrue0javabloblistblobsflatmarker8213457c1e77c938fd4f0Fri, 23 Aug 2019 21:46:57 GMTFri, 23 Aug 2019 21:46:57 GMT0x8D728136C21DFAF512application/octet-stream0PageBlobHottrueunlockedavailabletrue0javabloblistblobsflatmarker950846695b8e97fc1e421Fri, 23 Aug 2019 21:46:58 GMTFri, 23 Aug 2019 21:46:58 GMT0x8D728136C26E9EC512application/octet-stream0PageBlobHottrueunlockedavailabletrue0", + "Date" : "Fri, 23 Aug 2019 21:46:57 GMT", + "x-ms-client-request-id" : "9fa9ce73-c2a9-4e31-b709-0a5a54d5860b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatmarker0666130fc2dd5e79754e05a?marker=2%21124%21MDAwMDQ4IWphdmFibG9ibGlzdGJsb2JzZmxhdG1hcmtlcjYwNjU0MTVlY2Q5OGI3MmRlNzRmMCEwMDAwMjghOTk5OS0xMi0zMVQyMzo1OTo1OS45OTk5OTk5WiE-&maxresults=6&include=&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1e0c25b-001e-00f1-64fc-59e1e5000000", + "Body" : "2!124!MDAwMDQ4IWphdmFibG9ibGlzdGJsb2JzZmxhdG1hcmtlcjYwNjU0MTVlY2Q5OGI3MmRlNzRmMCEwMDAwMjghOTk5OS0xMi0zMVQyMzo1OTo1OS45OTk5OTk5WiE-6javabloblistblobsflatmarker6065415ecd98b72de74f0Fri, 23 Aug 2019 21:46:57 GMTFri, 23 Aug 2019 21:46:57 GMT0x8D728136C17CB11512application/octet-stream0PageBlobHottrueunlockedavailabletrue0javabloblistblobsflatmarker7003791ce87e9f85d4498Fri, 23 Aug 2019 21:46:57 GMTFri, 23 Aug 2019 21:46:57 GMT0x8D728136C1CFC6E512application/octet-stream0PageBlobHottrueunlockedavailabletrue0javabloblistblobsflatmarker8213457c1e77c938fd4f0Fri, 23 Aug 2019 21:46:57 GMTFri, 23 Aug 2019 21:46:57 GMT0x8D728136C21DFAF512application/octet-stream0PageBlobHottrueunlockedavailabletrue0javabloblistblobsflatmarker950846695b8e97fc1e421Fri, 23 Aug 2019 21:46:58 GMTFri, 23 Aug 2019 21:46:58 GMT0x8D728136C26E9EC512application/octet-stream0PageBlobHottrueunlockedavailabletrue0", + "Date" : "Fri, 23 Aug 2019 21:46:57 GMT", + "x-ms-client-request-id" : "6912ca1e-3019-440f-9642-278d9e36bdf7", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatmarker0666130fc2dd5e79754e05a?maxresults=6&include=&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1e0c2bd-001e-00f1-41fc-59e1e5000000", + "Body" : "6javabloblistblobsflatmarker107866236e1caf4c37d4aFri, 23 Aug 2019 21:46:58 GMTFri, 23 Aug 2019 21:46:58 GMT0x8D728136C2BCD1F512application/octet-stream0PageBlobHottrueunlockedavailabletrue0javabloblistblobsflatmarker188125d253258451244c6Fri, 23 Aug 2019 21:46:57 GMTFri, 23 Aug 2019 21:46:57 GMT0x8D728136BFE978E512application/octet-stream0PageBlobHottrueunlockedavailabletrue0javabloblistblobsflatmarker259667d57f7ab628b8403Fri, 23 Aug 2019 21:46:57 GMTFri, 23 Aug 2019 21:46:57 GMT0x8D728136C03C8F0512application/octet-stream0PageBlobHottrueunlockedavailabletrue0javabloblistblobsflatmarker345749adaabb10823e46cFri, 23 Aug 2019 21:46:57 GMTFri, 23 Aug 2019 21:46:57 GMT0x8D728136C08D336512application/octet-stream0PageBlobHottrueunlockedavailabletrue0javabloblistblobsflatmarker4014856eaac4bff62d4c0Fri, 23 Aug 2019 21:46:57 GMTFri, 23 Aug 2019 21:46:57 GMT0x8D728136C0DDD85512application/octet-stream0PageBlobHottrueunlockedavailabletrue0javabloblistblobsflatmarker55446528bf08483e1243aFri, 23 Aug 2019 21:46:57 GMTFri, 23 Aug 2019 21:46:57 GMT0x8D728136C12C0CB512application/octet-stream0PageBlobHottrueunlockedavailabletrue02!124!MDAwMDQ4IWphdmFibG9ibGlzdGJsb2JzZmxhdG1hcmtlcjYwNjU0MTVlY2Q5OGI3MmRlNzRmMCEwMDAwMjghOTk5OS0xMi0zMVQyMzo1OTo1OS45OTk5OTk5WiE-", + "Date" : "Fri, 23 Aug 2019 21:46:57 GMT", + "x-ms-client-request-id" : "1c2a497d-13c2-4410-ad61-8243d1a010ed", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatmarker0666130fc2dd5e79754e05a?marker=2%21124%21MDAwMDQ4IWphdmFibG9ibGlzdGJsb2JzZmxhdG1hcmtlcjYwNjU0MTVlY2Q5OGI3MmRlNzRmMCEwMDAwMjghOTk5OS0xMi0zMVQyMzo1OTo1OS45OTk5OTk5WiE-&maxresults=6&include=&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1e0c320-001e-00f1-21fc-59e1e5000000", + "Body" : "2!124!MDAwMDQ4IWphdmFibG9ibGlzdGJsb2JzZmxhdG1hcmtlcjYwNjU0MTVlY2Q5OGI3MmRlNzRmMCEwMDAwMjghOTk5OS0xMi0zMVQyMzo1OTo1OS45OTk5OTk5WiE-6javabloblistblobsflatmarker6065415ecd98b72de74f0Fri, 23 Aug 2019 21:46:57 GMTFri, 23 Aug 2019 21:46:57 GMT0x8D728136C17CB11512application/octet-stream0PageBlobHottrueunlockedavailabletrue0javabloblistblobsflatmarker7003791ce87e9f85d4498Fri, 23 Aug 2019 21:46:57 GMTFri, 23 Aug 2019 21:46:57 GMT0x8D728136C1CFC6E512application/octet-stream0PageBlobHottrueunlockedavailabletrue0javabloblistblobsflatmarker8213457c1e77c938fd4f0Fri, 23 Aug 2019 21:46:57 GMTFri, 23 Aug 2019 21:46:57 GMT0x8D728136C21DFAF512application/octet-stream0PageBlobHottrueunlockedavailabletrue0javabloblistblobsflatmarker950846695b8e97fc1e421Fri, 23 Aug 2019 21:46:58 GMTFri, 23 Aug 2019 21:46:58 GMT0x8D728136C26E9EC512application/octet-stream0PageBlobHottrueunlockedavailabletrue0", + "Date" : "Fri, 23 Aug 2019 21:46:57 GMT", + "x-ms-client-request-id" : "e7f7a991-57cc-4522-b4a6-964f848e123c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtclistblobsflatmarker&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1e0c373-001e-00f1-6cfc-59e1e5000000", + "Body" : "jtclistblobsflatmarkerjtclistblobsflatmarker0666130fc2dd5e79754e05aFri, 23 Aug 2019 21:46:57 GMT\"0x8D728136BF99481\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:46:57 GMT", + "x-ms-client-request-id" : "210a940b-e5be-461b-9914-80409d8e8c66", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatmarker0666130fc2dd5e79754e05a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1e0c3a0-001e-00f1-17fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:46:57 GMT", + "x-ms-client-request-id" : "f6655431-cc8d-4f77-8fd0-8f5c54eb412b" + }, + "Exception" : null + } ], + "variables" : [ "jtclistblobsflatmarker0666130fc2dd5e79754e05a", "javabloblistblobsflatmarker188125d253258451244c6", "javabloblistblobsflatmarker259667d57f7ab628b8403", "javabloblistblobsflatmarker345749adaabb10823e46c", "javabloblistblobsflatmarker4014856eaac4bff62d4c0", "javabloblistblobsflatmarker55446528bf08483e1243a", "javabloblistblobsflatmarker6065415ecd98b72de74f0", "javabloblistblobsflatmarker7003791ce87e9f85d4498", "javabloblistblobsflatmarker8213457c1e77c938fd4f0", "javabloblistblobsflatmarker950846695b8e97fc1e421", "javabloblistblobsflatmarker107866236e1caf4c37d4a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobsflatmin.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobsflatmin.json new file mode 100644 index 0000000000000..456df9a7e8412 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobsflatmin.json @@ -0,0 +1,82 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatmin0containerapitestlistblobsflatmin4fe395845?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813421E99B6\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:47 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1deda3a-001e-00f1-14fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:46 GMT", + "x-ms-client-request-id" : "cedb17a0-05a5-45f1-9099-2a63604ec6b7" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatmin0containerapitestlistblobsflatmin4fe395845?include=&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1deda78-001e-00f1-4efc-59e1e5000000", + "Body" : "", + "Date" : "Fri, 23 Aug 2019 21:45:46 GMT", + "x-ms-client-request-id" : "d3e6c98f-a688-4653-aaa2-703f9b91b6b4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtclistblobsflatmin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1dedaa8-001e-00f1-7efc-59e1e5000000", + "Body" : "jtclistblobsflatminjtclistblobsflatmin0containerapitestlistblobsflatmin4fe395845Fri, 23 Aug 2019 21:45:47 GMT\"0x8D72813421E99B6\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:46 GMT", + "x-ms-client-request-id" : "1758c814-5e34-4187-912d-e36450932877", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatmin0containerapitestlistblobsflatmin4fe395845?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1dedad3-001e-00f1-28fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:46 GMT", + "x-ms-client-request-id" : "96d6c458-f75e-49bc-b63a-af5cd74e195a" + }, + "Exception" : null + } ], + "variables" : [ "jtclistblobsflatmin0containerapitestlistblobsflatmin4fe395845" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobsflatoptionscopy.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobsflatoptionscopy.json new file mode 100644 index 0000000000000..708eabc8f173f --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobsflatoptionscopy.json @@ -0,0 +1,225 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionscopy0218206f91873930aa4da?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281342318A14\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:47 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1dedb30-001e-00f1-7afc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:47 GMT", + "x-ms-client-request-id" : "f4c20cf4-92a7-40ea-bdd7-1802c601f895" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionscopy0218206f91873930aa4da/ajavabloblistblobsflatoptionscopy135877ec398c63a643", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728134237D0EF\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:47 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1dedb86-001e-00f1-4bfc-59e1e5000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:47 GMT", + "x-ms-client-request-id" : "9c162789-8277-4365-9ecb-ecd8a7c155ff" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionscopy0218206f91873930aa4da/cjavabloblistblobsflatoptionscopy246066ae325a773f2a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-copy-id" : "b85f38c6-fc45-442d-8398-5fa911332038", + "ETag" : "\"0x8D72813427005C2\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:48 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "x-ms-copy-status" : "success", + "StatusCode" : "202", + "x-ms-request-id" : "b1dedbc4-001e-00f1-06fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:47 GMT", + "x-ms-client-request-id" : "126df9c5-fec4-495c-8211-5b44d300082f" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionscopy0218206f91873930aa4da/cjavabloblistblobsflatoptionscopy246066ae325a773f2a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:48 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-blob-type" : "PageBlob", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:45:48 GMT", + "Content-Length" : "512", + "x-ms-request-id" : "b1dede5f-001e-00f1-7dfc-59e1e5000000", + "Content-Type" : "application/octet-stream", + "x-ms-version" : "2019-02-02", + "x-ms-copy-id" : "b85f38c6-fc45-442d-8398-5fa911332038", + "x-ms-copy-source" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionscopy0218206f91873930aa4da/ajavabloblistblobsflatoptionscopy135877ec398c63a643", + "x-ms-blob-sequence-number" : "0", + "x-ms-copy-progress" : "512/512", + "Date" : "Fri, 23 Aug 2019 21:45:47 GMT", + "x-ms-copy-completion-time" : "Fri, 23 Aug 2019 21:45:48 GMT", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "\"0x8D72813427005C2\"", + "x-ms-copy-status" : "success", + "x-ms-client-request-id" : "16e43e97-53b0-4706-883f-ba8d29cf3c46" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionscopy0218206f91873930aa4da/mjavabloblistblobsflatoptionscopy3973014d74661f97f8", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728134312D659\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:49 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1dee65a-001e-00f1-0afc-59e1e5000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:48 GMT", + "x-ms-client-request-id" : "f7da3b68-fa48-4185-9dbc-200ab64f2086" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionscopy0218206f91873930aa4da/ajavabloblistblobsflatoptionscopy135877ec398c63a643?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-snapshot" : "2019-08-23T21:45:49.1342500Z", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728134237D0EF\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:47 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1dee6b7-001e-00f1-63fc-59e1e5000000", + "x-ms-request-server-encrypted" : "false", + "Date" : "Fri, 23 Aug 2019 21:45:48 GMT", + "x-ms-client-request-id" : "e3910a0a-faba-41d5-99f9-202366453ea5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionscopy0218206f91873930aa4da/ujavabloblistblobsflatoptionscopy4312670694d81c1cb9?blockid=0000&comp=block", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1dee70b-001e-00f1-34fc-59e1e5000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:48 GMT", + "x-ms-client-request-id" : "613b2a3a-9b88-44f4-8aed-7a6396ca4d00" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionscopy0218206f91873930aa4da?include=copy&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1dee753-001e-00f1-75fc-59e1e5000000", + "Body" : "ajavabloblistblobsflatoptionscopy135877ec398c63a643Fri, 23 Aug 2019 21:45:47 GMTFri, 23 Aug 2019 21:45:47 GMT0x8D728134237D0EF512application/octet-stream0PageBlobHottrueunlockedavailabletrue0cjavabloblistblobsflatoptionscopy246066ae325a773f2aFri, 23 Aug 2019 21:45:48 GMTFri, 23 Aug 2019 21:45:48 GMT0x8D72813427005C2512application/octet-stream0PageBlobHottrueunlockedavailableb85f38c6-fc45-442d-8398-5fa911332038https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionscopy0218206f91873930aa4da/ajavabloblistblobsflatoptionscopy135877ec398c63a643success512/512Fri, 23 Aug 2019 21:45:48 GMTtrue0mjavabloblistblobsflatoptionscopy3973014d74661f97f8Fri, 23 Aug 2019 21:45:49 GMTFri, 23 Aug 2019 21:45:49 GMT0x8D728134312D659512application/octet-stream0PageBlobHottrueunlockedavailabletrue0", + "Date" : "Fri, 23 Aug 2019 21:45:48 GMT", + "x-ms-client-request-id" : "e5d22524-0236-47b3-9cd9-322d82a37387", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtclistblobsflatoptionscopy&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1dee7c5-001e-00f1-5ffc-59e1e5000000", + "Body" : "jtclistblobsflatoptionscopyjtclistblobsflatoptionscopy0218206f91873930aa4daFri, 23 Aug 2019 21:45:47 GMT\"0x8D7281342318A14\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:48 GMT", + "x-ms-client-request-id" : "5da8a5c9-59af-48e6-be90-99c805fbd965", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionscopy0218206f91873930aa4da?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1dee7f8-001e-00f1-10fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:48 GMT", + "x-ms-client-request-id" : "f13d7ece-999b-48ec-9c8a-eb69aa10697b" + }, + "Exception" : null + } ], + "variables" : [ "jtclistblobsflatoptionscopy0218206f91873930aa4da", "javabloblistblobsflatoptionscopy135877ec398c63a643", "javabloblistblobsflatoptionscopy246066ae325a773f2a", "javabloblistblobsflatoptionscopy3973014d74661f97f8", "javabloblistblobsflatoptionscopy4312670694d81c1cb9" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobsflatoptionsdeleted.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobsflatoptionsdeleted.json new file mode 100644 index 0000000000000..550acc6ec7b93 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobsflatoptionsdeleted.json @@ -0,0 +1,160 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionsdeleted025341ff711f9a574e4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281345C359CF\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1df071c-001e-00f1-4cfc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:53 GMT", + "x-ms-client-request-id" : "420828e1-4725-4cf3-ab7d-84c42cbb0872" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1df0763-001e-00f1-0efc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:53 GMT", + "x-ms-client-request-id" : "836073e5-80a9-4847-8fc4-f21c0e20c974" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionsdeleted025341ff711f9a574e4/javabloblistblobsflatoptionsdeleted1570991d13f89f51f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281357B921C6\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:46:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1dfd7e8-001e-00f1-33fc-59e1e5000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:46:23 GMT", + "x-ms-client-request-id" : "a4983dc4-5d0c-4cb7-94b5-c8493acaa85e" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionsdeleted025341ff711f9a574e4/javabloblistblobsflatoptionsdeleted1570991d13f89f51f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-delete-type-permanent" : "false", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1dfd82b-001e-00f1-71fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:46:23 GMT", + "x-ms-client-request-id" : "f0bdb4e8-535d-422d-9562-3f9a4f27f689" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionsdeleted025341ff711f9a574e4?include=deleted&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1dfd858-001e-00f1-1dfc-59e1e5000000", + "Body" : "javabloblistblobsflatoptionsdeleted1570991d13f89f51ftrueFri, 23 Aug 2019 21:46:23 GMTFri, 23 Aug 2019 21:46:23 GMT0x8D7281357B921C60application/octet-streamAppendBlobHottruetrueFri, 23 Aug 2019 21:46:23 GMT10", + "Date" : "Fri, 23 Aug 2019 21:46:23 GMT", + "x-ms-client-request-id" : "30ec7cb3-a762-402a-aae5-af5264957d13", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1dfd87e-001e-00f1-42fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:46:23 GMT", + "x-ms-client-request-id" : "3a628d22-c845-4311-b7cc-c2ac84808550" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtclistblobsflatoptionsdeleted&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1e0a472-001e-00f1-19fc-59e1e5000000", + "Body" : "jtclistblobsflatoptionsdeletedjtclistblobsflatoptionsdeleted025341ff711f9a574e4Fri, 23 Aug 2019 21:45:53 GMT\"0x8D7281345C359CF\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:46:53 GMT", + "x-ms-client-request-id" : "731394cf-1198-4e81-8d71-d09acf6522e2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionsdeleted025341ff711f9a574e4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1e0a4b2-001e-00f1-55fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:46:53 GMT", + "x-ms-client-request-id" : "92caedea-f074-4298-bf96-cf22677f83d2" + }, + "Exception" : null + } ], + "variables" : [ "jtclistblobsflatoptionsdeleted025341ff711f9a574e4", "javabloblistblobsflatoptionsdeleted1570991d13f89f51f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobsflatoptionsfail.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobsflatoptionsfail.json new file mode 100644 index 0000000000000..9ad2e954e1a39 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobsflatoptionsfail.json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionsfail03421284c9330e6815483?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728136BEAEAF1\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:46:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77ce05b6-501e-00c0-44fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:46:57 GMT", + "x-ms-client-request-id" : "828e8e3b-2367-4866-a8db-32813164303b" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtclistblobsflatoptionsfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77ce05d5-501e-00c0-61fc-59ba32000000", + "Body" : "jtclistblobsflatoptionsfailjtclistblobsflatoptionsfail03421284c9330e6815483Fri, 23 Aug 2019 21:46:57 GMT\"0x8D728136BEAEAF1\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:46:57 GMT", + "x-ms-client-request-id" : "0d29cc10-1d68-4a5e-bce6-f58f1c122d87", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionsfail03421284c9330e6815483?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77ce05f2-501e-00c0-78fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:46:57 GMT", + "x-ms-client-request-id" : "3538d510-7acb-47a3-9f64-c85b62722237" + }, + "Exception" : null + } ], + "variables" : [ "jtclistblobsflatoptionsfail03421284c9330e6815483" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobsflatoptionsmaxresults.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobsflatoptionsmaxresults.json new file mode 100644 index 0000000000000..5c5310b6246d0 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobsflatoptionsmaxresults.json @@ -0,0 +1,285 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionsmaxresults072236b1fa85ee592a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728136AF9B579\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:46:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e0b382-001e-00f1-0efc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:46:55 GMT", + "x-ms-client-request-id" : "aa3a2a3e-6cf0-49d4-a744-f4866cdfb1ff" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionsmaxresults072236b1fa85ee592a/ajavabloblistblobsflatoptionsmaxresults185055be6434352", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728136AFF3857\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:46:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e0b3e4-001e-00f1-5cfc-59e1e5000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:46:55 GMT", + "x-ms-client-request-id" : "66a0d705-bb7f-4359-977e-3095cf2ffae4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionsmaxresults072236b1fa85ee592a/cjavabloblistblobsflatoptionsmaxresults25454348305bc99", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-copy-id" : "0a1f5fca-09c3-4175-a100-8d613cc14f12", + "ETag" : "\"0x8D728136B099B1F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:46:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "x-ms-copy-status" : "success", + "StatusCode" : "202", + "x-ms-request-id" : "b1e0b445-001e-00f1-2dfc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:46:55 GMT", + "x-ms-client-request-id" : "33960830-344e-4fb3-8f5a-9d2762f31c14" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionsmaxresults072236b1fa85ee592a/cjavabloblistblobsflatoptionsmaxresults25454348305bc99", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:46:56 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-blob-type" : "PageBlob", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:46:56 GMT", + "Content-Length" : "512", + "x-ms-request-id" : "b1e0b4e0-001e-00f1-31fc-59e1e5000000", + "Content-Type" : "application/octet-stream", + "x-ms-version" : "2019-02-02", + "x-ms-copy-id" : "0a1f5fca-09c3-4175-a100-8d613cc14f12", + "x-ms-copy-source" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionsmaxresults072236b1fa85ee592a/ajavabloblistblobsflatoptionsmaxresults185055be6434352", + "x-ms-blob-sequence-number" : "0", + "x-ms-copy-progress" : "512/512", + "Date" : "Fri, 23 Aug 2019 21:46:55 GMT", + "x-ms-copy-completion-time" : "Fri, 23 Aug 2019 21:46:56 GMT", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "\"0x8D728136B099B1F\"", + "x-ms-copy-status" : "success", + "x-ms-client-request-id" : "a1d26de8-575b-45ea-9b7d-e3c4501aa9da" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionsmaxresults072236b1fa85ee592a/mjavabloblistblobsflatoptionsmaxresults3771988f9029d52", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728136BAC44A0\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:46:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e0bc19-001e-00f1-20fc-59e1e5000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:46:56 GMT", + "x-ms-client-request-id" : "1f2ded96-6f16-41fd-9493-5210afb848cd" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionsmaxresults072236b1fa85ee592a/ajavabloblistblobsflatoptionsmaxresults185055be6434352?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-snapshot" : "2019-08-23T21:46:57.2486387Z", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728136AFF3857\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:46:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e0bc5b-001e-00f1-5efc-59e1e5000000", + "x-ms-request-server-encrypted" : "false", + "Date" : "Fri, 23 Aug 2019 21:46:56 GMT", + "x-ms-client-request-id" : "283ac8d9-cb6d-40fa-ba89-b85ae6991a7f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionsmaxresults072236b1fa85ee592a/ujavabloblistblobsflatoptionsmaxresults4362276fae74581?blockid=0000&comp=block", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e0bca2-001e-00f1-1efc-59e1e5000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:46:56 GMT", + "x-ms-client-request-id" : "74497727-3668-4aa3-adf6-b9f9d1717ec5" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionsmaxresults072236b1fa85ee592a?maxresults=2&include=copy%2csnapshots%2cuncommittedblobs&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1e0bcdd-001e-00f1-53fc-59e1e5000000", + "Body" : "2ajavabloblistblobsflatoptionsmaxresults185055be64343522019-08-23T21:46:57.2486387ZFri, 23 Aug 2019 21:46:56 GMTFri, 23 Aug 2019 21:46:56 GMT0x8D728136AFF3857512application/octet-stream0PageBlobHottruetrue0ajavabloblistblobsflatoptionsmaxresults185055be6434352Fri, 23 Aug 2019 21:46:56 GMTFri, 23 Aug 2019 21:46:56 GMT0x8D728136AFF3857512application/octet-stream0PageBlobHottrueunlockedavailabletrue02!132!MDAwMDU0IWNqYXZhYmxvYmxpc3RibG9ic2ZsYXRvcHRpb25zbWF4cmVzdWx0czI1NDU0MzQ4MzA1YmM5OSEwMDAwMjghOTk5OS0xMi0zMVQyMzo1OTo1OS45OTk5OTk5WiE-", + "Date" : "Fri, 23 Aug 2019 21:46:56 GMT", + "x-ms-client-request-id" : "06091c35-524f-45b1-a906-0f46df38a2f2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionsmaxresults072236b1fa85ee592a?marker=2%21132%21MDAwMDU0IWNqYXZhYmxvYmxpc3RibG9ic2ZsYXRvcHRpb25zbWF4cmVzdWx0czI1NDU0MzQ4MzA1YmM5OSEwMDAwMjghOTk5OS0xMi0zMVQyMzo1OTo1OS45OTk5OTk5WiE-&maxresults=2&include=copy%2csnapshots%2cuncommittedblobs&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1e0bd0e-001e-00f1-7dfc-59e1e5000000", + "Body" : "2!132!MDAwMDU0IWNqYXZhYmxvYmxpc3RibG9ic2ZsYXRvcHRpb25zbWF4cmVzdWx0czI1NDU0MzQ4MzA1YmM5OSEwMDAwMjghOTk5OS0xMi0zMVQyMzo1OTo1OS45OTk5OTk5WiE-2cjavabloblistblobsflatoptionsmaxresults25454348305bc99Fri, 23 Aug 2019 21:46:56 GMTFri, 23 Aug 2019 21:46:56 GMT0x8D728136B099B1F512application/octet-stream0PageBlobHottrueunlockedavailable0a1f5fca-09c3-4175-a100-8d613cc14f12https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionsmaxresults072236b1fa85ee592a/ajavabloblistblobsflatoptionsmaxresults185055be6434352success512/512Fri, 23 Aug 2019 21:46:56 GMTtrue0mjavabloblistblobsflatoptionsmaxresults3771988f9029d52Fri, 23 Aug 2019 21:46:57 GMTFri, 23 Aug 2019 21:46:57 GMT0x8D728136BAC44A0512application/octet-stream0PageBlobHottrueunlockedavailabletrue02!132!MDAwMDU0IXVqYXZhYmxvYmxpc3RibG9ic2ZsYXRvcHRpb25zbWF4cmVzdWx0czQzNjIyNzZmYWU3NDU4MSEwMDAwMjghOTk5OS0xMi0zMVQyMzo1OTo1OS45OTk5OTk5WiE-", + "Date" : "Fri, 23 Aug 2019 21:46:56 GMT", + "x-ms-client-request-id" : "31cc65b3-59e4-4d8b-8af8-016255997ba9", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionsmaxresults072236b1fa85ee592a?marker=2%21132%21MDAwMDU0IXVqYXZhYmxvYmxpc3RibG9ic2ZsYXRvcHRpb25zbWF4cmVzdWx0czQzNjIyNzZmYWU3NDU4MSEwMDAwMjghOTk5OS0xMi0zMVQyMzo1OTo1OS45OTk5OTk5WiE-&maxresults=2&include=copy%2csnapshots%2cuncommittedblobs&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1e0bd67-001e-00f1-4efc-59e1e5000000", + "Body" : "2!132!MDAwMDU0IXVqYXZhYmxvYmxpc3RibG9ic2ZsYXRvcHRpb25zbWF4cmVzdWx0czQzNjIyNzZmYWU3NDU4MSEwMDAwMjghOTk5OS0xMi0zMVQyMzo1OTo1OS45OTk5OTk5WiE-2ujavabloblistblobsflatoptionsmaxresults4362276fae745810BlockBlobHottrueunlockedavailablefalse0", + "Date" : "Fri, 23 Aug 2019 21:46:56 GMT", + "x-ms-client-request-id" : "84a07fa1-48b3-4e6c-97b3-eededc7645f9", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionsmaxresults072236b1fa85ee592a?maxresults=2&include=copy%2csnapshots%2cuncommittedblobs&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77ce0539-501e-00c0-51fc-59ba32000000", + "Body" : "2ajavabloblistblobsflatoptionsmaxresults185055be64343522019-08-23T21:46:57.2486387ZFri, 23 Aug 2019 21:46:56 GMTFri, 23 Aug 2019 21:46:56 GMT0x8D728136AFF3857512application/octet-stream0PageBlobHottruetrue0ajavabloblistblobsflatoptionsmaxresults185055be6434352Fri, 23 Aug 2019 21:46:56 GMTFri, 23 Aug 2019 21:46:56 GMT0x8D728136AFF3857512application/octet-stream0PageBlobHottrueunlockedavailabletrue02!132!MDAwMDU0IWNqYXZhYmxvYmxpc3RibG9ic2ZsYXRvcHRpb25zbWF4cmVzdWx0czI1NDU0MzQ4MzA1YmM5OSEwMDAwMjghOTk5OS0xMi0zMVQyMzo1OTo1OS45OTk5OTk5WiE-", + "Date" : "Fri, 23 Aug 2019 21:46:57 GMT", + "x-ms-client-request-id" : "02621aaa-fbd3-4a09-9666-0dd596ce9bb8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtclistblobsflatoptionsmaxresults&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77ce056a-501e-00c0-7cfc-59ba32000000", + "Body" : "jtclistblobsflatoptionsmaxresultsjtclistblobsflatoptionsmaxresults072236b1fa85ee592aFri, 23 Aug 2019 21:46:56 GMT\"0x8D728136AF9B579\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:46:57 GMT", + "x-ms-client-request-id" : "a791c860-e403-48a0-94b6-15c2ca8aceb0", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionsmaxresults072236b1fa85ee592a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77ce0592-501e-00c0-20fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:46:57 GMT", + "x-ms-client-request-id" : "a3053867-b9f6-4118-ba08-8b6571448d37" + }, + "Exception" : null + } ], + "variables" : [ "jtclistblobsflatoptionsmaxresults072236b1fa85ee592a", "javabloblistblobsflatoptionsmaxresults185055be6434352", "javabloblistblobsflatoptionsmaxresults25454348305bc99", "javabloblistblobsflatoptionsmaxresults3771988f9029d52", "javabloblistblobsflatoptionsmaxresults4362276fae74581" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobsflatoptionsmetadata.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobsflatoptionsmetadata.json new file mode 100644 index 0000000000000..3d3af6d76bd95 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobsflatoptionsmetadata.json @@ -0,0 +1,225 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionsmetadata067793de92ccf36c9f4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728134333F78E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:49 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1dee865-001e-00f1-79fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:48 GMT", + "x-ms-client-request-id" : "9a27dd11-a091-41ac-9380-e03e578b4127" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionsmetadata067793de92ccf36c9f4/ajavabloblistblobsflatoptionsmetadata1421074dc064c25b", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281343395388\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:49 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1dee8ac-001e-00f1-3bfc-59e1e5000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:48 GMT", + "x-ms-client-request-id" : "adb9b4e1-492e-4d46-bc2c-e5dffbbeb6fe" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionsmetadata067793de92ccf36c9f4/cjavabloblistblobsflatoptionsmetadata233566dc646b3c82", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-copy-id" : "4a0d084f-b920-478b-be74-de08c6cb5fe0", + "ETag" : "\"0x8D728134345D9BC\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:49 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "x-ms-copy-status" : "success", + "StatusCode" : "202", + "x-ms-request-id" : "b1dee8f4-001e-00f1-7ffc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:48 GMT", + "x-ms-client-request-id" : "ab570a85-327f-4420-8757-77375f74148f" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionsmetadata067793de92ccf36c9f4/cjavabloblistblobsflatoptionsmetadata233566dc646b3c82", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:49 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-blob-type" : "PageBlob", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:45:49 GMT", + "Content-Length" : "512", + "x-ms-request-id" : "b1dee9b1-001e-00f1-30fc-59e1e5000000", + "Content-Type" : "application/octet-stream", + "x-ms-version" : "2019-02-02", + "x-ms-copy-id" : "4a0d084f-b920-478b-be74-de08c6cb5fe0", + "x-ms-copy-source" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionsmetadata067793de92ccf36c9f4/ajavabloblistblobsflatoptionsmetadata1421074dc064c25b", + "x-ms-blob-sequence-number" : "0", + "x-ms-copy-progress" : "512/512", + "Date" : "Fri, 23 Aug 2019 21:45:48 GMT", + "x-ms-copy-completion-time" : "Fri, 23 Aug 2019 21:45:49 GMT", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "\"0x8D728134345D9BC\"", + "x-ms-copy-status" : "success", + "x-ms-client-request-id" : "fa2e8d3d-e6a2-4780-bc89-e8c5cc5e1b9e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionsmetadata067793de92ccf36c9f4/mjavabloblistblobsflatoptionsmetadata3112057290d8ed57", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281343E80E08\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1def1ba-001e-00f1-39fc-59e1e5000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:49 GMT", + "x-ms-client-request-id" : "0296a72a-a7a5-40fb-a492-da5b5cb46f05" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionsmetadata067793de92ccf36c9f4/ajavabloblistblobsflatoptionsmetadata1421074dc064c25b?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-snapshot" : "2019-08-23T21:45:50.5345960Z", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281343395388\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:49 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1def1f8-001e-00f1-76fc-59e1e5000000", + "x-ms-request-server-encrypted" : "false", + "Date" : "Fri, 23 Aug 2019 21:45:49 GMT", + "x-ms-client-request-id" : "b769354a-0407-4f2d-a658-c14011bfeada" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionsmetadata067793de92ccf36c9f4/ujavabloblistblobsflatoptionsmetadata4069525052006a24?blockid=0000&comp=block", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1def237-001e-00f1-30fc-59e1e5000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:49 GMT", + "x-ms-client-request-id" : "1293859d-afb6-48e2-bf95-66eca5288cfe" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionsmetadata067793de92ccf36c9f4?include=metadata&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1def26c-001e-00f1-62fc-59e1e5000000", + "Body" : "ajavabloblistblobsflatoptionsmetadata1421074dc064c25bFri, 23 Aug 2019 21:45:49 GMTFri, 23 Aug 2019 21:45:49 GMT0x8D7281343395388512application/octet-stream0PageBlobHottrueunlockedavailabletrue0cjavabloblistblobsflatoptionsmetadata233566dc646b3c82Fri, 23 Aug 2019 21:45:49 GMTFri, 23 Aug 2019 21:45:49 GMT0x8D728134345D9BC512application/octet-stream0PageBlobHottrueunlockedavailabletrue0mjavabloblistblobsflatoptionsmetadata3112057290d8ed57Fri, 23 Aug 2019 21:45:50 GMTFri, 23 Aug 2019 21:45:50 GMT0x8D7281343E80E08512application/octet-stream0PageBlobHottrueunlockedavailabletrue0bar", + "Date" : "Fri, 23 Aug 2019 21:45:49 GMT", + "x-ms-client-request-id" : "f6688d08-0b9f-4c3f-9f36-0965b569980e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtclistblobsflatoptionsmetadata&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1def2bf-001e-00f1-2cfc-59e1e5000000", + "Body" : "jtclistblobsflatoptionsmetadatajtclistblobsflatoptionsmetadata067793de92ccf36c9f4Fri, 23 Aug 2019 21:45:49 GMT\"0x8D728134333F78E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:50 GMT", + "x-ms-client-request-id" : "92d20a1b-ce7e-410e-8d7b-ebf508dc5e6f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionsmetadata067793de92ccf36c9f4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1def2ed-001e-00f1-57fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:50 GMT", + "x-ms-client-request-id" : "8c268ee0-d1d0-4936-9a84-575e66464355" + }, + "Exception" : null + } ], + "variables" : [ "jtclistblobsflatoptionsmetadata067793de92ccf36c9f4", "javabloblistblobsflatoptionsmetadata1421074dc064c25b", "javabloblistblobsflatoptionsmetadata233566dc646b3c82", "javabloblistblobsflatoptionsmetadata3112057290d8ed57", "javabloblistblobsflatoptionsmetadata4069525052006a24" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobsflatoptionsprefix.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobsflatoptionsprefix.json new file mode 100644 index 0000000000000..b03bc34c40338 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobsflatoptionsprefix.json @@ -0,0 +1,225 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionsprefix0762970a0a83f03a0940?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281369C5084F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:46:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e0a576-001e-00f1-09fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:46:53 GMT", + "x-ms-client-request-id" : "c3ca4cc9-adb8-4c28-9955-ac4e50b96ab9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionsprefix0762970a0a83f03a0940/ajavabloblistblobsflatoptionsprefix184040494b2d61583", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281369CA15E3\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:46:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e0a5ad-001e-00f1-3dfc-59e1e5000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:46:53 GMT", + "x-ms-client-request-id" : "e0012ee4-1085-4d98-ac3e-554d644ff739" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionsprefix0762970a0a83f03a0940/cjavabloblistblobsflatoptionsprefix292919b6ea513b48c", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-copy-id" : "115173a0-f389-4f00-89b5-e2a291923b53", + "ETag" : "\"0x8D728136A3351D2\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:46:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "x-ms-copy-status" : "success", + "StatusCode" : "202", + "x-ms-request-id" : "b1e0a5f9-001e-00f1-06fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:46:54 GMT", + "x-ms-client-request-id" : "1ea4ed8b-0cda-4128-ad4a-77f818f52618" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionsprefix0762970a0a83f03a0940/cjavabloblistblobsflatoptionsprefix292919b6ea513b48c", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:46:54 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-blob-type" : "PageBlob", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:46:54 GMT", + "Content-Length" : "512", + "x-ms-request-id" : "b1e0aad1-001e-00f1-19fc-59e1e5000000", + "Content-Type" : "application/octet-stream", + "x-ms-version" : "2019-02-02", + "x-ms-copy-id" : "115173a0-f389-4f00-89b5-e2a291923b53", + "x-ms-copy-source" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionsprefix0762970a0a83f03a0940/ajavabloblistblobsflatoptionsprefix184040494b2d61583", + "x-ms-blob-sequence-number" : "0", + "x-ms-copy-progress" : "512/512", + "Date" : "Fri, 23 Aug 2019 21:46:54 GMT", + "x-ms-copy-completion-time" : "Fri, 23 Aug 2019 21:46:54 GMT", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "\"0x8D728136A3351D2\"", + "x-ms-copy-status" : "success", + "x-ms-client-request-id" : "2ea743d6-5079-4297-ad48-c76f2a6bd7b6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionsprefix0762970a0a83f03a0940/mjavabloblistblobsflatoptionsprefix35877296f75b7082a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728136AD62269\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:46:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e0b1e4-001e-00f1-39fc-59e1e5000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:46:55 GMT", + "x-ms-client-request-id" : "ab65a796-5f93-4c89-a914-6d61519e02b7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionsprefix0762970a0a83f03a0940/ajavabloblistblobsflatoptionsprefix184040494b2d61583?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-snapshot" : "2019-08-23T21:46:55.8452920Z", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281369CA15E3\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:46:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e0b21a-001e-00f1-6dfc-59e1e5000000", + "x-ms-request-server-encrypted" : "false", + "Date" : "Fri, 23 Aug 2019 21:46:55 GMT", + "x-ms-client-request-id" : "e6ee99ed-2774-4e34-b508-0b6dc84d04db" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionsprefix0762970a0a83f03a0940/ujavabloblistblobsflatoptionsprefix425869d3b6c9b395b?blockid=0000&comp=block", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e0b25d-001e-00f1-2cfc-59e1e5000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:46:55 GMT", + "x-ms-client-request-id" : "bc854347-6c5b-4cdf-a395-dbfae6e31f8a" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionsprefix0762970a0a83f03a0940?prefix=a&include=&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1e0b293-001e-00f1-5afc-59e1e5000000", + "Body" : "aajavabloblistblobsflatoptionsprefix184040494b2d61583Fri, 23 Aug 2019 21:46:54 GMTFri, 23 Aug 2019 21:46:54 GMT0x8D7281369CA15E3512application/octet-stream0PageBlobHottrueunlockedavailabletrue0", + "Date" : "Fri, 23 Aug 2019 21:46:55 GMT", + "x-ms-client-request-id" : "d81e54a1-e911-4df9-9929-40b01c3c2d87", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtclistblobsflatoptionsprefix&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1e0b2b6-001e-00f1-7cfc-59e1e5000000", + "Body" : "jtclistblobsflatoptionsprefixjtclistblobsflatoptionsprefix0762970a0a83f03a0940Fri, 23 Aug 2019 21:46:54 GMT\"0x8D7281369C5084F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:46:55 GMT", + "x-ms-client-request-id" : "e4fbf3f8-7863-465e-a108-68620cc7f31f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionsprefix0762970a0a83f03a0940?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1e0b333-001e-00f1-53fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:46:55 GMT", + "x-ms-client-request-id" : "68288c6a-481d-46a4-b2a3-52dd131f759c" + }, + "Exception" : null + } ], + "variables" : [ "jtclistblobsflatoptionsprefix0762970a0a83f03a0940", "javabloblistblobsflatoptionsprefix184040494b2d61583", "javabloblistblobsflatoptionsprefix292919b6ea513b48c", "javabloblistblobsflatoptionsprefix35877296f75b7082a", "javabloblistblobsflatoptionsprefix425869d3b6c9b395b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobsflatoptionssnapshots.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobsflatoptionssnapshots.json new file mode 100644 index 0000000000000..1d5d56c5cf194 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobsflatoptionssnapshots.json @@ -0,0 +1,225 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionssnapshots058830907d9f48f37b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813440ADD4F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1def331-001e-00f1-16fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:50 GMT", + "x-ms-client-request-id" : "c5997545-3a65-4a4b-b874-0cca49b74ea5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionssnapshots058830907d9f48f37b/ajavabloblistblobsflatoptionssnapshots115454d0047be40a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281344103969\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1def36a-001e-00f1-4bfc-59e1e5000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:50 GMT", + "x-ms-client-request-id" : "45acdb9c-5756-4532-a594-70233e8859e3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionssnapshots058830907d9f48f37b/cjavabloblistblobsflatoptionssnapshots2737250f01783a98", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-copy-id" : "09847b8f-be95-4259-88cc-1550e41bb9ac", + "ETag" : "\"0x8D72813441B1189\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "x-ms-copy-status" : "success", + "StatusCode" : "202", + "x-ms-request-id" : "b1def3b1-001e-00f1-0dfc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:50 GMT", + "x-ms-client-request-id" : "16d4d732-5ab4-4436-b2dd-7470c5b5eefe" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionssnapshots058830907d9f48f37b/cjavabloblistblobsflatoptionssnapshots2737250f01783a98", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:50 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-blob-type" : "PageBlob", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:45:50 GMT", + "Content-Length" : "512", + "x-ms-request-id" : "b1def422-001e-00f1-7bfc-59e1e5000000", + "Content-Type" : "application/octet-stream", + "x-ms-version" : "2019-02-02", + "x-ms-copy-id" : "09847b8f-be95-4259-88cc-1550e41bb9ac", + "x-ms-copy-source" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionssnapshots058830907d9f48f37b/ajavabloblistblobsflatoptionssnapshots115454d0047be40a", + "x-ms-blob-sequence-number" : "0", + "x-ms-copy-progress" : "512/512", + "Date" : "Fri, 23 Aug 2019 21:45:50 GMT", + "x-ms-copy-completion-time" : "Fri, 23 Aug 2019 21:45:50 GMT", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "\"0x8D72813441B1189\"", + "x-ms-copy-status" : "success", + "x-ms-client-request-id" : "d5a3ed69-b852-4a19-81dd-98111b729cd2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionssnapshots058830907d9f48f37b/mjavabloblistblobsflatoptionssnapshots312762079fbd9f21", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281344BD6CEB\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1defac0-001e-00f1-2ffc-59e1e5000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:51 GMT", + "x-ms-client-request-id" : "3a743747-ab52-4b1e-9e2c-9bc7ef5e8e63" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionssnapshots058830907d9f48f37b/ajavabloblistblobsflatoptionssnapshots115454d0047be40a?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-snapshot" : "2019-08-23T21:45:51.9309394Z", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281344103969\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1defaf0-001e-00f1-5ffc-59e1e5000000", + "x-ms-request-server-encrypted" : "false", + "Date" : "Fri, 23 Aug 2019 21:45:51 GMT", + "x-ms-client-request-id" : "4818c2b2-9674-48e8-a6da-e7a21f8d920b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionssnapshots058830907d9f48f37b/ujavabloblistblobsflatoptionssnapshots481224786f731757?blockid=0000&comp=block", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1defb35-001e-00f1-1ffc-59e1e5000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:51 GMT", + "x-ms-client-request-id" : "1008afaf-93bf-4752-94cc-e5ccc24b24af" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionssnapshots058830907d9f48f37b?include=snapshots&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1defba3-001e-00f1-0afc-59e1e5000000", + "Body" : "ajavabloblistblobsflatoptionssnapshots115454d0047be40a2019-08-23T21:45:51.9309394ZFri, 23 Aug 2019 21:45:50 GMTFri, 23 Aug 2019 21:45:50 GMT0x8D7281344103969512application/octet-stream0PageBlobHottruetrue0ajavabloblistblobsflatoptionssnapshots115454d0047be40aFri, 23 Aug 2019 21:45:50 GMTFri, 23 Aug 2019 21:45:50 GMT0x8D7281344103969512application/octet-stream0PageBlobHottrueunlockedavailabletrue0cjavabloblistblobsflatoptionssnapshots2737250f01783a98Fri, 23 Aug 2019 21:45:50 GMTFri, 23 Aug 2019 21:45:50 GMT0x8D72813441B1189512application/octet-stream0PageBlobHottrueunlockedavailabletrue0mjavabloblistblobsflatoptionssnapshots312762079fbd9f21Fri, 23 Aug 2019 21:45:51 GMTFri, 23 Aug 2019 21:45:51 GMT0x8D7281344BD6CEB512application/octet-stream0PageBlobHottrueunlockedavailabletrue0", + "Date" : "Fri, 23 Aug 2019 21:45:51 GMT", + "x-ms-client-request-id" : "ae01ff89-8d0e-4fa5-82c6-42fc472d5c22", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtclistblobsflatoptionssnapshots&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1defc04-001e-00f1-69fc-59e1e5000000", + "Body" : "jtclistblobsflatoptionssnapshotsjtclistblobsflatoptionssnapshots058830907d9f48f37bFri, 23 Aug 2019 21:45:50 GMT\"0x8D72813440ADD4F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:51 GMT", + "x-ms-client-request-id" : "a49ab07c-ec78-4b41-a4c6-5c4a121f375c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionssnapshots058830907d9f48f37b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1defc3d-001e-00f1-1efc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:51 GMT", + "x-ms-client-request-id" : "8d0fca50-cbc8-45f8-878e-9f82bcf3ebcf" + }, + "Exception" : null + } ], + "variables" : [ "jtclistblobsflatoptionssnapshots058830907d9f48f37b", "javabloblistblobsflatoptionssnapshots115454d0047be40a", "javabloblistblobsflatoptionssnapshots2737250f01783a98", "javabloblistblobsflatoptionssnapshots312762079fbd9f21", "javabloblistblobsflatoptionssnapshots481224786f731757" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobsflatoptionsuncommitted.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobsflatoptionsuncommitted.json new file mode 100644 index 0000000000000..a60f1f6b4d0d0 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobsflatoptionsuncommitted.json @@ -0,0 +1,225 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionsuncommitted03421417e72d8dede?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281344E19BFC\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1defc94-001e-00f1-6efc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:51 GMT", + "x-ms-client-request-id" : "1680ad76-b6ba-4f84-b481-cef04ab121be" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionsuncommitted03421417e72d8dede/ajavabloblistblobsflatoptionsuncommitted187374b5fc71cf5", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281344E6A9EC\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1defcd6-001e-00f1-2afc-59e1e5000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:51 GMT", + "x-ms-client-request-id" : "1dca7208-7263-4ca6-8236-5bb3d05428f8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionsuncommitted03421417e72d8dede/cjavabloblistblobsflatoptionsuncommitted2097182d06694e1", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-copy-id" : "5141b58b-0174-4bb6-a774-edfa3be6334d", + "ETag" : "\"0x8D7281344FFDD6F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "x-ms-copy-status" : "success", + "StatusCode" : "202", + "x-ms-request-id" : "b1defd0c-001e-00f1-5ffc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:51 GMT", + "x-ms-client-request-id" : "b0715ac7-abbd-46eb-a15c-5375b2c7ba07" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionsuncommitted03421417e72d8dede/cjavabloblistblobsflatoptionsuncommitted2097182d06694e1", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:52 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-blob-type" : "PageBlob", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:45:52 GMT", + "Content-Length" : "512", + "x-ms-request-id" : "b1defe4c-001e-00f1-09fc-59e1e5000000", + "Content-Type" : "application/octet-stream", + "x-ms-version" : "2019-02-02", + "x-ms-copy-id" : "5141b58b-0174-4bb6-a774-edfa3be6334d", + "x-ms-copy-source" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionsuncommitted03421417e72d8dede/ajavabloblistblobsflatoptionsuncommitted187374b5fc71cf5", + "x-ms-blob-sequence-number" : "0", + "x-ms-copy-progress" : "512/512", + "Date" : "Fri, 23 Aug 2019 21:45:51 GMT", + "x-ms-copy-completion-time" : "Fri, 23 Aug 2019 21:45:52 GMT", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "\"0x8D7281344FFDD6F\"", + "x-ms-copy-status" : "success", + "x-ms-client-request-id" : "0105a93c-0edd-4b5a-a873-e93c4b3d23b5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionsuncommitted03421417e72d8dede/mjavabloblistblobsflatoptionsuncommitted30828370677ce40", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281345A19C50\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1df0549-001e-00f1-1dfc-59e1e5000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:52 GMT", + "x-ms-client-request-id" : "e99f2f70-12f3-444f-a8e0-eca972d39a3b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionsuncommitted03421417e72d8dede/ajavabloblistblobsflatoptionsuncommitted187374b5fc71cf5?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-snapshot" : "2019-08-23T21:45:53.4313795Z", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281344E6A9EC\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1df0586-001e-00f1-56fc-59e1e5000000", + "x-ms-request-server-encrypted" : "false", + "Date" : "Fri, 23 Aug 2019 21:45:52 GMT", + "x-ms-client-request-id" : "a33477c9-3b04-492d-9ee4-a47a54f9d50a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionsuncommitted03421417e72d8dede/ujavabloblistblobsflatoptionsuncommitted4939636aab7dec9?blockid=0000&comp=block", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1df05d3-001e-00f1-1dfc-59e1e5000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:45:52 GMT", + "x-ms-client-request-id" : "bea90a6a-b0ad-48cf-981e-bd028074a5c9" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionsuncommitted03421417e72d8dede?include=uncommittedblobs&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1df061d-001e-00f1-5dfc-59e1e5000000", + "Body" : "ajavabloblistblobsflatoptionsuncommitted187374b5fc71cf5Fri, 23 Aug 2019 21:45:52 GMTFri, 23 Aug 2019 21:45:52 GMT0x8D7281344E6A9EC512application/octet-stream0PageBlobHottrueunlockedavailabletrue0cjavabloblistblobsflatoptionsuncommitted2097182d06694e1Fri, 23 Aug 2019 21:45:52 GMTFri, 23 Aug 2019 21:45:52 GMT0x8D7281344FFDD6F512application/octet-stream0PageBlobHottrueunlockedavailabletrue0mjavabloblistblobsflatoptionsuncommitted30828370677ce40Fri, 23 Aug 2019 21:45:53 GMTFri, 23 Aug 2019 21:45:53 GMT0x8D7281345A19C50512application/octet-stream0PageBlobHottrueunlockedavailabletrue0ujavabloblistblobsflatoptionsuncommitted4939636aab7dec90BlockBlobHottrueunlockedavailablefalse0", + "Date" : "Fri, 23 Aug 2019 21:45:52 GMT", + "x-ms-client-request-id" : "22dad73c-5f9a-43a7-8dfa-be4c15e7ffa6", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtclistblobsflatoptionsuncommitted&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1df0689-001e-00f1-41fc-59e1e5000000", + "Body" : "jtclistblobsflatoptionsuncommittedjtclistblobsflatoptionsuncommitted03421417e72d8dedeFri, 23 Aug 2019 21:45:52 GMT\"0x8D7281344E19BFC\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:52 GMT", + "x-ms-client-request-id" : "55207b50-4d3d-4d58-85cc-ddbca3e06101", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatoptionsuncommitted03421417e72d8dede?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1df06c3-001e-00f1-77fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:52 GMT", + "x-ms-client-request-id" : "3735f923-2473-49e4-a8df-cd081b5fd148" + }, + "Exception" : null + } ], + "variables" : [ "jtclistblobsflatoptionsuncommitted03421417e72d8dede", "javabloblistblobsflatoptionsuncommitted187374b5fc71cf5", "javabloblistblobsflatoptionsuncommitted2097182d06694e1", "javabloblistblobsflatoptionsuncommitted30828370677ce40", "javabloblistblobsflatoptionsuncommitted4939636aab7dec9" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobsflatsimple.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobsflatsimple.json new file mode 100644 index 0000000000000..4563ab52d3c31 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobsflatsimple.json @@ -0,0 +1,352 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatsimple0419750631aae9ab2f404a9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813965AFCFE\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf281f-501e-00c0-19fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:08 GMT", + "x-ms-client-request-id" : "18d68a9a-b316-4a5a-8934-064180e16935" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatsimple0419750631aae9ab2f404a9/javabloblistblobsflatsimple153259b78c6181f87846e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813966212C5\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf284f-501e-00c0-44fc-59ba32000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:48:08 GMT", + "x-ms-client-request-id" : "0ec1b2ee-dd13-4cae-9fae-620c7b3f4c20" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatsimple0419750631aae9ab2f404a9/javabloblistblobsflatsimple291203c2ec0ef48e8141f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281396676B42\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf2873-501e-00c0-68fc-59ba32000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:48:08 GMT", + "x-ms-client-request-id" : "ce9e13a6-221f-4793-a968-198122e4fc77" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatsimple0419750631aae9ab2f404a9/javabloblistblobsflatsimple3907977d93b45f6997432", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813966C759F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf289c-501e-00c0-11fc-59ba32000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:48:08 GMT", + "x-ms-client-request-id" : "e440de6b-69ba-4928-b933-bb53116abd5e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatsimple0419750631aae9ab2f404a9/javabloblistblobsflatsimple4976104e28bb0785c74f8", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728139671CE0F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf28ba-501e-00c0-2dfc-59ba32000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:48:08 GMT", + "x-ms-client-request-id" : "44907692-b1fb-4fd3-bf95-bb9a41504151" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatsimple0419750631aae9ab2f404a9/javabloblistblobsflatsimple597725136f2710baf247f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728139677268D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf28e1-501e-00c0-4efc-59ba32000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:48:08 GMT", + "x-ms-client-request-id" : "e142cbde-b658-44c8-8c4a-91fa739b3cac" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatsimple0419750631aae9ab2f404a9/javabloblistblobsflatsimple6498701f0bdfd20a49486", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813967CCD47\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf2908-501e-00c0-72fc-59ba32000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:48:08 GMT", + "x-ms-client-request-id" : "189612c6-7cf6-45ea-aac2-a56c845ed8b4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatsimple0419750631aae9ab2f404a9/javabloblistblobsflatsimple723059fc0216dea7a547a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728139682E943\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf2946-501e-00c0-2bfc-59ba32000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:48:08 GMT", + "x-ms-client-request-id" : "35bffa0c-21cd-439d-add8-defbcbe5e3a8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatsimple0419750631aae9ab2f404a9/javabloblistblobsflatsimple80959242ea72d477fb452", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813968868DC\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf296c-501e-00c0-4cfc-59ba32000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:48:08 GMT", + "x-ms-client-request-id" : "32e95719-b91f-463b-b032-6553bc121ad0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatsimple0419750631aae9ab2f404a9/javabloblistblobsflatsimple9773469a652f19665f49b", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813968E84DC\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf2999-501e-00c0-74fc-59ba32000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:48:08 GMT", + "x-ms-client-request-id" : "fcd08f29-9ec1-4c82-9e7d-00c1e378d4e4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatsimple0419750631aae9ab2f404a9/javabloblistblobsflatsimple1034012c86a6d72301640", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813969479C1\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf29b4-501e-00c0-0ffc-59ba32000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:48:08 GMT", + "x-ms-client-request-id" : "199072fa-6c69-4426-af84-d44766ab98c6" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatsimple0419750631aae9ab2f404a9?maxresults=3&include=&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77cf29c9-501e-00c0-23fc-59ba32000000", + "Body" : "3javabloblistblobsflatsimple1034012c86a6d72301640Fri, 23 Aug 2019 21:48:09 GMTFri, 23 Aug 2019 21:48:09 GMT0x8D72813969479C1512application/octet-stream0PageBlobHottrueunlockedavailabletrue0javabloblistblobsflatsimple153259b78c6181f87846eFri, 23 Aug 2019 21:48:08 GMTFri, 23 Aug 2019 21:48:08 GMT0x8D72813966212C5512application/octet-stream0PageBlobHottrueunlockedavailabletrue0javabloblistblobsflatsimple291203c2ec0ef48e8141fFri, 23 Aug 2019 21:48:08 GMTFri, 23 Aug 2019 21:48:08 GMT0x8D7281396676B42512application/octet-stream0PageBlobHottrueunlockedavailabletrue02!124!MDAwMDQ4IWphdmFibG9ibGlzdGJsb2JzZmxhdHNpbXBsZTM5MDc5NzdkOTNiNDVmNjk5NzQzMiEwMDAwMjghOTk5OS0xMi0zMVQyMzo1OTo1OS45OTk5OTk5WiE-", + "Date" : "Fri, 23 Aug 2019 21:48:08 GMT", + "x-ms-client-request-id" : "9d95a1ea-44cc-4c45-ab54-d3148f5bc248", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatsimple0419750631aae9ab2f404a9?marker=2%21124%21MDAwMDQ4IWphdmFibG9ibGlzdGJsb2JzZmxhdHNpbXBsZTM5MDc5NzdkOTNiNDVmNjk5NzQzMiEwMDAwMjghOTk5OS0xMi0zMVQyMzo1OTo1OS45OTk5OTk5WiE-&maxresults=3&include=&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77cf29f3-501e-00c0-49fc-59ba32000000", + "Body" : "2!124!MDAwMDQ4IWphdmFibG9ibGlzdGJsb2JzZmxhdHNpbXBsZTM5MDc5NzdkOTNiNDVmNjk5NzQzMiEwMDAwMjghOTk5OS0xMi0zMVQyMzo1OTo1OS45OTk5OTk5WiE-3javabloblistblobsflatsimple3907977d93b45f6997432Fri, 23 Aug 2019 21:48:08 GMTFri, 23 Aug 2019 21:48:08 GMT0x8D72813966C759F512application/octet-stream0PageBlobHottrueunlockedavailabletrue0javabloblistblobsflatsimple4976104e28bb0785c74f8Fri, 23 Aug 2019 21:48:08 GMTFri, 23 Aug 2019 21:48:08 GMT0x8D728139671CE0F512application/octet-stream0PageBlobHottrueunlockedavailabletrue0javabloblistblobsflatsimple597725136f2710baf247fFri, 23 Aug 2019 21:48:09 GMTFri, 23 Aug 2019 21:48:09 GMT0x8D728139677268D512application/octet-stream0PageBlobHottrueunlockedavailabletrue02!124!MDAwMDQ4IWphdmFibG9ibGlzdGJsb2JzZmxhdHNpbXBsZTY0OTg3MDFmMGJkZmQyMGE0OTQ4NiEwMDAwMjghOTk5OS0xMi0zMVQyMzo1OTo1OS45OTk5OTk5WiE-", + "Date" : "Fri, 23 Aug 2019 21:48:08 GMT", + "x-ms-client-request-id" : "180c12c9-c05e-4fb6-aed7-07e28c694d3f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatsimple0419750631aae9ab2f404a9?marker=2%21124%21MDAwMDQ4IWphdmFibG9ibGlzdGJsb2JzZmxhdHNpbXBsZTY0OTg3MDFmMGJkZmQyMGE0OTQ4NiEwMDAwMjghOTk5OS0xMi0zMVQyMzo1OTo1OS45OTk5OTk5WiE-&maxresults=3&include=&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77cf2a1d-501e-00c0-71fc-59ba32000000", + "Body" : "2!124!MDAwMDQ4IWphdmFibG9ibGlzdGJsb2JzZmxhdHNpbXBsZTY0OTg3MDFmMGJkZmQyMGE0OTQ4NiEwMDAwMjghOTk5OS0xMi0zMVQyMzo1OTo1OS45OTk5OTk5WiE-3javabloblistblobsflatsimple6498701f0bdfd20a49486Fri, 23 Aug 2019 21:48:09 GMTFri, 23 Aug 2019 21:48:09 GMT0x8D72813967CCD47512application/octet-stream0PageBlobHottrueunlockedavailabletrue0javabloblistblobsflatsimple723059fc0216dea7a547aFri, 23 Aug 2019 21:48:09 GMTFri, 23 Aug 2019 21:48:09 GMT0x8D728139682E943512application/octet-stream0PageBlobHottrueunlockedavailabletrue0javabloblistblobsflatsimple80959242ea72d477fb452Fri, 23 Aug 2019 21:48:09 GMTFri, 23 Aug 2019 21:48:09 GMT0x8D72813968868DC512application/octet-stream0PageBlobHottrueunlockedavailabletrue02!124!MDAwMDQ4IWphdmFibG9ibGlzdGJsb2JzZmxhdHNpbXBsZTk3NzM0NjlhNjUyZjE5NjY1ZjQ5YiEwMDAwMjghOTk5OS0xMi0zMVQyMzo1OTo1OS45OTk5OTk5WiE-", + "Date" : "Fri, 23 Aug 2019 21:48:08 GMT", + "x-ms-client-request-id" : "0be4d1e3-b4a9-42b0-9fe8-da180057c4fd", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatsimple0419750631aae9ab2f404a9?marker=2%21124%21MDAwMDQ4IWphdmFibG9ibGlzdGJsb2JzZmxhdHNpbXBsZTk3NzM0NjlhNjUyZjE5NjY1ZjQ5YiEwMDAwMjghOTk5OS0xMi0zMVQyMzo1OTo1OS45OTk5OTk5WiE-&maxresults=3&include=&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77cf2a41-501e-00c0-12fc-59ba32000000", + "Body" : "2!124!MDAwMDQ4IWphdmFibG9ibGlzdGJsb2JzZmxhdHNpbXBsZTk3NzM0NjlhNjUyZjE5NjY1ZjQ5YiEwMDAwMjghOTk5OS0xMi0zMVQyMzo1OTo1OS45OTk5OTk5WiE-3javabloblistblobsflatsimple9773469a652f19665f49bFri, 23 Aug 2019 21:48:09 GMTFri, 23 Aug 2019 21:48:09 GMT0x8D72813968E84DC512application/octet-stream0PageBlobHottrueunlockedavailabletrue0", + "Date" : "Fri, 23 Aug 2019 21:48:08 GMT", + "x-ms-client-request-id" : "4055c2d3-495c-4b2e-a2dc-a52f1727701a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtclistblobsflatsimple&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77cf2a62-501e-00c0-31fc-59ba32000000", + "Body" : "jtclistblobsflatsimplejtclistblobsflatsimple0419750631aae9ab2f404a9Fri, 23 Aug 2019 21:48:08 GMT\"0x8D72813965AFCFE\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:48:08 GMT", + "x-ms-client-request-id" : "3f3c4028-91da-4de6-af3a-51ccc473faaf", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatsimple0419750631aae9ab2f404a9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77cf2a77-501e-00c0-44fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:08 GMT", + "x-ms-client-request-id" : "285c3389-d9ac-4a73-9cc0-da5a42121b2f" + }, + "Exception" : null + } ], + "variables" : [ "jtclistblobsflatsimple0419750631aae9ab2f404a9", "javabloblistblobsflatsimple153259b78c6181f87846e", "javabloblistblobsflatsimple291203c2ec0ef48e8141f", "javabloblistblobsflatsimple3907977d93b45f6997432", "javabloblistblobsflatsimple4976104e28bb0785c74f8", "javabloblistblobsflatsimple597725136f2710baf247f", "javabloblistblobsflatsimple6498701f0bdfd20a49486", "javabloblistblobsflatsimple723059fc0216dea7a547a", "javabloblistblobsflatsimple80959242ea72d477fb452", "javabloblistblobsflatsimple9773469a652f19665f49b", "javabloblistblobsflatsimple1034012c86a6d72301640" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobsflatwithtimeoutstillbackedbypagedflux.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobsflatwithtimeoutstillbackedbypagedflux.json new file mode 100644 index 0000000000000..0657ce041fca9 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobsflatwithtimeoutstillbackedbypagedflux.json @@ -0,0 +1,222 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatwithtimeoutstillbackedbypagedflux0688224508?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728136C6D4FD9\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:46:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e0c4b5-001e-00f1-18fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:46:57 GMT", + "x-ms-client-request-id" : "adf1a422-a57d-40ec-844a-9b6fa47578ce" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatwithtimeoutstillbackedbypagedflux0688224508/javabloblistblobsflatwithtimeoutstillbackedbypagedflux1980881", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:46:58 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:46:57 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D728136C7459AC\"", + "Content-Length" : "0", + "x-ms-request-id" : "b1e0c50f-001e-00f1-68fc-59e1e5000000", + "x-ms-client-request-id" : "7b20adef-4bc2-4eaf-8a6c-7b3b0d24a2f1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatwithtimeoutstillbackedbypagedflux0688224508/javabloblistblobsflatwithtimeoutstillbackedbypagedflux2967602", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:46:58 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:46:57 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D728136C798B09\"", + "Content-Length" : "0", + "x-ms-request-id" : "b1e0c55d-001e-00f1-31fc-59e1e5000000", + "x-ms-client-request-id" : "e7408308-67b8-40a6-9a0a-63ea9d165f74" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatwithtimeoutstillbackedbypagedflux0688224508/javabloblistblobsflatwithtimeoutstillbackedbypagedflux372226c", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:46:58 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:46:57 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D728136C7EE38B\"", + "Content-Length" : "0", + "x-ms-request-id" : "b1e0c5a5-001e-00f1-74fc-59e1e5000000", + "x-ms-client-request-id" : "1ec67125-5744-43a7-8414-41f0e5f65df8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatwithtimeoutstillbackedbypagedflux0688224508/javabloblistblobsflatwithtimeoutstillbackedbypagedflux4172616", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:46:58 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:46:57 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D728136C83EDD6\"", + "Content-Length" : "0", + "x-ms-request-id" : "b1e0c5d2-001e-00f1-1ffc-59e1e5000000", + "x-ms-client-request-id" : "bc1970f8-d478-417f-9d21-df00617589cc" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatwithtimeoutstillbackedbypagedflux0688224508/javabloblistblobsflatwithtimeoutstillbackedbypagedflux503138d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:46:58 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:46:57 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D728136C88F82A\"", + "Content-Length" : "0", + "x-ms-request-id" : "b1e0c608-001e-00f1-52fc-59e1e5000000", + "x-ms-client-request-id" : "6bb5b2b2-4f3e-4256-89c8-7f9d61ca7173" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatwithtimeoutstillbackedbypagedflux0688224508?maxresults=3&include=&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1e0c635-001e-00f1-7dfc-59e1e5000000", + "Body" : "3javabloblistblobsflatwithtimeoutstillbackedbypagedflux1980881Fri, 23 Aug 2019 21:46:58 GMTFri, 23 Aug 2019 21:46:58 GMT0x8D728136C7459AC7application/octet-stream6RYQPwaVsyQ=wh+Wm18D0z1D4E+PE252gg==BlockBlobHottrueunlockedavailabletrue0javabloblistblobsflatwithtimeoutstillbackedbypagedflux2967602Fri, 23 Aug 2019 21:46:58 GMTFri, 23 Aug 2019 21:46:58 GMT0x8D728136C798B097application/octet-stream6RYQPwaVsyQ=wh+Wm18D0z1D4E+PE252gg==BlockBlobHottrueunlockedavailabletrue0javabloblistblobsflatwithtimeoutstillbackedbypagedflux372226cFri, 23 Aug 2019 21:46:58 GMTFri, 23 Aug 2019 21:46:58 GMT0x8D728136C7EE38B7application/octet-stream6RYQPwaVsyQ=wh+Wm18D0z1D4E+PE252gg==BlockBlobHottrueunlockedavailabletrue02!140!MDAwMDYxIWphdmFibG9ibGlzdGJsb2JzZmxhdHdpdGh0aW1lb3V0c3RpbGxiYWNrZWRieXBhZ2VkZmx1eDQxNzI2MTYhMDAwMDI4ITk5OTktMTItMzFUMjM6NTk6NTkuOTk5OTk5OVoh", + "Date" : "Fri, 23 Aug 2019 21:46:58 GMT", + "x-ms-client-request-id" : "8e16ddd4-77d6-4362-9cba-ab8d9823dc4e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatwithtimeoutstillbackedbypagedflux0688224508?marker=2%21140%21MDAwMDYxIWphdmFibG9ibGlzdGJsb2JzZmxhdHdpdGh0aW1lb3V0c3RpbGxiYWNrZWRieXBhZ2VkZmx1eDQxNzI2MTYhMDAwMDI4ITk5OTktMTItMzFUMjM6NTk6NTkuOTk5OTk5OVoh&maxresults=3&include=&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1e0c67c-001e-00f1-3efc-59e1e5000000", + "Body" : "2!140!MDAwMDYxIWphdmFibG9ibGlzdGJsb2JzZmxhdHdpdGh0aW1lb3V0c3RpbGxiYWNrZWRieXBhZ2VkZmx1eDQxNzI2MTYhMDAwMDI4ITk5OTktMTItMzFUMjM6NTk6NTkuOTk5OTk5OVoh3javabloblistblobsflatwithtimeoutstillbackedbypagedflux4172616Fri, 23 Aug 2019 21:46:58 GMTFri, 23 Aug 2019 21:46:58 GMT0x8D728136C83EDD67application/octet-stream6RYQPwaVsyQ=wh+Wm18D0z1D4E+PE252gg==BlockBlobHottrueunlockedavailabletrue0javabloblistblobsflatwithtimeoutstillbackedbypagedflux503138dFri, 23 Aug 2019 21:46:58 GMTFri, 23 Aug 2019 21:46:58 GMT0x8D728136C88F82A7application/octet-stream6RYQPwaVsyQ=wh+Wm18D0z1D4E+PE252gg==BlockBlobHottrueunlockedavailabletrue0", + "Date" : "Fri, 23 Aug 2019 21:46:58 GMT", + "x-ms-client-request-id" : "afa930fe-ec7a-4508-b748-fedd989985cf", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtclistblobsflatwithtimeoutstillbackedbypagedflux&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1e0c6a4-001e-00f1-63fc-59e1e5000000", + "Body" : "jtclistblobsflatwithtimeoutstillbackedbypagedfluxjtclistblobsflatwithtimeoutstillbackedbypagedflux0688224508Fri, 23 Aug 2019 21:46:58 GMT\"0x8D728136C6D4FD9\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:46:58 GMT", + "x-ms-client-request-id" : "1d127eb7-72ee-4bfc-91d2-ed47f211e55c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobsflatwithtimeoutstillbackedbypagedflux0688224508?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1e0c6d1-001e-00f1-0efc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:46:58 GMT", + "x-ms-client-request-id" : "a3b3e29a-05d0-480a-ae8a-1b87ba488dd9" + }, + "Exception" : null + } ], + "variables" : [ "jtclistblobsflatwithtimeoutstillbackedbypagedflux0688224508", "javabloblistblobsflatwithtimeoutstillbackedbypagedflux1980881", "javabloblistblobsflatwithtimeoutstillbackedbypagedflux2967602", "javabloblistblobsflatwithtimeoutstillbackedbypagedflux372226c", "javabloblistblobsflatwithtimeoutstillbackedbypagedflux4172616", "javabloblistblobsflatwithtimeoutstillbackedbypagedflux503138d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobshierarchy.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobshierarchy.json new file mode 100644 index 0000000000000..3b3c1ed1009d0 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobshierarchy.json @@ -0,0 +1,103 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshierarchy076987fd47bf43ffe941e997?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728136CDD1D0D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:46:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e0ca52-001e-00f1-4dfc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:46:58 GMT", + "x-ms-client-request-id" : "cbd11550-d227-4bd4-afe4-fd01a3622c7c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshierarchy076987fd47bf43ffe941e997/javabloblistblobshierarchy1562832218a7be2bd1405", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728136CF20CF4\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:46:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e0cb6c-001e-00f1-4dfc-59e1e5000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:46:58 GMT", + "x-ms-client-request-id" : "6db98aaa-c5cd-4d48-97af-41af8fc64d2b" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshierarchy076987fd47bf43ffe941e997?delimiter=/&include=&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1e0cbb4-001e-00f1-11fc-59e1e5000000", + "Body" : "/javabloblistblobshierarchy1562832218a7be2bd1405Fri, 23 Aug 2019 21:46:59 GMTFri, 23 Aug 2019 21:46:59 GMT0x8D728136CF20CF4512application/octet-stream0PageBlobHottrueunlockedavailabletrue0", + "Date" : "Fri, 23 Aug 2019 21:46:58 GMT", + "x-ms-client-request-id" : "d25dff81-af57-40a6-8389-0946f23bb016", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtclistblobshierarchy&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1e0cbf7-001e-00f1-50fc-59e1e5000000", + "Body" : "jtclistblobshierarchyjtclistblobshierarchy076987fd47bf43ffe941e997Fri, 23 Aug 2019 21:46:59 GMT\"0x8D728136CDD1D0D\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:46:58 GMT", + "x-ms-client-request-id" : "2e443d77-682d-4794-8bec-c7b0fac17d64", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshierarchy076987fd47bf43ffe941e997?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1e0cc33-001e-00f1-09fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:46:58 GMT", + "x-ms-client-request-id" : "59e5cdbc-c046-481c-8344-ba9460658c68" + }, + "Exception" : null + } ], + "variables" : [ "jtclistblobshierarchy076987fd47bf43ffe941e997", "javabloblistblobshierarchy1562832218a7be2bd1405" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobshierarchymin.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobshierarchymin.json new file mode 100644 index 0000000000000..cb76e67d368c5 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobshierarchymin.json @@ -0,0 +1,82 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshierarchymin0609235af2c7fc479c4d8a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728136D056F75\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:46:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e0cc8d-001e-00f1-5cfc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:46:58 GMT", + "x-ms-client-request-id" : "4bfe66da-652e-4e36-8674-bcbf059fbc50" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshierarchymin0609235af2c7fc479c4d8a?prefix=/&delimiter=/&include=&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1e0cccb-001e-00f1-17fc-59e1e5000000", + "Body" : "//", + "Date" : "Fri, 23 Aug 2019 21:46:58 GMT", + "x-ms-client-request-id" : "ba8c1419-ccd0-44c3-99e2-df1f5228f530", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtclistblobshierarchymin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1e0cd0c-001e-00f1-51fc-59e1e5000000", + "Body" : "jtclistblobshierarchyminjtclistblobshierarchymin0609235af2c7fc479c4d8aFri, 23 Aug 2019 21:46:59 GMT\"0x8D728136D056F75\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:46:58 GMT", + "x-ms-client-request-id" : "6401615f-fc09-40f9-ae7c-2038c42a7272", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshierarchymin0609235af2c7fc479c4d8a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1e0cd3a-001e-00f1-7dfc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:46:58 GMT", + "x-ms-client-request-id" : "13f57751-9811-494a-9bfd-c7edd458f22d" + }, + "Exception" : null + } ], + "variables" : [ "jtclistblobshierarchymin0609235af2c7fc479c4d8a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobshierdelim.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobshierdelim.json new file mode 100644 index 0000000000000..0ec6934ffb614 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobshierdelim.json @@ -0,0 +1,229 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshierdelim088404fa6c4994594c4850bc?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281395B6BD5E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e2a734-001e-00f1-11fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:48:07 GMT", + "x-ms-client-request-id" : "72bea0c2-8ee4-4b7f-9b0d-48ad0a71cd25" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshierdelim088404fa6c4994594c4850bc/a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281395BC0D0C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e2a76c-001e-00f1-45fc-59e1e5000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:48:07 GMT", + "x-ms-client-request-id" : "346a1255-9c76-48b4-9b00-bcd17d3d73a4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshierdelim088404fa6c4994594c4850bc/b/a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281395C13E73\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e2a7b0-001e-00f1-06fc-59e1e5000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:48:07 GMT", + "x-ms-client-request-id" : "fc64d018-0a5f-40fe-955e-209fe9fc0114" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshierdelim088404fa6c4994594c4850bc/c", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281395C6BE0D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e2a7e3-001e-00f1-35fc-59e1e5000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:48:07 GMT", + "x-ms-client-request-id" : "a07c6205-51f4-4df8-8a15-f3287f44e1bd" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshierdelim088404fa6c4994594c4850bc/d/a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281395CC64BE\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e2a822-001e-00f1-70fc-59e1e5000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:48:07 GMT", + "x-ms-client-request-id" : "0ddd9a2b-1606-451a-be21-ef8b474c046f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshierdelim088404fa6c4994594c4850bc/e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281395D20B6F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e2a85b-001e-00f1-27fc-59e1e5000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:48:07 GMT", + "x-ms-client-request-id" : "9f8e4587-2bb2-42bd-9ccc-cb315618c2ee" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshierdelim088404fa6c4994594c4850bc/f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281395D763F6\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e2a8a7-001e-00f1-6bfc-59e1e5000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:48:07 GMT", + "x-ms-client-request-id" : "aece5e97-c00c-41ed-8666-4deb56e45fbe" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshierdelim088404fa6c4994594c4850bc/g/a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281395DCBC7D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e2a8e4-001e-00f1-26fc-59e1e5000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:48:07 GMT", + "x-ms-client-request-id" : "1574e1be-b74a-4808-9201-3e3270f61df6" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshierdelim088404fa6c4994594c4850bc?delimiter=/&include=&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1e2a92c-001e-00f1-67fc-59e1e5000000", + "Body" : "/aFri, 23 Aug 2019 21:48:07 GMTFri, 23 Aug 2019 21:48:07 GMT0x8D7281395BC0D0C0application/octet-streamAppendBlobHottrueunlockedavailabletrue0b/cFri, 23 Aug 2019 21:48:07 GMTFri, 23 Aug 2019 21:48:07 GMT0x8D7281395C6BE0D0application/octet-streamAppendBlobHottrueunlockedavailabletrue0d/eFri, 23 Aug 2019 21:48:07 GMTFri, 23 Aug 2019 21:48:07 GMT0x8D7281395D20B6F0application/octet-streamAppendBlobHottrueunlockedavailabletrue0fFri, 23 Aug 2019 21:48:07 GMTFri, 23 Aug 2019 21:48:07 GMT0x8D7281395D763F60application/octet-streamAppendBlobHottrueunlockedavailabletrue0g/", + "Date" : "Fri, 23 Aug 2019 21:48:07 GMT", + "x-ms-client-request-id" : "ea9c6f11-516d-48ca-8ba0-5d824fff97f3", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtclistblobshierdelim&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1e2a9b7-001e-00f1-69fc-59e1e5000000", + "Body" : "jtclistblobshierdelimjtclistblobshierdelim088404fa6c4994594c4850bcFri, 23 Aug 2019 21:48:07 GMT\"0x8D7281395B6BD5E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:48:07 GMT", + "x-ms-client-request-id" : "c5072613-b805-4f61-bdfb-d7e5263fe67c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshierdelim088404fa6c4994594c4850bc?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1e2a9fa-001e-00f1-27fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:48:07 GMT", + "x-ms-client-request-id" : "7eff44b0-a641-4195-8510-2eae12b0837f" + }, + "Exception" : null + } ], + "variables" : [ "jtclistblobshierdelim088404fa6c4994594c4850bc" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobshiererror.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobshiererror.json new file mode 100644 index 0000000000000..c81afdc1f5b84 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobshiererror.json @@ -0,0 +1,83 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshiererror072271499b446305854ad9bc?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281396BDF5AA\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf2aa7-501e-00c0-73fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:08 GMT", + "x-ms-client-request-id" : "fa8a0c42-f104-4f5b-a177-b21d022c682e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshiererror152049666630a3244c4cedba?prefix=.&delimiter=/&include=&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ContainerNotFound", + "retry-after" : "0", + "Content-Length" : "225", + "StatusCode" : "404", + "x-ms-request-id" : "77cf2ac4-501e-00c0-0dfc-59ba32000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:77cf2ac4-501e-00c0-0dfc-59ba32000000\nTime:2019-08-23T21:48:09.5106141Z", + "Date" : "Fri, 23 Aug 2019 21:48:08 GMT", + "x-ms-client-request-id" : "0811c82c-9473-4a9d-b819-2df05b7807e3", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtclistblobshiererror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77cf2ad9-501e-00c0-21fc-59ba32000000", + "Body" : "jtclistblobshiererrorjtclistblobshiererror072271499b446305854ad9bcFri, 23 Aug 2019 21:48:09 GMT\"0x8D7281396BDF5AA\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:48:08 GMT", + "x-ms-client-request-id" : "b0d22015-8f54-4da3-af59-734409ca2a1f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshiererror072271499b446305854ad9bc?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77cf2b03-501e-00c0-46fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:09 GMT", + "x-ms-client-request-id" : "a7548bfd-48dd-4272-a937-eba42dd64613" + }, + "Exception" : null + } ], + "variables" : [ "jtclistblobshiererror072271499b446305854ad9bc", "jtclistblobshiererror152049666630a3244c4cedba" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobshiermarker.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobshiermarker.json new file mode 100644 index 0000000000000..ae81b221599a9 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobshiermarker.json @@ -0,0 +1,332 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshiermarker02556469d794e2fb4e48a99?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281395F86A5C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e2aa53-001e-00f1-7bfc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:48:07 GMT", + "x-ms-client-request-id" : "040043fe-7a95-437f-958b-479f46225abb" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshiermarker02556469d794e2fb4e48a99/javabloblistblobshiermarker176002f17a1827406543d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281395FE7D8B\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e2aab1-001e-00f1-4efc-59e1e5000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:48:07 GMT", + "x-ms-client-request-id" : "cc895c8a-a275-478d-9c2c-26519cdba7f4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshiermarker02556469d794e2fb4e48a99/javabloblistblobshiermarker271163be74bdbf25eb4f8", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813960535F6\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e2aaf9-001e-00f1-14fc-59e1e5000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:48:07 GMT", + "x-ms-client-request-id" : "e3b375ff-4988-449e-8dd3-0c671563d121" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshiermarker02556469d794e2fb4e48a99/javabloblistblobshiermarker33346306d451508db543b", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813960B791C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e2ab3b-001e-00f1-52fc-59e1e5000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:48:07 GMT", + "x-ms-client-request-id" : "5119714e-ebaf-4122-baaf-5e50b7455de1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshiermarker02556469d794e2fb4e48a99/javabloblistblobshiermarker48818382a7d44c8d9d442", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281396111FCD\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e2ab70-001e-00f1-04fc-59e1e5000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:48:07 GMT", + "x-ms-client-request-id" : "5645137e-d17e-4245-a969-fc41260fa527" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshiermarker02556469d794e2fb4e48a99/javabloblistblobshiermarker50593473aa94cfc64b4a5", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728139616C674\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e2abb3-001e-00f1-43fc-59e1e5000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:48:07 GMT", + "x-ms-client-request-id" : "02f9fa41-2cbc-4a0f-b0d3-07ce70297fda" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshiermarker02556469d794e2fb4e48a99/javabloblistblobshiermarker657780127d4f19a859460", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813961C6D25\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e2abf3-001e-00f1-03fc-59e1e5000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:48:07 GMT", + "x-ms-client-request-id" : "3a1aa909-49b7-4785-8703-c694ce7d8c46" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshiermarker02556469d794e2fb4e48a99/javabloblistblobshiermarker746216a902ad2cf9144bf", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813962213E9\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e2ac36-001e-00f1-40fc-59e1e5000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:48:07 GMT", + "x-ms-client-request-id" : "204be3bc-81dd-4456-8d31-014fce980c4c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshiermarker02556469d794e2fb4e48a99/javabloblistblobshiermarker897470e44a0dcfc9ee4f0", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813962C0159\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e2ac77-001e-00f1-7ffc-59e1e5000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:48:07 GMT", + "x-ms-client-request-id" : "6e72a8bf-b19e-4012-bc9e-428f8be36d2b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshiermarker02556469d794e2fb4e48a99/javabloblistblobshiermarker98614831941116941144a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281396355275\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e2acdf-001e-00f1-60fc-59e1e5000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:48:07 GMT", + "x-ms-client-request-id" : "d60ce9e9-163e-47c6-8d63-0333483a2f0a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshiermarker02556469d794e2fb4e48a99/javabloblistblobshiermarker10846375824e181a81b48", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813963AD20E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e2ad15-001e-00f1-15fc-59e1e5000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:48:07 GMT", + "x-ms-client-request-id" : "40ab703a-3c2c-447b-b125-624d64f539df" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshiermarker02556469d794e2fb4e48a99?delimiter=/&maxresults=6&include=&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1e2ad4a-001e-00f1-4afc-59e1e5000000", + "Body" : "6/javabloblistblobshiermarker10846375824e181a81b48Fri, 23 Aug 2019 21:48:08 GMTFri, 23 Aug 2019 21:48:08 GMT0x8D72813963AD20E512application/octet-stream0PageBlobHottrueunlockedavailabletrue0javabloblistblobshiermarker176002f17a1827406543dFri, 23 Aug 2019 21:48:08 GMTFri, 23 Aug 2019 21:48:08 GMT0x8D7281395FE7D8B512application/octet-stream0PageBlobHottrueunlockedavailabletrue0javabloblistblobshiermarker271163be74bdbf25eb4f8Fri, 23 Aug 2019 21:48:08 GMTFri, 23 Aug 2019 21:48:08 GMT0x8D72813960535F6512application/octet-stream0PageBlobHottrueunlockedavailabletrue0javabloblistblobshiermarker33346306d451508db543bFri, 23 Aug 2019 21:48:08 GMTFri, 23 Aug 2019 21:48:08 GMT0x8D72813960B791C512application/octet-stream0PageBlobHottrueunlockedavailabletrue0javabloblistblobshiermarker48818382a7d44c8d9d442Fri, 23 Aug 2019 21:48:08 GMTFri, 23 Aug 2019 21:48:08 GMT0x8D7281396111FCD512application/octet-stream0PageBlobHottrueunlockedavailabletrue0javabloblistblobshiermarker50593473aa94cfc64b4a5Fri, 23 Aug 2019 21:48:08 GMTFri, 23 Aug 2019 21:48:08 GMT0x8D728139616C674512application/octet-stream0PageBlobHottrueunlockedavailabletrue02!124!MDAwMDQ4IWphdmFibG9ibGlzdGJsb2JzaGllcm1hcmtlcjY1Nzc4MDEyN2Q0ZjE5YTg1OTQ2MCEwMDAwMjghOTk5OS0xMi0zMVQyMzo1OTo1OS45OTk5OTk5WiE-", + "Date" : "Fri, 23 Aug 2019 21:48:07 GMT", + "x-ms-client-request-id" : "9b183d39-5c47-4c5b-b3d1-44eba0870b90", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshiermarker02556469d794e2fb4e48a99?delimiter=/&marker=2%21124%21MDAwMDQ4IWphdmFibG9ibGlzdGJsb2JzaGllcm1hcmtlcjY1Nzc4MDEyN2Q0ZjE5YTg1OTQ2MCEwMDAwMjghOTk5OS0xMi0zMVQyMzo1OTo1OS45OTk5OTk5WiE-&maxresults=6&include=&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77cf27aa-501e-00c0-30fc-59ba32000000", + "Body" : "2!124!MDAwMDQ4IWphdmFibG9ibGlzdGJsb2JzaGllcm1hcmtlcjY1Nzc4MDEyN2Q0ZjE5YTg1OTQ2MCEwMDAwMjghOTk5OS0xMi0zMVQyMzo1OTo1OS45OTk5OTk5WiE-6/javabloblistblobshiermarker657780127d4f19a859460Fri, 23 Aug 2019 21:48:08 GMTFri, 23 Aug 2019 21:48:08 GMT0x8D72813961C6D25512application/octet-stream0PageBlobHottrueunlockedavailabletrue0javabloblistblobshiermarker746216a902ad2cf9144bfFri, 23 Aug 2019 21:48:08 GMTFri, 23 Aug 2019 21:48:08 GMT0x8D72813962213E9512application/octet-stream0PageBlobHottrueunlockedavailabletrue0javabloblistblobshiermarker897470e44a0dcfc9ee4f0Fri, 23 Aug 2019 21:48:08 GMTFri, 23 Aug 2019 21:48:08 GMT0x8D72813962C0159512application/octet-stream0PageBlobHottrueunlockedavailabletrue0javabloblistblobshiermarker98614831941116941144aFri, 23 Aug 2019 21:48:08 GMTFri, 23 Aug 2019 21:48:08 GMT0x8D7281396355275512application/octet-stream0PageBlobHottrueunlockedavailabletrue0", + "Date" : "Fri, 23 Aug 2019 21:48:08 GMT", + "x-ms-client-request-id" : "ec9d9baf-22f8-461a-b65a-d904ac4e219b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshiermarker02556469d794e2fb4e48a99?delimiter=/&marker=2%21124%21MDAwMDQ4IWphdmFibG9ibGlzdGJsb2JzaGllcm1hcmtlcjY1Nzc4MDEyN2Q0ZjE5YTg1OTQ2MCEwMDAwMjghOTk5OS0xMi0zMVQyMzo1OTo1OS45OTk5OTk5WiE-&maxresults=6&include=&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1e2ad9f-001e-00f1-1cfc-59e1e5000000", + "Body" : "2!124!MDAwMDQ4IWphdmFibG9ibGlzdGJsb2JzaGllcm1hcmtlcjY1Nzc4MDEyN2Q0ZjE5YTg1OTQ2MCEwMDAwMjghOTk5OS0xMi0zMVQyMzo1OTo1OS45OTk5OTk5WiE-6/javabloblistblobshiermarker657780127d4f19a859460Fri, 23 Aug 2019 21:48:08 GMTFri, 23 Aug 2019 21:48:08 GMT0x8D72813961C6D25512application/octet-stream0PageBlobHottrueunlockedavailabletrue0javabloblistblobshiermarker746216a902ad2cf9144bfFri, 23 Aug 2019 21:48:08 GMTFri, 23 Aug 2019 21:48:08 GMT0x8D72813962213E9512application/octet-stream0PageBlobHottrueunlockedavailabletrue0javabloblistblobshiermarker897470e44a0dcfc9ee4f0Fri, 23 Aug 2019 21:48:08 GMTFri, 23 Aug 2019 21:48:08 GMT0x8D72813962C0159512application/octet-stream0PageBlobHottrueunlockedavailabletrue0javabloblistblobshiermarker98614831941116941144aFri, 23 Aug 2019 21:48:08 GMTFri, 23 Aug 2019 21:48:08 GMT0x8D7281396355275512application/octet-stream0PageBlobHottrueunlockedavailabletrue0", + "Date" : "Fri, 23 Aug 2019 21:48:07 GMT", + "x-ms-client-request-id" : "a6f7ca07-7cff-4d2c-80c5-00befefd6c15", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtclistblobshiermarker&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77cf27e5-501e-00c0-62fc-59ba32000000", + "Body" : "jtclistblobshiermarkerjtclistblobshiermarker02556469d794e2fb4e48a99Fri, 23 Aug 2019 21:48:08 GMT\"0x8D7281395F86A5C\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:48:08 GMT", + "x-ms-client-request-id" : "b9c5e0ca-d356-4a2f-8f40-835cddf35c5d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshiermarker02556469d794e2fb4e48a99?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77cf27fb-501e-00c0-78fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:08 GMT", + "x-ms-client-request-id" : "7fa4cb64-479b-4db5-90c4-d8aaf7469b46" + }, + "Exception" : null + } ], + "variables" : [ "jtclistblobshiermarker02556469d794e2fb4e48a99", "javabloblistblobshiermarker176002f17a1827406543d", "javabloblistblobshiermarker271163be74bdbf25eb4f8", "javabloblistblobshiermarker33346306d451508db543b", "javabloblistblobshiermarker48818382a7d44c8d9d442", "javabloblistblobshiermarker50593473aa94cfc64b4a5", "javabloblistblobshiermarker657780127d4f19a859460", "javabloblistblobshiermarker746216a902ad2cf9144bf", "javabloblistblobshiermarker897470e44a0dcfc9ee4f0", "javabloblistblobshiermarker98614831941116941144a", "javabloblistblobshiermarker10846375824e181a81b48" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobshieroptionscopy.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobshieroptionscopy.json new file mode 100644 index 0000000000000..7e8cec6fa7afc --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobshieroptionscopy.json @@ -0,0 +1,225 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshieroptionscopy07023204ee9f409f994a7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728136D185FDD\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:46:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e0cd7d-001e-00f1-3efc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:46:58 GMT", + "x-ms-client-request-id" : "c28f9b32-01e9-498a-9501-a6d2f49f730d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshieroptionscopy07023204ee9f409f994a7/ajavabloblistblobshieroptionscopy14264503827a2568bd", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728136D1D9472\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:46:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e0cdc3-001e-00f1-7dfc-59e1e5000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:46:58 GMT", + "x-ms-client-request-id" : "df0478a2-380d-4ea9-85df-189c196bca76" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshieroptionscopy07023204ee9f409f994a7/cjavabloblistblobshieroptionscopy2640617ffbc223e834", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-copy-id" : "44158179-5bcb-4169-ae3f-671d388044d1", + "ETag" : "\"0x8D728136D4BDBCB\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:46:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "x-ms-copy-status" : "success", + "StatusCode" : "202", + "x-ms-request-id" : "b1e0ce00-001e-00f1-34fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:46:59 GMT", + "x-ms-client-request-id" : "16c106eb-859c-40f1-983a-0dca556d4767" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshieroptionscopy07023204ee9f409f994a7/cjavabloblistblobshieroptionscopy2640617ffbc223e834", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:46:59 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-blob-type" : "PageBlob", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:46:59 GMT", + "Content-Length" : "512", + "x-ms-request-id" : "b1e0d03d-001e-00f1-50fc-59e1e5000000", + "Content-Type" : "application/octet-stream", + "x-ms-version" : "2019-02-02", + "x-ms-copy-id" : "44158179-5bcb-4169-ae3f-671d388044d1", + "x-ms-copy-source" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshieroptionscopy07023204ee9f409f994a7/ajavabloblistblobshieroptionscopy14264503827a2568bd", + "x-ms-blob-sequence-number" : "0", + "x-ms-copy-progress" : "512/512", + "Date" : "Fri, 23 Aug 2019 21:46:59 GMT", + "x-ms-copy-completion-time" : "Fri, 23 Aug 2019 21:46:59 GMT", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "\"0x8D728136D4BDBCB\"", + "x-ms-copy-status" : "success", + "x-ms-client-request-id" : "06b6ae6f-06ae-41f2-bc8d-d81c0683ac2d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshieroptionscopy07023204ee9f409f994a7/mjavabloblistblobshieroptionscopy309537b9fb94894389", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728136DED9ADF\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:47:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e0d832-001e-00f1-4bfc-59e1e5000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:47:00 GMT", + "x-ms-client-request-id" : "ab29b75c-8f8b-491f-b856-7701a3e16b26" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshieroptionscopy07023204ee9f409f994a7/ajavabloblistblobshieroptionscopy14264503827a2568bd?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-snapshot" : "2019-08-23T21:47:01.0322732Z", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728136D1D9472\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:46:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e0d865-001e-00f1-7afc-59e1e5000000", + "x-ms-request-server-encrypted" : "false", + "Date" : "Fri, 23 Aug 2019 21:47:00 GMT", + "x-ms-client-request-id" : "63a57114-ab29-4f1e-803e-f9915167a0f1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshieroptionscopy07023204ee9f409f994a7/ujavabloblistblobshieroptionscopy4191309fdc447d4a66?blockid=0000&comp=block", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e0d8a4-001e-00f1-37fc-59e1e5000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:47:00 GMT", + "x-ms-client-request-id" : "08087620-b11a-4c7d-a7a6-59b2d39dd706" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshieroptionscopy07023204ee9f409f994a7?delimiter=&include=copy&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1e0d8ec-001e-00f1-7afc-59e1e5000000", + "Body" : "ajavabloblistblobshieroptionscopy14264503827a2568bdFri, 23 Aug 2019 21:46:59 GMTFri, 23 Aug 2019 21:46:59 GMT0x8D728136D1D9472512application/octet-stream0PageBlobHottrueunlockedavailabletrue0cjavabloblistblobshieroptionscopy2640617ffbc223e834Fri, 23 Aug 2019 21:46:59 GMTFri, 23 Aug 2019 21:46:59 GMT0x8D728136D4BDBCB512application/octet-stream0PageBlobHottrueunlockedavailable44158179-5bcb-4169-ae3f-671d388044d1https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshieroptionscopy07023204ee9f409f994a7/ajavabloblistblobshieroptionscopy14264503827a2568bdsuccess512/512Fri, 23 Aug 2019 21:46:59 GMTtrue0mjavabloblistblobshieroptionscopy309537b9fb94894389Fri, 23 Aug 2019 21:47:01 GMTFri, 23 Aug 2019 21:47:00 GMT0x8D728136DED9ADF512application/octet-stream0PageBlobHottrueunlockedavailabletrue0", + "Date" : "Fri, 23 Aug 2019 21:47:00 GMT", + "x-ms-client-request-id" : "d2d2d663-4ceb-45eb-9830-6882d7d33ade", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtclistblobshieroptionscopy&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1e0d94b-001e-00f1-52fc-59e1e5000000", + "Body" : "jtclistblobshieroptionscopyjtclistblobshieroptionscopy07023204ee9f409f994a7Fri, 23 Aug 2019 21:46:59 GMT\"0x8D728136D185FDD\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:47:00 GMT", + "x-ms-client-request-id" : "82aa317b-4e47-4c56-8cca-cb5ee23e3132", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshieroptionscopy07023204ee9f409f994a7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1e0d986-001e-00f1-08fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:47:00 GMT", + "x-ms-client-request-id" : "7cc8a0ce-f65a-4c2e-a46e-8fd1566c54bc" + }, + "Exception" : null + } ], + "variables" : [ "jtclistblobshieroptionscopy07023204ee9f409f994a7", "javabloblistblobshieroptionscopy14264503827a2568bd", "javabloblistblobshieroptionscopy2640617ffbc223e834", "javabloblistblobshieroptionscopy309537b9fb94894389", "javabloblistblobshieroptionscopy4191309fdc447d4a66" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobshieroptionsdeleted.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobshieroptionsdeleted.json new file mode 100644 index 0000000000000..ca292810f583c --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobshieroptionsdeleted.json @@ -0,0 +1,160 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshieroptionsdeleted0417070d33825053e44?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728136FD0B0E1\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:47:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e0f137-001e-00f1-34fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:47:03 GMT", + "x-ms-client-request-id" : "678fc13c-6d5d-47fe-a564-0cf1c037c8f9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1e0f177-001e-00f1-6dfc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:47:03 GMT", + "x-ms-client-request-id" : "b44a4ea4-5f30-4209-bc8e-18e948f33655" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshieroptionsdeleted0417070d33825053e44/javabloblistblobshieroptionsdeleted153413a2a220983eb", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281381C1BC7D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:47:34 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e1c2c5-001e-00f1-52fc-59e1e5000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:47:33 GMT", + "x-ms-client-request-id" : "2884816c-28b8-45a9-84d4-fc963bfb98a0" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshieroptionsdeleted0417070d33825053e44/javabloblistblobshieroptionsdeleted153413a2a220983eb", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-delete-type-permanent" : "false", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1e1c30a-001e-00f1-11fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:47:33 GMT", + "x-ms-client-request-id" : "8302eda5-5f56-4811-95c0-2e763f913931" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshieroptionsdeleted0417070d33825053e44?delimiter=&include=deleted&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1e1c33a-001e-00f1-39fc-59e1e5000000", + "Body" : "javabloblistblobshieroptionsdeleted153413a2a220983ebtrueFri, 23 Aug 2019 21:47:34 GMTFri, 23 Aug 2019 21:47:34 GMT0x8D7281381C1BC7D0application/octet-streamAppendBlobHottruetrueFri, 23 Aug 2019 21:47:34 GMT10", + "Date" : "Fri, 23 Aug 2019 21:47:33 GMT", + "x-ms-client-request-id" : "2f9356cf-506a-4878-bd6d-44ec9335a47f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1e1c365-001e-00f1-61fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:47:33 GMT", + "x-ms-client-request-id" : "4d8e4747-d7f5-45a7-a92f-450136a54267" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtclistblobshieroptionsdeleted&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1e29161-001e-00f1-2efc-59e1e5000000", + "Body" : "jtclistblobshieroptionsdeletedjtclistblobshieroptionsdeleted0417070d33825053e44Fri, 23 Aug 2019 21:47:04 GMT\"0x8D728136FD0B0E1\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:48:03 GMT", + "x-ms-client-request-id" : "f7527a8f-ed76-4b41-981f-1cf9d65ae088", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshieroptionsdeleted0417070d33825053e44?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1e29197-001e-00f1-63fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:48:03 GMT", + "x-ms-client-request-id" : "6f6bf86b-09e8-4b6c-80e9-f834f074d72c" + }, + "Exception" : null + } ], + "variables" : [ "jtclistblobshieroptionsdeleted0417070d33825053e44", "javabloblistblobshieroptionsdeleted153413a2a220983eb" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobshieroptionsfail[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobshieroptionsfail[0].json new file mode 100644 index 0000000000000..c7518a4c9dc0d --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobshieroptionsfail[0].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshieroptionsfail096672eb4d857e941f40a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813959411AB\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e2a598-001e-00f1-11fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:48:06 GMT", + "x-ms-client-request-id" : "e15a64e5-50d7-4c6a-906f-642a05862bcc" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtclistblobshieroptionsfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1e2a60a-001e-00f1-79fc-59e1e5000000", + "Body" : "jtclistblobshieroptionsfailjtclistblobshieroptionsfail096672eb4d857e941f40aFri, 23 Aug 2019 21:48:07 GMT\"0x8D72813959411AB\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:48:06 GMT", + "x-ms-client-request-id" : "ffec9df4-1405-4a7d-a5f3-1b1a5f10dadf", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshieroptionsfail096672eb4d857e941f40a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1e2a63d-001e-00f1-28fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:48:06 GMT", + "x-ms-client-request-id" : "39e2b5b5-b94b-49b9-8078-abb651c220ca" + }, + "Exception" : null + } ], + "variables" : [ "jtclistblobshieroptionsfail096672eb4d857e941f40a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobshieroptionsfail[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobshieroptionsfail[1].json new file mode 100644 index 0000000000000..720f264224dc3 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobshieroptionsfail[1].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshieroptionsfail027448a47d9ad44e7f4ad?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281395A5F062\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e2a678-001e-00f1-5ffc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:48:06 GMT", + "x-ms-client-request-id" : "1bb46347-3a97-409a-aa20-ff02170b15bb" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtclistblobshieroptionsfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1e2a6c5-001e-00f1-26fc-59e1e5000000", + "Body" : "jtclistblobshieroptionsfailjtclistblobshieroptionsfail027448a47d9ad44e7f4adFri, 23 Aug 2019 21:48:07 GMT\"0x8D7281395A5F062\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:48:06 GMT", + "x-ms-client-request-id" : "08b36e40-a897-4588-a098-c120ec576377", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshieroptionsfail027448a47d9ad44e7f4ad?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1e2a6ea-001e-00f1-4bfc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:48:06 GMT", + "x-ms-client-request-id" : "181eead2-783d-4db7-af12-f8f6f0ca87c2" + }, + "Exception" : null + } ], + "variables" : [ "jtclistblobshieroptionsfail027448a47d9ad44e7f4ad" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobshieroptionsmaxresults.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobshieroptionsmaxresults.json new file mode 100644 index 0000000000000..5e87993ac60bc --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobshieroptionsmaxresults.json @@ -0,0 +1,225 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshieroptionsmaxresults0431465702a9d7f620?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281394B253D0\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e29b58-001e-00f1-6dfc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:48:05 GMT", + "x-ms-client-request-id" : "296aeb8b-e40a-4add-ab84-064e822ffbe6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshieroptionsmaxresults0431465702a9d7f620/ajavabloblistblobshieroptionsmaxresults1759550138bd387", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281394B83FED\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e29baf-001e-00f1-3ffc-59e1e5000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:48:05 GMT", + "x-ms-client-request-id" : "0b42f5e0-ed17-4876-b72f-c32a65c1ffff" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshieroptionsmaxresults0431465702a9d7f620/cjavabloblistblobshieroptionsmaxresults275357287678519", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-copy-id" : "2ebf8cc6-0a67-4282-81c6-1d2fcbcad4c2", + "ETag" : "\"0x8D7281394C9A958\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "x-ms-copy-status" : "success", + "StatusCode" : "202", + "x-ms-request-id" : "b1e29be2-001e-00f1-6ffc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:48:05 GMT", + "x-ms-client-request-id" : "ad9b86ef-7627-4c71-8da8-21e7fd2c3a7e" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshieroptionsmaxresults0431465702a9d7f620/cjavabloblistblobshieroptionsmaxresults275357287678519", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:06 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-blob-type" : "PageBlob", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:48:06 GMT", + "Content-Length" : "512", + "x-ms-request-id" : "b1e29ca3-001e-00f1-26fc-59e1e5000000", + "Content-Type" : "application/octet-stream", + "x-ms-version" : "2019-02-02", + "x-ms-copy-id" : "2ebf8cc6-0a67-4282-81c6-1d2fcbcad4c2", + "x-ms-copy-source" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshieroptionsmaxresults0431465702a9d7f620/ajavabloblistblobshieroptionsmaxresults1759550138bd387", + "x-ms-blob-sequence-number" : "0", + "x-ms-copy-progress" : "512/512", + "Date" : "Fri, 23 Aug 2019 21:48:05 GMT", + "x-ms-copy-completion-time" : "Fri, 23 Aug 2019 21:48:06 GMT", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "\"0x8D7281394C9A958\"", + "x-ms-copy-status" : "success", + "x-ms-client-request-id" : "933419b8-0392-4612-a22e-92cd7e8ae27c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshieroptionsmaxresults0431465702a9d7f620/mjavabloblistblobshieroptionsmaxresults3682397e63a196b", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813956C52DD\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e2a3d1-001e-00f1-68fc-59e1e5000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:48:06 GMT", + "x-ms-client-request-id" : "f21cc4ec-da15-4ea2-b613-8f1bf3dbc563" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshieroptionsmaxresults0431465702a9d7f620/ajavabloblistblobshieroptionsmaxresults1759550138bd387?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-snapshot" : "2019-08-23T21:48:07.2938791Z", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281394B83FED\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e2a41c-001e-00f1-2efc-59e1e5000000", + "x-ms-request-server-encrypted" : "false", + "Date" : "Fri, 23 Aug 2019 21:48:06 GMT", + "x-ms-client-request-id" : "6836b054-f3ec-4bb2-ba52-b1d562d0f9b6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshieroptionsmaxresults0431465702a9d7f620/ujavabloblistblobshieroptionsmaxresults439727d104cf671?blockid=0000&comp=block", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e2a46b-001e-00f1-7afc-59e1e5000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:48:06 GMT", + "x-ms-client-request-id" : "194d395b-5b22-44c7-94aa-285aedd035de" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshieroptionsmaxresults0431465702a9d7f620?delimiter=&maxresults=1&include=copy%2cuncommittedblobs&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1e2a49a-001e-00f1-25fc-59e1e5000000", + "Body" : "1ajavabloblistblobshieroptionsmaxresults1759550138bd387Fri, 23 Aug 2019 21:48:06 GMTFri, 23 Aug 2019 21:48:06 GMT0x8D7281394B83FED512application/octet-stream0PageBlobHottrueunlockedavailabletrue02!132!MDAwMDU0IWNqYXZhYmxvYmxpc3RibG9ic2hpZXJvcHRpb25zbWF4cmVzdWx0czI3NTM1NzI4NzY3ODUxOSEwMDAwMjghOTk5OS0xMi0zMVQyMzo1OTo1OS45OTk5OTk5WiE-", + "Date" : "Fri, 23 Aug 2019 21:48:06 GMT", + "x-ms-client-request-id" : "49dc4abd-718f-4662-b9e7-fa02c35d2dd3", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtclistblobshieroptionsmaxresults&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1e2a4c6-001e-00f1-50fc-59e1e5000000", + "Body" : "jtclistblobshieroptionsmaxresultsjtclistblobshieroptionsmaxresults0431465702a9d7f620Fri, 23 Aug 2019 21:48:06 GMT\"0x8D7281394B253D0\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:48:06 GMT", + "x-ms-client-request-id" : "315afe7f-c2dc-42b3-9cd8-046b2c267b45", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshieroptionsmaxresults0431465702a9d7f620?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1e2a503-001e-00f1-0bfc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:48:06 GMT", + "x-ms-client-request-id" : "63725ef8-f61a-4942-9ff7-d071ed3158ae" + }, + "Exception" : null + } ], + "variables" : [ "jtclistblobshieroptionsmaxresults0431465702a9d7f620", "javabloblistblobshieroptionsmaxresults1759550138bd387", "javabloblistblobshieroptionsmaxresults275357287678519", "javabloblistblobshieroptionsmaxresults3682397e63a196b", "javabloblistblobshieroptionsmaxresults439727d104cf671" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobshieroptionsmetadata.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobshieroptionsmetadata.json new file mode 100644 index 0000000000000..0bbd17636f86e --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobshieroptionsmetadata.json @@ -0,0 +1,225 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshieroptionsmetadata02337233868ba1e10d4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728136E0D3537\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:47:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e0d9d4-001e-00f1-4ffc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:47:00 GMT", + "x-ms-client-request-id" : "7c43942e-4182-4336-84cc-38bb82007d59" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshieroptionsmetadata02337233868ba1e10d4/ajavabloblistblobshieroptionsmetadata1600597b090b7388", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728136E126A0F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:47:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e0da21-001e-00f1-14fc-59e1e5000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:47:00 GMT", + "x-ms-client-request-id" : "7bad941b-34ad-4e87-a148-66b35d200642" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshieroptionsmetadata02337233868ba1e10d4/cjavabloblistblobshieroptionsmetadata29557184deac49ff", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-copy-id" : "53bbb7fd-4800-4a08-b648-c053d832a9bb", + "ETag" : "\"0x8D728136E2EF9B7\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:47:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "x-ms-copy-status" : "success", + "StatusCode" : "202", + "x-ms-request-id" : "b1e0da5a-001e-00f1-47fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:47:00 GMT", + "x-ms-client-request-id" : "b91d7b04-6c6c-465a-a6f2-f293b20459d6" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshieroptionsmetadata02337233868ba1e10d4/cjavabloblistblobshieroptionsmetadata29557184deac49ff", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:47:01 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-blob-type" : "PageBlob", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:47:01 GMT", + "Content-Length" : "512", + "x-ms-request-id" : "b1e0dc06-001e-00f1-58fc-59e1e5000000", + "Content-Type" : "application/octet-stream", + "x-ms-version" : "2019-02-02", + "x-ms-copy-id" : "53bbb7fd-4800-4a08-b648-c053d832a9bb", + "x-ms-copy-source" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshieroptionsmetadata02337233868ba1e10d4/ajavabloblistblobshieroptionsmetadata1600597b090b7388", + "x-ms-blob-sequence-number" : "0", + "x-ms-copy-progress" : "512/512", + "Date" : "Fri, 23 Aug 2019 21:47:00 GMT", + "x-ms-copy-completion-time" : "Fri, 23 Aug 2019 21:47:01 GMT", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "\"0x8D728136E2EF9B7\"", + "x-ms-copy-status" : "success", + "x-ms-client-request-id" : "d391cca2-f385-4e2c-8ee5-c6bb9ef085bc" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshieroptionsmetadata02337233868ba1e10d4/mjavabloblistblobshieroptionsmetadata3333273ff02684b5", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728136ED2188B\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:47:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e0e381-001e-00f1-51fc-59e1e5000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:47:01 GMT", + "x-ms-client-request-id" : "f30860a8-0d7a-4b39-a107-b4fbed40bbb0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshieroptionsmetadata02337233868ba1e10d4/ajavabloblistblobshieroptionsmetadata1600597b090b7388?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-snapshot" : "2019-08-23T21:47:02.5297105Z", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728136E126A0F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:47:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e0e3a8-001e-00f1-77fc-59e1e5000000", + "x-ms-request-server-encrypted" : "false", + "Date" : "Fri, 23 Aug 2019 21:47:01 GMT", + "x-ms-client-request-id" : "5625caf4-2c6c-492a-bd58-afc89b342035" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshieroptionsmetadata02337233868ba1e10d4/ujavabloblistblobshieroptionsmetadata4316809c74c128a9?blockid=0000&comp=block", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e0e40e-001e-00f1-56fc-59e1e5000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:47:01 GMT", + "x-ms-client-request-id" : "a0a9610e-d2a0-414d-b166-41bb480fab07" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshieroptionsmetadata02337233868ba1e10d4?delimiter=&include=metadata&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1e0e443-001e-00f1-05fc-59e1e5000000", + "Body" : "ajavabloblistblobshieroptionsmetadata1600597b090b7388Fri, 23 Aug 2019 21:47:01 GMTFri, 23 Aug 2019 21:47:01 GMT0x8D728136E126A0F512application/octet-stream0PageBlobHottrueunlockedavailabletrue0cjavabloblistblobshieroptionsmetadata29557184deac49ffFri, 23 Aug 2019 21:47:01 GMTFri, 23 Aug 2019 21:47:01 GMT0x8D728136E2EF9B7512application/octet-stream0PageBlobHottrueunlockedavailabletrue0mjavabloblistblobshieroptionsmetadata3333273ff02684b5Fri, 23 Aug 2019 21:47:02 GMTFri, 23 Aug 2019 21:47:02 GMT0x8D728136ED2188B512application/octet-stream0PageBlobHottrueunlockedavailabletrue0bar", + "Date" : "Fri, 23 Aug 2019 21:47:01 GMT", + "x-ms-client-request-id" : "f1cb5c98-883f-4892-a4d8-54808289f913", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtclistblobshieroptionsmetadata&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1e0e492-001e-00f1-50fc-59e1e5000000", + "Body" : "jtclistblobshieroptionsmetadatajtclistblobshieroptionsmetadata02337233868ba1e10d4Fri, 23 Aug 2019 21:47:01 GMT\"0x8D728136E0D3537\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:47:01 GMT", + "x-ms-client-request-id" : "b188f932-2888-496e-b92d-8cad6d75c2d0", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshieroptionsmetadata02337233868ba1e10d4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1e0e4bf-001e-00f1-7cfc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:47:02 GMT", + "x-ms-client-request-id" : "4a024853-fb2e-4cb1-966f-907f7e35a4dd" + }, + "Exception" : null + } ], + "variables" : [ "jtclistblobshieroptionsmetadata02337233868ba1e10d4", "javabloblistblobshieroptionsmetadata1600597b090b7388", "javabloblistblobshieroptionsmetadata29557184deac49ff", "javabloblistblobshieroptionsmetadata3333273ff02684b5", "javabloblistblobshieroptionsmetadata4316809c74c128a9" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobshieroptionsprefix.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobshieroptionsprefix.json new file mode 100644 index 0000000000000..189567f9fe200 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobshieroptionsprefix.json @@ -0,0 +1,225 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshieroptionsprefix0293530d424d340b8148?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281393C744DC\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e291db-001e-00f1-1ffc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:48:03 GMT", + "x-ms-client-request-id" : "d8a78f89-615d-4464-acac-dea2a14df0a8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshieroptionsprefix0293530d424d340b8148/ajavabloblistblobshieroptionsprefix1090211470ba60617", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281393DFD338\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e292ba-001e-00f1-6cfc-59e1e5000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:48:03 GMT", + "x-ms-client-request-id" : "63bc13fe-0c1c-4cd8-a0b1-8806de4fb0c8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshieroptionsprefix0293530d424d340b8148/cjavabloblistblobshieroptionsprefix2667302265a11a52f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-copy-id" : "51b47deb-de21-40af-98cc-29c0d9683616", + "ETag" : "\"0x8D7281393F07921\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "x-ms-copy-status" : "success", + "StatusCode" : "202", + "x-ms-request-id" : "b1e292f2-001e-00f1-22fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:48:04 GMT", + "x-ms-client-request-id" : "cc5d0672-0f2e-4293-865b-1c4d4f31a4c6" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshieroptionsprefix0293530d424d340b8148/cjavabloblistblobshieroptionsprefix2667302265a11a52f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:04 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-blob-type" : "PageBlob", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:48:04 GMT", + "Content-Length" : "512", + "x-ms-request-id" : "b1e2939f-001e-00f1-47fc-59e1e5000000", + "Content-Type" : "application/octet-stream", + "x-ms-version" : "2019-02-02", + "x-ms-copy-id" : "51b47deb-de21-40af-98cc-29c0d9683616", + "x-ms-copy-source" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshieroptionsprefix0293530d424d340b8148/ajavabloblistblobshieroptionsprefix1090211470ba60617", + "x-ms-blob-sequence-number" : "0", + "x-ms-copy-progress" : "512/512", + "Date" : "Fri, 23 Aug 2019 21:48:04 GMT", + "x-ms-copy-completion-time" : "Fri, 23 Aug 2019 21:48:04 GMT", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "\"0x8D7281393F07921\"", + "x-ms-copy-status" : "success", + "x-ms-client-request-id" : "a38d4efa-ef10-4e8a-a0a7-ef0a8ca1bcdf" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshieroptionsprefix0293530d424d340b8148/mjavabloblistblobshieroptionsprefix331671e931310bd9e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728139494828A\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:05 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e299f4-001e-00f1-18fc-59e1e5000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:48:05 GMT", + "x-ms-client-request-id" : "872e8c35-2c89-4b0e-a7d1-65c22c70a578" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshieroptionsprefix0293530d424d340b8148/ajavabloblistblobshieroptionsprefix1090211470ba60617?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-snapshot" : "2019-08-23T21:48:05.8805228Z", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281393DFD338\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e29a3a-001e-00f1-5afc-59e1e5000000", + "x-ms-request-server-encrypted" : "false", + "Date" : "Fri, 23 Aug 2019 21:48:05 GMT", + "x-ms-client-request-id" : "b9440851-3931-4085-8a82-bd8b6efafd6a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshieroptionsprefix0293530d424d340b8148/ujavabloblistblobshieroptionsprefix48555429a50acf351?blockid=0000&comp=block", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e29a79-001e-00f1-16fc-59e1e5000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:48:05 GMT", + "x-ms-client-request-id" : "6c8344ee-9609-40b9-936e-c067c382ac5f" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshieroptionsprefix0293530d424d340b8148?prefix=a&delimiter=&include=&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1e29aae-001e-00f1-4afc-59e1e5000000", + "Body" : "aajavabloblistblobshieroptionsprefix1090211470ba60617Fri, 23 Aug 2019 21:48:04 GMTFri, 23 Aug 2019 21:48:04 GMT0x8D7281393DFD338512application/octet-stream0PageBlobHottrueunlockedavailabletrue0", + "Date" : "Fri, 23 Aug 2019 21:48:05 GMT", + "x-ms-client-request-id" : "95763c5b-cdf0-43b9-b2fd-0c0fa4893b7b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtclistblobshieroptionsprefix&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1e29adf-001e-00f1-78fc-59e1e5000000", + "Body" : "jtclistblobshieroptionsprefixjtclistblobshieroptionsprefix0293530d424d340b8148Fri, 23 Aug 2019 21:48:04 GMT\"0x8D7281393C744DC\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:48:05 GMT", + "x-ms-client-request-id" : "b6ab0ea7-7f05-4a31-b7a5-06501fe22fd1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshieroptionsprefix0293530d424d340b8148?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1e29b0e-001e-00f1-25fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:48:05 GMT", + "x-ms-client-request-id" : "5e1e5a03-7b3d-4208-9607-ee1b5a535e17" + }, + "Exception" : null + } ], + "variables" : [ "jtclistblobshieroptionsprefix0293530d424d340b8148", "javabloblistblobshieroptionsprefix1090211470ba60617", "javabloblistblobshieroptionsprefix2667302265a11a52f", "javabloblistblobshieroptionsprefix331671e931310bd9e", "javabloblistblobshieroptionsprefix48555429a50acf351" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobshieroptionsuncommitted.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobshieroptionsuncommitted.json new file mode 100644 index 0000000000000..8ae34651f8023 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobshieroptionsuncommitted.json @@ -0,0 +1,225 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshieroptionsuncommitted0982915adddd406f3?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728136EF499C4\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:47:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e0e515-001e-00f1-4ffc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:47:02 GMT", + "x-ms-client-request-id" : "e775e93c-0d2a-4b12-a136-c3936c4c83e9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshieroptionsuncommitted0982915adddd406f3/ajavabloblistblobshieroptionsuncommitted136551df509f2c8", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728136EF9A770\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:47:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e0e55e-001e-00f1-14fc-59e1e5000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:47:02 GMT", + "x-ms-client-request-id" : "a5c8196b-6d57-4388-a90a-681a81e99fc2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshieroptionsuncommitted0982915adddd406f3/cjavabloblistblobshieroptionsuncommitted283246d5ce0782e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-copy-id" : "047ad600-2afd-4e7e-99a7-e1f135ce74a6", + "ETag" : "\"0x8D728136F0EE259\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:47:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "x-ms-copy-status" : "success", + "StatusCode" : "202", + "x-ms-request-id" : "b1e0e5a5-001e-00f1-55fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:47:02 GMT", + "x-ms-client-request-id" : "31cbbb2a-92b6-4ee7-b568-945ba5a196f2" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshieroptionsuncommitted0982915adddd406f3/cjavabloblistblobshieroptionsuncommitted283246d5ce0782e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:47:02 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-blob-type" : "PageBlob", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:47:02 GMT", + "Content-Length" : "512", + "x-ms-request-id" : "b1e0e6d2-001e-00f1-6dfc-59e1e5000000", + "Content-Type" : "application/octet-stream", + "x-ms-version" : "2019-02-02", + "x-ms-copy-id" : "047ad600-2afd-4e7e-99a7-e1f135ce74a6", + "x-ms-copy-source" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshieroptionsuncommitted0982915adddd406f3/ajavabloblistblobshieroptionsuncommitted136551df509f2c8", + "x-ms-blob-sequence-number" : "0", + "x-ms-copy-progress" : "512/512", + "Date" : "Fri, 23 Aug 2019 21:47:02 GMT", + "x-ms-copy-completion-time" : "Fri, 23 Aug 2019 21:47:02 GMT", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "\"0x8D728136F0EE259\"", + "x-ms-copy-status" : "success", + "x-ms-client-request-id" : "55e830b6-cbcd-40a2-9075-c9e6e12cbc34" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshieroptionsuncommitted0982915adddd406f3/mjavabloblistblobshieroptionsuncommitted38586318b315023", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728136FB13DA6\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:47:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e0ef80-001e-00f1-11fc-59e1e5000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:47:03 GMT", + "x-ms-client-request-id" : "3e4a9a30-6f9f-4129-945c-c16d364371cd" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshieroptionsuncommitted0982915adddd406f3/ajavabloblistblobshieroptionsuncommitted136551df509f2c8?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-snapshot" : "2019-08-23T21:47:03.9911143Z", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728136EF9A770\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:47:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e0efbc-001e-00f1-4cfc-59e1e5000000", + "x-ms-request-server-encrypted" : "false", + "Date" : "Fri, 23 Aug 2019 21:47:03 GMT", + "x-ms-client-request-id" : "5d8691fa-b00c-485e-b1d8-f2813866926f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshieroptionsuncommitted0982915adddd406f3/ujavabloblistblobshieroptionsuncommitted4488648425ba6d5?blockid=0000&comp=block", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e0eff7-001e-00f1-03fc-59e1e5000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:47:03 GMT", + "x-ms-client-request-id" : "bb3236e5-83ef-408b-9611-e39087af92e9" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshieroptionsuncommitted0982915adddd406f3?delimiter=&include=uncommittedblobs&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1e0f027-001e-00f1-32fc-59e1e5000000", + "Body" : "ajavabloblistblobshieroptionsuncommitted136551df509f2c8Fri, 23 Aug 2019 21:47:02 GMTFri, 23 Aug 2019 21:47:02 GMT0x8D728136EF9A770512application/octet-stream0PageBlobHottrueunlockedavailabletrue0cjavabloblistblobshieroptionsuncommitted283246d5ce0782eFri, 23 Aug 2019 21:47:02 GMTFri, 23 Aug 2019 21:47:02 GMT0x8D728136F0EE259512application/octet-stream0PageBlobHottrueunlockedavailabletrue0mjavabloblistblobshieroptionsuncommitted38586318b315023Fri, 23 Aug 2019 21:47:03 GMTFri, 23 Aug 2019 21:47:03 GMT0x8D728136FB13DA6512application/octet-stream0PageBlobHottrueunlockedavailabletrue0ujavabloblistblobshieroptionsuncommitted4488648425ba6d50BlockBlobHottrueunlockedavailablefalse0", + "Date" : "Fri, 23 Aug 2019 21:47:03 GMT", + "x-ms-client-request-id" : "65705d21-1a5d-4547-ab3c-62edf1346f2a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtclistblobshieroptionsuncommitted&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1e0f09e-001e-00f1-24fc-59e1e5000000", + "Body" : "jtclistblobshieroptionsuncommittedjtclistblobshieroptionsuncommitted0982915adddd406f3Fri, 23 Aug 2019 21:47:02 GMT\"0x8D728136EF499C4\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:47:03 GMT", + "x-ms-client-request-id" : "67c247b4-ae21-401c-8bd6-77b9b3fb1bae", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshieroptionsuncommitted0982915adddd406f3?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1e0f0dc-001e-00f1-5cfc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:47:03 GMT", + "x-ms-client-request-id" : "47bb9cd7-f5be-47cf-842f-13b0b32a8ade" + }, + "Exception" : null + } ], + "variables" : [ "jtclistblobshieroptionsuncommitted0982915adddd406f3", "javabloblistblobshieroptionsuncommitted136551df509f2c8", "javabloblistblobshieroptionsuncommitted283246d5ce0782e", "javabloblistblobshieroptionsuncommitted38586318b315023", "javabloblistblobshieroptionsuncommitted4488648425ba6d5" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobshierwithtimeoutstillbackedbypagedflux.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobshierwithtimeoutstillbackedbypagedflux.json new file mode 100644 index 0000000000000..cbfcee0b7f61f --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestlistblobshierwithtimeoutstillbackedbypagedflux.json @@ -0,0 +1,222 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshierwithtimeoutstillbackedbypagedflux0262863fa3?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728136CA29DC5\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:46:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e0c71b-001e-00f1-55fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:46:58 GMT", + "x-ms-client-request-id" : "ca6a6ebb-76f8-4696-9255-18b4bc9bb153" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshierwithtimeoutstillbackedbypagedflux0262863fa3/javabloblistblobshierwithtimeoutstillbackedbypagedflux1718225", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:46:58 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:46:58 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D728136CA7D259\"", + "Content-Length" : "0", + "x-ms-request-id" : "b1e0c75a-001e-00f1-10fc-59e1e5000000", + "x-ms-client-request-id" : "5745f50a-370e-4e26-9756-e709b0ceaf70" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshierwithtimeoutstillbackedbypagedflux0262863fa3/javabloblistblobshierwithtimeoutstillbackedbypagedflux2342904", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:46:58 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:46:58 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D728136CACB595\"", + "Content-Length" : "0", + "x-ms-request-id" : "b1e0c792-001e-00f1-45fc-59e1e5000000", + "x-ms-client-request-id" : "c6a8d04e-500e-4a23-9d2e-3aae24eebbd1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshierwithtimeoutstillbackedbypagedflux0262863fa3/javabloblistblobshierwithtimeoutstillbackedbypagedflux3337752", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:46:58 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:46:58 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D728136CB28359\"", + "Content-Length" : "0", + "x-ms-request-id" : "b1e0c7d9-001e-00f1-07fc-59e1e5000000", + "x-ms-client-request-id" : "bfcc3c0e-4f0e-438e-9364-b919b85af9d3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshierwithtimeoutstillbackedbypagedflux0262863fa3/javabloblistblobshierwithtimeoutstillbackedbypagedflux4991950", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:46:58 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:46:58 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D728136CB78DAD\"", + "Content-Length" : "0", + "x-ms-request-id" : "b1e0c820-001e-00f1-4cfc-59e1e5000000", + "x-ms-client-request-id" : "be0cc716-e3a5-44dc-80ce-c49fce742b18" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshierwithtimeoutstillbackedbypagedflux0262863fa3/javabloblistblobshierwithtimeoutstillbackedbypagedflux567592c", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:46:59 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:46:58 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D728136CBD5B75\"", + "Content-Length" : "0", + "x-ms-request-id" : "b1e0c862-001e-00f1-07fc-59e1e5000000", + "x-ms-client-request-id" : "e14c9afb-acc4-4f6b-aa73-b00b171e2433" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshierwithtimeoutstillbackedbypagedflux0262863fa3?delimiter=/&maxresults=3&include=&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1e0c89f-001e-00f1-40fc-59e1e5000000", + "Body" : "3/javabloblistblobshierwithtimeoutstillbackedbypagedflux1718225Fri, 23 Aug 2019 21:46:58 GMTFri, 23 Aug 2019 21:46:58 GMT0x8D728136CA7D2597application/octet-stream6RYQPwaVsyQ=wh+Wm18D0z1D4E+PE252gg==BlockBlobHottrueunlockedavailabletrue0javabloblistblobshierwithtimeoutstillbackedbypagedflux2342904Fri, 23 Aug 2019 21:46:58 GMTFri, 23 Aug 2019 21:46:58 GMT0x8D728136CACB5957application/octet-stream6RYQPwaVsyQ=wh+Wm18D0z1D4E+PE252gg==BlockBlobHottrueunlockedavailabletrue0javabloblistblobshierwithtimeoutstillbackedbypagedflux3337752Fri, 23 Aug 2019 21:46:58 GMTFri, 23 Aug 2019 21:46:58 GMT0x8D728136CB283597application/octet-stream6RYQPwaVsyQ=wh+Wm18D0z1D4E+PE252gg==BlockBlobHottrueunlockedavailabletrue02!140!MDAwMDYxIWphdmFibG9ibGlzdGJsb2JzaGllcndpdGh0aW1lb3V0c3RpbGxiYWNrZWRieXBhZ2VkZmx1eDQ5OTE5NTAhMDAwMDI4ITk5OTktMTItMzFUMjM6NTk6NTkuOTk5OTk5OVoh", + "Date" : "Fri, 23 Aug 2019 21:46:58 GMT", + "x-ms-client-request-id" : "a535d48d-dd26-40e5-93a6-38c795569f99", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshierwithtimeoutstillbackedbypagedflux0262863fa3?delimiter=/&marker=2%21140%21MDAwMDYxIWphdmFibG9ibGlzdGJsb2JzaGllcndpdGh0aW1lb3V0c3RpbGxiYWNrZWRieXBhZ2VkZmx1eDQ5OTE5NTAhMDAwMDI4ITk5OTktMTItMzFUMjM6NTk6NTkuOTk5OTk5OVoh&maxresults=3&include=&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1e0c97c-001e-00f1-06fc-59e1e5000000", + "Body" : "2!140!MDAwMDYxIWphdmFibG9ibGlzdGJsb2JzaGllcndpdGh0aW1lb3V0c3RpbGxiYWNrZWRieXBhZ2VkZmx1eDQ5OTE5NTAhMDAwMDI4ITk5OTktMTItMzFUMjM6NTk6NTkuOTk5OTk5OVoh3/javabloblistblobshierwithtimeoutstillbackedbypagedflux4991950Fri, 23 Aug 2019 21:46:58 GMTFri, 23 Aug 2019 21:46:58 GMT0x8D728136CB78DAD7application/octet-stream6RYQPwaVsyQ=wh+Wm18D0z1D4E+PE252gg==BlockBlobHottrueunlockedavailabletrue0javabloblistblobshierwithtimeoutstillbackedbypagedflux567592cFri, 23 Aug 2019 21:46:59 GMTFri, 23 Aug 2019 21:46:59 GMT0x8D728136CBD5B757application/octet-stream6RYQPwaVsyQ=wh+Wm18D0z1D4E+PE252gg==BlockBlobHottrueunlockedavailabletrue0", + "Date" : "Fri, 23 Aug 2019 21:46:58 GMT", + "x-ms-client-request-id" : "4fb220cb-0f43-42d6-bd83-1f4ae4df5c42", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtclistblobshierwithtimeoutstillbackedbypagedflux&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1e0c9c3-001e-00f1-49fc-59e1e5000000", + "Body" : "jtclistblobshierwithtimeoutstillbackedbypagedfluxjtclistblobshierwithtimeoutstillbackedbypagedflux0262863fa3Fri, 23 Aug 2019 21:46:58 GMT\"0x8D728136CA29DC5\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:46:58 GMT", + "x-ms-client-request-id" : "78095cd5-3df2-4038-947a-7ae99ca698dc", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistblobshierwithtimeoutstillbackedbypagedflux0262863fa3?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1e0c9fd-001e-00f1-79fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:46:58 GMT", + "x-ms-client-request-id" : "ccd6338a-30a1-4374-a0d6-cb274a16ded2" + }, + "Exception" : null + } ], + "variables" : [ "jtclistblobshierwithtimeoutstillbackedbypagedflux0262863fa3", "javabloblistblobshierwithtimeoutstillbackedbypagedflux1718225", "javabloblistblobshierwithtimeoutstillbackedbypagedflux2342904", "javabloblistblobshierwithtimeoutstillbackedbypagedflux3337752", "javabloblistblobshierwithtimeoutstillbackedbypagedflux4991950", "javabloblistblobshierwithtimeoutstillbackedbypagedflux567592c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestreleaselease.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestreleaselease.json new file mode 100644 index 0000000000000..cd96ff9ecfb1e --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestreleaselease.json @@ -0,0 +1,129 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaselease0containerapitestreleaseleasea78886659d16b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813A29FF2D3\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf75f8-501e-00c0-6afc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:28 GMT", + "x-ms-client-request-id" : "b2ac7bc7-a1b3-4c10-a92a-ba05be5d90ab" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaselease0containerapitestreleaseleasea78886659d16b?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813A29FF2D3\"", + "x-ms-lease-id" : "4b12f086-2b94-4c2e-8b42-4730bf879513", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf761f-501e-00c0-0efc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:28 GMT", + "x-ms-client-request-id" : "c17f21ed-2a47-4879-a1b8-f124df1be16b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaselease0containerapitestreleaseleasea78886659d16b?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813A29FF2D3\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77cf7649-501e-00c0-36fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:28 GMT", + "x-ms-client-request-id" : "30fecae7-468a-4a2c-b4d0-4aec51fde0c2" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaselease0containerapitestreleaseleasea78886659d16b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "x-ms-deny-encryption-scope-override" : "false", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:29 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:48:28 GMT", + "x-ms-has-legal-hold" : "false", + "x-ms-default-encryption-scope" : "$account-encryption-key", + "ETag" : "\"0x8D72813A29FF2D3\"", + "x-ms-has-immutability-policy" : "false", + "Content-Length" : "0", + "x-ms-request-id" : "77cf7668-501e-00c0-53fc-59ba32000000", + "x-ms-client-request-id" : "a34480e1-7361-4b20-a65e-c46e13ad84c7" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcreleaselease&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77cf767d-501e-00c0-67fc-59ba32000000", + "Body" : "jtcreleaseleasejtcreleaselease0containerapitestreleaseleasea78886659d16bFri, 23 Aug 2019 21:48:29 GMT\"0x8D72813A29FF2D3\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:48:28 GMT", + "x-ms-client-request-id" : "4598258e-12b2-46e1-b266-4192a3bcf231", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaselease0containerapitestreleaseleasea78886659d16b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77cf7698-501e-00c0-7ffc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:28 GMT", + "x-ms-client-request-id" : "017cee55-2785-4e17-a509-f8d0a374b9c0" + }, + "Exception" : null + } ], + "variables" : [ "jtcreleaselease0containerapitestreleaseleasea78886659d16b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestreleaseleaseac[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestreleaseleaseac[0].json new file mode 100644 index 0000000000000..3ca47d52be21a --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestreleaseleaseac[0].json @@ -0,0 +1,103 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseac0containerapitestreleaseleaseaca1f24695136?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813A2DC6E55\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf7748-501e-00c0-1dfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:29 GMT", + "x-ms-client-request-id" : "d2aff165-fdf6-46d8-a53f-b106bec7ff35" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseac0containerapitestreleaseleaseaca1f24695136?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813A2DC6E55\"", + "x-ms-lease-id" : "cb83fdf8-1e98-46d2-8a37-292bdce14fef", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf7765-501e-00c0-35fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:29 GMT", + "x-ms-client-request-id" : "42a049b3-b631-4a84-9c36-801630fde4b6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseac0containerapitestreleaseleaseaca1f24695136?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813A2DC6E55\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77cf777f-501e-00c0-4bfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:29 GMT", + "x-ms-client-request-id" : "1af0ea14-31ce-406e-bc63-1daece46d8b5" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcreleaseleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77cf779b-501e-00c0-60fc-59ba32000000", + "Body" : "jtcreleaseleaseacjtcreleaseleaseac0containerapitestreleaseleaseaca1f24695136Fri, 23 Aug 2019 21:48:29 GMT\"0x8D72813A2DC6E55\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:48:29 GMT", + "x-ms-client-request-id" : "833f43be-4665-419d-a7ba-ba2308fe7db8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseac0containerapitestreleaseleaseaca1f24695136?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77cf77c0-501e-00c0-01fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:29 GMT", + "x-ms-client-request-id" : "18b0c265-2c20-42c0-a838-40dadec5b142" + }, + "Exception" : null + } ], + "variables" : [ "jtcreleaseleaseac0containerapitestreleaseleaseaca1f24695136" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestreleaseleaseac[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestreleaseleaseac[1].json new file mode 100644 index 0000000000000..50c14b2b91cd2 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestreleaseleaseac[1].json @@ -0,0 +1,103 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseac0containerapitestreleaseleaseacd7b46987e59?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813A2F6DA91\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf77ec-501e-00c0-2afc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:29 GMT", + "x-ms-client-request-id" : "a8370853-03cb-4a7b-95ee-8193b0d702ea" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseac0containerapitestreleaseleaseacd7b46987e59?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813A2F6DA91\"", + "x-ms-lease-id" : "68fa42a3-0ead-4ebb-a8cf-5c99ce735c01", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf7807-501e-00c0-43fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:29 GMT", + "x-ms-client-request-id" : "1c738e8e-db17-4c16-a679-92dd6beaca4d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseac0containerapitestreleaseleaseacd7b46987e59?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813A2F6DA91\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77cf781b-501e-00c0-55fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:29 GMT", + "x-ms-client-request-id" : "48457e38-a316-45b4-a58f-01627372a57d" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcreleaseleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77cf7838-501e-00c0-6efc-59ba32000000", + "Body" : "jtcreleaseleaseacjtcreleaseleaseac0containerapitestreleaseleaseacd7b46987e59Fri, 23 Aug 2019 21:48:29 GMT\"0x8D72813A2F6DA91\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:48:29 GMT", + "x-ms-client-request-id" : "6e29fa2d-5431-44d8-9769-c5faffd1da3e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseac0containerapitestreleaseleaseacd7b46987e59?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77cf786b-501e-00c0-15fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:29 GMT", + "x-ms-client-request-id" : "7529261a-f74c-4219-8e35-54fe58338653" + }, + "Exception" : null + } ], + "variables" : [ "jtcreleaseleaseac0containerapitestreleaseleaseacd7b46987e59" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestreleaseleaseac[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestreleaseleaseac[2].json new file mode 100644 index 0000000000000..e406a4c109467 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestreleaseleaseac[2].json @@ -0,0 +1,103 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseac0containerapitestreleaseleaseac7d130018558?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813A30F2375\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf7897-501e-00c0-3cfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:29 GMT", + "x-ms-client-request-id" : "65c88493-7021-49fc-ac41-b711b9a26e38" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseac0containerapitestreleaseleaseac7d130018558?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813A30F2375\"", + "x-ms-lease-id" : "3ccf99ad-d9cf-40f6-98b5-4d1c518e2214", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf78c0-501e-00c0-62fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:29 GMT", + "x-ms-client-request-id" : "13d81486-485c-4f31-b480-bf3d537cbeb1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseac0containerapitestreleaseleaseac7d130018558?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813A30F2375\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77cf78e3-501e-00c0-03fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:29 GMT", + "x-ms-client-request-id" : "06e5da06-28bf-4b6a-9d11-c80e547d570f" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcreleaseleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77cf7901-501e-00c0-1efc-59ba32000000", + "Body" : "jtcreleaseleaseacjtcreleaseleaseac0containerapitestreleaseleaseac7d130018558Fri, 23 Aug 2019 21:48:30 GMT\"0x8D72813A30F2375\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:48:29 GMT", + "x-ms-client-request-id" : "92a8a17e-2621-4546-8925-fcd093f8bf8f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseac0containerapitestreleaseleaseac7d130018558?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77cf791e-501e-00c0-39fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:29 GMT", + "x-ms-client-request-id" : "df35eaf6-902e-4c50-a075-da2babe3cba2" + }, + "Exception" : null + } ], + "variables" : [ "jtcreleaseleaseac0containerapitestreleaseleaseac7d130018558" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestreleaseleaseacfail[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestreleaseleaseacfail[0].json new file mode 100644 index 0000000000000..5db1504812aee --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestreleaseleaseacfail[0].json @@ -0,0 +1,125 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseacfail0699152c8a095dfa514826b5?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813A3276C54\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf7954-501e-00c0-6bfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:29 GMT", + "x-ms-client-request-id" : "613a5bfc-b189-4871-9425-6a2fc838b724" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseacfail0699152c8a095dfa514826b5?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813A3276C54\"", + "x-ms-lease-id" : "0f4da558-993b-444d-85d9-3f2f477b34d0", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf797b-501e-00c0-0efc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:29 GMT", + "x-ms-client-request-id" : "6232432b-e77a-4137-bc5c-f7da5f145f43" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseacfail0699152c8a095dfa514826b5?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "77cf79a2-501e-00c0-33fc-59ba32000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:77cf79a2-501e-00c0-33fc-59ba32000000\nTime:2019-08-23T21:48:30.3614638Z", + "Date" : "Fri, 23 Aug 2019 21:48:29 GMT", + "x-ms-client-request-id" : "eb7abe7a-6695-4989-8bcc-9599b2749c58", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcreleaseleaseacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77cf79cc-501e-00c0-5bfc-59ba32000000", + "Body" : "jtcreleaseleaseacfailjtcreleaseleaseacfail0699152c8a095dfa514826b5Fri, 23 Aug 2019 21:48:30 GMT\"0x8D72813A3276C54\"lockedleasedinfinite$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:48:29 GMT", + "x-ms-client-request-id" : "636f0bf8-8a40-456d-a2d6-e1ef1ad97bec", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseacfail0699152c8a095dfa514826b5?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813A3276C54\"", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77cf79e3-501e-00c0-72fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:29 GMT", + "x-ms-client-request-id" : "f39efee4-1e2f-4567-b0c6-3b070034274f" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseacfail0699152c8a095dfa514826b5?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77cf79ff-501e-00c0-0bfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:29 GMT", + "x-ms-client-request-id" : "f1957e6e-b8c7-41b1-9973-3f3f9c4eb7b8" + }, + "Exception" : null + } ], + "variables" : [ "jtcreleaseleaseacfail0699152c8a095dfa514826b5" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestreleaseleaseacfail[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestreleaseleaseacfail[1].json new file mode 100644 index 0000000000000..b2b5ca290c4a5 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestreleaseleaseacfail[1].json @@ -0,0 +1,125 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseacfail0249247b6afd26a8024b26ab?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813A343D4DA\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf7a1f-501e-00c0-2afc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:29 GMT", + "x-ms-client-request-id" : "89ac3435-04be-4a99-894e-7aaf3371bdb1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseacfail0249247b6afd26a8024b26ab?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813A343D4DA\"", + "x-ms-lease-id" : "b8193e4f-8899-498c-9577-6f87c2c4e646", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf7a40-501e-00c0-45fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:29 GMT", + "x-ms-client-request-id" : "c9e58785-8910-4785-a71d-c6fd03d81182" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseacfail0249247b6afd26a8024b26ab?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "77cf7a5e-501e-00c0-5ffc-59ba32000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:77cf7a5e-501e-00c0-5ffc-59ba32000000\nTime:2019-08-23T21:48:30.5476417Z", + "Date" : "Fri, 23 Aug 2019 21:48:29 GMT", + "x-ms-client-request-id" : "8c0d81e1-e775-45e0-a96e-7f963d1e3eab", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcreleaseleaseacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77cf7a7b-501e-00c0-79fc-59ba32000000", + "Body" : "jtcreleaseleaseacfailjtcreleaseleaseacfail0249247b6afd26a8024b26abFri, 23 Aug 2019 21:48:30 GMT\"0x8D72813A343D4DA\"lockedleasedinfinite$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:48:29 GMT", + "x-ms-client-request-id" : "9f9a3d73-4a44-4f14-b342-f66624fe6861", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseacfail0249247b6afd26a8024b26ab?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813A343D4DA\"", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77cf7a9b-501e-00c0-13fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:30 GMT", + "x-ms-client-request-id" : "8cd7d47b-187c-4495-85c8-0a71d40cad13" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseacfail0249247b6afd26a8024b26ab?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77cf7abf-501e-00c0-35fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:30 GMT", + "x-ms-client-request-id" : "38bab6ad-c2f6-40b7-ba82-99acdd078f70" + }, + "Exception" : null + } ], + "variables" : [ "jtcreleaseleaseacfail0249247b6afd26a8024b26ab" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestreleaseleaseacillegal[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestreleaseleaseacillegal[0].json new file mode 100644 index 0000000000000..54ca860befdca --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestreleaseleaseacillegal[0].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseacillegal0283137708c37a0427410b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813A360164E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf7af2-501e-00c0-66fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:30 GMT", + "x-ms-client-request-id" : "0ff5c80f-7e3b-4d66-bc2e-a49ad9af2465" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcreleaseleaseacillegal&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77cf7b13-501e-00c0-05fc-59ba32000000", + "Body" : "jtcreleaseleaseacillegaljtcreleaseleaseacillegal0283137708c37a0427410bFri, 23 Aug 2019 21:48:30 GMT\"0x8D72813A360164E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:48:30 GMT", + "x-ms-client-request-id" : "7eefeaff-f19f-4dda-a15f-78d50b141ece", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseacillegal0283137708c37a0427410b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77cf7b37-501e-00c0-25fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:30 GMT", + "x-ms-client-request-id" : "efc2a3af-20ef-4a4f-aed5-6af85c1e75af" + }, + "Exception" : null + } ], + "variables" : [ "jtcreleaseleaseacillegal0283137708c37a0427410b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestreleaseleaseacillegal[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestreleaseleaseacillegal[1].json new file mode 100644 index 0000000000000..b067e3eedb942 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestreleaseleaseacillegal[1].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseacillegal090262afe7d560ea804f29?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813A36F8359\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf7b6b-501e-00c0-57fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:30 GMT", + "x-ms-client-request-id" : "7ec104ea-27d1-4489-a420-eb1618e83e26" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcreleaseleaseacillegal&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77cf7bdb-501e-00c0-38fc-59ba32000000", + "Body" : "jtcreleaseleaseacillegaljtcreleaseleaseacillegal090262afe7d560ea804f29Fri, 23 Aug 2019 21:48:30 GMT\"0x8D72813A36F8359\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:48:30 GMT", + "x-ms-client-request-id" : "38ecd3eb-17a9-4ff0-aca8-00e195807076", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseacillegal090262afe7d560ea804f29?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77cf7bf8-501e-00c0-50fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:30 GMT", + "x-ms-client-request-id" : "34c1b054-95f8-421f-8b80-61bbfb4da221" + }, + "Exception" : null + } ], + "variables" : [ "jtcreleaseleaseacillegal090262afe7d560ea804f29" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestreleaseleaseerror.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestreleaseleaseerror.json new file mode 100644 index 0000000000000..67a07938293d9 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestreleaseleaseerror.json @@ -0,0 +1,83 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseerror0containerapitestreleaseleaseerror99605716?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813A38A8BFD\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf7c24-501e-00c0-76fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:30 GMT", + "x-ms-client-request-id" : "79cd8ed2-4cb7-4a1d-952b-3dc146405c9c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseerror1containerapitestreleaseleaseerror99677272?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "InvalidHeaderValue", + "retry-after" : "0", + "Content-Length" : "321", + "StatusCode" : "400", + "x-ms-request-id" : "77cf7c56-501e-00c0-25fc-59ba32000000", + "Body" : "InvalidHeaderValueThe value for one of the HTTP headers is not in the correct format.\nRequestId:77cf7c56-501e-00c0-25fc-59ba32000000\nTime:2019-08-23T21:48:31.0140833Zx-ms-lease-idid", + "Date" : "Fri, 23 Aug 2019 21:48:30 GMT", + "x-ms-client-request-id" : "489a95b6-cb51-459a-874d-f8c0ce798132", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcreleaseleaseerror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77cf7c6b-501e-00c0-39fc-59ba32000000", + "Body" : "jtcreleaseleaseerrorjtcreleaseleaseerror0containerapitestreleaseleaseerror99605716Fri, 23 Aug 2019 21:48:30 GMT\"0x8D72813A38A8BFD\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:48:30 GMT", + "x-ms-client-request-id" : "563ccee2-3b94-4dd9-8cd6-d03f8fa606d4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleaseerror0containerapitestreleaseleaseerror99605716?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77cf7c82-501e-00c0-4dfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:30 GMT", + "x-ms-client-request-id" : "c9a54926-1b87-4a8b-a819-34c972c8b061" + }, + "Exception" : null + } ], + "variables" : [ "jtcreleaseleaseerror0containerapitestreleaseleaseerror99605716", "jtcreleaseleaseerror1containerapitestreleaseleaseerror99677272" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestreleaseleasemin.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestreleaseleasemin.json new file mode 100644 index 0000000000000..e2e6dfc1a6154 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestreleaseleasemin.json @@ -0,0 +1,103 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleasemin0containerapitestreleaseleasemin83c03027bb?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813A2C29E76\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf76cc-501e-00c0-2efc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:29 GMT", + "x-ms-client-request-id" : "1f6dc666-c0e4-4176-975d-c14011c03f4d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleasemin0containerapitestreleaseleasemin83c03027bb?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813A2C29E76\"", + "x-ms-lease-id" : "65b6031d-c2cc-4a4c-8560-ca663a961bb4", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf76df-501e-00c0-3ffc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:29 GMT", + "x-ms-client-request-id" : "69cb78af-8332-4136-85a4-f24801a372d2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleasemin0containerapitestreleaseleasemin83c03027bb?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813A2C29E76\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77cf76f3-501e-00c0-52fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:29 GMT", + "x-ms-client-request-id" : "1eb67863-77ae-4954-b819-05d2d7bdcfab" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcreleaseleasemin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77cf7701-501e-00c0-5ffc-59ba32000000", + "Body" : "jtcreleaseleaseminjtcreleaseleasemin0containerapitestreleaseleasemin83c03027bbFri, 23 Aug 2019 21:48:29 GMT\"0x8D72813A2C29E76\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:48:29 GMT", + "x-ms-client-request-id" : "abdd9708-ac3d-4ca4-883f-9264907b603d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreleaseleasemin0containerapitestreleaseleasemin83c03027bb?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77cf7717-501e-00c0-72fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:29 GMT", + "x-ms-client-request-id" : "8fbdb0fe-a6fb-4fd6-af1b-652797befcab" + }, + "Exception" : null + } ], + "variables" : [ "jtcreleaseleasemin0containerapitestreleaseleasemin83c03027bb" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestrenewlease.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestrenewlease.json new file mode 100644 index 0000000000000..3c2c620fa3702 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestrenewlease.json @@ -0,0 +1,152 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewlease0containerapitestrenewleasefc3996081600b77?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813980BFCD2\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf3306-501e-00c0-80fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:11 GMT", + "x-ms-client-request-id" : "2bccbe18-cd2b-489b-8467-c3ab7aa1e309" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewlease0containerapitestrenewleasefc3996081600b77?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813980BFCD2\"", + "x-ms-lease-id" : "5f329197-986e-46f2-8460-7b2e1d081998", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf331d-501e-00c0-14fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:11 GMT", + "x-ms-client-request-id" : "4c4426be-bff5-415b-aceb-043ad5e57dae" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewlease0containerapitestrenewleasefc3996081600b77?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813980BFCD2\"", + "x-ms-lease-id" : "5f329197-986e-46f2-8460-7b2e1d081998", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77cf6f1a-501e-00c0-45fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:27 GMT", + "x-ms-client-request-id" : "815f2cb2-afcc-4bb9-a488-0c7b8f6de302" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewlease0containerapitestrenewleasefc3996081600b77?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "locked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "leased", + "x-ms-deny-encryption-scope-override" : "false", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:11 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:48:27 GMT", + "x-ms-has-legal-hold" : "false", + "x-ms-default-encryption-scope" : "$account-encryption-key", + "ETag" : "\"0x8D72813980BFCD2\"", + "x-ms-has-immutability-policy" : "false", + "x-ms-lease-duration" : "infinite", + "Content-Length" : "0", + "x-ms-request-id" : "77cf6f44-501e-00c0-6bfc-59ba32000000", + "x-ms-client-request-id" : "7985d51f-3412-4afc-9f25-4dc914144e45" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcrenewlease&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77cf6f54-501e-00c0-7afc-59ba32000000", + "Body" : "jtcrenewleasejtcrenewlease0containerapitestrenewleasefc3996081600b77Fri, 23 Aug 2019 21:48:11 GMT\"0x8D72813980BFCD2\"lockedleasedinfinite$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:48:27 GMT", + "x-ms-client-request-id" : "aa4afa6c-1827-481a-820f-c22e072c801f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewlease0containerapitestrenewleasefc3996081600b77?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813980BFCD2\"", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77cf6f6c-501e-00c0-10fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:27 GMT", + "x-ms-client-request-id" : "1965b528-d74c-42f0-8b4b-2fb5d908f7f3" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewlease0containerapitestrenewleasefc3996081600b77?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77cf6f8b-501e-00c0-2bfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:27 GMT", + "x-ms-client-request-id" : "d4d9985c-9790-4bac-8549-dedd4dae9fd8" + }, + "Exception" : null + } ], + "variables" : [ "jtcrenewlease0containerapitestrenewleasefc3996081600b77" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestrenewleaseac[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestrenewleaseac[0].json new file mode 100644 index 0000000000000..16b2811172c12 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestrenewleaseac[0].json @@ -0,0 +1,125 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseac0containerapitestrenewleaseacc6e09479e40a7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813A1D32217\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf706b-501e-00c0-75fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:27 GMT", + "x-ms-client-request-id" : "fdc93f14-e87f-46ce-97f8-1548c7e55f5a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseac0containerapitestrenewleaseacc6e09479e40a7?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813A1D32217\"", + "x-ms-lease-id" : "e9cdf0bc-5c6f-4222-bdec-15b1dab9fa87", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf70a6-501e-00c0-26fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:27 GMT", + "x-ms-client-request-id" : "93701092-b7f5-4d99-8408-ea96f2cfb2e6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseac0containerapitestrenewleaseacc6e09479e40a7?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813A1D32217\"", + "x-ms-lease-id" : "e9cdf0bc-5c6f-4222-bdec-15b1dab9fa87", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77cf70c4-501e-00c0-40fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:27 GMT", + "x-ms-client-request-id" : "b19d0761-670b-4cfa-aab4-1cccda9b2cc8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcrenewleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77cf70ea-501e-00c0-5ffc-59ba32000000", + "Body" : "jtcrenewleaseacjtcrenewleaseac0containerapitestrenewleaseacc6e09479e40a7Fri, 23 Aug 2019 21:48:28 GMT\"0x8D72813A1D32217\"lockedleasedinfinite$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:48:27 GMT", + "x-ms-client-request-id" : "b70265cd-b549-4537-87ae-3479fa452f6b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseac0containerapitestrenewleaseacc6e09479e40a7?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813A1D32217\"", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77cf70fc-501e-00c0-71fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:27 GMT", + "x-ms-client-request-id" : "a80efb37-c50d-4c72-babc-a987dd5152c1" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseac0containerapitestrenewleaseacc6e09479e40a7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77cf7120-501e-00c0-13fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:27 GMT", + "x-ms-client-request-id" : "ae7e5656-9cb3-44ca-ba8b-aeabcc160dfc" + }, + "Exception" : null + } ], + "variables" : [ "jtcrenewleaseac0containerapitestrenewleaseacc6e09479e40a7" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestrenewleaseac[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestrenewleaseac[1].json new file mode 100644 index 0000000000000..8a5c488821be0 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestrenewleaseac[1].json @@ -0,0 +1,125 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseac0containerapitestrenewleaseac1e728798b8bac?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813A1F41F8D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf7146-501e-00c0-37fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:27 GMT", + "x-ms-client-request-id" : "acbfe4f6-9fb6-4776-a1b7-3e8499b47242" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseac0containerapitestrenewleaseac1e728798b8bac?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813A1F41F8D\"", + "x-ms-lease-id" : "1e172d5c-0412-4428-8849-60b62b3652a4", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf7162-501e-00c0-4cfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:27 GMT", + "x-ms-client-request-id" : "4840f068-9ba3-4b00-9fbf-87ec94bc6dfc" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseac0containerapitestrenewleaseac1e728798b8bac?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813A1F41F8D\"", + "x-ms-lease-id" : "1e172d5c-0412-4428-8849-60b62b3652a4", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77cf717e-501e-00c0-67fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:27 GMT", + "x-ms-client-request-id" : "b2a67ebd-f657-4917-9c85-2a75ebcb037c" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcrenewleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77cf7194-501e-00c0-7dfc-59ba32000000", + "Body" : "jtcrenewleaseacjtcrenewleaseac0containerapitestrenewleaseac1e728798b8bacFri, 23 Aug 2019 21:48:28 GMT\"0x8D72813A1F41F8D\"lockedleasedinfinite$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:48:27 GMT", + "x-ms-client-request-id" : "8a9ed93a-5005-4c05-82af-3c27b35f58a1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseac0containerapitestrenewleaseac1e728798b8bac?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813A1F41F8D\"", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77cf71a7-501e-00c0-0ffc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:27 GMT", + "x-ms-client-request-id" : "5fb5c3e9-9de0-4bc2-8f89-74d9bcee1a49" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseac0containerapitestrenewleaseac1e728798b8bac?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77cf71c6-501e-00c0-2cfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:27 GMT", + "x-ms-client-request-id" : "f8d8de92-d2a1-45ab-9cbe-f54f0801483a" + }, + "Exception" : null + } ], + "variables" : [ "jtcrenewleaseac0containerapitestrenewleaseac1e728798b8bac" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestrenewleaseac[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestrenewleaseac[2].json new file mode 100644 index 0000000000000..9972e9c24b792 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestrenewleaseac[2].json @@ -0,0 +1,125 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseac0containerapitestrenewleaseaced764975ec699?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813A2136F03\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf71ef-501e-00c0-51fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:27 GMT", + "x-ms-client-request-id" : "42af1a9b-ed44-40fa-97f4-7306bcbafd65" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseac0containerapitestrenewleaseaced764975ec699?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813A2136F03\"", + "x-ms-lease-id" : "062ac0ae-75fd-4383-845d-b42352a48137", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf7218-501e-00c0-71fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:27 GMT", + "x-ms-client-request-id" : "a4e1e360-6e91-4ae1-9eff-4aab01b00d7a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseac0containerapitestrenewleaseaced764975ec699?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813A2136F03\"", + "x-ms-lease-id" : "062ac0ae-75fd-4383-845d-b42352a48137", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77cf7241-501e-00c0-15fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:27 GMT", + "x-ms-client-request-id" : "c14fe82c-e26d-4743-be46-284ecda6a373" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcrenewleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77cf725b-501e-00c0-2cfc-59ba32000000", + "Body" : "jtcrenewleaseacjtcrenewleaseac0containerapitestrenewleaseaced764975ec699Fri, 23 Aug 2019 21:48:28 GMT\"0x8D72813A2136F03\"lockedleasedinfinite$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:48:27 GMT", + "x-ms-client-request-id" : "5cf719dc-3970-4ef7-abfb-a305658a593b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseac0containerapitestrenewleaseaced764975ec699?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813A2136F03\"", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77cf727d-501e-00c0-4dfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:28 GMT", + "x-ms-client-request-id" : "34525041-907e-4bea-a64c-53fa62f724f6" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseac0containerapitestrenewleaseaced764975ec699?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77cf72a0-501e-00c0-6cfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:28 GMT", + "x-ms-client-request-id" : "16b5de1d-cbe4-4e59-aaaf-d034acc5b07a" + }, + "Exception" : null + } ], + "variables" : [ "jtcrenewleaseac0containerapitestrenewleaseaced764975ec699" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestrenewleaseacfail[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestrenewleaseacfail[0].json new file mode 100644 index 0000000000000..c5a4a61893bd8 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestrenewleaseacfail[0].json @@ -0,0 +1,125 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseacfail0containerapitestrenewleaseacfail8ab463561?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813A231377F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf72cb-501e-00c0-12fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:28 GMT", + "x-ms-client-request-id" : "b56a63f6-8709-4c78-aff3-fa0ea614fb11" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseacfail0containerapitestrenewleaseacfail8ab463561?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813A231377F\"", + "x-ms-lease-id" : "999a45cf-7947-4cf6-87ac-67d0e309c100", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf72fd-501e-00c0-3bfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:28 GMT", + "x-ms-client-request-id" : "6dda960b-8b1a-43a4-8ae4-dcd3f6da4e7b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseacfail0containerapitestrenewleaseacfail8ab463561?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "77cf7319-501e-00c0-55fc-59ba32000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:77cf7319-501e-00c0-55fc-59ba32000000\nTime:2019-08-23T21:48:28.7439228Z", + "Date" : "Fri, 23 Aug 2019 21:48:28 GMT", + "x-ms-client-request-id" : "fba6258d-72b4-4923-b178-3b0fb20f47cb", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcrenewleaseacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77cf7335-501e-00c0-6ffc-59ba32000000", + "Body" : "jtcrenewleaseacfailjtcrenewleaseacfail0containerapitestrenewleaseacfail8ab463561Fri, 23 Aug 2019 21:48:28 GMT\"0x8D72813A231377F\"lockedleasedinfinite$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:48:28 GMT", + "x-ms-client-request-id" : "da237e58-b4b7-4e15-98fc-3cc2b497faba", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseacfail0containerapitestrenewleaseacfail8ab463561?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813A231377F\"", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77cf7358-501e-00c0-10fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:28 GMT", + "x-ms-client-request-id" : "b75609da-32ba-44e5-b434-93ce94abcab7" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseacfail0containerapitestrenewleaseacfail8ab463561?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77cf7375-501e-00c0-29fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:28 GMT", + "x-ms-client-request-id" : "78277e76-9209-4cef-83f8-577d52e1cfca" + }, + "Exception" : null + } ], + "variables" : [ "jtcrenewleaseacfail0containerapitestrenewleaseacfail8ab463561" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestrenewleaseacfail[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestrenewleaseacfail[1].json new file mode 100644 index 0000000000000..1f79554c33850 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestrenewleaseacfail[1].json @@ -0,0 +1,125 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseacfail0containerapitestrenewleaseacfail14e68835c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813A24EFFED\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf73a4-501e-00c0-54fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:28 GMT", + "x-ms-client-request-id" : "9e365fbb-c2e1-46ff-8e6e-d52cb5ee7200" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseacfail0containerapitestrenewleaseacfail14e68835c?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813A24EFFED\"", + "x-ms-lease-id" : "838f06d0-7491-4471-8303-1fe1b736615e", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf73ce-501e-00c0-78fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:28 GMT", + "x-ms-client-request-id" : "ee7e8595-f1c6-4386-8840-5ecbe7c08998" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseacfail0containerapitestrenewleaseacfail14e68835c?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "77cf73f0-501e-00c0-18fc-59ba32000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:77cf73f0-501e-00c0-18fc-59ba32000000\nTime:2019-08-23T21:48:28.9451143Z", + "Date" : "Fri, 23 Aug 2019 21:48:28 GMT", + "x-ms-client-request-id" : "e180c5f3-6636-4b77-a0ad-ac1180ea9a2a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcrenewleaseacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77cf7411-501e-00c0-30fc-59ba32000000", + "Body" : "jtcrenewleaseacfailjtcrenewleaseacfail0containerapitestrenewleaseacfail14e68835cFri, 23 Aug 2019 21:48:28 GMT\"0x8D72813A24EFFED\"lockedleasedinfinite$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:48:28 GMT", + "x-ms-client-request-id" : "2d025f38-1f03-4483-a589-c847b19216d2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseacfail0containerapitestrenewleaseacfail14e68835c?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813A24EFFED\"", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77cf7435-501e-00c0-52fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:28 GMT", + "x-ms-client-request-id" : "f9985c97-e608-45cd-98fb-61be0bbcc560" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseacfail0containerapitestrenewleaseacfail14e68835c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77cf7453-501e-00c0-6efc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:28 GMT", + "x-ms-client-request-id" : "faf93c84-5cb1-4821-9dcd-c34a36341bbb" + }, + "Exception" : null + } ], + "variables" : [ "jtcrenewleaseacfail0containerapitestrenewleaseacfail14e68835c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestrenewleaseacillegal[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestrenewleaseacillegal[0].json new file mode 100644 index 0000000000000..84664d3ec82f6 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestrenewleaseacillegal[0].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseacillegal067277df5407f3b7984cc89?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813A26C04E6\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf7487-501e-00c0-1efc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:28 GMT", + "x-ms-client-request-id" : "0bb43987-af57-4ac6-b4d6-f3451a0e6704" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcrenewleaseacillegal&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77cf74be-501e-00c0-4dfc-59ba32000000", + "Body" : "jtcrenewleaseacillegaljtcrenewleaseacillegal067277df5407f3b7984cc89Fri, 23 Aug 2019 21:48:29 GMT\"0x8D72813A26C04E6\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:48:28 GMT", + "x-ms-client-request-id" : "16e3f658-1e06-45c1-ad22-a31c2fee85b5", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseacillegal067277df5407f3b7984cc89?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77cf74e7-501e-00c0-71fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:28 GMT", + "x-ms-client-request-id" : "4ac0752f-4b87-4705-a001-9c1e17c0ab6f" + }, + "Exception" : null + } ], + "variables" : [ "jtcrenewleaseacillegal067277df5407f3b7984cc89" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestrenewleaseacillegal[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestrenewleaseacillegal[1].json new file mode 100644 index 0000000000000..e35b8e9a6ad38 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestrenewleaseacillegal[1].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseacillegal0620001149d1cfe46044d39?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813A27C0E5E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf751b-501e-00c0-20fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:28 GMT", + "x-ms-client-request-id" : "08a82930-ca2b-4b2b-9169-e1530a5c127f" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcrenewleaseacillegal&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77cf753a-501e-00c0-3afc-59ba32000000", + "Body" : "jtcrenewleaseacillegaljtcrenewleaseacillegal0620001149d1cfe46044d39Fri, 23 Aug 2019 21:48:29 GMT\"0x8D72813A27C0E5E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:48:28 GMT", + "x-ms-client-request-id" : "16fd0882-a2bf-47ce-881a-0b543b42922f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseacillegal0620001149d1cfe46044d39?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77cf755a-501e-00c0-56fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:28 GMT", + "x-ms-client-request-id" : "d88f7d41-701a-459c-a897-9fb2a3f6aa5e" + }, + "Exception" : null + } ], + "variables" : [ "jtcrenewleaseacillegal0620001149d1cfe46044d39" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestrenewleaseerror.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestrenewleaseerror.json new file mode 100644 index 0000000000000..8d5a89e6bc15b --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestrenewleaseerror.json @@ -0,0 +1,83 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseerror0containerapitestrenewleaseerrora5c93069fa?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813A28B5458\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf7579-501e-00c0-75fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:28 GMT", + "x-ms-client-request-id" : "5b89ea24-c810-4eeb-a4d6-5491bc1fb36a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseerror1containerapitestrenewleaseerrora5c730625f?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "InvalidHeaderValue", + "retry-after" : "0", + "Content-Length" : "321", + "StatusCode" : "400", + "x-ms-request-id" : "77cf759a-501e-00c0-13fc-59ba32000000", + "Body" : "InvalidHeaderValueThe value for one of the HTTP headers is not in the correct format.\nRequestId:77cf759a-501e-00c0-13fc-59ba32000000\nTime:2019-08-23T21:48:29.3034554Zx-ms-lease-idid", + "Date" : "Fri, 23 Aug 2019 21:48:28 GMT", + "x-ms-client-request-id" : "c003b102-648b-4bee-9bf1-f982ec09b07f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcrenewleaseerror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77cf75b2-501e-00c0-2afc-59ba32000000", + "Body" : "jtcrenewleaseerrorjtcrenewleaseerror0containerapitestrenewleaseerrora5c93069faFri, 23 Aug 2019 21:48:29 GMT\"0x8D72813A28B5458\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:48:28 GMT", + "x-ms-client-request-id" : "94a05c37-5fc5-4b9a-aae6-a4ef328962b7", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleaseerror0containerapitestrenewleaseerrora5c93069fa?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77cf75cb-501e-00c0-41fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:28 GMT", + "x-ms-client-request-id" : "81be4299-76bd-4f07-8e62-2232489cb448" + }, + "Exception" : null + } ], + "variables" : [ "jtcrenewleaseerror0containerapitestrenewleaseerrora5c93069fa", "jtcrenewleaseerror1containerapitestrenewleaseerrora5c730625f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestrenewleasemin.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestrenewleasemin.json new file mode 100644 index 0000000000000..65ca989424422 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestrenewleasemin.json @@ -0,0 +1,125 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleasemin0containerapitestrenewleasemin83f37687007d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813A1B6925F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf6fb2-501e-00c0-4efc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:27 GMT", + "x-ms-client-request-id" : "c83fa84f-ed13-4e72-b82c-a84dd81e7f59" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleasemin0containerapitestrenewleasemin83f37687007d?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813A1B6925F\"", + "x-ms-lease-id" : "cd4d1a3d-da65-462a-8c6b-5cc74618ad10", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77cf6fd4-501e-00c0-6cfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:27 GMT", + "x-ms-client-request-id" : "e56da6ef-4d9b-478a-b819-c3a727c6d666" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleasemin0containerapitestrenewleasemin83f37687007d?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813A1B6925F\"", + "x-ms-lease-id" : "cd4d1a3d-da65-462a-8c6b-5cc74618ad10", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77cf6fec-501e-00c0-01fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:27 GMT", + "x-ms-client-request-id" : "e457466d-776b-4bed-a2c7-c8765a3e0565" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcrenewleasemin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77cf7003-501e-00c0-16fc-59ba32000000", + "Body" : "jtcrenewleaseminjtcrenewleasemin0containerapitestrenewleasemin83f37687007dFri, 23 Aug 2019 21:48:27 GMT\"0x8D72813A1B6925F\"lockedleasedinfinite$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:48:27 GMT", + "x-ms-client-request-id" : "71189484-ba46-4d84-beba-9a182feffdce", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleasemin0containerapitestrenewleasemin83f37687007d?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813A1B6925F\"", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:48:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77cf701d-501e-00c0-2ffc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:27 GMT", + "x-ms-client-request-id" : "6e485fc3-3f25-47cc-a6ed-f495cda4c29f" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrenewleasemin0containerapitestrenewleasemin83f37687007d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77cf7038-501e-00c0-49fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:48:27 GMT", + "x-ms-client-request-id" : "0b91a8a5-fb22-4091-bb7b-7b9353f7c598" + }, + "Exception" : null + } ], + "variables" : [ "jtcrenewleasemin0containerapitestrenewleasemin83f37687007d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestrootexplicit.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestrootexplicit.json new file mode 100644 index 0000000000000..45514babc124a --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestrootexplicit.json @@ -0,0 +1,109 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrootexplicit0containerapitestrootexplicit3c409192fbf56?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BB5F04E0\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d010f3-501e-00c0-7ffc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:10 GMT", + "x-ms-client-request-id" : "344f342a-bd59-4f33-8517-945513b592af" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/$root?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "x-ms-deny-encryption-scope-override" : "false", + "Last-Modified" : "Fri, 23 Aug 2019 21:31:00 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:49:10 GMT", + "x-ms-has-legal-hold" : "false", + "x-ms-default-encryption-scope" : "$account-encryption-key", + "ETag" : "\"0x8D72811318929AD\"", + "x-ms-has-immutability-policy" : "false", + "Content-Length" : "0", + "x-ms-request-id" : "77d01115-501e-00c0-1cfc-59ba32000000", + "x-ms-client-request-id" : "8ab8246e-afb8-4efb-978b-aca5ae394ba1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/$root/rootblob", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BB68A006\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d0113c-501e-00c0-41fc-59ba32000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:10 GMT", + "x-ms-client-request-id" : "759b3e0b-a74f-41f5-8a6e-0e8cb0e4049c" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcrootexplicit&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d0115e-501e-00c0-5ffc-59ba32000000", + "Body" : "jtcrootexplicitjtcrootexplicit0containerapitestrootexplicit3c409192fbf56Fri, 23 Aug 2019 21:49:10 GMT\"0x8D72813BB5F04E0\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:10 GMT", + "x-ms-client-request-id" : "4e84980d-3dfc-4081-ad31-3cfeba654617", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrootexplicit0containerapitestrootexplicit3c409192fbf56?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d01180-501e-00c0-7cfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:10 GMT", + "x-ms-client-request-id" : "d32ee6f2-34cb-4c48-b2e1-9780e9af8241" + }, + "Exception" : null + } ], + "variables" : [ "jtcrootexplicit0containerapitestrootexplicit3c409192fbf56" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestrootexplicitinendpoint.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestrootexplicitinendpoint.json new file mode 100644 index 0000000000000..0abdbdc96da78 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestrootexplicitinendpoint.json @@ -0,0 +1,140 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrootexplicitinendpoint020629af78a6206e994546?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BB813B43\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d011f3-501e-00c0-65fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:10 GMT", + "x-ms-client-request-id" : "639759d0-eb64-4c7a-b6ac-6aa3e35cf873" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/$root?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "x-ms-deny-encryption-scope-override" : "false", + "Last-Modified" : "Fri, 23 Aug 2019 21:31:00 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:49:10 GMT", + "x-ms-has-legal-hold" : "false", + "x-ms-default-encryption-scope" : "$account-encryption-key", + "ETag" : "\"0x8D72811318929AD\"", + "x-ms-has-immutability-policy" : "false", + "Content-Length" : "0", + "x-ms-request-id" : "77d01221-501e-00c0-0dfc-59ba32000000", + "x-ms-client-request-id" : "5d6686c9-34ea-468c-9419-1cd0a1f690c3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "http://azstoragesdkaccount.blob.core.windows.net/$root/rootblob", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BB998007\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ff8d3249-c01e-00e7-27fc-59207b000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:11 GMT", + "x-ms-client-request-id" : "fddbd1b8-c058-47fc-9433-a83697783067" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "http://azstoragesdkaccount.blob.core.windows.net/$root/rootblob", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "x-ms-blob-committed-block-count" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:11 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:49:11 GMT", + "x-ms-blob-type" : "AppendBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72813BB998007\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:31:00 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "ff8d3277-c01e-00e7-44fc-59207b000000", + "x-ms-client-request-id" : "65d3dfb5-2751-49e6-a4b4-7be55a90e51c", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcrootexplicitinendpoint&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d012f7-501e-00c0-33fc-59ba32000000", + "Body" : "jtcrootexplicitinendpointjtcrootexplicitinendpoint020629af78a6206e994546Fri, 23 Aug 2019 21:49:11 GMT\"0x8D72813BB813B43\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:10 GMT", + "x-ms-client-request-id" : "6f130bd9-f822-4d0a-9feb-373f7304f780", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrootexplicitinendpoint020629af78a6206e994546?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d0132e-501e-00c0-60fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:10 GMT", + "x-ms-client-request-id" : "a4f5b500-9cf7-4ef6-b4d8-ea333993dfbe" + }, + "Exception" : null + } ], + "variables" : [ "jtcrootexplicitinendpoint020629af78a6206e994546" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetaccesspolicy[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetaccesspolicy[0].json new file mode 100644 index 0000000000000..bdbbf6229e37a --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetaccesspolicy[0].json @@ -0,0 +1,110 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetaccesspolicy0containerapitestsetaccesspolicyee308392bb?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133F4E26D7\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:42 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1deb8e3-001e-00f1-1ffc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:42 GMT", + "x-ms-client-request-id" : "71a658e6-4716-4bd1-9146-956eddbdaad6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetaccesspolicy0containerapitestsetaccesspolicyee308392bb?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133F533115\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:42 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1deb934-001e-00f1-6cfc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:42 GMT", + "x-ms-client-request-id" : "d8ca0c2b-25a8-4822-8754-f80b7a8e89b2" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetaccesspolicy0containerapitestsetaccesspolicyee308392bb?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "x-ms-deny-encryption-scope-override" : "false", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:42 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:45:42 GMT", + "x-ms-has-legal-hold" : "false", + "x-ms-default-encryption-scope" : "$account-encryption-key", + "ETag" : "\"0x8D728133F533115\"", + "x-ms-has-immutability-policy" : "false", + "Content-Length" : "0", + "x-ms-blob-public-access" : "blob", + "x-ms-request-id" : "b1deb95b-001e-00f1-13fc-59e1e5000000", + "x-ms-client-request-id" : "6e75e3d8-beeb-4fe2-9412-d3a5005c500a" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsetaccesspolicy&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1deb99c-001e-00f1-49fc-59e1e5000000", + "Body" : "jtcsetaccesspolicyjtcsetaccesspolicy0containerapitestsetaccesspolicyee308392bbFri, 23 Aug 2019 21:45:42 GMT\"0x8D728133F533115\"unlockedavailableblob$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:42 GMT", + "x-ms-client-request-id" : "a61511dc-a344-457c-af89-4aefef083400", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetaccesspolicy0containerapitestsetaccesspolicyee308392bb?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1deb9ca-001e-00f1-75fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:42 GMT", + "x-ms-client-request-id" : "02888d44-a21f-4495-9721-b3d73b8921b1" + }, + "Exception" : null + } ], + "variables" : [ "jtcsetaccesspolicy0containerapitestsetaccesspolicyee308392bb" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetaccesspolicy[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetaccesspolicy[1].json new file mode 100644 index 0000000000000..78a057cf39260 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetaccesspolicy[1].json @@ -0,0 +1,110 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetaccesspolicy0containerapitestsetaccesspolicye796725781?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133F66BDF8\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:42 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1deba31-001e-00f1-52fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:42 GMT", + "x-ms-client-request-id" : "ab2a8c75-9bf2-4981-a693-924fa2e8e2e9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetaccesspolicy0containerapitestsetaccesspolicye796725781?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133F6B79D2\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:42 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1deba70-001e-00f1-0dfc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:42 GMT", + "x-ms-client-request-id" : "abce39c3-632f-458f-ba51-e3c57f0a86a8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetaccesspolicy0containerapitestsetaccesspolicye796725781?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "x-ms-deny-encryption-scope-override" : "false", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:42 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:45:42 GMT", + "x-ms-has-legal-hold" : "false", + "x-ms-default-encryption-scope" : "$account-encryption-key", + "ETag" : "\"0x8D728133F6B79D2\"", + "x-ms-has-immutability-policy" : "false", + "Content-Length" : "0", + "x-ms-blob-public-access" : "container", + "x-ms-request-id" : "b1debaa7-001e-00f1-3efc-59e1e5000000", + "x-ms-client-request-id" : "c98f550f-ef66-4c2e-9a76-79d61c72d134" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsetaccesspolicy&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1debad7-001e-00f1-6bfc-59e1e5000000", + "Body" : "jtcsetaccesspolicyjtcsetaccesspolicy0containerapitestsetaccesspolicye796725781Fri, 23 Aug 2019 21:45:42 GMT\"0x8D728133F6B79D2\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:42 GMT", + "x-ms-client-request-id" : "ab048042-8298-4529-828b-518e5509bebf", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetaccesspolicy0containerapitestsetaccesspolicye796725781?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1debb02-001e-00f1-13fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:42 GMT", + "x-ms-client-request-id" : "8192b5c6-ecc9-42f9-aaf6-97c1b09acbad" + }, + "Exception" : null + } ], + "variables" : [ "jtcsetaccesspolicy0containerapitestsetaccesspolicye796725781" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetaccesspolicy[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetaccesspolicy[2].json new file mode 100644 index 0000000000000..34a94ebc10366 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetaccesspolicy[2].json @@ -0,0 +1,109 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetaccesspolicy0containerapitestsetaccesspolicyaa1545892e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133F7E6A77\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:43 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1debb6b-001e-00f1-6efc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:42 GMT", + "x-ms-client-request-id" : "dad32142-847c-4cc4-94bd-8e806b4a9833" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetaccesspolicy0containerapitestsetaccesspolicyaa1545892e?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133F834D58\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:43 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1debba9-001e-00f1-24fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:42 GMT", + "x-ms-client-request-id" : "5e672fb8-0c5c-4090-8f8e-ad288369a94d" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetaccesspolicy0containerapitestsetaccesspolicyaa1545892e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "x-ms-deny-encryption-scope-override" : "false", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:43 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:45:42 GMT", + "x-ms-has-legal-hold" : "false", + "x-ms-default-encryption-scope" : "$account-encryption-key", + "ETag" : "\"0x8D728133F834D58\"", + "x-ms-has-immutability-policy" : "false", + "Content-Length" : "0", + "x-ms-request-id" : "b1debbd3-001e-00f1-4afc-59e1e5000000", + "x-ms-client-request-id" : "2c22d212-e06b-418a-bb2c-66b04b1c9d7d" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsetaccesspolicy&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1debc08-001e-00f1-76fc-59e1e5000000", + "Body" : "jtcsetaccesspolicyjtcsetaccesspolicy0containerapitestsetaccesspolicyaa1545892eFri, 23 Aug 2019 21:45:43 GMT\"0x8D728133F834D58\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:42 GMT", + "x-ms-client-request-id" : "1354af78-df0b-4caa-9fa7-900f64e47e79", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetaccesspolicy0containerapitestsetaccesspolicyaa1545892e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1debc34-001e-00f1-20fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:42 GMT", + "x-ms-client-request-id" : "388ecc48-6bf9-4e50-a6ef-34cabd2e271f" + }, + "Exception" : null + } ], + "variables" : [ "jtcsetaccesspolicy0containerapitestsetaccesspolicyaa1545892e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetaccesspolicyac[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetaccesspolicyac[0].json new file mode 100644 index 0000000000000..28c2143fcac14 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetaccesspolicyac[0].json @@ -0,0 +1,83 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetaccesspolicyac0containerapitestsetaccesspolicyac83312169?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133FEE85E3\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:43 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1dec040-001e-00f1-63fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:43 GMT", + "x-ms-client-request-id" : "626eb4b5-384f-4f4b-967f-940654655549" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetaccesspolicyac0containerapitestsetaccesspolicyac83312169?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133FFEB55B\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:43 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1dec0f2-001e-00f1-0bfc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:43 GMT", + "x-ms-client-request-id" : "fb8332da-adc4-427d-be85-25b669405f1d" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsetaccesspolicyac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1dec116-001e-00f1-2dfc-59e1e5000000", + "Body" : "jtcsetaccesspolicyacjtcsetaccesspolicyac0containerapitestsetaccesspolicyac83312169Fri, 23 Aug 2019 21:45:43 GMT\"0x8D728133FFEB55B\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:43 GMT", + "x-ms-client-request-id" : "54698292-b51c-492e-b6e7-33c7fec33ed9", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetaccesspolicyac0containerapitestsetaccesspolicyac83312169?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1dec140-001e-00f1-53fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:43 GMT", + "x-ms-client-request-id" : "b9750e8f-5cd3-4300-8bc9-241f9bbd18c9" + }, + "Exception" : null + } ], + "variables" : [ "jtcsetaccesspolicyac0containerapitestsetaccesspolicyac83312169" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetaccesspolicyac[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetaccesspolicyac[1].json new file mode 100644 index 0000000000000..153640c1f1f3f --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetaccesspolicyac[1].json @@ -0,0 +1,83 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetaccesspolicyac0containerapitestsetaccesspolicyac22961009?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813400CC3B5\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1dec176-001e-00f1-09fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:43 GMT", + "x-ms-client-request-id" : "701f4355-18c1-402d-9da7-21d7e0a9378c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetaccesspolicyac0containerapitestsetaccesspolicyac22961009?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281340117E86\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1dec19e-001e-00f1-2dfc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:43 GMT", + "x-ms-client-request-id" : "8933a213-20e8-436c-8e90-60fc429a0fd3" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsetaccesspolicyac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1dec1de-001e-00f1-67fc-59e1e5000000", + "Body" : "jtcsetaccesspolicyacjtcsetaccesspolicyac0containerapitestsetaccesspolicyac22961009Fri, 23 Aug 2019 21:45:44 GMT\"0x8D7281340117E86\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:43 GMT", + "x-ms-client-request-id" : "989a80e8-c810-4b53-9ed1-3ef682d36769", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetaccesspolicyac0containerapitestsetaccesspolicyac22961009?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1dec21b-001e-00f1-1ffc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:43 GMT", + "x-ms-client-request-id" : "4a24fb66-8fdc-4b0e-90dd-88ac3a4ebf85" + }, + "Exception" : null + } ], + "variables" : [ "jtcsetaccesspolicyac0containerapitestsetaccesspolicyac22961009" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetaccesspolicyac[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetaccesspolicyac[2].json new file mode 100644 index 0000000000000..1ae2ee64ab20d --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetaccesspolicyac[2].json @@ -0,0 +1,83 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetaccesspolicyac0containerapitestsetaccesspolicyacfbb56548?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728134020295E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1dec274-001e-00f1-6ffc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:43 GMT", + "x-ms-client-request-id" : "9ac3854e-ef60-44c5-a598-813f9393c26c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetaccesspolicyac0containerapitestsetaccesspolicyacfbb56548?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281340250B32\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1dec2ac-001e-00f1-24fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:43 GMT", + "x-ms-client-request-id" : "97dbe973-ea6a-44cd-8ce9-5e70457c8cab" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsetaccesspolicyac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1dec2de-001e-00f1-53fc-59e1e5000000", + "Body" : "jtcsetaccesspolicyacjtcsetaccesspolicyac0containerapitestsetaccesspolicyacfbb56548Fri, 23 Aug 2019 21:45:44 GMT\"0x8D7281340250B32\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:43 GMT", + "x-ms-client-request-id" : "1cc4bb48-8ac1-4f7a-8b28-f205f1cd0dba", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetaccesspolicyac0containerapitestsetaccesspolicyacfbb56548?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1dec313-001e-00f1-06fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:43 GMT", + "x-ms-client-request-id" : "3f383bbb-7713-46af-932b-9c3b74db9a8a" + }, + "Exception" : null + } ], + "variables" : [ "jtcsetaccesspolicyac0containerapitestsetaccesspolicyacfbb56548" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetaccesspolicyac[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetaccesspolicyac[3].json new file mode 100644 index 0000000000000..eec0498a6a850 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetaccesspolicyac[3].json @@ -0,0 +1,125 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetaccesspolicyac0containerapitestsetaccesspolicyacb6e63726?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813403367F8\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1dec354-001e-00f1-44fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:43 GMT", + "x-ms-client-request-id" : "e6d205d5-d9dd-4457-a8e4-fdda033dc741" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetaccesspolicyac0containerapitestsetaccesspolicyacb6e63726?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813403367F8\"", + "x-ms-lease-id" : "c6440692-d0fd-40bb-8ce3-8c3a851e0eba", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1dec38d-001e-00f1-79fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:43 GMT", + "x-ms-client-request-id" : "979b99fe-3afa-4ae5-860f-96120a282e7e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetaccesspolicyac0containerapitestsetaccesspolicyacb6e63726?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813403EB3E3\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1dec3e7-001e-00f1-4cfc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:43 GMT", + "x-ms-client-request-id" : "f601ccb9-c88a-47c7-8a71-0d867d5df2ca" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsetaccesspolicyac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1dec431-001e-00f1-0afc-59e1e5000000", + "Body" : "jtcsetaccesspolicyacjtcsetaccesspolicyac0containerapitestsetaccesspolicyacb6e63726Fri, 23 Aug 2019 21:45:44 GMT\"0x8D72813403EB3E3\"lockedleasedinfinite$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:43 GMT", + "x-ms-client-request-id" : "f5c754c7-19fb-49fd-83e6-77fa638b1c6a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetaccesspolicyac0containerapitestsetaccesspolicyacb6e63726?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813403EB3E3\"", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1dec472-001e-00f1-48fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:43 GMT", + "x-ms-client-request-id" : "29be5cc1-95c5-48d4-b0d1-ab2abec9cccc" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetaccesspolicyac0containerapitestsetaccesspolicyacb6e63726?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1dec4b2-001e-00f1-03fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:43 GMT", + "x-ms-client-request-id" : "8d729496-212c-46c9-a6dc-80efeb5fd7e8" + }, + "Exception" : null + } ], + "variables" : [ "jtcsetaccesspolicyac0containerapitestsetaccesspolicyacb6e63726" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetaccesspolicyacfail[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetaccesspolicyacfail[0].json new file mode 100644 index 0000000000000..86a02be118672 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetaccesspolicyacfail[0].json @@ -0,0 +1,84 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetaccesspolicyacfail0361600eb10e9dc3ef4567?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728134051579D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1dec515-001e-00f1-61fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:43 GMT", + "x-ms-client-request-id" : "1b8605c8-5dea-479c-986c-4e7051769c4d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetaccesspolicyacfail0361600eb10e9dc3ef4567?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "b1dec571-001e-00f1-35fc-59e1e5000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:b1dec571-001e-00f1-35fc-59e1e5000000\nTime:2019-08-23T21:45:44.5187248Z", + "Date" : "Fri, 23 Aug 2019 21:45:43 GMT", + "x-ms-client-request-id" : "b8c69a97-5535-47c2-bbd0-aa67cfc83cab", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsetaccesspolicyacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1dec5a5-001e-00f1-61fc-59e1e5000000", + "Body" : "jtcsetaccesspolicyacfailjtcsetaccesspolicyacfail0361600eb10e9dc3ef4567Fri, 23 Aug 2019 21:45:44 GMT\"0x8D728134051579D\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:43 GMT", + "x-ms-client-request-id" : "3bda3ff4-2716-4d29-8981-0c2bf6f405a2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetaccesspolicyacfail0361600eb10e9dc3ef4567?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1dec5cc-001e-00f1-08fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:43 GMT", + "x-ms-client-request-id" : "a87ed542-7e86-41e3-92db-25467bf5dc63" + }, + "Exception" : null + } ], + "variables" : [ "jtcsetaccesspolicyacfail0361600eb10e9dc3ef4567" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetaccesspolicyacfail[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetaccesspolicyacfail[1].json new file mode 100644 index 0000000000000..8b0bfcdc78ae5 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetaccesspolicyacfail[1].json @@ -0,0 +1,84 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetaccesspolicyacfail01102858044ed408ca4add?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813406559B5\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1dec618-001e-00f1-50fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:44 GMT", + "x-ms-client-request-id" : "74356fea-5b9a-45b0-80fb-87fe0d978430" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetaccesspolicyacfail01102858044ed408ca4add?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "b1dec659-001e-00f1-0dfc-59e1e5000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:b1dec659-001e-00f1-0dfc-59e1e5000000\nTime:2019-08-23T21:45:44.6428443Z", + "Date" : "Fri, 23 Aug 2019 21:45:44 GMT", + "x-ms-client-request-id" : "4356c7c4-d6b2-43b1-8b6a-1f080cb88048", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsetaccesspolicyacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1dec68d-001e-00f1-3ffc-59e1e5000000", + "Body" : "jtcsetaccesspolicyacfailjtcsetaccesspolicyacfail01102858044ed408ca4addFri, 23 Aug 2019 21:45:44 GMT\"0x8D72813406559B5\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:44 GMT", + "x-ms-client-request-id" : "d1b9052d-cd58-49a0-b3d7-a28589c2252c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetaccesspolicyacfail01102858044ed408ca4add?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1dec6bf-001e-00f1-70fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:44 GMT", + "x-ms-client-request-id" : "3e8c5e1b-7bf4-49a3-94ab-73ae5ea3ad35" + }, + "Exception" : null + } ], + "variables" : [ "jtcsetaccesspolicyacfail01102858044ed408ca4add" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetaccesspolicyacfail[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetaccesspolicyacfail[2].json new file mode 100644 index 0000000000000..f7cbce20c1926 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetaccesspolicyacfail[2].json @@ -0,0 +1,84 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetaccesspolicyacfail027614861e4c66ab284ad7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813407DF0D2\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1dec718-001e-00f1-46fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:44 GMT", + "x-ms-client-request-id" : "4988cc17-4f73-4b52-82ba-cc08d8e23f3f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetaccesspolicyacfail027614861e4c66ab284ad7?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "LeaseNotPresentWithContainerOperation", + "retry-after" : "0", + "Content-Length" : "251", + "StatusCode" : "412", + "x-ms-request-id" : "b1dec747-001e-00f1-72fc-59e1e5000000", + "Body" : "LeaseNotPresentWithContainerOperationThere is currently no lease on the container.\nRequestId:b1dec747-001e-00f1-72fc-59e1e5000000\nTime:2019-08-23T21:45:44.8019969Z", + "Date" : "Fri, 23 Aug 2019 21:45:44 GMT", + "x-ms-client-request-id" : "9bae3eb4-13e9-4617-8440-445534aa6eec", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsetaccesspolicyacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1dec76b-001e-00f1-13fc-59e1e5000000", + "Body" : "jtcsetaccesspolicyacfailjtcsetaccesspolicyacfail027614861e4c66ab284ad7Fri, 23 Aug 2019 21:45:44 GMT\"0x8D72813407DF0D2\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:44 GMT", + "x-ms-client-request-id" : "98307fd2-6e0d-41c9-a04f-128412efd70d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetaccesspolicyacfail027614861e4c66ab284ad7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1dec7c8-001e-00f1-6dfc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:44 GMT", + "x-ms-client-request-id" : "7b62c593-669f-4904-86bd-7e0279436782" + }, + "Exception" : null + } ], + "variables" : [ "jtcsetaccesspolicyacfail027614861e4c66ab284ad7" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetaccesspolicyacillegal[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetaccesspolicyacillegal[0].json new file mode 100644 index 0000000000000..a87560874a2a2 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetaccesspolicyacillegal[0].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetaccesspolicyacillegal0176579222e19d8bd2436?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281340972451\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1dec80d-001e-00f1-2efc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:44 GMT", + "x-ms-client-request-id" : "bfc7140b-e3c2-4464-80c3-31011fc3e545" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsetaccesspolicyacillegal&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1dec84c-001e-00f1-68fc-59e1e5000000", + "Body" : "jtcsetaccesspolicyacillegaljtcsetaccesspolicyacillegal0176579222e19d8bd2436Fri, 23 Aug 2019 21:45:44 GMT\"0x8D7281340972451\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:44 GMT", + "x-ms-client-request-id" : "cdc9a368-b94b-4b43-8984-56d0048bafa2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetaccesspolicyacillegal0176579222e19d8bd2436?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1dec87c-001e-00f1-17fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:44 GMT", + "x-ms-client-request-id" : "a06a771a-3f4f-4dc4-b2b9-7ac914e64757" + }, + "Exception" : null + } ], + "variables" : [ "jtcsetaccesspolicyacillegal0176579222e19d8bd2436" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetaccesspolicyacillegal[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetaccesspolicyacillegal[1].json new file mode 100644 index 0000000000000..7fb3a26b69a2c --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetaccesspolicyacillegal[1].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetaccesspolicyacillegal034095f0d0d6ff7b4140b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281340A5CDEB\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1dec8cb-001e-00f1-61fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:44 GMT", + "x-ms-client-request-id" : "71ff7512-36a9-4400-bd0b-7b7aaacb469f" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsetaccesspolicyacillegal&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1dec8fc-001e-00f1-0ffc-59e1e5000000", + "Body" : "jtcsetaccesspolicyacillegaljtcsetaccesspolicyacillegal034095f0d0d6ff7b4140bFri, 23 Aug 2019 21:45:45 GMT\"0x8D7281340A5CDEB\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:44 GMT", + "x-ms-client-request-id" : "e93576c9-2d10-4531-bf41-2346a65ac697", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetaccesspolicyacillegal034095f0d0d6ff7b4140b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1dec93a-001e-00f1-48fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:44 GMT", + "x-ms-client-request-id" : "b326b77f-97b4-4dd9-93be-24f2b029f7d9" + }, + "Exception" : null + } ], + "variables" : [ "jtcsetaccesspolicyacillegal034095f0d0d6ff7b4140b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetaccesspolicyerror.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetaccesspolicyerror.json new file mode 100644 index 0000000000000..c2948665b735c --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetaccesspolicyerror.json @@ -0,0 +1,84 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetaccesspolicyerror033681e4bdb9debad249848?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281340B4ECD0\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1dec98c-001e-00f1-13fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:44 GMT", + "x-ms-client-request-id" : "8e8ad03c-2efc-4100-b70b-f269e3ebe2a9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetaccesspolicyerror1139713c4f9557d2e645269?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ContainerNotFound", + "retry-after" : "0", + "Content-Length" : "225", + "StatusCode" : "404", + "x-ms-request-id" : "b1deca58-001e-00f1-4dfc-59e1e5000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:b1deca58-001e-00f1-4dfc-59e1e5000000\nTime:2019-08-23T21:45:45.2314088Z", + "Date" : "Fri, 23 Aug 2019 21:45:44 GMT", + "x-ms-client-request-id" : "eb54987a-be1c-447f-85e9-cf40dc76051a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsetaccesspolicyerror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1deca92-001e-00f1-03fc-59e1e5000000", + "Body" : "jtcsetaccesspolicyerrorjtcsetaccesspolicyerror033681e4bdb9debad249848Fri, 23 Aug 2019 21:45:45 GMT\"0x8D7281340B4ECD0\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:44 GMT", + "x-ms-client-request-id" : "f85bbe4e-3ce4-4fd7-a29b-1439381630a6", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetaccesspolicyerror033681e4bdb9debad249848?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1decabe-001e-00f1-2cfc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:44 GMT", + "x-ms-client-request-id" : "978afc37-e625-43ba-b18e-98c417368074" + }, + "Exception" : null + } ], + "variables" : [ "jtcsetaccesspolicyerror033681e4bdb9debad249848", "jtcsetaccesspolicyerror1139713c4f9557d2e645269" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetaccesspolicyids.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetaccesspolicyids.json new file mode 100644 index 0000000000000..0277b3256229d --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetaccesspolicyids.json @@ -0,0 +1,105 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetaccesspolicyids059361039c10d92a5e444e97?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133FD2445F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:43 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1debf1e-001e-00f1-55fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:43 GMT", + "x-ms-client-request-id" : "64b6e407-8531-4ded-8783-15be4e214822" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetaccesspolicyids059361039c10d92a5e444e97?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133FDC09DF\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:43 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1debf7f-001e-00f1-2ffc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:43 GMT", + "x-ms-client-request-id" : "0f303dbc-bdf6-434b-b324-5dc7699ed533" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetaccesspolicyids059361039c10d92a5e444e97?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133FDC09DF\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:43 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1debfac-001e-00f1-5afc-59e1e5000000", + "Body" : "00002019-08-23T21:45:43.0000000Z2019-08-24T21:45:43.0000000Zr00012019-08-23T21:45:43.0000000Z2019-08-25T21:45:43.0000000Zw", + "Date" : "Fri, 23 Aug 2019 21:45:43 GMT", + "x-ms-client-request-id" : "4aa31459-6138-45e9-ac9b-db3cb5eb2170", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsetaccesspolicyids&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1debfd2-001e-00f1-7cfc-59e1e5000000", + "Body" : "jtcsetaccesspolicyidsjtcsetaccesspolicyids059361039c10d92a5e444e97Fri, 23 Aug 2019 21:45:43 GMT\"0x8D728133FDC09DF\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:43 GMT", + "x-ms-client-request-id" : "9e6fb3a9-e90f-4830-bef7-ba0a58c99a80", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetaccesspolicyids059361039c10d92a5e444e97?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1debffa-001e-00f1-22fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:43 GMT", + "x-ms-client-request-id" : "4b087a8c-4d2d-4100-8cfe-173d557d4a13" + }, + "Exception" : null + } ], + "variables" : [ "jtcsetaccesspolicyids059361039c10d92a5e444e97", "2019-08-23T21:45:43.727Z", "2019-08-23T21:45:43.727Z", "2019-08-23T21:45:43.727Z", "2019-08-23T21:45:43.727Z" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetaccesspolicyminaccess.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetaccesspolicyminaccess.json new file mode 100644 index 0000000000000..bc180b5990e6f --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetaccesspolicyminaccess.json @@ -0,0 +1,110 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetaccesspolicyminaccess031707801fb687236049f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133F974FBE\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:43 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1debc87-001e-00f1-6ffc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:42 GMT", + "x-ms-client-request-id" : "a968ec1e-7b16-436f-acb7-f05c71e4720d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetaccesspolicyminaccess031707801fb687236049f?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133F9F1960\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:43 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1debcd3-001e-00f1-37fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:42 GMT", + "x-ms-client-request-id" : "a236c8d5-232c-462d-a762-2d90f0c9f569" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetaccesspolicyminaccess031707801fb687236049f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "x-ms-deny-encryption-scope-override" : "false", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:43 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:45:42 GMT", + "x-ms-has-legal-hold" : "false", + "x-ms-default-encryption-scope" : "$account-encryption-key", + "ETag" : "\"0x8D728133F9F1960\"", + "x-ms-has-immutability-policy" : "false", + "Content-Length" : "0", + "x-ms-blob-public-access" : "container", + "x-ms-request-id" : "b1debd03-001e-00f1-66fc-59e1e5000000", + "x-ms-client-request-id" : "b0141812-a084-47a3-9c7b-4f4034c4c3ee" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsetaccesspolicyminaccess&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1debd3c-001e-00f1-16fc-59e1e5000000", + "Body" : "jtcsetaccesspolicyminaccessjtcsetaccesspolicyminaccess031707801fb687236049fFri, 23 Aug 2019 21:45:43 GMT\"0x8D728133F9F1960\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:42 GMT", + "x-ms-client-request-id" : "7d24fe5d-9786-41f9-8e23-ccb0603dd86d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetaccesspolicyminaccess031707801fb687236049f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1debd64-001e-00f1-3dfc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:42 GMT", + "x-ms-client-request-id" : "3ea848d7-ac7a-4d00-b0b6-1dda838d41cc" + }, + "Exception" : null + } ], + "variables" : [ "jtcsetaccesspolicyminaccess031707801fb687236049f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetaccesspolicyminids.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetaccesspolicyminids.json new file mode 100644 index 0000000000000..7e2df66c1896e --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetaccesspolicyminids.json @@ -0,0 +1,105 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetaccesspolicyminids093805835db4516488447b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133FB84D5E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:43 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1debde5-001e-00f1-37fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:42 GMT", + "x-ms-client-request-id" : "793b18fd-7c62-4ac8-9ebf-75160b67f7d5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetaccesspolicyminids093805835db4516488447b?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133FBF2C26\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:43 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1debe34-001e-00f1-7dfc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:42 GMT", + "x-ms-client-request-id" : "e3da1bac-2048-4f18-8101-a6c25d8befbb" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetaccesspolicyminids093805835db4516488447b?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133FBF2C26\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:43 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1debe60-001e-00f1-27fc-59e1e5000000", + "Body" : "00002019-08-23T21:45:43.0000000Z2019-08-24T21:45:43.0000000Zr", + "Date" : "Fri, 23 Aug 2019 21:45:42 GMT", + "x-ms-client-request-id" : "e81ce78c-fe02-43bd-a2ce-f05bc7908b59", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsetaccesspolicyminids&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1debead-001e-00f1-6bfc-59e1e5000000", + "Body" : "jtcsetaccesspolicyminidsjtcsetaccesspolicyminids093805835db4516488447bFri, 23 Aug 2019 21:45:43 GMT\"0x8D728133FBF2C26\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:42 GMT", + "x-ms-client-request-id" : "07ec449f-6340-4231-b1fe-3083ddad7552", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetaccesspolicyminids093805835db4516488447b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1debed7-001e-00f1-14fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:43 GMT", + "x-ms-client-request-id" : "2af70d0d-57da-47ca-bfb9-d5905352a6ac" + }, + "Exception" : null + } ], + "variables" : [ "jtcsetaccesspolicyminids093805835db4516488447b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetmetadata.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetmetadata.json new file mode 100644 index 0000000000000..118c8f6c18002 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetmetadata.json @@ -0,0 +1,146 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadata0containerapitestsetmetadata349216934fcce1?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133E34D0A5\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1deab4e-001e-00f1-13fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:40 GMT", + "x-ms-client-request-id" : "1b3addcf-4af2-4ccd-87df-68c3fc365a5b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadata1containerapitestsetmetadata349009936c8d2b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133E3A01FD\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1deab9f-001e-00f1-56fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:40 GMT", + "x-ms-client-request-id" : "a5384af2-17e2-445d-9982-8f0143be4002" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadata1containerapitestsetmetadata349009936c8d2b?restype=container&comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133E3F8339\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:41 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1deabee-001e-00f1-1bfc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:40 GMT", + "x-ms-client-request-id" : "dd6ce045-33ff-4b38-b012-fa89479da842" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadata1containerapitestsetmetadata349009936c8d2b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "x-ms-deny-encryption-scope-override" : "false", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:41 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:45:40 GMT", + "x-ms-has-legal-hold" : "false", + "x-ms-default-encryption-scope" : "$account-encryption-key", + "ETag" : "\"0x8D728133E3F8339\"", + "x-ms-has-immutability-policy" : "false", + "Content-Length" : "0", + "x-ms-request-id" : "b1deac24-001e-00f1-4dfc-59e1e5000000", + "x-ms-client-request-id" : "cc4817c5-191a-4121-bb52-52886dcc5fd7" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsetmetadata&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1deac64-001e-00f1-80fc-59e1e5000000", + "Body" : "jtcsetmetadatajtcsetmetadata0containerapitestsetmetadata349216934fcce1Fri, 23 Aug 2019 21:45:40 GMT\"0x8D728133E34D0A5\"unlockedavailable$account-encryption-keyfalsefalsefalsejtcsetmetadata1containerapitestsetmetadata349009936c8d2bFri, 23 Aug 2019 21:45:41 GMT\"0x8D728133E3F8339\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:40 GMT", + "x-ms-client-request-id" : "06f1433f-565a-4855-8dd0-853a09c17d7b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadata0containerapitestsetmetadata349216934fcce1?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1deacb0-001e-00f1-39fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:40 GMT", + "x-ms-client-request-id" : "c950dca5-7a77-46b9-8358-11d3453b4574" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadata1containerapitestsetmetadata349009936c8d2b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1dead17-001e-00f1-0dfc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:40 GMT", + "x-ms-client-request-id" : "9e0ce8a5-59af-4a10-b89d-1238ee877c99" + }, + "Exception" : null + } ], + "variables" : [ "jtcsetmetadata0containerapitestsetmetadata349216934fcce1", "jtcsetmetadata1containerapitestsetmetadata349009936c8d2b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetmetadataac[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetmetadataac[0].json new file mode 100644 index 0000000000000..e448055b5480f --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetmetadataac[0].json @@ -0,0 +1,82 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataac0containerapitestsetmetadataacb1460975d303?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133EA0A535\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:41 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1deb07f-001e-00f1-09fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:41 GMT", + "x-ms-client-request-id" : "f2edab47-d98d-46e3-9f65-33cb2150e99c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataac0containerapitestsetmetadataacb1460975d303?restype=container&comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133EA5D78F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:41 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1deb0c6-001e-00f1-4afc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:41 GMT", + "x-ms-client-request-id" : "cf717624-3960-464a-b8c4-cbef184f73ef" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsetmetadataac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1deb0f4-001e-00f1-71fc-59e1e5000000", + "Body" : "jtcsetmetadataacjtcsetmetadataac0containerapitestsetmetadataacb1460975d303Fri, 23 Aug 2019 21:45:41 GMT\"0x8D728133EA5D78F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:41 GMT", + "x-ms-client-request-id" : "e9059405-a6cf-475f-8652-73ddf207c054", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataac0containerapitestsetmetadataacb1460975d303?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1deb115-001e-00f1-10fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:41 GMT", + "x-ms-client-request-id" : "c948622f-45a2-4189-9519-f2e24e50f6f3" + }, + "Exception" : null + } ], + "variables" : [ "jtcsetmetadataac0containerapitestsetmetadataacb1460975d303" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetmetadataac[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetmetadataac[1].json new file mode 100644 index 0000000000000..e205182c8c0d4 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetmetadataac[1].json @@ -0,0 +1,82 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataac0containerapitestsetmetadataac93b15019e76d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133EB43203\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:41 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1deb156-001e-00f1-4dfc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:41 GMT", + "x-ms-client-request-id" : "d779ac39-a680-4ef9-a282-84f156c97c32" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataac0containerapitestsetmetadataac93b15019e76d?restype=container&comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133EB8C7CC\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:41 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1deb190-001e-00f1-7ffc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:41 GMT", + "x-ms-client-request-id" : "b593a823-002c-48c1-b44a-9464667b6350" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsetmetadataac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1deb1be-001e-00f1-2bfc-59e1e5000000", + "Body" : "jtcsetmetadataacjtcsetmetadataac0containerapitestsetmetadataac93b15019e76dFri, 23 Aug 2019 21:45:41 GMT\"0x8D728133EB8C7CC\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:41 GMT", + "x-ms-client-request-id" : "028dfcfe-5339-4015-bf8f-0657d3113cca", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataac0containerapitestsetmetadataac93b15019e76d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1deb1e9-001e-00f1-53fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:41 GMT", + "x-ms-client-request-id" : "1c621dae-03ac-4f2d-8c91-32fb3e20c630" + }, + "Exception" : null + } ], + "variables" : [ "jtcsetmetadataac0containerapitestsetmetadataac93b15019e76d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetmetadataac[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetmetadataac[2].json new file mode 100644 index 0000000000000..e87a1d0fa8d62 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetmetadataac[2].json @@ -0,0 +1,124 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataac0containerapitestsetmetadataacbac0179294a8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133EC6D437\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:41 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1deb225-001e-00f1-09fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:41 GMT", + "x-ms-client-request-id" : "7874b25c-c8d0-4564-8c45-429a9e37b0e4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataac0containerapitestsetmetadataacbac0179294a8?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133EC6D437\"", + "x-ms-lease-id" : "1263684e-cc88-4e7d-a965-94680c517a9f", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:41 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1deb270-001e-00f1-42fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:41 GMT", + "x-ms-client-request-id" : "6bbae009-3932-4784-85ff-0acc9db7fe84" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataac0containerapitestsetmetadataacbac0179294a8?restype=container&comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133ED1108D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:41 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1deb2a8-001e-00f1-76fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:41 GMT", + "x-ms-client-request-id" : "aec4f98d-1fbd-4850-b474-e95480e51131" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsetmetadataac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1deb2ce-001e-00f1-1afc-59e1e5000000", + "Body" : "jtcsetmetadataacjtcsetmetadataac0containerapitestsetmetadataacbac0179294a8Fri, 23 Aug 2019 21:45:41 GMT\"0x8D728133ED1108D\"lockedleasedinfinite$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:41 GMT", + "x-ms-client-request-id" : "82ee0e70-74ad-4424-b13f-00eb4e6178a6", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataac0containerapitestsetmetadataacbac0179294a8?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133ED1108D\"", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:41 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1deb2fb-001e-00f1-44fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:41 GMT", + "x-ms-client-request-id" : "2a3cee01-e960-41ec-9a28-83d05b03a36c" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataac0containerapitestsetmetadataacbac0179294a8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1deb338-001e-00f1-7dfc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:41 GMT", + "x-ms-client-request-id" : "38d6592d-c7e1-4cd3-989e-7ba775122b48" + }, + "Exception" : null + } ], + "variables" : [ "jtcsetmetadataac0containerapitestsetmetadataacbac0179294a8" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetmetadataacfail[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetmetadataacfail[0].json new file mode 100644 index 0000000000000..909252e15a28c --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetmetadataacfail[0].json @@ -0,0 +1,83 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataacfail0containerapitestsetmetadataacfailc6b75183?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133EE5AE75\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:42 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1deb3b2-001e-00f1-69fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:41 GMT", + "x-ms-client-request-id" : "d79f0c0a-6e4f-419a-bc09-7c8160ff0558" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataacfail0containerapitestsetmetadataacfailc6b75183?restype=container&comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "b1deb3e9-001e-00f1-1dfc-59e1e5000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:b1deb3e9-001e-00f1-1dfc-59e1e5000000\nTime:2019-08-23T21:45:42.1244268Z", + "Date" : "Fri, 23 Aug 2019 21:45:41 GMT", + "x-ms-client-request-id" : "d8855235-63bf-407b-b3a5-b7583f6dadca", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsetmetadataacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1deb42f-001e-00f1-58fc-59e1e5000000", + "Body" : "jtcsetmetadataacfailjtcsetmetadataacfail0containerapitestsetmetadataacfailc6b75183Fri, 23 Aug 2019 21:45:42 GMT\"0x8D728133EE5AE75\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:41 GMT", + "x-ms-client-request-id" : "dc28085c-9637-4c84-b455-2cbe56e369b8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataacfail0containerapitestsetmetadataacfailc6b75183?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1deb45e-001e-00f1-03fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:41 GMT", + "x-ms-client-request-id" : "0957e00f-7502-4e1a-bcd7-2fa846fa1d0f" + }, + "Exception" : null + } ], + "variables" : [ "jtcsetmetadataacfail0containerapitestsetmetadataacfailc6b75183" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetmetadataacfail[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetmetadataacfail[1].json new file mode 100644 index 0000000000000..e34462fc27050 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetmetadataacfail[1].json @@ -0,0 +1,83 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataacfail0containerapitestsetmetadataacfaild2a54447?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133EF877B7\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:42 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1deb4a1-001e-00f1-40fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:41 GMT", + "x-ms-client-request-id" : "36b9e7e9-6576-402f-902a-9c0242751e8b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataacfail0containerapitestsetmetadataacfaild2a54447?restype=container&comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "LeaseNotPresentWithContainerOperation", + "retry-after" : "0", + "Content-Length" : "251", + "StatusCode" : "412", + "x-ms-request-id" : "b1deb4e6-001e-00f1-7cfc-59e1e5000000", + "Body" : "LeaseNotPresentWithContainerOperationThere is currently no lease on the container.\nRequestId:b1deb4e6-001e-00f1-7cfc-59e1e5000000\nTime:2019-08-23T21:45:42.2495471Z", + "Date" : "Fri, 23 Aug 2019 21:45:41 GMT", + "x-ms-client-request-id" : "63a1c419-ec97-47ce-8de6-e1fcba452b78", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsetmetadataacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1deb524-001e-00f1-33fc-59e1e5000000", + "Body" : "jtcsetmetadataacfailjtcsetmetadataacfail0containerapitestsetmetadataacfaild2a54447Fri, 23 Aug 2019 21:45:42 GMT\"0x8D728133EF877B7\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:41 GMT", + "x-ms-client-request-id" : "5d9cffd7-cd92-4678-ad15-00cd5c077cdf", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataacfail0containerapitestsetmetadataacfaild2a54447?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1deb555-001e-00f1-60fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:41 GMT", + "x-ms-client-request-id" : "241ef608-99ec-4d0e-bfe3-6d4e7ea914d6" + }, + "Exception" : null + } ], + "variables" : [ "jtcsetmetadataacfail0containerapitestsetmetadataacfaild2a54447" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetmetadataacillegal[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetmetadataacillegal[0].json new file mode 100644 index 0000000000000..1bb27bca63083 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetmetadataacillegal[0].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataacillegal0045114d8dc5ccf81242ccb?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133F0BB656\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:42 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1deb5a4-001e-00f1-28fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:41 GMT", + "x-ms-client-request-id" : "1fae3a98-2575-425e-bec4-93cb868320f9" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsetmetadataacillegal&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1deb5e6-001e-00f1-65fc-59e1e5000000", + "Body" : "jtcsetmetadataacillegaljtcsetmetadataacillegal0045114d8dc5ccf81242ccbFri, 23 Aug 2019 21:45:42 GMT\"0x8D728133F0BB656\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:41 GMT", + "x-ms-client-request-id" : "e21c27e2-3386-47cc-a771-47a95b3e76b0", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataacillegal0045114d8dc5ccf81242ccb?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1deb616-001e-00f1-13fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:41 GMT", + "x-ms-client-request-id" : "82cb018f-2475-4466-80cb-d699dbbb0235" + }, + "Exception" : null + } ], + "variables" : [ "jtcsetmetadataacillegal0045114d8dc5ccf81242ccb" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetmetadataacillegal[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetmetadataacillegal[1].json new file mode 100644 index 0000000000000..90e6149c5fc63 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetmetadataacillegal[1].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataacillegal041127eb48608ac4ff4c329?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133F1C5C3F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:42 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1deb66e-001e-00f1-63fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:41 GMT", + "x-ms-client-request-id" : "25daadf2-43cc-4126-afba-8fdd4dcccf2d" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsetmetadataacillegal&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1deb6c0-001e-00f1-2efc-59e1e5000000", + "Body" : "jtcsetmetadataacillegaljtcsetmetadataacillegal041127eb48608ac4ff4c329Fri, 23 Aug 2019 21:45:42 GMT\"0x8D728133F1C5C3F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:41 GMT", + "x-ms-client-request-id" : "92e9fce4-41cf-4b85-a90e-e5bd018880bf", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataacillegal041127eb48608ac4ff4c329?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1deb6fb-001e-00f1-65fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:41 GMT", + "x-ms-client-request-id" : "3ec958ab-7866-4cd8-9a14-190dbbe4e7a5" + }, + "Exception" : null + } ], + "variables" : [ "jtcsetmetadataacillegal041127eb48608ac4ff4c329" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetmetadataacillegal[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetmetadataacillegal[2].json new file mode 100644 index 0000000000000..75cd9336f4494 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetmetadataacillegal[2].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataacillegal003912b428864a760f4113b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133F2BC957\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:42 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1deb73a-001e-00f1-20fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:41 GMT", + "x-ms-client-request-id" : "21e8f77d-375a-4c18-8154-f7a3d4ea8007" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsetmetadataacillegal&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1deb788-001e-00f1-67fc-59e1e5000000", + "Body" : "jtcsetmetadataacillegaljtcsetmetadataacillegal003912b428864a760f4113bFri, 23 Aug 2019 21:45:42 GMT\"0x8D728133F2BC957\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:41 GMT", + "x-ms-client-request-id" : "2b14b5f2-327d-4ff6-9feb-945c1a3a9b7a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataacillegal003912b428864a760f4113b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1deb7bb-001e-00f1-16fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:42 GMT", + "x-ms-client-request-id" : "002f5ac0-7255-4aab-8f02-30873972f5c4" + }, + "Exception" : null + } ], + "variables" : [ "jtcsetmetadataacillegal003912b428864a760f4113b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetmetadataerror.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetmetadataerror.json new file mode 100644 index 0000000000000..2e606ab70cb36 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetmetadataerror.json @@ -0,0 +1,83 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataerror0containerapitestsetmetadataerror951706289?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133F3B0F58\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:42 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1deb7ef-001e-00f1-47fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:42 GMT", + "x-ms-client-request-id" : "1a8a98c5-437c-4215-b79b-813e37883e2b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataerror1containerapitestsetmetadataerror951774241?restype=container&comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ContainerNotFound", + "retry-after" : "0", + "Content-Length" : "225", + "StatusCode" : "404", + "x-ms-request-id" : "b1deb829-001e-00f1-7bfc-59e1e5000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:b1deb829-001e-00f1-7bfc-59e1e5000000\nTime:2019-08-23T21:45:42.6859659Z", + "Date" : "Fri, 23 Aug 2019 21:45:42 GMT", + "x-ms-client-request-id" : "ce9c1ade-9bc1-47c7-acad-9b28b522f77d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsetmetadataerror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1deb863-001e-00f1-2cfc-59e1e5000000", + "Body" : "jtcsetmetadataerrorjtcsetmetadataerror0containerapitestsetmetadataerror951706289Fri, 23 Aug 2019 21:45:42 GMT\"0x8D728133F3B0F58\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:42 GMT", + "x-ms-client-request-id" : "349251bf-bf12-4eac-a194-cc6a2cdb9536", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadataerror0containerapitestsetmetadataerror951706289?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1deb88f-001e-00f1-55fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:42 GMT", + "x-ms-client-request-id" : "086991a4-9080-413e-a2d7-1113b1e972c4" + }, + "Exception" : null + } ], + "variables" : [ "jtcsetmetadataerror0containerapitestsetmetadataerror951706289", "jtcsetmetadataerror1containerapitestsetmetadataerror951774241" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetmetadatametadata[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetmetadatametadata[0].json new file mode 100644 index 0000000000000..793050d7bfda6 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetmetadatametadata[0].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadatametadata038377b22f1a4ee9194e928?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133E706199\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:41 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1deae70-001e-00f1-3bfc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:40 GMT", + "x-ms-client-request-id" : "377b7fc8-4419-48ce-8499-09fd015792bb" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadatametadata038377b22f1a4ee9194e928?restype=container&comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133E74F7DB\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:41 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1deaec7-001e-00f1-02fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:40 GMT", + "x-ms-client-request-id" : "7d6e20dd-0172-43e0-843e-2b4d85e132b6" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadatametadata038377b22f1a4ee9194e928?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "x-ms-deny-encryption-scope-override" : "false", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:41 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:45:40 GMT", + "x-ms-has-legal-hold" : "false", + "x-ms-default-encryption-scope" : "$account-encryption-key", + "ETag" : "\"0x8D728133E74F7DB\"", + "x-ms-has-immutability-policy" : "false", + "Content-Length" : "0", + "x-ms-request-id" : "b1deaeff-001e-00f1-34fc-59e1e5000000", + "x-ms-client-request-id" : "226167c6-1d59-49a3-8391-3510aa42ba6d" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsetmetadatametadata&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1deaf28-001e-00f1-5bfc-59e1e5000000", + "Body" : "jtcsetmetadatametadatajtcsetmetadatametadata038377b22f1a4ee9194e928Fri, 23 Aug 2019 21:45:41 GMT\"0x8D728133E74F7DB\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:40 GMT", + "x-ms-client-request-id" : "9c13045b-716c-4be9-9ab6-e222188da5de", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadatametadata038377b22f1a4ee9194e928?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1deaf4f-001e-00f1-7bfc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:40 GMT", + "x-ms-client-request-id" : "438e6b2e-9aa0-4e4e-881e-8da1f8096ea3" + }, + "Exception" : null + } ], + "variables" : [ "jtcsetmetadatametadata038377b22f1a4ee9194e928" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetmetadatametadata[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetmetadatametadata[1].json new file mode 100644 index 0000000000000..6545c3f0fa1b1 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetmetadatametadata[1].json @@ -0,0 +1,110 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadatametadata02119425341c4e82054227a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133E8771B6\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:41 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1deaf80-001e-00f1-27fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:40 GMT", + "x-ms-client-request-id" : "8aeb1622-1529-4057-b761-d8bc335d7699" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadatametadata02119425341c4e82054227a?restype=container&comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133E8CCB4D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:41 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1deafb3-001e-00f1-54fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:40 GMT", + "x-ms-client-request-id" : "a367c5a9-6974-4a2d-b0f8-d200ac46e77d" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadatametadata02119425341c4e82054227a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "x-ms-deny-encryption-scope-override" : "false", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:41 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:45:40 GMT", + "x-ms-has-legal-hold" : "false", + "x-ms-meta-foo" : "bar", + "x-ms-default-encryption-scope" : "$account-encryption-key", + "ETag" : "\"0x8D728133E8CCB4D\"", + "x-ms-has-immutability-policy" : "false", + "Content-Length" : "0", + "x-ms-request-id" : "b1deaff4-001e-00f1-0dfc-59e1e5000000", + "x-ms-meta-fizz" : "buzz", + "x-ms-client-request-id" : "352d3fe3-6fe2-4c71-84b9-2d03d8e63cff" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsetmetadatametadata&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1deb015-001e-00f1-2afc-59e1e5000000", + "Body" : "jtcsetmetadatametadatajtcsetmetadatametadata02119425341c4e82054227aFri, 23 Aug 2019 21:45:41 GMT\"0x8D728133E8CCB4D\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:40 GMT", + "x-ms-client-request-id" : "98d8930a-ce8e-49df-b064-a5adf90ebec7", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadatametadata02119425341c4e82054227a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1deb039-001e-00f1-4bfc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:40 GMT", + "x-ms-client-request-id" : "60fdc92c-9cd1-4b6d-93e6-e3b9bec1435c" + }, + "Exception" : null + } ], + "variables" : [ "jtcsetmetadatametadata02119425341c4e82054227a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetmetadatamin.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetmetadatamin.json new file mode 100644 index 0000000000000..2c5e7351c9475 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestsetmetadatamin.json @@ -0,0 +1,109 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadatamin0containerapitestsetmetadataminc33346999af?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133E56DFF1\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:41 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1dead68-001e-00f1-53fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:40 GMT", + "x-ms-client-request-id" : "ba6422c6-640c-4889-91f3-1c97ab110ee3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadatamin0containerapitestsetmetadataminc33346999af?restype=container&comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728133E5BEB9A\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:41 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1deada2-001e-00f1-06fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:40 GMT", + "x-ms-client-request-id" : "fc50c128-f207-4ae0-b41e-2b9b1c936a5b" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadatamin0containerapitestsetmetadataminc33346999af?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "x-ms-deny-encryption-scope-override" : "false", + "Last-Modified" : "Fri, 23 Aug 2019 21:45:41 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:45:40 GMT", + "x-ms-has-legal-hold" : "false", + "x-ms-meta-foo" : "bar", + "x-ms-default-encryption-scope" : "$account-encryption-key", + "ETag" : "\"0x8D728133E5BEB9A\"", + "x-ms-has-immutability-policy" : "false", + "Content-Length" : "0", + "x-ms-request-id" : "b1deadd2-001e-00f1-32fc-59e1e5000000", + "x-ms-client-request-id" : "12fadc67-3070-43a2-a52b-bc58b0c99bde" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsetmetadatamin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1deadf3-001e-00f1-50fc-59e1e5000000", + "Body" : "jtcsetmetadataminjtcsetmetadatamin0containerapitestsetmetadataminc33346999afFri, 23 Aug 2019 21:45:41 GMT\"0x8D728133E5BEB9A\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:45:40 GMT", + "x-ms-client-request-id" : "5bffddeb-c2b5-4653-8f4b-02a9e7d18d3b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetmetadatamin0containerapitestsetmetadataminc33346999af?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1deae21-001e-00f1-79fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:45:40 GMT", + "x-ms-client-request-id" : "0575194e-c9ff-4a02-881e-926670381972" + }, + "Exception" : null + } ], + "variables" : [ "jtcsetmetadatamin0containerapitestsetmetadataminc33346999af" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestwebcontainer.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestwebcontainer.json new file mode 100644 index 0000000000000..3536db683785d --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ContainerAPITestwebcontainer.json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcwebcontainer0containerapitestwebcontainer611313409eeb5?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BBAE97DE\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d01381-501e-00c0-25fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:10 GMT", + "x-ms-client-request-id" : "bb280bf0-ed68-4d11-b83f-195fbc0fb23d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/$web?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ContainerAlreadyExists", + "retry-after" : "0", + "Content-Length" : "230", + "StatusCode" : "409", + "x-ms-request-id" : "77d013a8-501e-00c0-4bfc-59ba32000000", + "Body" : "ContainerAlreadyExistsThe specified container already exists.\nRequestId:77d013a8-501e-00c0-4bfc-59ba32000000\nTime:2019-08-23T21:49:11.4816038Z", + "Date" : "Fri, 23 Aug 2019 21:49:10 GMT", + "x-ms-client-request-id" : "456f126d-b982-4a10-8f9d-6deab548d0b5", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/$web?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BBB7D121\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d013ce-501e-00c0-6efc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:10 GMT", + "x-ms-client-request-id" : "71efc542-ec5e-4279-ac60-b6a84e705e69" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcwebcontainer&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d01400-501e-00c0-16fc-59ba32000000", + "Body" : "jtcwebcontainerjtcwebcontainer0containerapitestwebcontainer611313409eeb5Fri, 23 Aug 2019 21:49:11 GMT\"0x8D72813BBAE97DE\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:10 GMT", + "x-ms-client-request-id" : "945364d6-e0ca-49fb-8ee9-b41ae0fa9593", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcwebcontainer0containerapitestwebcontainer611313409eeb5?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d01422-501e-00c0-36fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:10 GMT", + "x-ms-client-request-id" : "2fb17003-0c8a-4022-a2a5-caea136e1224" + }, + "Exception" : null + } ], + "variables" : [ "jtcwebcontainer0containerapitestwebcontainer611313409eeb5" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/DownloadResponseTestfailure[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/DownloadResponseTestfailure[0].json new file mode 100644 index 0000000000000..6f2c23e5be5d0 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/DownloadResponseTestfailure[0].json @@ -0,0 +1,86 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcfailure0downloadresponsetestfailure7ae647683122f602?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BC6B864B\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d01959-501e-00c0-46fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:12 GMT", + "x-ms-client-request-id" : "b67123a2-a52a-4818-a212-86a3dce8dbec" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcfailure0downloadresponsetestfailure7ae647683122f602/javablobfailure1downloadresponsetestfailure7ae18212726b66", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:12 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:12 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72813BC70B3EF\"", + "Content-Length" : "0", + "x-ms-request-id" : "77d01978-501e-00c0-64fc-59ba32000000", + "x-ms-client-request-id" : "82ab8dd2-a6e5-4967-9820-5ab905ebbfab" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcfailure&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d01995-501e-00c0-7cfc-59ba32000000", + "Body" : "jtcfailurejtcfailure0downloadresponsetestfailure7ae647683122f602Fri, 23 Aug 2019 21:49:12 GMT\"0x8D72813BC6B864B\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:12 GMT", + "x-ms-client-request-id" : "5b3c998c-2801-4c80-96df-d641ff84ac42", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcfailure0downloadresponsetestfailure7ae647683122f602?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d019b2-501e-00c0-16fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:12 GMT", + "x-ms-client-request-id" : "ced65d91-8946-491f-b758-cef94f324df6" + }, + "Exception" : null + } ], + "variables" : [ "jtcfailure0downloadresponsetestfailure7ae647683122f602", "javablobfailure1downloadresponsetestfailure7ae18212726b66" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/DownloadResponseTestfailure[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/DownloadResponseTestfailure[1].json new file mode 100644 index 0000000000000..987d8459977a2 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/DownloadResponseTestfailure[1].json @@ -0,0 +1,86 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcfailure0downloadresponsetestfailure36d61703f64c89d6?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BC82BD71\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d019e8-501e-00c0-44fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:12 GMT", + "x-ms-client-request-id" : "265ec59b-e0b9-47ce-b8a9-e3fd13bc2095" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcfailure0downloadresponsetestfailure36d61703f64c89d6/javablobfailure1downloadresponsetestfailure36d98034ecce42", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:12 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:12 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72813BC879CEF\"", + "Content-Length" : "0", + "x-ms-request-id" : "77d01a10-501e-00c0-65fc-59ba32000000", + "x-ms-client-request-id" : "f4c73db9-0ec9-4a01-9e9c-ec48480da475" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcfailure&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d01a31-501e-00c0-7ffc-59ba32000000", + "Body" : "jtcfailurejtcfailure0downloadresponsetestfailure36d61703f64c89d6Fri, 23 Aug 2019 21:49:12 GMT\"0x8D72813BC82BD71\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:12 GMT", + "x-ms-client-request-id" : "ed896fa4-de3b-4fa8-b694-2127508fecdb", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcfailure0downloadresponsetestfailure36d61703f64c89d6?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d01a49-501e-00c0-13fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:12 GMT", + "x-ms-client-request-id" : "02342950-f3c0-43c1-a903-459bbeea0890" + }, + "Exception" : null + } ], + "variables" : [ "jtcfailure0downloadresponsetestfailure36d61703f64c89d6", "javablobfailure1downloadresponsetestfailure36d98034ecce42" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/DownloadResponseTestfailure[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/DownloadResponseTestfailure[2].json new file mode 100644 index 0000000000000..d80b994697dc6 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/DownloadResponseTestfailure[2].json @@ -0,0 +1,86 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcfailure0downloadresponsetestfailure6a853135a4de19e0?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BC964A36\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d01a61-501e-00c0-28fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:12 GMT", + "x-ms-client-request-id" : "422c09af-8ded-4d7c-b548-5f9ad2ef108a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcfailure0downloadresponsetestfailure6a853135a4de19e0/javablobfailure1downloadresponsetestfailure6a832356c2d531", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:13 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:12 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72813BC9B77F4\"", + "Content-Length" : "0", + "x-ms-request-id" : "77d01a86-501e-00c0-48fc-59ba32000000", + "x-ms-client-request-id" : "50c050bc-e4ec-45cc-825e-dedeaedbe6bc" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcfailure&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d01aa6-501e-00c0-64fc-59ba32000000", + "Body" : "jtcfailurejtcfailure0downloadresponsetestfailure6a853135a4de19e0Fri, 23 Aug 2019 21:49:12 GMT\"0x8D72813BC964A36\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:12 GMT", + "x-ms-client-request-id" : "364a29ea-25eb-493c-b83a-968e3233638b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcfailure0downloadresponsetestfailure6a853135a4de19e0?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d01abd-501e-00c0-7bfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:12 GMT", + "x-ms-client-request-id" : "cc7bd7a6-a05c-4690-827c-799b5b04f2cf" + }, + "Exception" : null + } ], + "variables" : [ "jtcfailure0downloadresponsetestfailure6a853135a4de19e0", "javablobfailure1downloadresponsetestfailure6a832356c2d531" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/DownloadResponseTestgetteria.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/DownloadResponseTestgetteria.json new file mode 100644 index 0000000000000..f4c242a1482de --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/DownloadResponseTestgetteria.json @@ -0,0 +1,86 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetteria0downloadresponsetestgetteria05a808015f41e82?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BCF018EF\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d01cdb-501e-00c0-5efc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:12 GMT", + "x-ms-client-request-id" : "3dcc6383-a2ac-4c74-9d6e-57ae88cc1e1a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetteria0downloadresponsetestgetteria05a808015f41e82/javablobgetteria1downloadresponsetestgetteria05a8692724272", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:13 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:12 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72813BCF546C7\"", + "Content-Length" : "0", + "x-ms-request-id" : "77d01d02-501e-00c0-01fc-59ba32000000", + "x-ms-client-request-id" : "6b536319-ef8c-454f-afb3-2f6217012eda" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetteria&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d01d28-501e-00c0-22fc-59ba32000000", + "Body" : "jtcgetteriajtcgetteria0downloadresponsetestgetteria05a808015f41e82Fri, 23 Aug 2019 21:49:13 GMT\"0x8D72813BCF018EF\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:12 GMT", + "x-ms-client-request-id" : "0c80c4cb-4098-428a-98d5-500a1cb4d1cd", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetteria0downloadresponsetestgetteria05a808015f41e82?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d01d4a-501e-00c0-43fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:13 GMT", + "x-ms-client-request-id" : "03337ab0-a74f-4a88-81cc-b5ba7ef8b36f" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetteria0downloadresponsetestgetteria05a808015f41e82", "javablobgetteria1downloadresponsetestgetteria05a8692724272", "951c98fa-12e3-493d-90e7-15bcc66cb00d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/DownloadResponseTestinfo.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/DownloadResponseTestinfo.json new file mode 100644 index 0000000000000..2536b1a61365f --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/DownloadResponseTestinfo.json @@ -0,0 +1,86 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcinfo0downloadresponsetestinfoa4515709af056b8174c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BD03F3D9\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d01d73-501e-00c0-64fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:13 GMT", + "x-ms-client-request-id" : "d2d58186-88ca-43d1-af2e-31f5ce793dec" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcinfo0downloadresponsetestinfoa4515709af056b8174c/javablobinfo1downloadresponsetestinfoa4517373606a4cdbc", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:13 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:13 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72813BD0921BE\"", + "Content-Length" : "0", + "x-ms-request-id" : "77d01d9e-501e-00c0-08fc-59ba32000000", + "x-ms-client-request-id" : "ac5a39f2-de38-45ba-b934-a4193068f11e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcinfo&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d01dd1-501e-00c0-36fc-59ba32000000", + "Body" : "jtcinfojtcinfo0downloadresponsetestinfoa4515709af056b8174cFri, 23 Aug 2019 21:49:13 GMT\"0x8D72813BD03F3D9\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:13 GMT", + "x-ms-client-request-id" : "67c6e68d-0f38-4068-8b4b-58d01dd5b79f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcinfo0downloadresponsetestinfoa4515709af056b8174c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d01df2-501e-00c0-50fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:13 GMT", + "x-ms-client-request-id" : "775eb4c9-6894-4692-8824-2546dcc6de4f" + }, + "Exception" : null + } ], + "variables" : [ "jtcinfo0downloadresponsetestinfoa4515709af056b8174c", "javablobinfo1downloadresponsetestinfoa4517373606a4cdbc" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/DownloadResponseTestinfocountia.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/DownloadResponseTestinfocountia.json new file mode 100644 index 0000000000000..bf072da582562 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/DownloadResponseTestinfocountia.json @@ -0,0 +1,86 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcinfocountia0downloadresponsetestinfocountia212748151949?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BD1DC3B8\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d01e4d-501e-00c0-20fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:13 GMT", + "x-ms-client-request-id" : "e7ecb685-615a-49d0-895a-ca24ed85770e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcinfocountia0downloadresponsetestinfocountia212748151949/javablobinfocountia1downloadresponsetestinfocountia212774474c", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:13 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:13 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72813BD22A36F\"", + "Content-Length" : "0", + "x-ms-request-id" : "77d01e74-501e-00c0-42fc-59ba32000000", + "x-ms-client-request-id" : "b8503c38-b9de-4f96-aa13-a64346b72ecc" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcinfocountia&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d01e92-501e-00c0-5cfc-59ba32000000", + "Body" : "jtcinfocountiajtcinfocountia0downloadresponsetestinfocountia212748151949Fri, 23 Aug 2019 21:49:13 GMT\"0x8D72813BD1DC3B8\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:13 GMT", + "x-ms-client-request-id" : "0677a70a-59f6-4a28-a35b-1f2f0a527b0a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcinfocountia0downloadresponsetestinfocountia212748151949?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d01eab-501e-00c0-6ffc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:13 GMT", + "x-ms-client-request-id" : "41726c81-c5f1-4b5a-92eb-8aa048a60164" + }, + "Exception" : null + } ], + "variables" : [ "jtcinfocountia0downloadresponsetestinfocountia212748151949", "javablobinfocountia1downloadresponsetestinfocountia212774474c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/DownloadResponseTestinfonullia[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/DownloadResponseTestinfonullia[0].json new file mode 100644 index 0000000000000..98cb4f78f9b0a --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/DownloadResponseTestinfonullia[0].json @@ -0,0 +1,86 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcinfonullia0downloadresponsetestinfonulliab745367790105?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BCAAC195\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d01b00-501e-00c0-2ffc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:12 GMT", + "x-ms-client-request-id" : "c01cab4e-7cf9-4f05-bbe0-7d30d3d79552" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcinfonullia0downloadresponsetestinfonulliab745367790105/javablobinfonullia1downloadresponsetestinfonulliab744014298a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:13 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:12 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72813BCB239D8\"", + "Content-Length" : "0", + "x-ms-request-id" : "77d01b3a-501e-00c0-5ffc-59ba32000000", + "x-ms-client-request-id" : "e1d5d5ae-ac9d-47a2-b48f-9e10d8e2abd9" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcinfonullia&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d01b73-501e-00c0-13fc-59ba32000000", + "Body" : "jtcinfonulliajtcinfonullia0downloadresponsetestinfonulliab745367790105Fri, 23 Aug 2019 21:49:13 GMT\"0x8D72813BCAAC195\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:12 GMT", + "x-ms-client-request-id" : "ef94811b-ffc4-4be7-bd13-6257ebea8bba", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcinfonullia0downloadresponsetestinfonulliab745367790105?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d01b8f-501e-00c0-2dfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:12 GMT", + "x-ms-client-request-id" : "8096f80f-ff7c-41bd-a975-0a7f73bd831e" + }, + "Exception" : null + } ], + "variables" : [ "jtcinfonullia0downloadresponsetestinfonulliab745367790105", "javablobinfonullia1downloadresponsetestinfonulliab744014298a", "8f011b24-eca5-414e-9406-227d3f350b4f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/DownloadResponseTestinfonullia[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/DownloadResponseTestinfonullia[1].json new file mode 100644 index 0000000000000..fae8b81f5fd1e --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/DownloadResponseTestinfonullia[1].json @@ -0,0 +1,86 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcinfonullia0downloadresponsetestinfonulliaae814431ae30d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BCC63F8A\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d01bc3-501e-00c0-5efc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:12 GMT", + "x-ms-client-request-id" : "f3754a71-16c5-4ec1-a8cf-cacb95702915" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcinfonullia0downloadresponsetestinfonulliaae814431ae30d/javablobinfonullia1downloadresponsetestinfonulliaae8423931d0", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:13 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:12 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72813BCCB4636\"", + "Content-Length" : "0", + "x-ms-request-id" : "77d01be6-501e-00c0-7dfc-59ba32000000", + "x-ms-client-request-id" : "be3bd0dd-3986-4ffe-bbf5-df5b28460254" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcinfonullia&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d01c0b-501e-00c0-1ffc-59ba32000000", + "Body" : "jtcinfonulliajtcinfonullia0downloadresponsetestinfonulliaae814431ae30dFri, 23 Aug 2019 21:49:13 GMT\"0x8D72813BCC63F8A\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:12 GMT", + "x-ms-client-request-id" : "62eb32aa-b88f-4e82-b4ff-252b9140dac2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcinfonullia0downloadresponsetestinfonulliaae814431ae30d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d01c2c-501e-00c0-3afc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:12 GMT", + "x-ms-client-request-id" : "2525f2a5-84e2-4719-8158-8d216aed59c1" + }, + "Exception" : null + } ], + "variables" : [ "jtcinfonullia0downloadresponsetestinfonulliaae814431ae30d", "javablobinfonullia1downloadresponsetestinfonulliaae8423931d0", "7d4b4760-9168-4e54-a560-a96fa27e6c99" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/DownloadResponseTestnetworkcall.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/DownloadResponseTestnetworkcall.json new file mode 100644 index 0000000000000..76a0d826e949f --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/DownloadResponseTestnetworkcall.json @@ -0,0 +1,116 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcnetworkcall0downloadresponsetestnetworkcall26539285bdf3?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BC03AA73\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d01667-501e-00c0-38fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:11 GMT", + "x-ms-client-request-id" : "7e6a73d4-eb5c-41e3-9832-2041ab1d5fdd" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcnetworkcall0downloadresponsetestnetworkcall26539285bdf3/javablobnetworkcall1downloadresponsetestnetworkcall26525761b7", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:12 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:11 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72813BC08B0D6\"", + "Content-Length" : "0", + "x-ms-request-id" : "77d0168d-501e-00c0-58fc-59ba32000000", + "x-ms-client-request-id" : "92d378d4-c203-4d51-ad0b-df015ac9a286" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcnetworkcall0downloadresponsetestnetworkcall26539285bdf3/javablobnetworkcall1downloadresponsetestnetworkcall26525761b7", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:12 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:49:11 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "\"0x8D72813BC08B0D6\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:49:12 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "77d016af-501e-00c0-72fc-59ba32000000", + "Body" : "[100, 101, 102, 97, 117, 108, 116]", + "x-ms-client-request-id" : "99307c44-3091-4441-95e5-c0c88cde7569", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcnetworkcall&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d016e9-501e-00c0-1dfc-59ba32000000", + "Body" : "jtcnetworkcalljtcnetworkcall0downloadresponsetestnetworkcall26539285bdf3Fri, 23 Aug 2019 21:49:12 GMT\"0x8D72813BC03AA73\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:11 GMT", + "x-ms-client-request-id" : "c11d412e-d378-489c-bf30-58e8918bc0a2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcnetworkcall0downloadresponsetestnetworkcall26539285bdf3?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d01709-501e-00c0-39fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:11 GMT", + "x-ms-client-request-id" : "d850f887-9a17-4c23-8a79-8b8e930f15e3" + }, + "Exception" : null + } ], + "variables" : [ "jtcnetworkcall0downloadresponsetestnetworkcall26539285bdf3", "javablobnetworkcall1downloadresponsetestnetworkcall26525761b7" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/DownloadResponseTestoptionsia.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/DownloadResponseTestoptionsia.json new file mode 100644 index 0000000000000..5b9ef080de8da --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/DownloadResponseTestoptionsia.json @@ -0,0 +1,86 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcoptionsia0downloadresponsetestoptionsia56366935b22904?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BCDBA182\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d01c5e-501e-00c0-65fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:12 GMT", + "x-ms-client-request-id" : "dce298cf-9262-454f-b103-b90f5d7eeea2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcoptionsia0downloadresponsetestoptionsia56366935b22904/javabloboptionsia1downloadresponsetestoptionsia563063554b8e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:13 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:12 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72813BCE0A83B\"", + "Content-Length" : "0", + "x-ms-request-id" : "77d01c82-501e-00c0-08fc-59ba32000000", + "x-ms-client-request-id" : "5d966010-bd5f-44da-b9eb-3e3ecfad22c8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcoptionsia&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d01ca9-501e-00c0-2dfc-59ba32000000", + "Body" : "jtcoptionsiajtcoptionsia0downloadresponsetestoptionsia56366935b22904Fri, 23 Aug 2019 21:49:13 GMT\"0x8D72813BCDBA182\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:12 GMT", + "x-ms-client-request-id" : "b94d08fe-a43a-4e48-8536-5eeaa4631603", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcoptionsia0downloadresponsetestoptionsia56366935b22904?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d01cbf-501e-00c0-43fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:12 GMT", + "x-ms-client-request-id" : "d7ac5b21-bf6c-42ac-aace-071eefce63fe" + }, + "Exception" : null + } ], + "variables" : [ "jtcoptionsia0downloadresponsetestoptionsia56366935b22904", "javabloboptionsia1downloadresponsetestoptionsia563063554b8e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/DownloadResponseTestsuccessful[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/DownloadResponseTestsuccessful[0].json new file mode 100644 index 0000000000000..83076f8801b50 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/DownloadResponseTestsuccessful[0].json @@ -0,0 +1,86 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsuccessful0downloadresponsetestsuccessfulbb176512c8297?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BC1FC4CA\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d0174d-501e-00c0-6efc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:11 GMT", + "x-ms-client-request-id" : "cf17fb29-ba10-4013-8d4c-d0cdae739e90" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsuccessful0downloadresponsetestsuccessfulbb176512c8297/javablobsuccessful1downloadresponsetestsuccessfulbb193950d41", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:12 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:11 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72813BC24F25D\"", + "Content-Length" : "0", + "x-ms-request-id" : "77d01771-501e-00c0-0dfc-59ba32000000", + "x-ms-client-request-id" : "4606d90a-a5a5-40de-8f3a-283be6b0e6d5" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsuccessful&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d017fe-501e-00c0-0efc-59ba32000000", + "Body" : "jtcsuccessfuljtcsuccessful0downloadresponsetestsuccessfulbb176512c8297Fri, 23 Aug 2019 21:49:12 GMT\"0x8D72813BC1FC4CA\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:11 GMT", + "x-ms-client-request-id" : "99806d6d-c69c-4392-a135-c200170055bd", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsuccessful0downloadresponsetestsuccessfulbb176512c8297?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d01817-501e-00c0-24fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:11 GMT", + "x-ms-client-request-id" : "e4885ff8-b019-4068-98b5-d78062fd8a64" + }, + "Exception" : null + } ], + "variables" : [ "jtcsuccessful0downloadresponsetestsuccessfulbb176512c8297", "javablobsuccessful1downloadresponsetestsuccessfulbb193950d41", "67eba2e4-e0d5-4b6d-a158-62e6ce9ef069" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/DownloadResponseTestsuccessful[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/DownloadResponseTestsuccessful[1].json new file mode 100644 index 0000000000000..99f6493943afb --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/DownloadResponseTestsuccessful[1].json @@ -0,0 +1,86 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsuccessful0downloadresponsetestsuccessful64315138f74ee?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BC429789\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d0183e-501e-00c0-4afc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:11 GMT", + "x-ms-client-request-id" : "897bbcc8-b0b9-4030-a870-6b71a2f780e6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsuccessful0downloadresponsetestsuccessful64315138f74ee/javablobsuccessful1downloadresponsetestsuccessful64348069883", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:12 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:11 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72813BC479E05\"", + "Content-Length" : "0", + "x-ms-request-id" : "77d01868-501e-00c0-71fc-59ba32000000", + "x-ms-client-request-id" : "96217ae2-b22e-4996-973c-a8d1e64c2adb" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsuccessful&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d01880-501e-00c0-08fc-59ba32000000", + "Body" : "jtcsuccessfuljtcsuccessful0downloadresponsetestsuccessful64315138f74eeFri, 23 Aug 2019 21:49:12 GMT\"0x8D72813BC429789\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:11 GMT", + "x-ms-client-request-id" : "47a4ecee-b2f5-4494-9055-67bb8fc755ad", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsuccessful0downloadresponsetestsuccessful64315138f74ee?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d0189c-501e-00c0-1ffc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:11 GMT", + "x-ms-client-request-id" : "60c5454d-3d3d-4a3a-b67f-df2d41ec7095" + }, + "Exception" : null + } ], + "variables" : [ "jtcsuccessful0downloadresponsetestsuccessful64315138f74ee", "javablobsuccessful1downloadresponsetestsuccessful64348069883", "d489d26a-0d5e-4475-bff0-3ea5dee54590" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/DownloadResponseTestsuccessful[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/DownloadResponseTestsuccessful[2].json new file mode 100644 index 0000000000000..4b9cd6fe38f15 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/DownloadResponseTestsuccessful[2].json @@ -0,0 +1,86 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsuccessful0downloadresponsetestsuccessful5b994701f3b47?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BC56C0BE\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d018c9-501e-00c0-46fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:11 GMT", + "x-ms-client-request-id" : "ee386d8c-9715-451b-a819-8d1c6faa31c6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsuccessful0downloadresponsetestsuccessful5b994701f3b47/javablobsuccessful1downloadresponsetestsuccessful5b95040266a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:12 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:11 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72813BC5C63A4\"", + "Content-Length" : "0", + "x-ms-request-id" : "77d018e3-501e-00c0-5efc-59ba32000000", + "x-ms-client-request-id" : "5081a7ab-92c1-45b0-86e8-05669d775238" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsuccessful&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d01914-501e-00c0-07fc-59ba32000000", + "Body" : "jtcsuccessfuljtcsuccessful0downloadresponsetestsuccessful5b994701f3b47Fri, 23 Aug 2019 21:49:12 GMT\"0x8D72813BC56C0BE\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:11 GMT", + "x-ms-client-request-id" : "c9f9b99f-7cb0-4e10-b54e-5fec9f6a654e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsuccessful0downloadresponsetestsuccessful5b994701f3b47?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d0192b-501e-00c0-1dfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:12 GMT", + "x-ms-client-request-id" : "080ee72b-b4f5-4ee2-a50b-bd8949241d38" + }, + "Exception" : null + } ], + "variables" : [ "jtcsuccessful0downloadresponsetestsuccessful5b994701f3b47", "javablobsuccessful1downloadresponsetestsuccessful5b95040266a", "d9ded158-8131-4605-a654-d3b64a0d0f5b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsaspermissionsparse[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsaspermissionsparse[0].json new file mode 100644 index 0000000000000..6e17eade53234 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsaspermissionsparse[0].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionsparse006039f3bfd9e8504b48?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C3FFD914\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d04cd9-501e-00c0-57fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:24 GMT", + "x-ms-client-request-id" : "9b9fedd4-7d3b-41fd-9ab0-4c5a07d0b988" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsaspermissionsparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d04cf9-501e-00c0-76fc-59ba32000000", + "Body" : "jtcaccountsaspermissionsparsejtcaccountsaspermissionsparse006039f3bfd9e8504b48Fri, 23 Aug 2019 21:49:25 GMT\"0x8D72813C3FFD914\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:24 GMT", + "x-ms-client-request-id" : "14a00d22-4167-42d5-acf6-3b1a614ead16", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionsparse006039f3bfd9e8504b48?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d04d31-501e-00c0-2cfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:24 GMT", + "x-ms-client-request-id" : "d14694e8-5077-45eb-9088-0f483b114577" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsaspermissionsparse006039f3bfd9e8504b48" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsaspermissionsparse[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsaspermissionsparse[1].json new file mode 100644 index 0000000000000..395ba33b0dd0f --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsaspermissionsparse[1].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionsparse085916ce288071ebd349?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C41365D1\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d04d53-501e-00c0-4cfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:24 GMT", + "x-ms-client-request-id" : "c510026f-37bc-45e1-b27a-d15e44722edd" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsaspermissionsparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d04d77-501e-00c0-6efc-59ba32000000", + "Body" : "jtcaccountsaspermissionsparsejtcaccountsaspermissionsparse085916ce288071ebd349Fri, 23 Aug 2019 21:49:25 GMT\"0x8D72813C41365D1\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:24 GMT", + "x-ms-client-request-id" : "b18cadd5-4558-4799-bcc9-def5fa2a901d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionsparse085916ce288071ebd349?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d04da0-501e-00c0-14fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:24 GMT", + "x-ms-client-request-id" : "cfabc449-3455-43cb-9bdd-2e6d5fbd0368" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsaspermissionsparse085916ce288071ebd349" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsaspermissionsparse[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsaspermissionsparse[2].json new file mode 100644 index 0000000000000..4cbf1476648d4 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsaspermissionsparse[2].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionsparse0053770caf1c46b3014a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C4225D97\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d04dca-501e-00c0-3afc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:24 GMT", + "x-ms-client-request-id" : "c49935ad-4fe7-4948-8680-02e54852650b" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsaspermissionsparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d04ded-501e-00c0-59fc-59ba32000000", + "Body" : "jtcaccountsaspermissionsparsejtcaccountsaspermissionsparse0053770caf1c46b3014aFri, 23 Aug 2019 21:49:25 GMT\"0x8D72813C4225D97\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:24 GMT", + "x-ms-client-request-id" : "07ab8ac9-08af-43d9-984c-ed934a20b43f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionsparse0053770caf1c46b3014a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d04e10-501e-00c0-7afc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:25 GMT", + "x-ms-client-request-id" : "efe9d938-5b79-4e4e-b37b-d81c9c085cbb" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsaspermissionsparse0053770caf1c46b3014a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsaspermissionsparse[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsaspermissionsparse[3].json new file mode 100644 index 0000000000000..04d118e9bcae8 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsaspermissionsparse[3].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionsparse02912511d3cc6f7b6646?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C4315559\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d04e4e-501e-00c0-33fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:25 GMT", + "x-ms-client-request-id" : "d7377054-21c9-4a81-90f6-67f04ebeafb6" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsaspermissionsparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d04e6b-501e-00c0-4dfc-59ba32000000", + "Body" : "jtcaccountsaspermissionsparsejtcaccountsaspermissionsparse02912511d3cc6f7b6646Fri, 23 Aug 2019 21:49:25 GMT\"0x8D72813C4315559\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:25 GMT", + "x-ms-client-request-id" : "b0bcc379-2b5a-4fa1-81e7-eec71882e904", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionsparse02912511d3cc6f7b6646?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d04e87-501e-00c0-69fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:25 GMT", + "x-ms-client-request-id" : "1eea396a-69c4-41e8-803e-db4ff54809bf" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsaspermissionsparse02912511d3cc6f7b6646" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsaspermissionsparse[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsaspermissionsparse[4].json new file mode 100644 index 0000000000000..eff985550638b --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsaspermissionsparse[4].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionsparse091826c792b278a8074f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C43FB0C3\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d04eba-501e-00c0-18fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:25 GMT", + "x-ms-client-request-id" : "2ab27540-c95e-4596-a7a5-19706189d127" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsaspermissionsparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d04ee2-501e-00c0-3bfc-59ba32000000", + "Body" : "jtcaccountsaspermissionsparsejtcaccountsaspermissionsparse091826c792b278a8074fFri, 23 Aug 2019 21:49:25 GMT\"0x8D72813C43FB0C3\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:25 GMT", + "x-ms-client-request-id" : "1d810bcd-b09d-4e5e-b9bd-aad139bc302d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionsparse091826c792b278a8074f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d04efe-501e-00c0-57fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:25 GMT", + "x-ms-client-request-id" : "ef0c3e46-8da7-4532-b29c-216a0c1c9fbc" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsaspermissionsparse091826c792b278a8074f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsaspermissionsparse[5].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsaspermissionsparse[5].json new file mode 100644 index 0000000000000..a573ca30b710b --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsaspermissionsparse[5].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionsparse07143421a725dcc0544c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C44ECFA1\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d04f2e-501e-00c0-03fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:25 GMT", + "x-ms-client-request-id" : "b050aa5a-1fa1-48c0-baa2-1c293552f57e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsaspermissionsparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d04f53-501e-00c0-26fc-59ba32000000", + "Body" : "jtcaccountsaspermissionsparsejtcaccountsaspermissionsparse07143421a725dcc0544cFri, 23 Aug 2019 21:49:25 GMT\"0x8D72813C44ECFA1\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:25 GMT", + "x-ms-client-request-id" : "e50f97e3-7c76-4dcc-91ac-4b6dcace4081", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionsparse07143421a725dcc0544c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d04f6c-501e-00c0-3efc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:25 GMT", + "x-ms-client-request-id" : "16f19f07-b8e2-42a4-9d4e-2866491c8ff7" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsaspermissionsparse07143421a725dcc0544c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsaspermissionsparse[6].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsaspermissionsparse[6].json new file mode 100644 index 0000000000000..3381b22a63ed8 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsaspermissionsparse[6].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionsparse0030072da0ec9794d54b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C45D792C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d04fa2-501e-00c0-71fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:25 GMT", + "x-ms-client-request-id" : "54ddc8a2-ad04-4dd2-abe3-d574a93534c0" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsaspermissionsparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d04fd0-501e-00c0-1cfc-59ba32000000", + "Body" : "jtcaccountsaspermissionsparsejtcaccountsaspermissionsparse0030072da0ec9794d54bFri, 23 Aug 2019 21:49:26 GMT\"0x8D72813C45D792C\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:25 GMT", + "x-ms-client-request-id" : "e39bbc2a-3e94-4b4e-8a13-5f4b61892a77", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionsparse0030072da0ec9794d54b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d04ff3-501e-00c0-3dfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:25 GMT", + "x-ms-client-request-id" : "95e529e5-1896-4841-bb9e-2fe565ea1b56" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsaspermissionsparse0030072da0ec9794d54b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsaspermissionsparse[7].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsaspermissionsparse[7].json new file mode 100644 index 0000000000000..086ea04e88503 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsaspermissionsparse[7].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionsparse012893b849d8340e9e41?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C46C70F8\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d05029-501e-00c0-6ffc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:25 GMT", + "x-ms-client-request-id" : "560ae8d8-e0c6-4ea4-9439-c9cb3ebf0ed4" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsaspermissionsparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d05059-501e-00c0-19fc-59ba32000000", + "Body" : "jtcaccountsaspermissionsparsejtcaccountsaspermissionsparse012893b849d8340e9e41Fri, 23 Aug 2019 21:49:26 GMT\"0x8D72813C46C70F8\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:25 GMT", + "x-ms-client-request-id" : "09a9cf9c-f56e-4325-80e4-1da9a1b5b1af", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionsparse012893b849d8340e9e41?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d05078-501e-00c0-37fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:25 GMT", + "x-ms-client-request-id" : "959dede6-f5ce-42d6-bb6a-b763a9c4ef12" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsaspermissionsparse012893b849d8340e9e41" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsaspermissionsparse[8].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsaspermissionsparse[8].json new file mode 100644 index 0000000000000..e771965c91159 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsaspermissionsparse[8].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionsparse00815854f3d0f6ae1b4b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C47AF379\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d050ab-501e-00c0-63fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:25 GMT", + "x-ms-client-request-id" : "7c40c2d9-e147-49a6-9523-52497ec978ad" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsaspermissionsparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d050d1-501e-00c0-06fc-59ba32000000", + "Body" : "jtcaccountsaspermissionsparsejtcaccountsaspermissionsparse00815854f3d0f6ae1b4bFri, 23 Aug 2019 21:49:26 GMT\"0x8D72813C47AF379\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:25 GMT", + "x-ms-client-request-id" : "cb4db212-0242-4a3f-8d29-f0a040af16eb", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionsparse00815854f3d0f6ae1b4b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d050f0-501e-00c0-23fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:25 GMT", + "x-ms-client-request-id" : "07cf2009-2f69-4a6f-93b3-8aadb4bde865" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsaspermissionsparse00815854f3d0f6ae1b4b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsaspermissionsparse[9].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsaspermissionsparse[9].json new file mode 100644 index 0000000000000..819446962360d --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsaspermissionsparse[9].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionsparse0594557f8424a4c71447?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C4899D12\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d05120-501e-00c0-45fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:25 GMT", + "x-ms-client-request-id" : "01f8bd4b-6d82-4137-89b7-4fa1588b526f" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsaspermissionsparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d0514b-501e-00c0-66fc-59ba32000000", + "Body" : "jtcaccountsaspermissionsparsejtcaccountsaspermissionsparse0594557f8424a4c71447Fri, 23 Aug 2019 21:49:26 GMT\"0x8D72813C4899D12\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:25 GMT", + "x-ms-client-request-id" : "3318a27f-d21a-4b16-aecc-66aeef5325a1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionsparse0594557f8424a4c71447?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d05170-501e-00c0-02fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:25 GMT", + "x-ms-client-request-id" : "698a02cd-bc73-44a9-aa38-dff0d869ca43" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsaspermissionsparse0594557f8424a4c71447" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsaspermissionsparseia.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsaspermissionsparseia.json new file mode 100644 index 0000000000000..13cbc3bedf4da --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsaspermissionsparseia.json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionsparseia003396ab7c59258a4a4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C498469D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d0519f-501e-00c0-2afc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:25 GMT", + "x-ms-client-request-id" : "736f10de-e06b-43da-907e-4a1583eb6b03" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsaspermissionsparseia&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d051c4-501e-00c0-49fc-59ba32000000", + "Body" : "jtcaccountsaspermissionsparseiajtcaccountsaspermissionsparseia003396ab7c59258a4a4Fri, 23 Aug 2019 21:49:26 GMT\"0x8D72813C498469D\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:25 GMT", + "x-ms-client-request-id" : "b6f3096e-eb95-41c5-bc72-a65530bee5cc", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionsparseia003396ab7c59258a4a4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d051e1-501e-00c0-5ffc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:25 GMT", + "x-ms-client-request-id" : "3cd19eaf-bfd3-4b6d-a3e3-c7b8c76ed183" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsaspermissionsparseia003396ab7c59258a4a4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsaspermissionstostring[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsaspermissionstostring[0].json new file mode 100644 index 0000000000000..773eea262aace --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsaspermissionstostring[0].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionstostring05015145315837650e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C36BD99B\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d04888-501e-00c0-5afc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:23 GMT", + "x-ms-client-request-id" : "764c6a6c-91c3-4d2d-91f0-0f4f3f2698ef" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsaspermissionstostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d04909-501e-00c0-53fc-59ba32000000", + "Body" : "jtcaccountsaspermissionstostringjtcaccountsaspermissionstostring05015145315837650eFri, 23 Aug 2019 21:49:24 GMT\"0x8D72813C36BD99B\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:23 GMT", + "x-ms-client-request-id" : "bd7dfb9a-6329-43e4-80b1-041b78ca986e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionstostring05015145315837650e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d04922-501e-00c0-69fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:23 GMT", + "x-ms-client-request-id" : "e905eeca-6d9a-4779-812e-e9acc61b5db8" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsaspermissionstostring05015145315837650e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsaspermissionstostring[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsaspermissionstostring[1].json new file mode 100644 index 0000000000000..e922cb1898f75 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsaspermissionstostring[1].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionstostring002848ca139b80a32d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C385F7A4\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d04946-501e-00c0-0dfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:23 GMT", + "x-ms-client-request-id" : "7b122a1d-4164-4359-81ad-4b0aeae08c11" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsaspermissionstostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d0496f-501e-00c0-33fc-59ba32000000", + "Body" : "jtcaccountsaspermissionstostringjtcaccountsaspermissionstostring002848ca139b80a32dFri, 23 Aug 2019 21:49:24 GMT\"0x8D72813C385F7A4\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:23 GMT", + "x-ms-client-request-id" : "9f1bdd4b-89f8-4c17-9b9d-fb4bd35d0427", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionstostring002848ca139b80a32d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d0498f-501e-00c0-50fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:24 GMT", + "x-ms-client-request-id" : "4e99fb42-3df6-4233-9975-027c89a24b4f" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsaspermissionstostring002848ca139b80a32d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsaspermissionstostring[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsaspermissionstostring[2].json new file mode 100644 index 0000000000000..d3a55f13f5899 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsaspermissionstostring[2].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionstostring0889248b1d1f10885d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C394A138\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d049ba-501e-00c0-79fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:24 GMT", + "x-ms-client-request-id" : "a7989f23-012e-4071-a003-fb3fb325ebc6" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsaspermissionstostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d049de-501e-00c0-17fc-59ba32000000", + "Body" : "jtcaccountsaspermissionstostringjtcaccountsaspermissionstostring0889248b1d1f10885dFri, 23 Aug 2019 21:49:24 GMT\"0x8D72813C394A138\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:24 GMT", + "x-ms-client-request-id" : "5d5f3fc1-ee99-4b09-b09e-885df8285015", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionstostring0889248b1d1f10885d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d049f8-501e-00c0-30fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:24 GMT", + "x-ms-client-request-id" : "a437230d-bced-4cdb-9046-fa523259df99" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsaspermissionstostring0889248b1d1f10885d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsaspermissionstostring[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsaspermissionstostring[3].json new file mode 100644 index 0000000000000..8f34e8b641475 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsaspermissionstostring[3].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionstostring026145cb0208b94d38?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C3A4355E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d04a20-501e-00c0-55fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:24 GMT", + "x-ms-client-request-id" : "47a905aa-e15b-4326-b639-9af805162a24" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsaspermissionstostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d04a4a-501e-00c0-7dfc-59ba32000000", + "Body" : "jtcaccountsaspermissionstostringjtcaccountsaspermissionstostring026145cb0208b94d38Fri, 23 Aug 2019 21:49:24 GMT\"0x8D72813C3A4355E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:24 GMT", + "x-ms-client-request-id" : "b36a2e42-91e9-403b-9433-4fe09d4d4c9f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionstostring026145cb0208b94d38?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d04a67-501e-00c0-17fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:24 GMT", + "x-ms-client-request-id" : "e6b61a44-c437-45d5-a4a2-7b5a3c0a6a46" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsaspermissionstostring026145cb0208b94d38" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsaspermissionstostring[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsaspermissionstostring[4].json new file mode 100644 index 0000000000000..ad32087f73fc6 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsaspermissionstostring[4].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionstostring0894550b7dd77a168b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C3B3543F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d04a97-501e-00c0-44fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:24 GMT", + "x-ms-client-request-id" : "b2e47805-5e33-4663-a3be-f53706d3dd16" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsaspermissionstostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d04ad6-501e-00c0-80fc-59ba32000000", + "Body" : "jtcaccountsaspermissionstostringjtcaccountsaspermissionstostring0894550b7dd77a168bFri, 23 Aug 2019 21:49:24 GMT\"0x8D72813C3B3543F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:24 GMT", + "x-ms-client-request-id" : "1c24d98a-43b9-4e90-a28a-2798d3ac2c9d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionstostring0894550b7dd77a168b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d04af5-501e-00c0-1cfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:24 GMT", + "x-ms-client-request-id" : "0abc1f47-b6f2-4d7b-bcbf-0503e47c7007" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsaspermissionstostring0894550b7dd77a168b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsaspermissionstostring[5].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsaspermissionstostring[5].json new file mode 100644 index 0000000000000..e99967823132a --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsaspermissionstostring[5].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionstostring0007912bae58db8074?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C3C1AF95\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d04b26-501e-00c0-4bfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:24 GMT", + "x-ms-client-request-id" : "936e883e-ae95-4576-8839-3fabb5b1563a" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsaspermissionstostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d04b49-501e-00c0-6afc-59ba32000000", + "Body" : "jtcaccountsaspermissionstostringjtcaccountsaspermissionstostring0007912bae58db8074Fri, 23 Aug 2019 21:49:24 GMT\"0x8D72813C3C1AF95\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:24 GMT", + "x-ms-client-request-id" : "2c2fa0ff-401c-48f8-a34f-71dcc66b9836", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionstostring0007912bae58db8074?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d04b5f-501e-00c0-7ffc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:24 GMT", + "x-ms-client-request-id" : "63034bef-bd93-4f50-a1c8-9747475eb674" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsaspermissionstostring0007912bae58db8074" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsaspermissionstostring[6].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsaspermissionstostring[6].json new file mode 100644 index 0000000000000..7ee45b59c29d5 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsaspermissionstostring[6].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionstostring0509585dc33a65c14e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C3D1B90B\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d04ba0-501e-00c0-40fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:24 GMT", + "x-ms-client-request-id" : "238a7ae7-945e-405c-9a1d-6ffe1e916eae" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsaspermissionstostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d04bc4-501e-00c0-5cfc-59ba32000000", + "Body" : "jtcaccountsaspermissionstostringjtcaccountsaspermissionstostring0509585dc33a65c14eFri, 23 Aug 2019 21:49:25 GMT\"0x8D72813C3D1B90B\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:24 GMT", + "x-ms-client-request-id" : "8f599346-88fb-4a18-bc40-5b6e82f52c7a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionstostring0509585dc33a65c14e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d04bea-501e-00c0-80fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:24 GMT", + "x-ms-client-request-id" : "f1d416e9-6fdd-44d1-8345-40fe69d30e82" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsaspermissionstostring0509585dc33a65c14e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsaspermissionstostring[7].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsaspermissionstostring[7].json new file mode 100644 index 0000000000000..bdf88d863f929 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsaspermissionstostring[7].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionstostring039358af73cf2e64b6?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C3E01466\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d04c21-501e-00c0-2bfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:24 GMT", + "x-ms-client-request-id" : "04369d29-fbb4-4203-9685-4f6853a97ed9" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsaspermissionstostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d04c41-501e-00c0-49fc-59ba32000000", + "Body" : "jtcaccountsaspermissionstostringjtcaccountsaspermissionstostring039358af73cf2e64b6Fri, 23 Aug 2019 21:49:25 GMT\"0x8D72813C3E01466\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:24 GMT", + "x-ms-client-request-id" : "c37df22a-07d0-47fe-9e6e-90268daa3a11", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionstostring039358af73cf2e64b6?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d04c51-501e-00c0-59fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:24 GMT", + "x-ms-client-request-id" : "4b2b4cd7-ce1a-4369-ab44-29726e200029" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsaspermissionstostring039358af73cf2e64b6" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsaspermissionstostring[8].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsaspermissionstostring[8].json new file mode 100644 index 0000000000000..dfb4b710f26d7 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsaspermissionstostring[8].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionstostring002763cc126dc90a8c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C3EF0C26\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d04c6a-501e-00c0-72fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:24 GMT", + "x-ms-client-request-id" : "fddf7532-23a5-4a41-82d3-f4f20f7edf57" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsaspermissionstostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d04c8a-501e-00c0-0efc-59ba32000000", + "Body" : "jtcaccountsaspermissionstostringjtcaccountsaspermissionstostring002763cc126dc90a8cFri, 23 Aug 2019 21:49:25 GMT\"0x8D72813C3EF0C26\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:24 GMT", + "x-ms-client-request-id" : "ec9dcf24-9136-4533-b1a8-9c289c67c4da", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionstostring002763cc126dc90a8c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d04ca5-501e-00c0-26fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:24 GMT", + "x-ms-client-request-id" : "8c9a95cc-8707-4743-a3bb-4b0b14efc20a" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsaspermissionstostring002763cc126dc90a8c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsasresourcetypeia.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsasresourcetypeia.json new file mode 100644 index 0000000000000..a17a255fb4fbe --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsasresourcetypeia.json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsasresourcetypeia0579865cb7c71786e34fc?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C527FF82\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d05676-501e-00c0-64fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:26 GMT", + "x-ms-client-request-id" : "4d2dc1a5-b931-4692-abb7-699531a5785b" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsasresourcetypeia&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d056b9-501e-00c0-1dfc-59ba32000000", + "Body" : "jtcaccountsasresourcetypeiajtcaccountsasresourcetypeia0579865cb7c71786e34fcFri, 23 Aug 2019 21:49:27 GMT\"0x8D72813C527FF82\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:26 GMT", + "x-ms-client-request-id" : "3cb40a8c-795d-43f2-b40b-4d628826cfd5", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsasresourcetypeia0579865cb7c71786e34fc?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d056e7-501e-00c0-48fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:26 GMT", + "x-ms-client-request-id" : "849f0b86-b085-4219-9a8d-aad5787bd519" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsasresourcetypeia0579865cb7c71786e34fc" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsasresourcetypeparse[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsasresourcetypeparse[0].json new file mode 100644 index 0000000000000..adfc821024e18 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsasresourcetypeparse[0].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsasresourcetypeparse0524564eb4d4493ba94?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C4EA7246\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d0546a-501e-00c0-20fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:26 GMT", + "x-ms-client-request-id" : "82d4e24c-12ab-41c3-9ea7-f549dc7ae7f7" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsasresourcetypeparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d0548f-501e-00c0-3ffc-59ba32000000", + "Body" : "jtcaccountsasresourcetypeparsejtcaccountsasresourcetypeparse0524564eb4d4493ba94Fri, 23 Aug 2019 21:49:26 GMT\"0x8D72813C4EA7246\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:26 GMT", + "x-ms-client-request-id" : "4cd023d3-52cb-4fe2-87c9-385559348370", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsasresourcetypeparse0524564eb4d4493ba94?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d054b7-501e-00c0-62fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:26 GMT", + "x-ms-client-request-id" : "abe7ec44-7a14-4688-b598-194587ebd293" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsasresourcetypeparse0524564eb4d4493ba94" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsasresourcetypeparse[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsasresourcetypeparse[1].json new file mode 100644 index 0000000000000..4e24f22641fc9 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsasresourcetypeparse[1].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsasresourcetypeparse078455de7d2d4b6ddf4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C4F91BE3\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d054e5-501e-00c0-0bfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:26 GMT", + "x-ms-client-request-id" : "00baee34-9f21-49f3-bd45-54c0cef8bf54" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsasresourcetypeparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d05517-501e-00c0-32fc-59ba32000000", + "Body" : "jtcaccountsasresourcetypeparsejtcaccountsasresourcetypeparse078455de7d2d4b6ddf4Fri, 23 Aug 2019 21:49:27 GMT\"0x8D72813C4F91BE3\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:26 GMT", + "x-ms-client-request-id" : "9280be1f-f28a-4b9c-95f5-43234bb8ee7a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsasresourcetypeparse078455de7d2d4b6ddf4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d0553f-501e-00c0-52fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:26 GMT", + "x-ms-client-request-id" : "3c7b22ff-77d1-458f-8367-2ee6a99f6f15" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsasresourcetypeparse078455de7d2d4b6ddf4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsasresourcetypeparse[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsasresourcetypeparse[2].json new file mode 100644 index 0000000000000..d865e000438d6 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsasresourcetypeparse[2].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsasresourcetypeparse0988397123e9c6afb74?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C508B00B\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d05586-501e-00c0-0dfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:26 GMT", + "x-ms-client-request-id" : "c6923985-4577-4456-b8fc-32e57a3e1b93" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsasresourcetypeparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d055a8-501e-00c0-2dfc-59ba32000000", + "Body" : "jtcaccountsasresourcetypeparsejtcaccountsasresourcetypeparse0988397123e9c6afb74Fri, 23 Aug 2019 21:49:27 GMT\"0x8D72813C508B00B\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:26 GMT", + "x-ms-client-request-id" : "2aeb415e-e91b-4f72-a468-288198ab7635", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsasresourcetypeparse0988397123e9c6afb74?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d055c9-501e-00c0-49fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:26 GMT", + "x-ms-client-request-id" : "fc679a24-f020-46d7-9f66-667fcf200f7f" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsasresourcetypeparse0988397123e9c6afb74" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsasresourcetypeparse[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsasresourcetypeparse[3].json new file mode 100644 index 0000000000000..3060815c69e4e --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsasresourcetypeparse[3].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsasresourcetypeparse051826c5be18b593f14?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C5173284\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d055fc-501e-00c0-78fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:26 GMT", + "x-ms-client-request-id" : "b9792260-6294-43bd-a068-8ebc3fe24776" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsasresourcetypeparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d0561e-501e-00c0-17fc-59ba32000000", + "Body" : "jtcaccountsasresourcetypeparsejtcaccountsasresourcetypeparse051826c5be18b593f14Fri, 23 Aug 2019 21:49:27 GMT\"0x8D72813C5173284\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:26 GMT", + "x-ms-client-request-id" : "6330fbd9-dd0e-428c-b90f-e56702dd13f5", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsasresourcetypeparse051826c5be18b593f14?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d0563c-501e-00c0-2dfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:26 GMT", + "x-ms-client-request-id" : "9de7b471-cb4b-4b3c-9223-5160d51ce446" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsasresourcetypeparse051826c5be18b593f14" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsasresourcetypetostring[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsasresourcetypetostring[0].json new file mode 100644 index 0000000000000..fd9fc19d6c68c --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsasresourcetypetostring[0].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsasresourcetypetostring076003b94840b024cd?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C4A78C92\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d05204-501e-00c0-7efc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:25 GMT", + "x-ms-client-request-id" : "718cfc83-563f-49b1-a1ab-0a5a7c0fd553" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsasresourcetypetostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d05233-501e-00c0-27fc-59ba32000000", + "Body" : "jtcaccountsasresourcetypetostringjtcaccountsasresourcetypetostring076003b94840b024cdFri, 23 Aug 2019 21:49:26 GMT\"0x8D72813C4A78C92\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:25 GMT", + "x-ms-client-request-id" : "fd1421eb-d4ac-432f-9df3-4ca208e86d1f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsasresourcetypetostring076003b94840b024cd?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d05251-501e-00c0-41fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:25 GMT", + "x-ms-client-request-id" : "721c695b-f82c-4a00-b486-32bd2095534f" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsasresourcetypetostring076003b94840b024cd" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsasresourcetypetostring[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsasresourcetypetostring[1].json new file mode 100644 index 0000000000000..bcf714e8765ea --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsasresourcetypetostring[1].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsasresourcetypetostring063597c0af80b1aae4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C4B720C0\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d05296-501e-00c0-7dfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:25 GMT", + "x-ms-client-request-id" : "d0f365a0-d70f-41d1-81aa-2f573413124e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsasresourcetypetostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d052bb-501e-00c0-1efc-59ba32000000", + "Body" : "jtcaccountsasresourcetypetostringjtcaccountsasresourcetypetostring063597c0af80b1aae4Fri, 23 Aug 2019 21:49:26 GMT\"0x8D72813C4B720C0\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:25 GMT", + "x-ms-client-request-id" : "cd154aba-220e-491b-8453-9ae4a16b24f3", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsasresourcetypetostring063597c0af80b1aae4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d052e2-501e-00c0-41fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:26 GMT", + "x-ms-client-request-id" : "bc9a0e0a-fde7-4dfd-b60b-8757b53f7b6e" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsasresourcetypetostring063597c0af80b1aae4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsasresourcetypetostring[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsasresourcetypetostring[2].json new file mode 100644 index 0000000000000..aabd3c25c0054 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsasresourcetypetostring[2].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsasresourcetypetostring039534aa94f50407d9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C4C5CA54\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d0530e-501e-00c0-6afc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:26 GMT", + "x-ms-client-request-id" : "6417b68a-2ce2-4d48-bac7-a674f11bfae8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsasresourcetypetostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d05346-501e-00c0-1afc-59ba32000000", + "Body" : "jtcaccountsasresourcetypetostringjtcaccountsasresourcetypetostring039534aa94f50407d9Fri, 23 Aug 2019 21:49:26 GMT\"0x8D72813C4C5CA54\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:26 GMT", + "x-ms-client-request-id" : "2e746e17-f6a3-44f4-a4a7-5e8478b2c3d0", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsasresourcetypetostring039534aa94f50407d9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d05373-501e-00c0-42fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:26 GMT", + "x-ms-client-request-id" : "cc45c8e4-ac84-47eb-97f9-8e969f3f6d50" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsasresourcetypetostring039534aa94f50407d9" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsasresourcetypetostring[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsasresourcetypetostring[3].json new file mode 100644 index 0000000000000..d8a969ce93cf5 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsasresourcetypetostring[3].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsasresourcetypetostring01302474826e900c91?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C4D4E93B\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d053ae-501e-00c0-79fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:26 GMT", + "x-ms-client-request-id" : "97511fb8-c193-4c90-9495-06f16cc657cf" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsasresourcetypetostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d053d6-501e-00c0-1afc-59ba32000000", + "Body" : "jtcaccountsasresourcetypetostringjtcaccountsasresourcetypetostring01302474826e900c91Fri, 23 Aug 2019 21:49:26 GMT\"0x8D72813C4D4E93B\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:26 GMT", + "x-ms-client-request-id" : "82696abf-0384-4dbc-a53b-fe11572a4c91", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsasresourcetypetostring01302474826e900c91?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d053fd-501e-00c0-3ffc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:26 GMT", + "x-ms-client-request-id" : "cf499e04-9d10-4ceb-a5f7-2c9af535519d" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsasresourcetypetostring01302474826e900c91" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsassignaturesstringtosign[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsassignaturesstringtosign[0].json new file mode 100644 index 0000000000000..678d2b68f7628 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsassignaturesstringtosign[0].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsassignaturesstringtosign098194ea1eb9ff122?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C2BB715C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d04331-501e-00c0-71fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:22 GMT", + "x-ms-client-request-id" : "aa9e90ba-336c-413e-990e-6bcc9429805c" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsassignaturesstringtosign&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d04367-501e-00c0-25fc-59ba32000000", + "Body" : "jtcaccountsassignaturesstringtosignjtcaccountsassignaturesstringtosign098194ea1eb9ff122Fri, 23 Aug 2019 21:49:23 GMT\"0x8D72813C2BB715C\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:22 GMT", + "x-ms-client-request-id" : "fda63c2b-6de9-462d-a102-6524d63a90a4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsassignaturesstringtosign098194ea1eb9ff122?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d04397-501e-00c0-51fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:22 GMT", + "x-ms-client-request-id" : "369a1728-778f-4cad-b6ef-5230c31f7c23" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsassignaturesstringtosign098194ea1eb9ff122" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsassignaturesstringtosign[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsassignaturesstringtosign[1].json new file mode 100644 index 0000000000000..38a75da4672dd --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsassignaturesstringtosign[1].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsassignaturesstringtosign061523db492138fef?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C2DF2EBE\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d04465-501e-00c0-13fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:22 GMT", + "x-ms-client-request-id" : "c28c3d9a-9bd1-4c86-bf8f-95749bc48f3d" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsassignaturesstringtosign&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d04497-501e-00c0-43fc-59ba32000000", + "Body" : "jtcaccountsassignaturesstringtosignjtcaccountsassignaturesstringtosign061523db492138fefFri, 23 Aug 2019 21:49:23 GMT\"0x8D72813C2DF2EBE\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:22 GMT", + "x-ms-client-request-id" : "33e1a08a-d662-4ff9-aecf-4bf7fe9e1852", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsassignaturesstringtosign061523db492138fef?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d044b2-501e-00c0-5efc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:22 GMT", + "x-ms-client-request-id" : "bb9b7cd9-fd6f-4d9c-ac2a-f4d03b21b0bb" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsassignaturesstringtosign061523db492138fef" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsassignaturesstringtosign[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsassignaturesstringtosign[2].json new file mode 100644 index 0000000000000..5178b667ecaa9 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsassignaturesstringtosign[2].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsassignaturesstringtosign071222afbc749f557?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C2EDFF60\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d044d6-501e-00c0-80fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:22 GMT", + "x-ms-client-request-id" : "55b198c5-7085-4d82-8b92-f71e96f1b876" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsassignaturesstringtosign&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d044fc-501e-00c0-22fc-59ba32000000", + "Body" : "jtcaccountsassignaturesstringtosignjtcaccountsassignaturesstringtosign071222afbc749f557Fri, 23 Aug 2019 21:49:23 GMT\"0x8D72813C2EDFF60\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:22 GMT", + "x-ms-client-request-id" : "3bc97537-577e-47a6-994b-6e0001cd8dad", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsassignaturesstringtosign071222afbc749f557?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d04511-501e-00c0-35fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:23 GMT", + "x-ms-client-request-id" : "6c397ee3-6133-4164-bb17-c293e7a654c8" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsassignaturesstringtosign071222afbc749f557" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsassignaturevaluesia[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsassignaturevaluesia[0].json new file mode 100644 index 0000000000000..a964741862e62 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsassignaturevaluesia[0].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsassignaturevaluesia0900505c2c6992f1794?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C2FD455A\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d0453c-501e-00c0-5efc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:23 GMT", + "x-ms-client-request-id" : "13711863-71d3-44a3-a750-8a7121de837a" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsassignaturevaluesia&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d0455f-501e-00c0-7efc-59ba32000000", + "Body" : "jtcaccountsassignaturevaluesiajtcaccountsassignaturevaluesia0900505c2c6992f1794Fri, 23 Aug 2019 21:49:23 GMT\"0x8D72813C2FD455A\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:23 GMT", + "x-ms-client-request-id" : "e5a47903-70de-4408-ade4-ba79567a7bdc", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsassignaturevaluesia0900505c2c6992f1794?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d04586-501e-00c0-22fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:23 GMT", + "x-ms-client-request-id" : "cad8d03b-746f-41f8-882a-b2dfb1dc6491" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsassignaturevaluesia0900505c2c6992f1794" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsassignaturevaluesia[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsassignaturevaluesia[1].json new file mode 100644 index 0000000000000..03d4efe257519 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsassignaturevaluesia[1].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsassignaturevaluesia05321952b1d78376704?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C30BEEF3\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d045b2-501e-00c0-4bfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:23 GMT", + "x-ms-client-request-id" : "ae34bc3a-4f73-4f73-a3c4-9c10ee3282e8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsassignaturevaluesia&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d045d3-501e-00c0-69fc-59ba32000000", + "Body" : "jtcaccountsassignaturevaluesiajtcaccountsassignaturevaluesia05321952b1d78376704Fri, 23 Aug 2019 21:49:23 GMT\"0x8D72813C30BEEF3\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:23 GMT", + "x-ms-client-request-id" : "532a1646-213d-463f-b723-3b0d1e32d714", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsassignaturevaluesia05321952b1d78376704?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d045ee-501e-00c0-03fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:23 GMT", + "x-ms-client-request-id" : "788309ae-fc70-44ef-93b9-1d8301726a4d" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsassignaturevaluesia05321952b1d78376704" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsassignaturevaluesia[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsassignaturevaluesia[2].json new file mode 100644 index 0000000000000..1adf0682fa60b --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsassignaturevaluesia[2].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsassignaturevaluesia0667407beba27f6a964?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C31A9887\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d0460a-501e-00c0-1ffc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:23 GMT", + "x-ms-client-request-id" : "ceafd641-a331-424a-8119-098020ca3fa7" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsassignaturevaluesia&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d04630-501e-00c0-3dfc-59ba32000000", + "Body" : "jtcaccountsassignaturevaluesiajtcaccountsassignaturevaluesia0667407beba27f6a964Fri, 23 Aug 2019 21:49:23 GMT\"0x8D72813C31A9887\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:23 GMT", + "x-ms-client-request-id" : "82aa3d59-9867-46c9-b72c-468faf88b12d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsassignaturevaluesia0667407beba27f6a964?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d0464e-501e-00c0-5afc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:23 GMT", + "x-ms-client-request-id" : "81556e31-f2c8-42fe-a6f7-fde902811892" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsassignaturevaluesia0667407beba27f6a964" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsassignaturevaluesia[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsassignaturevaluesia[3].json new file mode 100644 index 0000000000000..481bc48807f37 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsassignaturevaluesia[3].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsassignaturevaluesia028110f32755d8940c4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C329B765\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d04678-501e-00c0-02fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:23 GMT", + "x-ms-client-request-id" : "c78e7065-67a2-489d-b755-ce3d3f64ad43" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsassignaturevaluesia&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d046b6-501e-00c0-39fc-59ba32000000", + "Body" : "jtcaccountsassignaturevaluesiajtcaccountsassignaturevaluesia028110f32755d8940c4Fri, 23 Aug 2019 21:49:23 GMT\"0x8D72813C329B765\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:23 GMT", + "x-ms-client-request-id" : "0365d894-a566-4259-b95f-e23bf6b5cb91", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsassignaturevaluesia028110f32755d8940c4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d046ea-501e-00c0-68fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:23 GMT", + "x-ms-client-request-id" : "ab771489-cf89-4902-bd68-309cf6bad1de" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsassignaturevaluesia028110f32755d8940c4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsassignaturevaluesia[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsassignaturevaluesia[4].json new file mode 100644 index 0000000000000..a44dd9aeebcbc --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsassignaturevaluesia[4].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsassignaturevaluesia0944892ac2a54e77004?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C34D74C3\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d047b1-501e-00c0-19fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:23 GMT", + "x-ms-client-request-id" : "f5bbd303-adf8-4a3d-8b84-2c83ef9dbc7e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsassignaturevaluesia&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d047d8-501e-00c0-3bfc-59ba32000000", + "Body" : "jtcaccountsassignaturevaluesiajtcaccountsassignaturevaluesia0944892ac2a54e77004Fri, 23 Aug 2019 21:49:24 GMT\"0x8D72813C34D74C3\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:23 GMT", + "x-ms-client-request-id" : "8fcf5a66-b4a2-4e87-816c-dcd454a46f75", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsassignaturevaluesia0944892ac2a54e77004?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d047e8-501e-00c0-4bfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:23 GMT", + "x-ms-client-request-id" : "cb98ee48-f4dd-4889-9bda-118082ba39f1" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsassignaturevaluesia0944892ac2a54e77004" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsassignaturevaluesia[5].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsassignaturevaluesia[5].json new file mode 100644 index 0000000000000..943e8f25dd197 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestaccountsassignaturevaluesia[5].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsassignaturevaluesia0985626dff0c957a614?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C35C4572\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d0481a-501e-00c0-75fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:23 GMT", + "x-ms-client-request-id" : "e1fe06ac-4330-46ef-afac-b9893db6a22f" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsassignaturevaluesia&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d04835-501e-00c0-0dfc-59ba32000000", + "Body" : "jtcaccountsassignaturevaluesiajtcaccountsassignaturevaluesia0985626dff0c957a614Fri, 23 Aug 2019 21:49:24 GMT\"0x8D72813C35C4572\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:23 GMT", + "x-ms-client-request-id" : "e71bf223-ea90-4f71-b73f-eb589835d8ce", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsassignaturevaluesia0985626dff0c957a614?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d04857-501e-00c0-2cfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:23 GMT", + "x-ms-client-request-id" : "c3b91206-209f-4883-9145-33efd9c0a9b0" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsassignaturevaluesia0985626dff0c957a614" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestblobrange[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestblobrange[0].json new file mode 100644 index 0000000000000..d1f1da8aff449 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestblobrange[0].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobrange0helpertestblobrangec24651971aa2094dbaf?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BD404840\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d01f47-501e-00c0-7bfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:13 GMT", + "x-ms-client-request-id" : "d3ded137-f3eb-4580-ab05-38223b5ef386" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcblobrange&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d01fa7-501e-00c0-4cfc-59ba32000000", + "Body" : "jtcblobrangejtcblobrange0helpertestblobrangec24651971aa2094dbafFri, 23 Aug 2019 21:49:14 GMT\"0x8D72813BD404840\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:13 GMT", + "x-ms-client-request-id" : "9ac1e42d-8132-41f6-9974-ac8f8a451dbb", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobrange0helpertestblobrangec24651971aa2094dbaf?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d01fc9-501e-00c0-67fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:13 GMT", + "x-ms-client-request-id" : "6a1f59bb-30fa-4af1-9aca-3be4dff1dd2e" + }, + "Exception" : null + } ], + "variables" : [ "jtcblobrange0helpertestblobrangec24651971aa2094dbaf" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestblobrange[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestblobrange[1].json new file mode 100644 index 0000000000000..4f568be403072 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestblobrange[1].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobrange0helpertestblobrange2d705952e2fae756f4e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BD5B02B8\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d01ffb-501e-00c0-11fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:13 GMT", + "x-ms-client-request-id" : "4b8434ae-e9ce-4989-a5c1-2cb0fd24ebe6" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcblobrange&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d02018-501e-00c0-2afc-59ba32000000", + "Body" : "jtcblobrangejtcblobrange0helpertestblobrange2d705952e2fae756f4eFri, 23 Aug 2019 21:49:14 GMT\"0x8D72813BD5B02B8\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:13 GMT", + "x-ms-client-request-id" : "7ce9eb7b-286b-4947-a8a3-52592923f2b9", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobrange0helpertestblobrange2d705952e2fae756f4e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d02036-501e-00c0-46fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:13 GMT", + "x-ms-client-request-id" : "dab14c2a-f759-4b6d-b1b7-4f23ec9e3d3f" + }, + "Exception" : null + } ], + "variables" : [ "jtcblobrange0helpertestblobrange2d705952e2fae756f4e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestblobrange[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestblobrange[2].json new file mode 100644 index 0000000000000..0b77babd8e328 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestblobrange[2].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobrange0helpertestblobrange4195711308983804d4d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BD6FA132\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d0206e-501e-00c0-7afc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:13 GMT", + "x-ms-client-request-id" : "3c7d3fb3-f81c-4632-ad87-27bbc118a343" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcblobrange&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d02086-501e-00c0-0ffc-59ba32000000", + "Body" : "jtcblobrangejtcblobrange0helpertestblobrange4195711308983804d4dFri, 23 Aug 2019 21:49:14 GMT\"0x8D72813BD6FA132\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:13 GMT", + "x-ms-client-request-id" : "de403855-c48a-479c-b118-0f9257b93518", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobrange0helpertestblobrange4195711308983804d4d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d0209d-501e-00c0-23fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:13 GMT", + "x-ms-client-request-id" : "a6c58185-d7e9-4bb6-949c-b09d418c938c" + }, + "Exception" : null + } ], + "variables" : [ "jtcblobrange0helpertestblobrange4195711308983804d4d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestblobrangeia[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestblobrangeia[0].json new file mode 100644 index 0000000000000..701a40393c9e3 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestblobrangeia[0].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobrangeia0helpertestblobrangeia35087227d5d30d1ef?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BD7DFC93\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d020bb-501e-00c0-40fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:13 GMT", + "x-ms-client-request-id" : "72094235-11ae-421a-b545-ae1012692e54" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcblobrangeia&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d020d6-501e-00c0-56fc-59ba32000000", + "Body" : "jtcblobrangeiajtcblobrangeia0helpertestblobrangeia35087227d5d30d1efFri, 23 Aug 2019 21:49:14 GMT\"0x8D72813BD7DFC93\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:13 GMT", + "x-ms-client-request-id" : "178e9bfd-78f2-4670-845d-fa20fe3ae1d5", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobrangeia0helpertestblobrangeia35087227d5d30d1ef?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d020ed-501e-00c0-6cfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:13 GMT", + "x-ms-client-request-id" : "1a3b2dbc-4604-4a9c-937e-9943a1142d0f" + }, + "Exception" : null + } ], + "variables" : [ "jtcblobrangeia0helpertestblobrangeia35087227d5d30d1ef" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestblobrangeia[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestblobrangeia[1].json new file mode 100644 index 0000000000000..94cdbff84e8f6 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestblobrangeia[1].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobrangeia0helpertestblobrangeia5aa713776eaa5254a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BD8D1B72\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d02114-501e-00c0-10fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:13 GMT", + "x-ms-client-request-id" : "f750b143-5655-44d5-9d8b-7a945cc30783" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcblobrangeia&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d02137-501e-00c0-2cfc-59ba32000000", + "Body" : "jtcblobrangeiajtcblobrangeia0helpertestblobrangeia5aa713776eaa5254aFri, 23 Aug 2019 21:49:14 GMT\"0x8D72813BD8D1B72\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:13 GMT", + "x-ms-client-request-id" : "586d17e6-1a5b-4223-adcf-a7250a8cb877", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobrangeia0helpertestblobrangeia5aa713776eaa5254a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d02151-501e-00c0-45fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:14 GMT", + "x-ms-client-request-id" : "836b6906-ffdd-4e66-8b98-3002b2214f12" + }, + "Exception" : null + } ], + "variables" : [ "jtcblobrangeia0helpertestblobrangeia5aa713776eaa5254a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestblobsaspermissionsparse[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestblobsaspermissionsparse[0].json new file mode 100644 index 0000000000000..9af8f990c0689 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestblobsaspermissionsparse[0].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobsaspermissionsparse084053d5172ae460234ff?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C0AFDF8E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:19 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d0346b-501e-00c0-78fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:19 GMT", + "x-ms-client-request-id" : "b594d283-afa2-443e-9e0a-48f195282628" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcblobsaspermissionsparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d03499-501e-00c0-22fc-59ba32000000", + "Body" : "jtcblobsaspermissionsparsejtcblobsaspermissionsparse084053d5172ae460234ffFri, 23 Aug 2019 21:49:19 GMT\"0x8D72813C0AFDF8E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:19 GMT", + "x-ms-client-request-id" : "0ce086f5-8ed5-46d8-89ea-173d038b0640", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobsaspermissionsparse084053d5172ae460234ff?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d034b4-501e-00c0-38fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:19 GMT", + "x-ms-client-request-id" : "10293332-9e3e-41cd-8417-a543129cb378" + }, + "Exception" : null + } ], + "variables" : [ "jtcblobsaspermissionsparse084053d5172ae460234ff" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestblobsaspermissionsparse[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestblobsaspermissionsparse[1].json new file mode 100644 index 0000000000000..b20d43d57ae09 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestblobsaspermissionsparse[1].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobsaspermissionsparse03228086df2660117d49e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C0BE8917\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:19 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d034d9-501e-00c0-5bfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:19 GMT", + "x-ms-client-request-id" : "a7e717a2-8844-44db-8244-20ef4d87ccb7" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcblobsaspermissionsparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d034fa-501e-00c0-7afc-59ba32000000", + "Body" : "jtcblobsaspermissionsparsejtcblobsaspermissionsparse03228086df2660117d49eFri, 23 Aug 2019 21:49:19 GMT\"0x8D72813C0BE8917\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:19 GMT", + "x-ms-client-request-id" : "32a2251d-d9ff-4fb1-adbd-fb479435198e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobsaspermissionsparse03228086df2660117d49e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d03519-501e-00c0-15fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:19 GMT", + "x-ms-client-request-id" : "c70fcc31-4e41-4f96-acfc-abc739e84f09" + }, + "Exception" : null + } ], + "variables" : [ "jtcblobsaspermissionsparse03228086df2660117d49e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestblobsaspermissionsparse[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestblobsaspermissionsparse[2].json new file mode 100644 index 0000000000000..9a91a88876c9e --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestblobsaspermissionsparse[2].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobsaspermissionsparse057054f6b4b9165ec5416?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C0CDCF10\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d03541-501e-00c0-3dfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:19 GMT", + "x-ms-client-request-id" : "45894c8d-1edb-45c6-ba75-b160c109e86c" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcblobsaspermissionsparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d0356c-501e-00c0-64fc-59ba32000000", + "Body" : "jtcblobsaspermissionsparsejtcblobsaspermissionsparse057054f6b4b9165ec5416Fri, 23 Aug 2019 21:49:20 GMT\"0x8D72813C0CDCF10\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:19 GMT", + "x-ms-client-request-id" : "11a646ca-52da-4fc1-a477-8fab24a23257", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobsaspermissionsparse057054f6b4b9165ec5416?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d03589-501e-00c0-7dfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:19 GMT", + "x-ms-client-request-id" : "0269256e-3536-4663-947b-27b346485a49" + }, + "Exception" : null + } ], + "variables" : [ "jtcblobsaspermissionsparse057054f6b4b9165ec5416" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestblobsaspermissionsparse[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestblobsaspermissionsparse[3].json new file mode 100644 index 0000000000000..723808b80b616 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestblobsaspermissionsparse[3].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobsaspermissionsparse0072961f7a1219c53a406?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C0DD3C1F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d035bc-501e-00c0-2bfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:19 GMT", + "x-ms-client-request-id" : "32c34d45-53d4-4b57-b950-00ac37487b86" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcblobsaspermissionsparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d035d9-501e-00c0-47fc-59ba32000000", + "Body" : "jtcblobsaspermissionsparsejtcblobsaspermissionsparse0072961f7a1219c53a406Fri, 23 Aug 2019 21:49:20 GMT\"0x8D72813C0DD3C1F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:19 GMT", + "x-ms-client-request-id" : "bf2218b4-cc10-49eb-a5c8-f02902e506cd", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobsaspermissionsparse0072961f7a1219c53a406?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d035f7-501e-00c0-61fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:19 GMT", + "x-ms-client-request-id" : "ec3e6724-2681-49ba-91d8-0289de8a8bb8" + }, + "Exception" : null + } ], + "variables" : [ "jtcblobsaspermissionsparse0072961f7a1219c53a406" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestblobsaspermissionsparse[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestblobsaspermissionsparse[4].json new file mode 100644 index 0000000000000..1ec3d2e5e5e48 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestblobsaspermissionsparse[4].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobsaspermissionsparse0258458d061edc25a9481?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C0ECA925\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d03624-501e-00c0-09fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:19 GMT", + "x-ms-client-request-id" : "6b0a220b-1949-4443-8c09-9c0ff982469c" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcblobsaspermissionsparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d03640-501e-00c0-22fc-59ba32000000", + "Body" : "jtcblobsaspermissionsparsejtcblobsaspermissionsparse0258458d061edc25a9481Fri, 23 Aug 2019 21:49:20 GMT\"0x8D72813C0ECA925\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:19 GMT", + "x-ms-client-request-id" : "15f3d916-d9d2-480f-b650-afd0ed12ed49", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobsaspermissionsparse0258458d061edc25a9481?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d03657-501e-00c0-38fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:19 GMT", + "x-ms-client-request-id" : "0671d34f-13a2-4632-8277-04651b1e7b4d" + }, + "Exception" : null + } ], + "variables" : [ "jtcblobsaspermissionsparse0258458d061edc25a9481" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestblobsaspermissionsparse[5].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestblobsaspermissionsparse[5].json new file mode 100644 index 0000000000000..a6f802c717886 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestblobsaspermissionsparse[5].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobsaspermissionsparse0567701b50a2157498449?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C0FC1639\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d03689-501e-00c0-66fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:19 GMT", + "x-ms-client-request-id" : "59c5a3db-c524-4480-9dc5-f7790ab3f89c" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcblobsaspermissionsparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d036ae-501e-00c0-0afc-59ba32000000", + "Body" : "jtcblobsaspermissionsparsejtcblobsaspermissionsparse0567701b50a2157498449Fri, 23 Aug 2019 21:49:20 GMT\"0x8D72813C0FC1639\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:19 GMT", + "x-ms-client-request-id" : "8881bdb0-a54e-4bc9-bef4-ede30f75275c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobsaspermissionsparse0567701b50a2157498449?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d036cc-501e-00c0-27fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:19 GMT", + "x-ms-client-request-id" : "2e4be269-d297-4b1d-9268-0c65814fba66" + }, + "Exception" : null + } ], + "variables" : [ "jtcblobsaspermissionsparse0567701b50a2157498449" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestblobsaspermissionsparse[6].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestblobsaspermissionsparse[6].json new file mode 100644 index 0000000000000..e71b49c946a08 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestblobsaspermissionsparse[6].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobsaspermissionsparse0870884b54734109094c7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C10A718F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d036fc-501e-00c0-53fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:19 GMT", + "x-ms-client-request-id" : "a1f4d197-0623-44e2-b785-32a3c2743a87" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcblobsaspermissionsparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d03721-501e-00c0-73fc-59ba32000000", + "Body" : "jtcblobsaspermissionsparsejtcblobsaspermissionsparse0870884b54734109094c7Fri, 23 Aug 2019 21:49:20 GMT\"0x8D72813C10A718F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:19 GMT", + "x-ms-client-request-id" : "54bc3028-e5c2-4c09-bf0c-839600a62f88", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobsaspermissionsparse0870884b54734109094c7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d0373f-501e-00c0-0cfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:19 GMT", + "x-ms-client-request-id" : "ba0754af-10c4-4fe9-af24-57143f543652" + }, + "Exception" : null + } ], + "variables" : [ "jtcblobsaspermissionsparse0870884b54734109094c7" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestblobsaspermissionsparseia.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestblobsaspermissionsparseia.json new file mode 100644 index 0000000000000..a3be06ef78cb7 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestblobsaspermissionsparseia.json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobsaspermissionsparseia0750786c8568dbe1c249?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C11A05B6\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d03766-501e-00c0-2ffc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:19 GMT", + "x-ms-client-request-id" : "5e1abd80-0cf0-4c53-81fc-c44703bbd1b6" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcblobsaspermissionsparseia&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d03789-501e-00c0-4efc-59ba32000000", + "Body" : "jtcblobsaspermissionsparseiajtcblobsaspermissionsparseia0750786c8568dbe1c249Fri, 23 Aug 2019 21:49:20 GMT\"0x8D72813C11A05B6\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:19 GMT", + "x-ms-client-request-id" : "dbdec965-6d6f-4f2a-8b76-5c9222a86de8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobsaspermissionsparseia0750786c8568dbe1c249?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d037ad-501e-00c0-6ffc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:20 GMT", + "x-ms-client-request-id" : "2441a21b-4b42-4e4d-a98d-3444d3fa8950" + }, + "Exception" : null + } ], + "variables" : [ "jtcblobsaspermissionsparseia0750786c8568dbe1c249" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestblobsaspermissionstostring[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestblobsaspermissionstostring[0].json new file mode 100644 index 0000000000000..d353df3c93419 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestblobsaspermissionstostring[0].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobsaspermissionstostring066601c8413b2cbada4a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C0448080\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:19 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d031b0-501e-00c0-04fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:18 GMT", + "x-ms-client-request-id" : "81e32e2e-c07b-420e-a7ac-76d18ac7dfc3" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcblobsaspermissionstostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d031c6-501e-00c0-18fc-59ba32000000", + "Body" : "jtcblobsaspermissionstostringjtcblobsaspermissionstostring066601c8413b2cbada4aFri, 23 Aug 2019 21:49:19 GMT\"0x8D72813C0448080\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:18 GMT", + "x-ms-client-request-id" : "d0e9dbce-308f-4ddc-ae6a-4bd78ce5e97f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobsaspermissionstostring066601c8413b2cbada4a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d031db-501e-00c0-2bfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:18 GMT", + "x-ms-client-request-id" : "481e4b98-8a22-4db5-a7b7-5b22c9321d85" + }, + "Exception" : null + } ], + "variables" : [ "jtcblobsaspermissionstostring066601c8413b2cbada4a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestblobsaspermissionstostring[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestblobsaspermissionstostring[1].json new file mode 100644 index 0000000000000..5e006e0c019ab --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestblobsaspermissionstostring[1].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobsaspermissionstostring0368414479a01766c84d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C052DBDC\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:19 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d03200-501e-00c0-4ffc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:18 GMT", + "x-ms-client-request-id" : "1c995b87-9f08-4aac-964a-bbd6a47697d6" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcblobsaspermissionstostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d03223-501e-00c0-6efc-59ba32000000", + "Body" : "jtcblobsaspermissionstostringjtcblobsaspermissionstostring0368414479a01766c84dFri, 23 Aug 2019 21:49:19 GMT\"0x8D72813C052DBDC\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:18 GMT", + "x-ms-client-request-id" : "1dc74de5-910e-414d-94db-5e51daa4e33c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobsaspermissionstostring0368414479a01766c84d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d03246-501e-00c0-0bfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:18 GMT", + "x-ms-client-request-id" : "9a73528d-3974-4019-b113-300f8a30d0e6" + }, + "Exception" : null + } ], + "variables" : [ "jtcblobsaspermissionstostring0368414479a01766c84d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestblobsaspermissionstostring[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestblobsaspermissionstostring[2].json new file mode 100644 index 0000000000000..be700c67ee00e --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestblobsaspermissionstostring[2].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobsaspermissionstostring077127ce23c442e59a48?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C0629725\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:19 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d0327c-501e-00c0-3dfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:18 GMT", + "x-ms-client-request-id" : "26db0837-4c41-4913-9190-7641506c68ca" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcblobsaspermissionstostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d032a0-501e-00c0-5cfc-59ba32000000", + "Body" : "jtcblobsaspermissionstostringjtcblobsaspermissionstostring077127ce23c442e59a48Fri, 23 Aug 2019 21:49:19 GMT\"0x8D72813C0629725\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:18 GMT", + "x-ms-client-request-id" : "c4ed63c8-5d8c-4e5b-b566-f54a84542afe", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobsaspermissionstostring077127ce23c442e59a48?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d032bc-501e-00c0-74fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:18 GMT", + "x-ms-client-request-id" : "f6b42151-b134-4282-82b1-5bd31ea030e7" + }, + "Exception" : null + } ], + "variables" : [ "jtcblobsaspermissionstostring077127ce23c442e59a48" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestblobsaspermissionstostring[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestblobsaspermissionstostring[3].json new file mode 100644 index 0000000000000..d0a723ca08dde --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestblobsaspermissionstostring[3].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobsaspermissionstostring098505e9fe5b0929274e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C07167D5\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:19 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d032e3-501e-00c0-16fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:18 GMT", + "x-ms-client-request-id" : "ea09d0b8-0705-4698-8415-9f6dc1c14104" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcblobsaspermissionstostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d032fd-501e-00c0-2cfc-59ba32000000", + "Body" : "jtcblobsaspermissionstostringjtcblobsaspermissionstostring098505e9fe5b0929274eFri, 23 Aug 2019 21:49:19 GMT\"0x8D72813C07167D5\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:18 GMT", + "x-ms-client-request-id" : "0f3709d6-dea2-45e6-b4cc-615be0c34667", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobsaspermissionstostring098505e9fe5b0929274e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d0330e-501e-00c0-3dfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:18 GMT", + "x-ms-client-request-id" : "d3c63d96-d567-41f3-b50d-2d4b2392afc9" + }, + "Exception" : null + } ], + "variables" : [ "jtcblobsaspermissionstostring098505e9fe5b0929274e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestblobsaspermissionstostring[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestblobsaspermissionstostring[4].json new file mode 100644 index 0000000000000..0f8cbf5014cf2 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestblobsaspermissionstostring[4].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobsaspermissionstostring0687802db74010393d4e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C080387C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:19 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d03331-501e-00c0-60fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:18 GMT", + "x-ms-client-request-id" : "a129870a-86d1-4e2b-b2ef-6b6753a5972d" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcblobsaspermissionstostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d0334a-501e-00c0-75fc-59ba32000000", + "Body" : "jtcblobsaspermissionstostringjtcblobsaspermissionstostring0687802db74010393d4eFri, 23 Aug 2019 21:49:19 GMT\"0x8D72813C080387C\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:18 GMT", + "x-ms-client-request-id" : "f221f4c4-7ca3-458a-a5a9-feb86b5dc17a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobsaspermissionstostring0687802db74010393d4e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d03366-501e-00c0-0efc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:19 GMT", + "x-ms-client-request-id" : "349cbbc3-27d6-4c98-955a-7bcb3bdeb8ea" + }, + "Exception" : null + } ], + "variables" : [ "jtcblobsaspermissionstostring0687802db74010393d4e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestblobsaspermissionstostring[5].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestblobsaspermissionstostring[5].json new file mode 100644 index 0000000000000..7bdf35f2c2a49 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestblobsaspermissionstostring[5].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobsaspermissionstostring025753c4afffefafc24f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C09FD614\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:19 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d03409-501e-00c0-21fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:19 GMT", + "x-ms-client-request-id" : "fbbaa086-8af8-48f6-a227-ef7aa570a430" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcblobsaspermissionstostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d0341f-501e-00c0-35fc-59ba32000000", + "Body" : "jtcblobsaspermissionstostringjtcblobsaspermissionstostring025753c4afffefafc24fFri, 23 Aug 2019 21:49:19 GMT\"0x8D72813C09FD614\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:19 GMT", + "x-ms-client-request-id" : "449f14e4-269f-4b1d-bff0-76fd823fdef4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobsaspermissionstostring025753c4afffefafc24f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d0343e-501e-00c0-4ffc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:19 GMT", + "x-ms-client-request-id" : "b54296fd-f5b5-410c-aa6b-8bf3c56b8f3a" + }, + "Exception" : null + } ], + "variables" : [ "jtcblobsaspermissionstostring025753c4afffefafc24f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestbloburlparts.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestbloburlparts.json new file mode 100644 index 0000000000000..7ebab1fb9c462 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestbloburlparts.json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbloburlparts0helpertestbloburlparts1606301127846bef?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C536A916\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d0571a-501e-00c0-77fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:26 GMT", + "x-ms-client-request-id" : "55ef7be5-0bd3-4c7f-a1bf-73d7fda73ead" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcbloburlparts&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d05753-501e-00c0-2cfc-59ba32000000", + "Body" : "jtcbloburlpartsjtcbloburlparts0helpertestbloburlparts1606301127846befFri, 23 Aug 2019 21:49:27 GMT\"0x8D72813C536A916\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:26 GMT", + "x-ms-client-request-id" : "5d4f9d37-7bb9-46cd-9286-ad3d877b06d2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbloburlparts0helpertestbloburlparts1606301127846bef?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d0577e-501e-00c0-53fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:26 GMT", + "x-ms-client-request-id" : "f13c4be9-d8f5-420e-aea3-4e58d3f5aa3c" + }, + "Exception" : null + } ], + "variables" : [ "jtcbloburlparts0helpertestbloburlparts1606301127846bef" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestcontainersaspermissionsparse[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestcontainersaspermissionsparse[0].json new file mode 100644 index 0000000000000..c53276f498144 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestcontainersaspermissionsparse[0].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionsparse0932990fa9f4e3073e4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C1AC0913\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d03b9f-501e-00c0-7bfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:20 GMT", + "x-ms-client-request-id" : "7b7849c1-89eb-481c-95f6-022cdea58070" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccontainersaspermissionsparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d03bc6-501e-00c0-1efc-59ba32000000", + "Body" : "jtccontainersaspermissionsparsejtccontainersaspermissionsparse0932990fa9f4e3073e4Fri, 23 Aug 2019 21:49:21 GMT\"0x8D72813C1AC0913\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:20 GMT", + "x-ms-client-request-id" : "77acf567-9daa-40f8-ae3f-f335477638a9", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionsparse0932990fa9f4e3073e4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d03be7-501e-00c0-3ffc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:20 GMT", + "x-ms-client-request-id" : "3ffc0600-108c-4f2b-84e0-bdcf17385082" + }, + "Exception" : null + } ], + "variables" : [ "jtccontainersaspermissionsparse0932990fa9f4e3073e4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestcontainersaspermissionsparse[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestcontainersaspermissionsparse[1].json new file mode 100644 index 0000000000000..863214e5511b8 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestcontainersaspermissionsparse[1].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionsparse063049ace764debaf34?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C1BB27F1\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d03c0d-501e-00c0-65fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:20 GMT", + "x-ms-client-request-id" : "3a6cf378-bf95-40fa-a6a6-bb83bacfea0b" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccontainersaspermissionsparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d03c31-501e-00c0-06fc-59ba32000000", + "Body" : "jtccontainersaspermissionsparsejtccontainersaspermissionsparse063049ace764debaf34Fri, 23 Aug 2019 21:49:21 GMT\"0x8D72813C1BB27F1\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:20 GMT", + "x-ms-client-request-id" : "532abd24-2b47-4b81-ba8c-5a6e89e8f3d4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionsparse063049ace764debaf34?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d03c45-501e-00c0-17fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:21 GMT", + "x-ms-client-request-id" : "e334fa83-3c94-4fd3-a360-efd18cc2a25a" + }, + "Exception" : null + } ], + "variables" : [ "jtccontainersaspermissionsparse063049ace764debaf34" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestcontainersaspermissionsparse[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestcontainersaspermissionsparse[2].json new file mode 100644 index 0000000000000..06f0636ad2434 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestcontainersaspermissionsparse[2].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionsparse093814fb87ed73eb354?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C1C9AA77\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d03c69-501e-00c0-36fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:21 GMT", + "x-ms-client-request-id" : "8390ddd8-72e2-4c36-96d7-8f357cbf1cab" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccontainersaspermissionsparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d03ca1-501e-00c0-68fc-59ba32000000", + "Body" : "jtccontainersaspermissionsparsejtccontainersaspermissionsparse093814fb87ed73eb354Fri, 23 Aug 2019 21:49:21 GMT\"0x8D72813C1C9AA77\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:21 GMT", + "x-ms-client-request-id" : "ec359185-eb14-462d-bc1c-c6063470bb69", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionsparse093814fb87ed73eb354?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d03cb9-501e-00c0-7dfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:21 GMT", + "x-ms-client-request-id" : "5de0dc7b-ef7b-4554-8926-1b12752209ac" + }, + "Exception" : null + } ], + "variables" : [ "jtccontainersaspermissionsparse093814fb87ed73eb354" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestcontainersaspermissionsparse[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestcontainersaspermissionsparse[3].json new file mode 100644 index 0000000000000..7e8b51c64daca --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestcontainersaspermissionsparse[3].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionsparse02245031cd80feb6664?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C1EC7D32\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d03d51-501e-00c0-03fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:21 GMT", + "x-ms-client-request-id" : "e0e09cd5-854c-4449-a123-c021bc08031e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccontainersaspermissionsparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d03d82-501e-00c0-31fc-59ba32000000", + "Body" : "jtccontainersaspermissionsparsejtccontainersaspermissionsparse02245031cd80feb6664Fri, 23 Aug 2019 21:49:21 GMT\"0x8D72813C1EC7D32\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:21 GMT", + "x-ms-client-request-id" : "8e92e26c-80fc-445d-bfb5-80f7a04aae95", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionsparse02245031cd80feb6664?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d03d9a-501e-00c0-48fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:21 GMT", + "x-ms-client-request-id" : "2405318e-a01a-448f-8b04-8ad496a210bf" + }, + "Exception" : null + } ], + "variables" : [ "jtccontainersaspermissionsparse02245031cd80feb6664" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestcontainersaspermissionsparse[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestcontainersaspermissionsparse[4].json new file mode 100644 index 0000000000000..d4110bcf2ffb1 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestcontainersaspermissionsparse[4].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionsparse0590157be521c3aa844?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C1FB4DD8\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d03dcd-501e-00c0-77fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:21 GMT", + "x-ms-client-request-id" : "fc50db82-87b2-422a-866e-29355cf20354" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccontainersaspermissionsparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d03ddf-501e-00c0-08fc-59ba32000000", + "Body" : "jtccontainersaspermissionsparsejtccontainersaspermissionsparse0590157be521c3aa844Fri, 23 Aug 2019 21:49:22 GMT\"0x8D72813C1FB4DD8\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:21 GMT", + "x-ms-client-request-id" : "35db3736-76ca-45fa-9923-489fd1f22628", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionsparse0590157be521c3aa844?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d03e11-501e-00c0-34fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:21 GMT", + "x-ms-client-request-id" : "c5a28f28-6a8b-4639-89f9-279b10aeb96c" + }, + "Exception" : null + } ], + "variables" : [ "jtccontainersaspermissionsparse0590157be521c3aa844" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestcontainersaspermissionsparse[5].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestcontainersaspermissionsparse[5].json new file mode 100644 index 0000000000000..b31f5f504e40e --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestcontainersaspermissionsparse[5].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionsparse009019549ec30ea6ce4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C209F768\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d03e44-501e-00c0-64fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:21 GMT", + "x-ms-client-request-id" : "8669d4a8-e991-44e9-9f1d-15cfab5ce7f7" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccontainersaspermissionsparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d03e61-501e-00c0-7ffc-59ba32000000", + "Body" : "jtccontainersaspermissionsparsejtccontainersaspermissionsparse009019549ec30ea6ce4Fri, 23 Aug 2019 21:49:22 GMT\"0x8D72813C209F768\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:21 GMT", + "x-ms-client-request-id" : "51aa1588-4538-4fd1-be83-420eade03536", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionsparse009019549ec30ea6ce4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d03e81-501e-00c0-1dfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:21 GMT", + "x-ms-client-request-id" : "daf5f6c8-05bf-4979-9f4a-f65afb0151a5" + }, + "Exception" : null + } ], + "variables" : [ "jtccontainersaspermissionsparse009019549ec30ea6ce4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestcontainersaspermissionsparse[6].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestcontainersaspermissionsparse[6].json new file mode 100644 index 0000000000000..e6088eb6c6000 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestcontainersaspermissionsparse[6].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionsparse020327494f2b0a8c4b4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C21852D2\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d03ea7-501e-00c0-41fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:21 GMT", + "x-ms-client-request-id" : "e4a1957e-f0fc-455a-bd36-2d1ad8f0818e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccontainersaspermissionsparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d03ec8-501e-00c0-60fc-59ba32000000", + "Body" : "jtccontainersaspermissionsparsejtccontainersaspermissionsparse020327494f2b0a8c4b4Fri, 23 Aug 2019 21:49:22 GMT\"0x8D72813C21852D2\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:21 GMT", + "x-ms-client-request-id" : "ec4cd15b-28db-4a7c-b087-5f8bc21fceff", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionsparse020327494f2b0a8c4b4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d03ee4-501e-00c0-7bfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:21 GMT", + "x-ms-client-request-id" : "1213e889-7a65-457e-976d-d5a495460994" + }, + "Exception" : null + } ], + "variables" : [ "jtccontainersaspermissionsparse020327494f2b0a8c4b4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestcontainersaspermissionsparse[7].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestcontainersaspermissionsparse[7].json new file mode 100644 index 0000000000000..8fa5f42fb8865 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestcontainersaspermissionsparse[7].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionsparse029070d57427dfb2a04?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C2272379\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d03f05-501e-00c0-1bfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:21 GMT", + "x-ms-client-request-id" : "faa12670-71a4-46dd-a526-d4f8230ebcdf" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccontainersaspermissionsparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d03f28-501e-00c0-3bfc-59ba32000000", + "Body" : "jtccontainersaspermissionsparsejtccontainersaspermissionsparse029070d57427dfb2a04Fri, 23 Aug 2019 21:49:22 GMT\"0x8D72813C2272379\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:21 GMT", + "x-ms-client-request-id" : "57d75d5e-95e2-46f9-aab5-dbbce6a6bc80", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionsparse029070d57427dfb2a04?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d03f4b-501e-00c0-5dfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:21 GMT", + "x-ms-client-request-id" : "3a66bb4b-f498-4aa3-9b00-c52260ec2864" + }, + "Exception" : null + } ], + "variables" : [ "jtccontainersaspermissionsparse029070d57427dfb2a04" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestcontainersaspermissionsparseia.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestcontainersaspermissionsparseia.json new file mode 100644 index 0000000000000..10e3e7b5cd536 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestcontainersaspermissionsparseia.json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionsparseia074073cd0413105927?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C2361B49\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d03f72-501e-00c0-03fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:21 GMT", + "x-ms-client-request-id" : "5c2f4e89-a0c2-4e7d-affc-b2f4d371f6c7" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccontainersaspermissionsparseia&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d03f9a-501e-00c0-26fc-59ba32000000", + "Body" : "jtccontainersaspermissionsparseiajtccontainersaspermissionsparseia074073cd0413105927Fri, 23 Aug 2019 21:49:22 GMT\"0x8D72813C2361B49\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:21 GMT", + "x-ms-client-request-id" : "f675ae35-6476-45d0-a953-7d07feb93399", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionsparseia074073cd0413105927?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d03fa8-501e-00c0-34fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:21 GMT", + "x-ms-client-request-id" : "2e9f84d9-e926-4fc9-bff6-cb7b61d1ead0" + }, + "Exception" : null + } ], + "variables" : [ "jtccontainersaspermissionsparseia074073cd0413105927" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestcontainersaspermissionstostring[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestcontainersaspermissionstostring[0].json new file mode 100644 index 0000000000000..1407b25f7f7e1 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestcontainersaspermissionstostring[0].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionstostring08594457bcce15971?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C136E38A\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d03837-501e-00c0-6efc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:20 GMT", + "x-ms-client-request-id" : "2cd9a883-260f-4df0-ab6d-ffca0a92f795" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccontainersaspermissionstostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d03865-501e-00c0-17fc-59ba32000000", + "Body" : "jtccontainersaspermissionstostringjtccontainersaspermissionstostring08594457bcce15971Fri, 23 Aug 2019 21:49:20 GMT\"0x8D72813C136E38A\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:20 GMT", + "x-ms-client-request-id" : "a25fc64e-71e1-478d-8ac3-98670c5ac9bc", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionstostring08594457bcce15971?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d03881-501e-00c0-30fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:20 GMT", + "x-ms-client-request-id" : "6466108c-d37a-4315-ba13-ce8620d98f4a" + }, + "Exception" : null + } ], + "variables" : [ "jtccontainersaspermissionstostring08594457bcce15971" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestcontainersaspermissionstostring[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestcontainersaspermissionstostring[1].json new file mode 100644 index 0000000000000..72b3dc194366b --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestcontainersaspermissionstostring[1].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionstostring060829cdfd27e9963?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C147D7A8\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d038be-501e-00c0-61fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:20 GMT", + "x-ms-client-request-id" : "36e731ce-e26b-44f1-98d6-2aa61cbdc3c2" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccontainersaspermissionstostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d038f4-501e-00c0-11fc-59ba32000000", + "Body" : "jtccontainersaspermissionstostringjtccontainersaspermissionstostring060829cdfd27e9963Fri, 23 Aug 2019 21:49:20 GMT\"0x8D72813C147D7A8\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:20 GMT", + "x-ms-client-request-id" : "e4349a1b-1944-47f5-b6a4-d7da74209c45", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionstostring060829cdfd27e9963?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d0390f-501e-00c0-2afc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:20 GMT", + "x-ms-client-request-id" : "e37d4890-4f2d-4e7a-8d73-5a2efd935287" + }, + "Exception" : null + } ], + "variables" : [ "jtccontainersaspermissionstostring060829cdfd27e9963" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestcontainersaspermissionstostring[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestcontainersaspermissionstostring[2].json new file mode 100644 index 0000000000000..ec513e0425fa4 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestcontainersaspermissionstostring[2].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionstostring0868168fd5b5fae09?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C1563305\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d0393e-501e-00c0-57fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:20 GMT", + "x-ms-client-request-id" : "65ecf47a-9343-40a2-b140-dac23390aab6" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccontainersaspermissionstostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d03977-501e-00c0-0dfc-59ba32000000", + "Body" : "jtccontainersaspermissionstostringjtccontainersaspermissionstostring0868168fd5b5fae09Fri, 23 Aug 2019 21:49:20 GMT\"0x8D72813C1563305\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:20 GMT", + "x-ms-client-request-id" : "b86db92b-4158-4348-82ec-976e4a321307", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionstostring0868168fd5b5fae09?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d0398e-501e-00c0-24fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:20 GMT", + "x-ms-client-request-id" : "775bee21-6a7c-4f8b-b231-e1a1a1b0cf22" + }, + "Exception" : null + } ], + "variables" : [ "jtccontainersaspermissionstostring0868168fd5b5fae09" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestcontainersaspermissionstostring[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestcontainersaspermissionstostring[3].json new file mode 100644 index 0000000000000..5680579269311 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestcontainersaspermissionstostring[3].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionstostring039398ac5422b31ea?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C16ECA13\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d03a00-501e-00c0-09fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:20 GMT", + "x-ms-client-request-id" : "19e424bb-fff5-498f-9adf-555a5b1ee3b1" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccontainersaspermissionstostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d03a19-501e-00c0-1ffc-59ba32000000", + "Body" : "jtccontainersaspermissionstostringjtccontainersaspermissionstostring039398ac5422b31eaFri, 23 Aug 2019 21:49:21 GMT\"0x8D72813C16ECA13\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:20 GMT", + "x-ms-client-request-id" : "01039cb6-71a8-422c-ab41-fcd25c243c54", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionstostring039398ac5422b31ea?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d03a38-501e-00c0-3afc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:20 GMT", + "x-ms-client-request-id" : "027c4b38-5579-4d74-aa91-e98e837d9c73" + }, + "Exception" : null + } ], + "variables" : [ "jtccontainersaspermissionstostring039398ac5422b31ea" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestcontainersaspermissionstostring[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestcontainersaspermissionstostring[4].json new file mode 100644 index 0000000000000..89de6789597b3 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestcontainersaspermissionstostring[4].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionstostring034985332771b102e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C17D2574\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d03a69-501e-00c0-67fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:20 GMT", + "x-ms-client-request-id" : "a5513593-0d08-44bc-8e33-0b53451897b4" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccontainersaspermissionstostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d03a8b-501e-00c0-05fc-59ba32000000", + "Body" : "jtccontainersaspermissionstostringjtccontainersaspermissionstostring034985332771b102eFri, 23 Aug 2019 21:49:21 GMT\"0x8D72813C17D2574\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:20 GMT", + "x-ms-client-request-id" : "e36e32b1-2a6a-4346-a831-aec2fb237e29", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionstostring034985332771b102e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d03aa6-501e-00c0-1afc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:20 GMT", + "x-ms-client-request-id" : "96df2227-7dbe-4371-86c7-3c59bfd6aebf" + }, + "Exception" : null + } ], + "variables" : [ "jtccontainersaspermissionstostring034985332771b102e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestcontainersaspermissionstostring[5].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestcontainersaspermissionstostring[5].json new file mode 100644 index 0000000000000..ae7af2e1631d5 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestcontainersaspermissionstostring[5].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionstostring011090013b045da53?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C18CB99C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d03ad3-501e-00c0-42fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:20 GMT", + "x-ms-client-request-id" : "6bda9f69-9400-411e-9a2b-b27c145f3967" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccontainersaspermissionstostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d03b04-501e-00c0-6efc-59ba32000000", + "Body" : "jtccontainersaspermissionstostringjtccontainersaspermissionstostring011090013b045da53Fri, 23 Aug 2019 21:49:21 GMT\"0x8D72813C18CB99C\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:20 GMT", + "x-ms-client-request-id" : "c8409033-e7c4-4154-bc47-f50bb19b46fe", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionstostring011090013b045da53?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d03b1f-501e-00c0-06fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:20 GMT", + "x-ms-client-request-id" : "7d18efe5-d913-409a-89f5-e9df0993659d" + }, + "Exception" : null + } ], + "variables" : [ "jtccontainersaspermissionstostring011090013b045da53" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestcontainersaspermissionstostring[6].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestcontainersaspermissionstostring[6].json new file mode 100644 index 0000000000000..a6c906b53f528 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestcontainersaspermissionstostring[6].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionstostring024251f754820fd0f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C19D5F7F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d03b3f-501e-00c0-21fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:20 GMT", + "x-ms-client-request-id" : "a045fed7-a510-4bee-91ab-eae666ae9ed0" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccontainersaspermissionstostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d03b5a-501e-00c0-3afc-59ba32000000", + "Body" : "jtccontainersaspermissionstostringjtccontainersaspermissionstostring024251f754820fd0fFri, 23 Aug 2019 21:49:21 GMT\"0x8D72813C19D5F7F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:20 GMT", + "x-ms-client-request-id" : "91837ad8-8143-497e-8a41-296e4e21ef97", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionstostring024251f754820fd0f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d03b7a-501e-00c0-59fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:20 GMT", + "x-ms-client-request-id" : "b1ac958c-3171-4e02-89ea-e3b17b9a1583" + }, + "Exception" : null + } ], + "variables" : [ "jtccontainersaspermissionstostring024251f754820fd0f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestiprangeparse[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestiprangeparse[0].json new file mode 100644 index 0000000000000..1c3880b0d9272 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestiprangeparse[0].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtciprangeparse0helpertestiprangeparsedbf227818bbe1ddc?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C2710FC7\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d04102-501e-00c0-6ffc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:22 GMT", + "x-ms-client-request-id" : "42337155-c5e3-4145-8d22-ed9e13b7afc0" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtciprangeparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d04126-501e-00c0-0ffc-59ba32000000", + "Body" : "jtciprangeparsejtciprangeparse0helpertestiprangeparsedbf227818bbe1ddcFri, 23 Aug 2019 21:49:22 GMT\"0x8D72813C2710FC7\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:22 GMT", + "x-ms-client-request-id" : "37fa0819-c068-4097-a106-f19902c23c43", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtciprangeparse0helpertestiprangeparsedbf227818bbe1ddc?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d04149-501e-00c0-30fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:22 GMT", + "x-ms-client-request-id" : "111d2d01-dd91-498f-80af-5c350d1b3165" + }, + "Exception" : null + } ], + "variables" : [ "jtciprangeparse0helpertestiprangeparsedbf227818bbe1ddc" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestiprangeparse[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestiprangeparse[1].json new file mode 100644 index 0000000000000..090d2397c97e3 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestiprangeparse[1].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtciprangeparse0helpertestiprangeparse0650470871039977?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C28055C2\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d04180-501e-00c0-64fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:22 GMT", + "x-ms-client-request-id" : "bb7fee19-ff68-4403-b18d-2aee7db8a569" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtciprangeparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d04194-501e-00c0-77fc-59ba32000000", + "Body" : "jtciprangeparsejtciprangeparse0helpertestiprangeparse0650470871039977Fri, 23 Aug 2019 21:49:22 GMT\"0x8D72813C28055C2\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:22 GMT", + "x-ms-client-request-id" : "40f7c8b8-292d-4301-9b1e-49972dafbc5a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtciprangeparse0helpertestiprangeparse0650470871039977?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d041ae-501e-00c0-0efc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:22 GMT", + "x-ms-client-request-id" : "f142b856-d390-4c46-9b21-9d3912980e58" + }, + "Exception" : null + } ], + "variables" : [ "jtciprangeparse0helpertestiprangeparse0650470871039977" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestiprangeparse[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestiprangeparse[2].json new file mode 100644 index 0000000000000..6c9cf1705e0a7 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestiprangeparse[2].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtciprangeparse0helpertestiprangeparse74c49122608f31d7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C28EB123\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d041d0-501e-00c0-2dfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:22 GMT", + "x-ms-client-request-id" : "99a05818-483a-4c30-9138-3ed8cbdb14e2" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtciprangeparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d04201-501e-00c0-58fc-59ba32000000", + "Body" : "jtciprangeparsejtciprangeparse0helpertestiprangeparse74c49122608f31d7Fri, 23 Aug 2019 21:49:22 GMT\"0x8D72813C28EB123\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:22 GMT", + "x-ms-client-request-id" : "6639e101-f40c-45c4-b750-f7be9aab427a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtciprangeparse0helpertestiprangeparse74c49122608f31d7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d0421f-501e-00c0-75fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:22 GMT", + "x-ms-client-request-id" : "47308e5f-008c-46cf-8103-868e4f412678" + }, + "Exception" : null + } ], + "variables" : [ "jtciprangeparse0helpertestiprangeparse74c49122608f31d7" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestiprangetostring[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestiprangetostring[0].json new file mode 100644 index 0000000000000..14ad2a0f08aa3 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestiprangetostring[0].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtciprangetostring0helpertestiprangetostringd495583177a43?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C2449DBC\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d03fc7-501e-00c0-4ffc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:21 GMT", + "x-ms-client-request-id" : "3ac22d9a-9477-4f05-a402-e7c1136be619" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtciprangetostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d03fe3-501e-00c0-69fc-59ba32000000", + "Body" : "jtciprangetostringjtciprangetostring0helpertestiprangetostringd495583177a43Fri, 23 Aug 2019 21:49:22 GMT\"0x8D72813C2449DBC\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:21 GMT", + "x-ms-client-request-id" : "7b7ce39f-dd77-4b99-b1ec-95836d87c722", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtciprangetostring0helpertestiprangetostringd495583177a43?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d04002-501e-00c0-03fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:21 GMT", + "x-ms-client-request-id" : "2d04dc0a-cf97-4259-84d9-7731d2d25d94" + }, + "Exception" : null + } ], + "variables" : [ "jtciprangetostring0helpertestiprangetostringd495583177a43" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestiprangetostring[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestiprangetostring[1].json new file mode 100644 index 0000000000000..35a89cf1b1fdb --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestiprangetostring[1].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtciprangetostring0helpertestiprangetostring402441081c2c6?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C2532039\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d04031-501e-00c0-2ffc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:21 GMT", + "x-ms-client-request-id" : "31e58a41-445e-44ff-bc8f-e89a064becb6" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtciprangetostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d04050-501e-00c0-4dfc-59ba32000000", + "Body" : "jtciprangetostringjtciprangetostring0helpertestiprangetostring402441081c2c6Fri, 23 Aug 2019 21:49:22 GMT\"0x8D72813C2532039\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:21 GMT", + "x-ms-client-request-id" : "a4b9078d-87ff-4540-bc14-215655e55608", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtciprangetostring0helpertestiprangetostring402441081c2c6?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d04077-501e-00c0-70fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:21 GMT", + "x-ms-client-request-id" : "d60fc291-55c3-4cdd-bd14-e2e5ea6b5bac" + }, + "Exception" : null + } ], + "variables" : [ "jtciprangetostring0helpertestiprangetostring402441081c2c6" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestiprangetostring[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestiprangetostring[2].json new file mode 100644 index 0000000000000..74f227d82761a --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestiprangetostring[2].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtciprangetostring0helpertestiprangetostringf4f251532c69c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C261A2B1\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d0409e-501e-00c0-13fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:22 GMT", + "x-ms-client-request-id" : "e24fe19b-9c87-4ba0-9d80-e9e878c66d4b" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtciprangetostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d040c0-501e-00c0-33fc-59ba32000000", + "Body" : "jtciprangetostringjtciprangetostring0helpertestiprangetostringf4f251532c69cFri, 23 Aug 2019 21:49:22 GMT\"0x8D72813C261A2B1\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:22 GMT", + "x-ms-client-request-id" : "8c18908c-eeea-4204-bb1d-d5bf0e2e52c0", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtciprangetostring0helpertestiprangetostringf4f251532c69c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d040d9-501e-00c0-4bfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:22 GMT", + "x-ms-client-request-id" : "915f92f5-78c0-4414-83bf-bf0299cdf856" + }, + "Exception" : null + } ], + "variables" : [ "jtciprangetostring0helpertestiprangetostringf4f251532c69c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestrequestproperty.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestrequestproperty.json new file mode 100644 index 0000000000000..c33b174f8ac3d --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestrequestproperty.json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrequestproperty0helpertestrequestproperty94641208db749?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BD31C5D1\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d01ed6-501e-00c0-17fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:13 GMT", + "x-ms-client-request-id" : "b850c150-c317-4f73-b3f4-02364ff5fa4e" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrequestproperty0helpertestrequestproperty94641208db749?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d01ef6-501e-00c0-35fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:13 GMT", + "x-ms-client-request-id" : "deb596df-688a-4003-a7e3-444f1e069f64" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcrequestproperty&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d01f17-501e-00c0-4ffc-59ba32000000", + "Body" : "jtcrequestproperty", + "Date" : "Fri, 23 Aug 2019 21:49:13 GMT", + "x-ms-client-request-id" : "38588cfc-baab-4943-a671-6e1af9d6f3d8", + "Content-Type" : "application/xml" + }, + "Exception" : null + } ], + "variables" : [ "jtcrequestproperty0helpertestrequestproperty94641208db749" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestsasprotocolparse[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestsasprotocolparse[0].json new file mode 100644 index 0000000000000..9f002fcb75a65 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestsasprotocolparse[0].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsasprotocolparse0helpertestsasprotocolparseb80710751c3e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C29D81D2\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d0425c-501e-00c0-2dfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:22 GMT", + "x-ms-client-request-id" : "fa47117d-f2c1-4c5a-9120-fff028edf882" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsasprotocolparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d0427e-501e-00c0-4cfc-59ba32000000", + "Body" : "jtcsasprotocolparsejtcsasprotocolparse0helpertestsasprotocolparseb80710751c3eFri, 23 Aug 2019 21:49:23 GMT\"0x8D72813C29D81D2\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:22 GMT", + "x-ms-client-request-id" : "2a4a1985-8598-4069-9bca-782d403b8ba1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsasprotocolparse0helpertestsasprotocolparseb80710751c3e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d04298-501e-00c0-62fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:22 GMT", + "x-ms-client-request-id" : "3bcf2623-5d36-45dd-ad12-b5024d08e965" + }, + "Exception" : null + } ], + "variables" : [ "jtcsasprotocolparse0helpertestsasprotocolparseb80710751c3e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestsasprotocolparse[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestsasprotocolparse[1].json new file mode 100644 index 0000000000000..d4997bb2c8089 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestsasprotocolparse[1].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsasprotocolparse0helpertestsasprotocolparseaa8801273afe?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C2AC7995\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d042c1-501e-00c0-06fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:22 GMT", + "x-ms-client-request-id" : "d7c05a70-5f73-47ca-a9a9-334981452116" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsasprotocolparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d042e9-501e-00c0-2dfc-59ba32000000", + "Body" : "jtcsasprotocolparsejtcsasprotocolparse0helpertestsasprotocolparseaa8801273afeFri, 23 Aug 2019 21:49:23 GMT\"0x8D72813C2AC7995\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:22 GMT", + "x-ms-client-request-id" : "c4e22d2b-0a83-4c56-ae30-b80a20208c31", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsasprotocolparse0helpertestsasprotocolparseaa8801273afe?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d04303-501e-00c0-46fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:22 GMT", + "x-ms-client-request-id" : "14f7d5a4-e087-4dfe-a526-ff8eaefe953b" + }, + "Exception" : null + } ], + "variables" : [ "jtcsasprotocolparse0helpertestsasprotocolparseaa8801273afe" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosign[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosign[0].json new file mode 100644 index 0000000000000..0c8ac9e278d9a --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosign[0].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosign0397377d751f80985?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BDDCFC7E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d02336-501e-00c0-72fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:14 GMT", + "x-ms-client-request-id" : "45cfbdc4-298c-4f2d-9f12-009a2af2c621" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturesstringtosign&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d0234d-501e-00c0-07fc-59ba32000000", + "Body" : "jtcservicesassignaturesstringtosignjtcservicesassignaturesstringtosign0397377d751f80985Fri, 23 Aug 2019 21:49:15 GMT\"0x8D72813BDDCFC7E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:14 GMT", + "x-ms-client-request-id" : "47c69202-3968-4d08-a34a-00aed6cfb74c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosign0397377d751f80985?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d0236e-501e-00c0-24fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:14 GMT", + "x-ms-client-request-id" : "e4ba91f7-37fd-4c8b-a657-765901291ad2" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturesstringtosign0397377d751f80985" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosign[10].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosign[10].json new file mode 100644 index 0000000000000..73a20c2fc5256 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosign[10].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosign007330dde240224db?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BE85736B\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d02736-501e-00c0-08fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:15 GMT", + "x-ms-client-request-id" : "1778f0b6-1b08-43a8-82a5-d9fc5106a882" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturesstringtosign&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d02769-501e-00c0-34fc-59ba32000000", + "Body" : "jtcservicesassignaturesstringtosignjtcservicesassignaturesstringtosign007330dde240224dbFri, 23 Aug 2019 21:49:16 GMT\"0x8D72813BE85736B\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:15 GMT", + "x-ms-client-request-id" : "85732d54-451f-43a0-a7b9-463e54db721c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosign007330dde240224db?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d0277e-501e-00c0-46fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:15 GMT", + "x-ms-client-request-id" : "034bcf45-8ff3-477a-906e-54157891a158" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturesstringtosign007330dde240224db" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosign[11].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosign[11].json new file mode 100644 index 0000000000000..14695207951c9 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosign[11].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosign0044294fcfa930744?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BE966781\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d027a1-501e-00c0-66fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:15 GMT", + "x-ms-client-request-id" : "7c0a5b1d-9764-4866-b028-265685abc856" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturesstringtosign&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d027b7-501e-00c0-7bfc-59ba32000000", + "Body" : "jtcservicesassignaturesstringtosignjtcservicesassignaturesstringtosign0044294fcfa930744Fri, 23 Aug 2019 21:49:16 GMT\"0x8D72813BE966781\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:15 GMT", + "x-ms-client-request-id" : "f513974d-a080-4282-aac6-828d242283c7", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosign0044294fcfa930744?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d027cc-501e-00c0-10fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:15 GMT", + "x-ms-client-request-id" : "8d914608-8d50-48f4-bc6c-eabc5303eeda" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturesstringtosign0044294fcfa930744" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosign[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosign[1].json new file mode 100644 index 0000000000000..7fad812da6c18 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosign[1].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosign04872315078de2d82?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BDEC4271\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d0239b-501e-00c0-4afc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:14 GMT", + "x-ms-client-request-id" : "35901ba6-9818-435d-8ff4-beedf70d5539" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturesstringtosign&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d023b0-501e-00c0-5dfc-59ba32000000", + "Body" : "jtcservicesassignaturesstringtosignjtcservicesassignaturesstringtosign04872315078de2d82Fri, 23 Aug 2019 21:49:15 GMT\"0x8D72813BDEC4271\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:14 GMT", + "x-ms-client-request-id" : "0b88e269-9927-467b-8a19-97a5941aade1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosign04872315078de2d82?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d023c6-501e-00c0-72fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:14 GMT", + "x-ms-client-request-id" : "8ad70b6e-b5b0-47af-b0a0-c202bcd0296f" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturesstringtosign04872315078de2d82" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosign[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosign[2].json new file mode 100644 index 0000000000000..b8f7436e1cc54 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosign[2].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosign0640456ec9e25ee02?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BDFB3A37\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d023ea-501e-00c0-12fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:14 GMT", + "x-ms-client-request-id" : "b43ce29f-d095-48ad-b2d7-f01ab7c75cf6" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturesstringtosign&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d02404-501e-00c0-28fc-59ba32000000", + "Body" : "jtcservicesassignaturesstringtosignjtcservicesassignaturesstringtosign0640456ec9e25ee02Fri, 23 Aug 2019 21:49:15 GMT\"0x8D72813BDFB3A37\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:14 GMT", + "x-ms-client-request-id" : "618102a5-22bb-4bcc-b5a9-d7628311d3c9", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosign0640456ec9e25ee02?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d02420-501e-00c0-40fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:14 GMT", + "x-ms-client-request-id" : "fb7d3e46-c68b-44f6-9710-170e751ef502" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturesstringtosign0640456ec9e25ee02" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosign[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosign[3].json new file mode 100644 index 0000000000000..49d4dd438af94 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosign[3].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosign087906b102f1938d8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BE0ACE62\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d02442-501e-00c0-62fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:14 GMT", + "x-ms-client-request-id" : "1ed0a6ab-b833-445a-b540-fadd78d0be38" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturesstringtosign&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d02460-501e-00c0-7efc-59ba32000000", + "Body" : "jtcservicesassignaturesstringtosignjtcservicesassignaturesstringtosign087906b102f1938d8Fri, 23 Aug 2019 21:49:15 GMT\"0x8D72813BE0ACE62\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:14 GMT", + "x-ms-client-request-id" : "71edde1f-6101-4efa-a5ab-4be9825c7158", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosign087906b102f1938d8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d0247c-501e-00c0-15fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:14 GMT", + "x-ms-client-request-id" : "6e9e48fb-473d-45b8-a2b2-7da883283472" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturesstringtosign087906b102f1938d8" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosign[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosign[4].json new file mode 100644 index 0000000000000..84252cbb3fbed --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosign[4].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosign095828316f307826e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BE19C623\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d024a0-501e-00c0-33fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:14 GMT", + "x-ms-client-request-id" : "299514c5-017c-49b3-a033-72f78d416f0e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturesstringtosign&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d024cb-501e-00c0-57fc-59ba32000000", + "Body" : "jtcservicesassignaturesstringtosignjtcservicesassignaturesstringtosign095828316f307826eFri, 23 Aug 2019 21:49:15 GMT\"0x8D72813BE19C623\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:14 GMT", + "x-ms-client-request-id" : "e4d372ba-6f06-4268-9972-2698de75f8dd", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosign095828316f307826e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d024e9-501e-00c0-74fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:14 GMT", + "x-ms-client-request-id" : "361966f8-4acc-4897-9788-334d28fa09cf" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturesstringtosign095828316f307826e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosign[5].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosign[5].json new file mode 100644 index 0000000000000..e7bcb3b421949 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosign[5].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosign069038aafcc4f7360?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BE284890\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d02516-501e-00c0-1cfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:14 GMT", + "x-ms-client-request-id" : "2a25ad42-9d2b-410d-be27-d23d247b12f7" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturesstringtosign&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d02537-501e-00c0-3afc-59ba32000000", + "Body" : "jtcservicesassignaturesstringtosignjtcservicesassignaturesstringtosign069038aafcc4f7360Fri, 23 Aug 2019 21:49:15 GMT\"0x8D72813BE284890\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:14 GMT", + "x-ms-client-request-id" : "85991e78-d7bd-4fad-bcd8-cd30401d82bc", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosign069038aafcc4f7360?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d0254c-501e-00c0-4dfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:15 GMT", + "x-ms-client-request-id" : "a104e8db-73a6-4c38-bebf-abceb2a5345b" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturesstringtosign069038aafcc4f7360" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosign[6].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosign[6].json new file mode 100644 index 0000000000000..bb53cf73db1d9 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosign[6].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosign066491826fea6b440?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BE37193F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d02567-501e-00c0-66fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:15 GMT", + "x-ms-client-request-id" : "b0b87cee-ae0e-45d4-82d1-5749a2a4f8e1" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturesstringtosign&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d0258b-501e-00c0-05fc-59ba32000000", + "Body" : "jtcservicesassignaturesstringtosignjtcservicesassignaturesstringtosign066491826fea6b440Fri, 23 Aug 2019 21:49:15 GMT\"0x8D72813BE37193F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:15 GMT", + "x-ms-client-request-id" : "5ab15789-6459-4ef6-92d0-fc0d99d875f7", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosign066491826fea6b440?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d0259c-501e-00c0-16fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:15 GMT", + "x-ms-client-request-id" : "e12dbd54-30de-4075-beae-735541db224e" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturesstringtosign066491826fea6b440" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosign[7].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosign[7].json new file mode 100644 index 0000000000000..9e230b5856889 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosign[7].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosign017816668526a8372?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BE46AD6C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d025bc-501e-00c0-36fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:15 GMT", + "x-ms-client-request-id" : "aa681a58-1f63-4bbc-b943-94d10814b9c6" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturesstringtosign&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d025de-501e-00c0-55fc-59ba32000000", + "Body" : "jtcservicesassignaturesstringtosignjtcservicesassignaturesstringtosign017816668526a8372Fri, 23 Aug 2019 21:49:15 GMT\"0x8D72813BE46AD6C\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:15 GMT", + "x-ms-client-request-id" : "8703597b-aef9-4bc3-a334-61a78d2489ba", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosign017816668526a8372?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d025f1-501e-00c0-67fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:15 GMT", + "x-ms-client-request-id" : "56cb3ca9-b7fa-4053-b616-fa9022054ee9" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturesstringtosign017816668526a8372" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosign[8].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosign[8].json new file mode 100644 index 0000000000000..c80a9940cc192 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosign[8].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosign02720955797e059ea?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BE552FF2\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d0260a-501e-00c0-80fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:15 GMT", + "x-ms-client-request-id" : "2fd7decc-4b1d-475d-993c-499647935cf9" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturesstringtosign&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d0261b-501e-00c0-0ffc-59ba32000000", + "Body" : "jtcservicesassignaturesstringtosignjtcservicesassignaturesstringtosign02720955797e059eaFri, 23 Aug 2019 21:49:15 GMT\"0x8D72813BE552FF2\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:15 GMT", + "x-ms-client-request-id" : "e5493402-1fca-4e9a-8035-9650bb884378", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosign02720955797e059ea?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d0263f-501e-00c0-2dfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:15 GMT", + "x-ms-client-request-id" : "a6614505-f5a3-4551-819a-ac04cb99532c" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturesstringtosign02720955797e059ea" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosign[9].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosign[9].json new file mode 100644 index 0000000000000..feb5889bb51ad --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosign[9].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosign0603026eab761ff50?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BE76548D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d026d9-501e-00c0-38fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:15 GMT", + "x-ms-client-request-id" : "b0952692-5311-4da1-a0a5-e36da4c341b4" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturesstringtosign&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d026fd-501e-00c0-58fc-59ba32000000", + "Body" : "jtcservicesassignaturesstringtosignjtcservicesassignaturesstringtosign0603026eab761ff50Fri, 23 Aug 2019 21:49:16 GMT\"0x8D72813BE76548D\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:15 GMT", + "x-ms-client-request-id" : "fa3e8ac4-3f77-4b7d-bd6c-471dc3b5a966", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosign0603026eab761ff50?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d02718-501e-00c0-70fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:15 GMT", + "x-ms-client-request-id" : "1b18cc0f-d00d-4b47-b715-99312cf1cfc3" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturesstringtosign0603026eab761ff50" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosignuserdelegationkey[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosignuserdelegationkey[0].json new file mode 100644 index 0000000000000..2f355f4090951 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosignuserdelegationkey[0].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey03612577?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BEA5865F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d027ee-501e-00c0-2ffc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:15 GMT", + "x-ms-client-request-id" : "1352165c-3667-460b-8293-e898a77ca69c" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturesstringtosignuserdelegationkey&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d02809-501e-00c0-46fc-59ba32000000", + "Body" : "jtcservicesassignaturesstringtosignuserdelegationkeyjtcservicesassignaturesstringtosignuserdelegationkey03612577Fri, 23 Aug 2019 21:49:16 GMT\"0x8D72813BEA5865F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:15 GMT", + "x-ms-client-request-id" : "336b5c4d-0199-49c5-bffb-27c3cfe084fc", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey03612577?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d02818-501e-00c0-53fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:15 GMT", + "x-ms-client-request-id" : "92f4e570-3b21-47eb-a54f-cb05e8fa9a86" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturesstringtosignuserdelegationkey03612577" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosignuserdelegationkey[10].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosignuserdelegationkey[10].json new file mode 100644 index 0000000000000..00badbc315ca3 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosignuserdelegationkey[10].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey0421203e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BF63D4B0\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d02c7b-501e-00c0-51fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:17 GMT", + "x-ms-client-request-id" : "6aeb9b83-e47b-46a9-aa8a-c1aa9d41dbe8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturesstringtosignuserdelegationkey&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d02c95-501e-00c0-69fc-59ba32000000", + "Body" : "jtcservicesassignaturesstringtosignuserdelegationkeyjtcservicesassignaturesstringtosignuserdelegationkey0421203eFri, 23 Aug 2019 21:49:17 GMT\"0x8D72813BF63D4B0\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:17 GMT", + "x-ms-client-request-id" : "50541b5a-05fd-4957-a5d1-5f4af25e5fcf", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey0421203e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d02cb1-501e-00c0-02fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:17 GMT", + "x-ms-client-request-id" : "fc46e4c9-835b-4837-a0f7-94382fd4d349" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturesstringtosignuserdelegationkey0421203e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosignuserdelegationkey[11].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosignuserdelegationkey[11].json new file mode 100644 index 0000000000000..76b8ed004a1a5 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosignuserdelegationkey[11].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey05081385?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BF7341D0\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d02cce-501e-00c0-1efc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:17 GMT", + "x-ms-client-request-id" : "12f0c6a6-d832-4f6b-9fcd-ffef44ff77ed" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturesstringtosignuserdelegationkey&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d02ce7-501e-00c0-32fc-59ba32000000", + "Body" : "jtcservicesassignaturesstringtosignuserdelegationkeyjtcservicesassignaturesstringtosignuserdelegationkey05081385Fri, 23 Aug 2019 21:49:17 GMT\"0x8D72813BF7341D0\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:17 GMT", + "x-ms-client-request-id" : "e55d054e-b183-4c55-ac51-3a40e1c11e3a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey05081385?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d02cfd-501e-00c0-48fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:17 GMT", + "x-ms-client-request-id" : "fd61b8c3-35c7-4669-a2ea-32773f249fd0" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturesstringtosignuserdelegationkey05081385" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosignuserdelegationkey[12].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosignuserdelegationkey[12].json new file mode 100644 index 0000000000000..53b22df3cd658 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosignuserdelegationkey[12].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey04163291?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BF81C43E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d02d27-501e-00c0-6dfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:17 GMT", + "x-ms-client-request-id" : "3b58013e-cac9-49fb-917e-10645054ee78" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturesstringtosignuserdelegationkey&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d02d49-501e-00c0-0afc-59ba32000000", + "Body" : "jtcservicesassignaturesstringtosignuserdelegationkeyjtcservicesassignaturesstringtosignuserdelegationkey04163291Fri, 23 Aug 2019 21:49:17 GMT\"0x8D72813BF81C43E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:17 GMT", + "x-ms-client-request-id" : "8250f37a-b9ef-48bb-a70e-ace682db0845", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey04163291?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d02d66-501e-00c0-23fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:17 GMT", + "x-ms-client-request-id" : "0719e77e-6f02-42c3-aaab-6cfc70398ee0" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturesstringtosignuserdelegationkey04163291" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosignuserdelegationkey[13].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosignuserdelegationkey[13].json new file mode 100644 index 0000000000000..418a23b27af64 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosignuserdelegationkey[13].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey075062b5?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BF901F9F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d02d85-501e-00c0-3ffc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:17 GMT", + "x-ms-client-request-id" : "e9b86098-98aa-4eb6-8939-93bf6e9133f0" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturesstringtosignuserdelegationkey&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d02da2-501e-00c0-59fc-59ba32000000", + "Body" : "jtcservicesassignaturesstringtosignuserdelegationkeyjtcservicesassignaturesstringtosignuserdelegationkey075062b5Fri, 23 Aug 2019 21:49:17 GMT\"0x8D72813BF901F9F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:17 GMT", + "x-ms-client-request-id" : "e785f666-a8df-4ef9-b47f-278bc4aa7de1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey075062b5?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d02db5-501e-00c0-6afc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:17 GMT", + "x-ms-client-request-id" : "e0165bc7-5242-4f78-a2a1-a20809f41f77" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturesstringtosignuserdelegationkey075062b5" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosignuserdelegationkey[14].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosignuserdelegationkey[14].json new file mode 100644 index 0000000000000..baeac5b27d6dd --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosignuserdelegationkey[14].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey0204869a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BFA0774F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d02de5-501e-00c0-15fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:17 GMT", + "x-ms-client-request-id" : "c00fb14b-5fcc-47fe-94b6-75efbcb28dd9" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturesstringtosignuserdelegationkey&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d02e12-501e-00c0-3dfc-59ba32000000", + "Body" : "jtcservicesassignaturesstringtosignuserdelegationkeyjtcservicesassignaturesstringtosignuserdelegationkey0204869aFri, 23 Aug 2019 21:49:18 GMT\"0x8D72813BFA0774F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:17 GMT", + "x-ms-client-request-id" : "beb76bde-8cfb-4568-82ee-ebbd02285a65", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey0204869a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d02e30-501e-00c0-58fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:17 GMT", + "x-ms-client-request-id" : "7df42bc5-3f73-44f3-97f2-c49dc10b6fb3" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturesstringtosignuserdelegationkey0204869a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosignuserdelegationkey[15].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosignuserdelegationkey[15].json new file mode 100644 index 0000000000000..a8b55a65e8359 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosignuserdelegationkey[15].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey09328955?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BFB03293\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d02e5d-501e-00c0-01fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:17 GMT", + "x-ms-client-request-id" : "267af04a-3d7e-4ef5-9b93-393a78fee011" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturesstringtosignuserdelegationkey&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d02e7c-501e-00c0-1dfc-59ba32000000", + "Body" : "jtcservicesassignaturesstringtosignuserdelegationkeyjtcservicesassignaturesstringtosignuserdelegationkey09328955Fri, 23 Aug 2019 21:49:18 GMT\"0x8D72813BFB03293\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:17 GMT", + "x-ms-client-request-id" : "b4559431-d85d-4d3d-999c-fc107831d0c2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey09328955?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d02e91-501e-00c0-2efc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:17 GMT", + "x-ms-client-request-id" : "51459e07-35b1-4bdc-91e5-43f9572df477" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturesstringtosignuserdelegationkey09328955" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosignuserdelegationkey[16].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosignuserdelegationkey[16].json new file mode 100644 index 0000000000000..0f99e8bebe855 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosignuserdelegationkey[16].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey0121053f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BFBF0343\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d02eb2-501e-00c0-4cfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:17 GMT", + "x-ms-client-request-id" : "80e390fb-f1de-46a2-904d-5e1ed8850a5b" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturesstringtosignuserdelegationkey&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d02ece-501e-00c0-66fc-59ba32000000", + "Body" : "jtcservicesassignaturesstringtosignuserdelegationkeyjtcservicesassignaturesstringtosignuserdelegationkey0121053fFri, 23 Aug 2019 21:49:18 GMT\"0x8D72813BFBF0343\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:17 GMT", + "x-ms-client-request-id" : "bba5e948-6c93-4745-b9a4-4758f130470a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey0121053f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d02ee6-501e-00c0-7dfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:17 GMT", + "x-ms-client-request-id" : "1cc707be-6695-4b71-8694-db0e30fc0ee2" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturesstringtosignuserdelegationkey0121053f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosignuserdelegationkey[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosignuserdelegationkey[1].json new file mode 100644 index 0000000000000..42ffbc9026d20 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosignuserdelegationkey[1].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey01275162?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BEB45718\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d0282e-501e-00c0-69fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:15 GMT", + "x-ms-client-request-id" : "70b97abb-2164-4d3a-bdfb-e7eaaf03fb06" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturesstringtosignuserdelegationkey&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d0284b-501e-00c0-02fc-59ba32000000", + "Body" : "jtcservicesassignaturesstringtosignuserdelegationkeyjtcservicesassignaturesstringtosignuserdelegationkey01275162Fri, 23 Aug 2019 21:49:16 GMT\"0x8D72813BEB45718\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:15 GMT", + "x-ms-client-request-id" : "5618e39c-878b-40be-9685-a982e03bdb8c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey01275162?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d02856-501e-00c0-0cfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:15 GMT", + "x-ms-client-request-id" : "f096cdc3-232b-4f9d-ad1b-86d2b130e2b8" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturesstringtosignuserdelegationkey01275162" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosignuserdelegationkey[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosignuserdelegationkey[2].json new file mode 100644 index 0000000000000..0b8ea9086381a --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosignuserdelegationkey[2].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey06200983?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BEC2D990\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d0286c-501e-00c0-21fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:15 GMT", + "x-ms-client-request-id" : "d509139c-cec2-42f5-9c44-87acf38339f9" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturesstringtosignuserdelegationkey&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d02884-501e-00c0-38fc-59ba32000000", + "Body" : "jtcservicesassignaturesstringtosignuserdelegationkeyjtcservicesassignaturesstringtosignuserdelegationkey06200983Fri, 23 Aug 2019 21:49:16 GMT\"0x8D72813BEC2D990\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:15 GMT", + "x-ms-client-request-id" : "b5e5972f-f492-4b83-947c-916a7a30423a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey06200983?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d0289c-501e-00c0-4ffc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:16 GMT", + "x-ms-client-request-id" : "232db278-49da-4c6b-9223-680d33cd0131" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturesstringtosignuserdelegationkey06200983" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosignuserdelegationkey[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosignuserdelegationkey[3].json new file mode 100644 index 0000000000000..0d78f38efebdd --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosignuserdelegationkey[3].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey0646282b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BED37F65\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d028c0-501e-00c0-6cfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:16 GMT", + "x-ms-client-request-id" : "860360aa-d63c-4b9e-841f-d1c3b85ccf55" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturesstringtosignuserdelegationkey&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d028dd-501e-00c0-07fc-59ba32000000", + "Body" : "jtcservicesassignaturesstringtosignuserdelegationkeyjtcservicesassignaturesstringtosignuserdelegationkey0646282bFri, 23 Aug 2019 21:49:16 GMT\"0x8D72813BED37F65\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:16 GMT", + "x-ms-client-request-id" : "51569d26-670b-4429-9a74-d312f461b45a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey0646282b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d028f8-501e-00c0-1efc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:16 GMT", + "x-ms-client-request-id" : "385e2a53-d143-4941-8753-7b25da83a2da" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturesstringtosignuserdelegationkey0646282b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosignuserdelegationkey[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosignuserdelegationkey[4].json new file mode 100644 index 0000000000000..3724368f59685 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosignuserdelegationkey[4].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey068148da?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BEE29E48\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d02921-501e-00c0-45fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:16 GMT", + "x-ms-client-request-id" : "f1564b07-735f-4f59-a0e8-96ecbcefe426" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturesstringtosignuserdelegationkey&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d02982-501e-00c0-1bfc-59ba32000000", + "Body" : "jtcservicesassignaturesstringtosignuserdelegationkeyjtcservicesassignaturesstringtosignuserdelegationkey068148daFri, 23 Aug 2019 21:49:16 GMT\"0x8D72813BEE29E48\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:16 GMT", + "x-ms-client-request-id" : "6d3301ff-f3d0-4336-87b0-a30685d1cf58", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey068148da?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d029a6-501e-00c0-3dfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:16 GMT", + "x-ms-client-request-id" : "60154b6b-e3bb-446f-bc89-0165604c0c84" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturesstringtosignuserdelegationkey068148da" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosignuserdelegationkey[5].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosignuserdelegationkey[5].json new file mode 100644 index 0000000000000..ef02fa2fb43d2 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosignuserdelegationkey[5].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey00201051?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BF0FACB4\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d02a64-501e-00c0-6afc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:16 GMT", + "x-ms-client-request-id" : "89f84e16-ee38-4633-98ff-0c7be94db987" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturesstringtosignuserdelegationkey&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d02a8b-501e-00c0-0efc-59ba32000000", + "Body" : "jtcservicesassignaturesstringtosignuserdelegationkeyjtcservicesassignaturesstringtosignuserdelegationkey00201051Fri, 23 Aug 2019 21:49:17 GMT\"0x8D72813BF0FACB4\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:16 GMT", + "x-ms-client-request-id" : "8f2864f8-e574-48b5-a56e-c39830e2ddc1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey00201051?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d02aa4-501e-00c0-23fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:16 GMT", + "x-ms-client-request-id" : "b423b189-4403-4b7f-a93b-cf0cffead256" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturesstringtosignuserdelegationkey00201051" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosignuserdelegationkey[6].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosignuserdelegationkey[6].json new file mode 100644 index 0000000000000..83adad26e27a6 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosignuserdelegationkey[6].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey0560182b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BF1F19CA\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d02acd-501e-00c0-46fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:16 GMT", + "x-ms-client-request-id" : "c9fa0c7a-0fc4-418a-b598-d2c83f2e9771" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturesstringtosignuserdelegationkey&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d02aea-501e-00c0-61fc-59ba32000000", + "Body" : "jtcservicesassignaturesstringtosignuserdelegationkeyjtcservicesassignaturesstringtosignuserdelegationkey0560182bFri, 23 Aug 2019 21:49:17 GMT\"0x8D72813BF1F19CA\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:16 GMT", + "x-ms-client-request-id" : "b9ebb8f3-6729-4a6c-8097-d63945b92fef", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey0560182b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d02afe-501e-00c0-74fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:16 GMT", + "x-ms-client-request-id" : "3e54443d-a7c5-4641-bfa9-fb59d95d06cc" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturesstringtosignuserdelegationkey0560182b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosignuserdelegationkey[7].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosignuserdelegationkey[7].json new file mode 100644 index 0000000000000..282f44fda0aae --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosignuserdelegationkey[7].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey06813161?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BF2E38B7\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d02b27-501e-00c0-1bfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:16 GMT", + "x-ms-client-request-id" : "6f004d92-badf-4d87-83bc-8f21c25c7ffd" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturesstringtosignuserdelegationkey&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d02b4d-501e-00c0-3cfc-59ba32000000", + "Body" : "jtcservicesassignaturesstringtosignuserdelegationkeyjtcservicesassignaturesstringtosignuserdelegationkey06813161Fri, 23 Aug 2019 21:49:17 GMT\"0x8D72813BF2E38B7\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:16 GMT", + "x-ms-client-request-id" : "152e8df5-2b09-4879-b670-9d338097adcf", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey06813161?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d02b68-501e-00c0-55fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:16 GMT", + "x-ms-client-request-id" : "2ce79376-3d58-4a11-927f-27c97e859290" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturesstringtosignuserdelegationkey06813161" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosignuserdelegationkey[8].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosignuserdelegationkey[8].json new file mode 100644 index 0000000000000..fc030654a9ee3 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosignuserdelegationkey[8].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey08836818?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BF3D0959\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d02b93-501e-00c0-7efc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:16 GMT", + "x-ms-client-request-id" : "7758e507-c783-4dd2-a0da-c667dce0a24d" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturesstringtosignuserdelegationkey&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d02baf-501e-00c0-16fc-59ba32000000", + "Body" : "jtcservicesassignaturesstringtosignuserdelegationkeyjtcservicesassignaturesstringtosignuserdelegationkey08836818Fri, 23 Aug 2019 21:49:17 GMT\"0x8D72813BF3D0959\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:16 GMT", + "x-ms-client-request-id" : "e91890ac-cae4-4060-9b87-c229a64bb493", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey08836818?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d02bca-501e-00c0-2ffc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:16 GMT", + "x-ms-client-request-id" : "b391a3d1-f64b-44a8-83b6-5c5fb51a8543" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturesstringtosignuserdelegationkey08836818" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosignuserdelegationkey[9].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosignuserdelegationkey[9].json new file mode 100644 index 0000000000000..d5d1f08da7f97 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturesstringtosignuserdelegationkey[9].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey0674236c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BF4BB2F1\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d02bea-501e-00c0-4cfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:16 GMT", + "x-ms-client-request-id" : "b4d1de3c-13b8-48d3-a386-8149d7b66776" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturesstringtosignuserdelegationkey&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d02c16-501e-00c0-71fc-59ba32000000", + "Body" : "jtcservicesassignaturesstringtosignuserdelegationkeyjtcservicesassignaturesstringtosignuserdelegationkey0674236cFri, 23 Aug 2019 21:49:17 GMT\"0x8D72813BF4BB2F1\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:16 GMT", + "x-ms-client-request-id" : "8e32dcb6-f695-42cd-82d0-7d66fa3c5161", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey0674236c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d02c2b-501e-00c0-05fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:16 GMT", + "x-ms-client-request-id" : "eb50f20c-cb8f-48b3-a843-cb7564ae8f31" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturesstringtosignuserdelegationkey0674236c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturevaluescanonicalizedresource[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturevaluescanonicalizedresource[0].json new file mode 100644 index 0000000000000..88fd2e3e40e2c --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturevaluescanonicalizedresource[0].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturevaluescanonicalizedresource0714563e49?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BFCDACDC\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d02efe-501e-00c0-15fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:17 GMT", + "x-ms-client-request-id" : "4fc06680-3a2b-4612-8b31-33462df98c1b" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturevaluescanonicalizedresource&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d02f21-501e-00c0-34fc-59ba32000000", + "Body" : "jtcservicesassignaturevaluescanonicalizedresourcejtcservicesassignaturevaluescanonicalizedresource0714563e49Fri, 23 Aug 2019 21:49:18 GMT\"0x8D72813BFCDACDC\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:17 GMT", + "x-ms-client-request-id" : "1880fc93-82ea-4c0a-b5af-0e527f58be36", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturevaluescanonicalizedresource0714563e49?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d02f42-501e-00c0-50fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:17 GMT", + "x-ms-client-request-id" : "f46003ef-b04a-4fd7-8f8c-275b6c6fd874" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturevaluescanonicalizedresource0714563e49" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturevaluescanonicalizedresource[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturevaluescanonicalizedresource[1].json new file mode 100644 index 0000000000000..4fde759416bcf --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturevaluescanonicalizedresource[1].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturevaluescanonicalizedresource004470ff5f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BFDC0838\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d02f64-501e-00c0-6efc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:17 GMT", + "x-ms-client-request-id" : "a6e8100d-2ee1-4f1e-94b7-b114e2c7de79" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturevaluescanonicalizedresource&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d02f7f-501e-00c0-08fc-59ba32000000", + "Body" : "jtcservicesassignaturevaluescanonicalizedresourcejtcservicesassignaturevaluescanonicalizedresource004470ff5fFri, 23 Aug 2019 21:49:18 GMT\"0x8D72813BFDC0838\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:17 GMT", + "x-ms-client-request-id" : "42a693f1-60d6-45b8-be22-4593ae6f43cc", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturevaluescanonicalizedresource004470ff5f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d02f98-501e-00c0-1ffc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:17 GMT", + "x-ms-client-request-id" : "ba22dd4e-bce6-47f7-a013-bb48248ece02" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturevaluescanonicalizedresource004470ff5f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturevaluescanonicalizedresource[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturevaluescanonicalizedresource[2].json new file mode 100644 index 0000000000000..7a355c2fd6c39 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturevaluescanonicalizedresource[2].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturevaluescanonicalizedresource003580a36d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BFEAD8E3\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d02fb3-501e-00c0-37fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:17 GMT", + "x-ms-client-request-id" : "6fe25490-e50a-4c09-8482-dcf8d6902e46" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturevaluescanonicalizedresource&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d02fd5-501e-00c0-53fc-59ba32000000", + "Body" : "jtcservicesassignaturevaluescanonicalizedresourcejtcservicesassignaturevaluescanonicalizedresource003580a36dFri, 23 Aug 2019 21:49:18 GMT\"0x8D72813BFEAD8E3\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:17 GMT", + "x-ms-client-request-id" : "7d6f3799-2503-4e3d-bbea-2d75d0e41224", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturevaluescanonicalizedresource003580a36d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d02feb-501e-00c0-66fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:17 GMT", + "x-ms-client-request-id" : "065181d9-b01a-49e0-8f91-ffeb8e0df698" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturevaluescanonicalizedresource003580a36d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturevaluesia[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturevaluesia[0].json new file mode 100644 index 0000000000000..3100aeba35402 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturevaluesia[0].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturevaluesia04660947af1fe1e7d54?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BFFB57BC\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d03012-501e-00c0-0afc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:18 GMT", + "x-ms-client-request-id" : "64efcdc2-fbb8-4f62-ac3a-36f50b76d48f" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturevaluesia&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d0302a-501e-00c0-21fc-59ba32000000", + "Body" : "jtcservicesassignaturevaluesiajtcservicesassignaturevaluesia04660947af1fe1e7d54Fri, 23 Aug 2019 21:49:18 GMT\"0x8D72813BFFB57BC\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:18 GMT", + "x-ms-client-request-id" : "b1ab337c-d4f1-4209-8853-307c812a34c2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturevaluesia04660947af1fe1e7d54?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d03048-501e-00c0-3cfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:18 GMT", + "x-ms-client-request-id" : "a85a8de8-be6d-4695-a72e-105b6149aed1" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturevaluesia04660947af1fe1e7d54" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturevaluesia[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturevaluesia[1].json new file mode 100644 index 0000000000000..d5897ba614045 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturevaluesia[1].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturevaluesia03349072c10f3d8bab4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C00C24A8\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d0306b-501e-00c0-58fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:18 GMT", + "x-ms-client-request-id" : "e8046bbe-470d-4a2a-886c-568215121682" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturevaluesia&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d03091-501e-00c0-7bfc-59ba32000000", + "Body" : "jtcservicesassignaturevaluesiajtcservicesassignaturevaluesia03349072c10f3d8bab4Fri, 23 Aug 2019 21:49:18 GMT\"0x8D72813C00C24A8\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:18 GMT", + "x-ms-client-request-id" : "4c82738b-1360-47ec-81e2-a4e1ae221a9a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturevaluesia03349072c10f3d8bab4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d030a8-501e-00c0-11fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:18 GMT", + "x-ms-client-request-id" : "c12d58d6-98ee-40da-95f0-c1c53ae60feb" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturevaluesia03349072c10f3d8bab4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturevaluesia[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturevaluesia[2].json new file mode 100644 index 0000000000000..56fe9994ce1a2 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturevaluesia[2].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturevaluesia06154250f1c1cf534b4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C01B6A9D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d030c7-501e-00c0-2efc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:18 GMT", + "x-ms-client-request-id" : "06b2c295-821c-4ee4-be1f-32e1de56fb0d" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturevaluesia&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d030e5-501e-00c0-4bfc-59ba32000000", + "Body" : "jtcservicesassignaturevaluesiajtcservicesassignaturevaluesia06154250f1c1cf534b4Fri, 23 Aug 2019 21:49:18 GMT\"0x8D72813C01B6A9D\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:18 GMT", + "x-ms-client-request-id" : "80429a69-9469-4f37-b55f-a4ca112f0ad6", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturevaluesia06154250f1c1cf534b4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d030f9-501e-00c0-5ffc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:18 GMT", + "x-ms-client-request-id" : "0f859c0f-873d-406c-8435-7181e8dfeddc" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturevaluesia06154250f1c1cf534b4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturevaluesnetworktestblobsnapshot.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturevaluesnetworktestblobsnapshot.json new file mode 100644 index 0000000000000..fbb8a8d0c37ef --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTestservicesassignaturevaluesnetworktestblobsnapshot.json @@ -0,0 +1,231 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturevaluesnetworktestblobsnapshot00973756c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BDA340E9\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d02192-501e-00c0-02fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:14 GMT", + "x-ms-client-request-id" : "5e51d577-eff0-41da-b54a-9bffdcbbd4fb" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturevaluesnetworktestblobsnapshot10201430a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BDA87242\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d021c2-501e-00c0-2afc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:14 GMT", + "x-ms-client-request-id" : "6a210b3c-f7ce-4eb8-bdc5-cf2378ac1c7a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturevaluesnetworktestblobsnapshot10201430a/javablobservicesassignaturevaluesnetworktestblobsnapshot284499", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:14 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:14 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "\"0x8D72813BDADEEA4\"", + "Content-Length" : "0", + "x-ms-request-id" : "77d021e6-501e-00c0-4bfc-59ba32000000", + "x-ms-client-request-id" : "2096360f-4e39-4cc2-90d2-a42d0345eb51" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturevaluesnetworktestblobsnapshot10201430a/javablobservicesassignaturevaluesnetworktestblobsnapshot284499?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-snapshot" : "2019-08-23T21:49:14.8327160Z", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813BDADEEA4\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d02209-501e-00c0-67fc-59ba32000000", + "x-ms-request-server-encrypted" : "false", + "Date" : "Fri, 23 Aug 2019 21:49:14 GMT", + "x-ms-client-request-id" : "62906b46-f061-4c3c-9f27-ed2e04a60621" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturevaluesnetworktestblobsnapshot10201430a/javablobservicesassignaturevaluesnetworktestblobsnapshot284499?sv=2018-11-09&spr=https&st=2019-08-23T21%3A49%3A14Z&se=2019-08-24T21%3A49%3A14Z&sip=0.0.0.0-255.255.255.255&sr=bs&sp=racwd&sig=REDACTED&rscc=cache&rscd=disposition&rsce=encoding&rscl=language&rsct=type", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Server" : "Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "AuthenticationFailed", + "retry-after" : "0", + "Content-Length" : "447", + "StatusCode" : "403", + "x-ms-request-id" : "77d0225c-501e-00c0-30fc-59ba32000000", + "Body" : "AuthenticationFailedServer failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.\nRequestId:77d0225c-501e-00c0-30fc-59ba32000000\nTime:2019-08-23T21:49:14.9008614ZThe specified signed resource is not allowed for the this resource level", + "Date" : "Fri, 23 Aug 2019 21:49:14 GMT", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturevaluesnetworktestblobsnapshot10201430a/javablobservicesassignaturevaluesnetworktestblobsnapshot284499?snapshot=2019-08-23T21%3a49%3a14.8327160Z&sv=2018-11-09&spr=https&st=2019-08-23T21%3A49%3A14Z&se=2019-08-24T21%3A49%3A14Z&sip=0.0.0.0-255.255.255.255&sr=bs&sp=racwd&sig=REDACTED&rscc=cache&rscd=disposition&rsce=encoding&rscl=language&rsct=type", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:14 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:49:14 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-snapshot" : "2019-08-23T21:49:14.8327160Z", + "Cache-Control" : "cache", + "ETag" : "\"0x8D72813BDADEEA4\"", + "Content-Disposition" : "disposition", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:49:14 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "77d0227f-501e-00c0-4ffc-59ba32000000", + "Body" : "default", + "x-ms-client-request-id" : "cf6fe629-66bd-4e67-98e6-ced1fe21be74", + "Content-Language" : "language", + "Content-Type" : "type" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturevaluesnetworktestblobsnapshot10201430a/javablobservicesassignaturevaluesnetworktestblobsnapshot284499?snapshot=2019-08-23T21%3a49%3a14.8327160Z&sv=2018-11-09&spr=https&st=2019-08-23T21%3A49%3A14Z&se=2019-08-24T21%3A49%3A14Z&sip=0.0.0.0-255.255.255.255&sr=bs&sp=racwd&sig=REDACTED&rscc=cache&rscd=disposition&rsce=encoding&rscl=language&rsct=type", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:14 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:49:14 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-snapshot" : "2019-08-23T21:49:14.8327160Z", + "x-ms-access-tier" : "Hot", + "Cache-Control" : "cache", + "ETag" : "\"0x8D72813BDADEEA4\"", + "Content-Disposition" : "disposition", + "Content-Encoding" : "encoding", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:49:14 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "77d022a3-501e-00c0-6dfc-59ba32000000", + "x-ms-client-request-id" : "1d9774f4-2389-459b-8c32-4e83a862a44f", + "Content-Language" : "language", + "Content-Type" : "type" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturevaluesnetworktestblobsnapshot&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d022bd-501e-00c0-06fc-59ba32000000", + "Body" : "jtcservicesassignaturevaluesnetworktestblobsnapshotjtcservicesassignaturevaluesnetworktestblobsnapshot00973756cFri, 23 Aug 2019 21:49:14 GMT\"0x8D72813BDA340E9\"unlockedavailable$account-encryption-keyfalsefalsefalsejtcservicesassignaturevaluesnetworktestblobsnapshot10201430aFri, 23 Aug 2019 21:49:14 GMT\"0x8D72813BDA87242\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:14 GMT", + "x-ms-client-request-id" : "5ccd2de2-4002-4e32-927d-18a071dbf888", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturevaluesnetworktestblobsnapshot00973756c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d022d7-501e-00c0-1dfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:14 GMT", + "x-ms-client-request-id" : "53ff19ca-1f97-4abb-909a-9b69ac3a86ef" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturevaluesnetworktestblobsnapshot10201430a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d022f4-501e-00c0-38fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:14 GMT", + "x-ms-client-request-id" : "b81035d1-1c1b-4050-ac65-a80512071c07" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturevaluesnetworktestblobsnapshot00973756c", "jtcservicesassignaturevaluesnetworktestblobsnapshot10201430a", "javablobservicesassignaturevaluesnetworktestblobsnapshot284499", "2019-08-23T21:49:14.890Z", "2019-08-23T21:49:14.890Z" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTesturlparser.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTesturlparser.json new file mode 100644 index 0000000000000..d3f794884dad0 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/HelperTesturlparser.json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcurlparser0helpertesturlparser93a6035066936cd9585?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C5461623\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d057b6-501e-00c0-07fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:26 GMT", + "x-ms-client-request-id" : "5716e3d6-7ae7-4876-9b90-73282a8f7458" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcurlparser&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d057d6-501e-00c0-24fc-59ba32000000", + "Body" : "jtcurlparserjtcurlparser0helpertesturlparser93a6035066936cd9585Fri, 23 Aug 2019 21:49:27 GMT\"0x8D72813C5461623\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:26 GMT", + "x-ms-client-request-id" : "b0c14fd6-acd4-4cdc-9a69-aa36a3f4a651", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcurlparser0helpertesturlparser93a6035066936cd9585?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d05815-501e-00c0-5afc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:26 GMT", + "x-ms-client-request-id" : "20919273-8e41-4925-b350-50fce5d0ee00" + }, + "Exception" : null + } ], + "variables" : [ "jtcurlparser0helpertesturlparser93a6035066936cd9585" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestclearpage.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestclearpage.json new file mode 100644 index 0000000000000..035cbb65dd5a2 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestclearpage.json @@ -0,0 +1,151 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpage0pageblobapitestclearpagec94614174395fbab7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D0A13ED4\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fb74e-301e-0094-08fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:46 GMT", + "x-ms-client-request-id" : "aad28a8c-2c24-42f7-b063-98bc5652c4cd" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpage0pageblobapitestclearpagec94614174395fbab7/javablobclearpage1pageblobapitestclearpagec94182519c4bcb", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D0A6474C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fb759-301e-0094-12fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:46 GMT", + "x-ms-client-request-id" : "d33dd76c-05ae-472f-a486-4173f0802d33" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpage0pageblobapitestclearpagec94614174395fbab7/javablobclearpage1pageblobapitestclearpagec94182519c4bcb?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "KNPAbzKTDi0=", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:46 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:46 GMT", + "ETag" : "\"0x8D72813D0AB78C0\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77fb766-301e-0094-1efc-5950b8000000", + "x-ms-client-request-id" : "3cfb512b-163b-41bf-a47a-bc209dc93497" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpage0pageblobapitestclearpagec94614174395fbab7/javablobclearpage1pageblobapitestclearpagec94182519c4bcb?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D0B0F85A\"", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fb77f-301e-0094-33fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:46 GMT", + "x-ms-client-request-id" : "8ec23732-2772-45a5-b217-9e57380d652d" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpage0pageblobapitestclearpagec94614174395fbab7/javablobclearpage1pageblobapitestclearpagec94182519c4bcb?comp=pagelist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-blob-content-length" : "512", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:46 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:49:46 GMT", + "ETag" : "\"0x8D72813D0B0F85A\"", + "x-ms-request-id" : "f77fb796-301e-0094-47fc-5950b8000000", + "Body" : "", + "x-ms-client-request-id" : "cdf12657-c4ec-47bb-85c8-f7f70c2764bc", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcclearpage&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fb7ab-301e-0094-58fc-5950b8000000", + "Body" : "jtcclearpagejtcclearpage0pageblobapitestclearpagec94614174395fbab7Fri, 23 Aug 2019 21:49:46 GMT\"0x8D72813D0A13ED4\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:46 GMT", + "x-ms-client-request-id" : "9f27f6ad-6afd-4d28-b9ba-f69d59d341e3", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpage0pageblobapitestclearpagec94614174395fbab7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fb7b6-301e-0094-61fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:46 GMT", + "x-ms-client-request-id" : "e6e44bd9-b4b8-479a-ac6e-1ea89c0b3d35" + }, + "Exception" : null + } ], + "variables" : [ "jtcclearpage0pageblobapitestclearpagec94614174395fbab7", "javablobclearpage1pageblobapitestclearpagec94182519c4bcb", "39ac9c53-b8aa-435d-aa0b-f58871093844" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestclearpageerror.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestclearpageerror.json new file mode 100644 index 0000000000000..d845be197b63f --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestclearpageerror.json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpageerror0pageblobapitestclearpageerrord3118800585c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D31850E2\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fbf1f-301e-0094-37fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:50 GMT", + "x-ms-client-request-id" : "c337fd27-24e0-46a3-805d-ad414268bd72" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpageerror0pageblobapitestclearpageerrord3118800585c/javablobclearpageerror1pageblobapitestclearpageerrord31401664", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D31E4B6D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fbf32-301e-0094-46fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:50 GMT", + "x-ms-client-request-id" : "c4aba9ee-dee7-4495-9c25-40b4252b159d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpageerror0pageblobapitestclearpageerrord3118800585c/javablobclearpageerror2pageblobapitestclearpageerrord3144661b?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "BlobNotFound", + "retry-after" : "0", + "Content-Length" : "215", + "StatusCode" : "404", + "x-ms-request-id" : "f77fbf40-301e-0094-53fc-5950b8000000", + "Body" : "BlobNotFoundThe specified blob does not exist.\nRequestId:f77fbf40-301e-0094-53fc-5950b8000000\nTime:2019-08-23T21:49:50.8011002Z", + "Date" : "Fri, 23 Aug 2019 21:49:50 GMT", + "x-ms-client-request-id" : "382048ec-bfaa-4757-94f9-9f156430c253", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcclearpageerror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fbf47-301e-0094-5afc-5950b8000000", + "Body" : "jtcclearpageerrorjtcclearpageerror0pageblobapitestclearpageerrord3118800585cFri, 23 Aug 2019 21:49:50 GMT\"0x8D72813D31850E2\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:50 GMT", + "x-ms-client-request-id" : "575b1598-01e8-4ba5-9758-b933cadf37d8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpageerror0pageblobapitestclearpageerrord3118800585c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fbf50-301e-0094-62fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:50 GMT", + "x-ms-client-request-id" : "6c23d997-b87c-419e-a7c7-fdc44fdc361c" + }, + "Exception" : null + } ], + "variables" : [ "jtcclearpageerror0pageblobapitestclearpageerrord3118800585c", "javablobclearpageerror1pageblobapitestclearpageerrord31401664", "javablobclearpageerror2pageblobapitestclearpageerrord3144661b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestclearpagemin.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestclearpagemin.json new file mode 100644 index 0000000000000..1a8347117f6aa --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestclearpagemin.json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagemin0pageblobapitestclearpagemin001167591cc9b2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D0C74657\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fb7c4-301e-0094-6cfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:46 GMT", + "x-ms-client-request-id" : "694d6913-928e-4bc8-aafa-cd1947bb4b43" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagemin0pageblobapitestclearpagemin001167591cc9b2/javablobclearpagemin1pageblobapitestclearpagemin0018597914f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D0CE246D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fb7d4-301e-0094-78fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:46 GMT", + "x-ms-client-request-id" : "3907bd5d-ea09-48d2-b614-f6d70a078351" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagemin0pageblobapitestclearpagemin001167591cc9b2/javablobclearpagemin1pageblobapitestclearpagemin0018597914f?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D0D32EB3\"", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fb7e5-301e-0094-08fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:46 GMT", + "x-ms-client-request-id" : "34c1afed-bf61-42db-a377-2eaa69e509ac" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcclearpagemin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fb7f2-301e-0094-12fc-5950b8000000", + "Body" : "jtcclearpageminjtcclearpagemin0pageblobapitestclearpagemin001167591cc9b2Fri, 23 Aug 2019 21:49:46 GMT\"0x8D72813D0C74657\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:46 GMT", + "x-ms-client-request-id" : "fc920b1c-5a45-46af-bd26-9af8187cdc09", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagemin0pageblobapitestclearpagemin001167591cc9b2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fb7f8-301e-0094-18fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:46 GMT", + "x-ms-client-request-id" : "98647a1f-673c-4a66-b6dc-8e9b7dba0258" + }, + "Exception" : null + } ], + "variables" : [ "jtcclearpagemin0pageblobapitestclearpagemin001167591cc9b2", "javablobclearpagemin1pageblobapitestclearpagemin0018597914f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestclearpagesac[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestclearpagesac[0].json new file mode 100644 index 0000000000000..555872403ad31 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestclearpagesac[0].json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesac0pageblobapitestclearpagesaccb565514e4a9e0?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D0E2EB1E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:47 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fb807-301e-0094-26fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:46 GMT", + "x-ms-client-request-id" : "da61b4f4-f8f9-45f3-9993-fd46092d18a3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesac0pageblobapitestclearpagesaccb565514e4a9e0/javablobclearpagesac1pageblobapitestclearpagesaccb578113884", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D0E8B7CF\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:47 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fb818-301e-0094-33fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:46 GMT", + "x-ms-client-request-id" : "9e6d53e6-e894-42f9-9e74-2ecfe9cb3571" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesac0pageblobapitestclearpagesaccb565514e4a9e0/javablobclearpagesac1pageblobapitestclearpagesaccb578113884?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "AyfKQDTg4aA=", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:47 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:46 GMT", + "ETag" : "\"0x8D72813D0F1BAB3\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77fb83c-301e-0094-4ffc-5950b8000000", + "x-ms-client-request-id" : "4f05430a-8d4e-49f1-8d17-d6207eb45238" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesac0pageblobapitestclearpagesaccb565514e4a9e0/javablobclearpagesac1pageblobapitestclearpagesaccb578113884?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D0F76169\"", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:47 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fb84b-301e-0094-5cfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:46 GMT", + "x-ms-client-request-id" : "c3deb27f-a2c8-476e-bad4-b5d4498911d7" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcclearpagesac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fb85d-301e-0094-6dfc-5950b8000000", + "Body" : "jtcclearpagesacjtcclearpagesac0pageblobapitestclearpagesaccb565514e4a9e0Fri, 23 Aug 2019 21:49:47 GMT\"0x8D72813D0E2EB1E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:46 GMT", + "x-ms-client-request-id" : "97e4889b-9b80-45a5-8793-f3f961fb5ddf", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesac0pageblobapitestclearpagesaccb565514e4a9e0?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fb86b-301e-0094-77fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:46 GMT", + "x-ms-client-request-id" : "b67d6e0c-80fa-4043-948f-69659dcf274d" + }, + "Exception" : null + } ], + "variables" : [ "jtcclearpagesac0pageblobapitestclearpagesaccb565514e4a9e0", "javablobclearpagesac1pageblobapitestclearpagesaccb578113884", "20629fa7-2f01-4a4c-9337-e2666120a0db" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestclearpagesac[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestclearpagesac[1].json new file mode 100644 index 0000000000000..7b99eb0d77f77 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestclearpagesac[1].json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesac0pageblobapitestclearpagesacade45661bf5ef2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D10792AA\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:47 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fb87a-301e-0094-03fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:46 GMT", + "x-ms-client-request-id" : "50be3f3e-4175-400a-9700-52c378924e20" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesac0pageblobapitestclearpagesacade45661bf5ef2/javablobclearpagesac1pageblobapitestclearpagesacade16844672", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D10D5FCF\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:47 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fb88b-301e-0094-10fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:46 GMT", + "x-ms-client-request-id" : "d687ba3a-84e1-47de-b108-626b2202c0cf" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesac0pageblobapitestclearpagesacade45661bf5ef2/javablobclearpagesac1pageblobapitestclearpagesacade16844672?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "xd1T84/CkMU=", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:47 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:47 GMT", + "ETag" : "\"0x8D72813D1126A1F\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77fb89a-301e-0094-1cfc-5950b8000000", + "x-ms-client-request-id" : "a488de9c-45eb-46c6-9aee-a37d1b57c99a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesac0pageblobapitestclearpagesacade45661bf5ef2/javablobclearpagesac1pageblobapitestclearpagesacade16844672?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D116B0E7\"", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:47 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fb8a5-301e-0094-26fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:47 GMT", + "x-ms-client-request-id" : "e77e2403-af15-4f08-aae6-f3bdbb9bc860" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcclearpagesac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fb8ae-301e-0094-2efc-5950b8000000", + "Body" : "jtcclearpagesacjtcclearpagesac0pageblobapitestclearpagesacade45661bf5ef2Fri, 23 Aug 2019 21:49:47 GMT\"0x8D72813D10792AA\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:47 GMT", + "x-ms-client-request-id" : "3bd1fcae-e8af-463d-bb39-afc0605cb38b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesac0pageblobapitestclearpagesacade45661bf5ef2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fb8b6-301e-0094-35fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:47 GMT", + "x-ms-client-request-id" : "89e5c263-b837-4f9f-9963-f989d6fbc850" + }, + "Exception" : null + } ], + "variables" : [ "jtcclearpagesac0pageblobapitestclearpagesacade45661bf5ef2", "javablobclearpagesac1pageblobapitestclearpagesacade16844672", "a894e378-70e0-4bb0-8856-55270c880e72" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestclearpagesac[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestclearpagesac[2].json new file mode 100644 index 0000000000000..64fe2763b4cd7 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestclearpagesac[2].json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesac0pageblobapitestclearpagesacf5e9420198023c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D1255AD1\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:47 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fb8c5-301e-0094-42fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:47 GMT", + "x-ms-client-request-id" : "83b15ce6-15fc-49f8-89df-abd33096de55" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesac0pageblobapitestclearpagesacf5e9420198023c/javablobclearpagesac1pageblobapitestclearpagesacf5e99249f14", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D12A64D5\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:47 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fb8cf-301e-0094-4afc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:47 GMT", + "x-ms-client-request-id" : "00d0ea3c-ac5e-4696-9eae-ee48f7710708" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesac0pageblobapitestclearpagesacf5e9420198023c/javablobclearpagesac1pageblobapitestclearpagesacf5e99249f14?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "c8gYAuF5xIE=", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:47 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:47 GMT", + "ETag" : "\"0x8D72813D12F47FF\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77fb8dc-301e-0094-55fc-5950b8000000", + "x-ms-client-request-id" : "160e4bbf-514e-4b32-8c84-fd7cd8234351" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesac0pageblobapitestclearpagesacf5e9420198023c/javablobclearpagesac1pageblobapitestclearpagesacf5e99249f14?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D1373932\"", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:47 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fb8e6-301e-0094-5dfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:47 GMT", + "x-ms-client-request-id" : "222ed1e8-3da1-4214-9fab-7b2ab15cd629" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcclearpagesac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fb8fb-301e-0094-6ffc-5950b8000000", + "Body" : "jtcclearpagesacjtcclearpagesac0pageblobapitestclearpagesacf5e9420198023cFri, 23 Aug 2019 21:49:47 GMT\"0x8D72813D1255AD1\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:47 GMT", + "x-ms-client-request-id" : "2cd1f4b6-49ce-4706-98ac-40167defb43c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesac0pageblobapitestclearpagesacf5e9420198023c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fb911-301e-0094-7efc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:47 GMT", + "x-ms-client-request-id" : "3459fa16-ae87-43d8-86cf-31a48e57bc64" + }, + "Exception" : null + } ], + "variables" : [ "jtcclearpagesac0pageblobapitestclearpagesacf5e9420198023c", "javablobclearpagesac1pageblobapitestclearpagesacf5e99249f14", "e7c75f32-9947-4693-a6c0-9a285887192d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestclearpagesac[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestclearpagesac[3].json new file mode 100644 index 0000000000000..d59120f03cafc --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestclearpagesac[3].json @@ -0,0 +1,159 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesac0pageblobapitestclearpagesac96d45425ea0a6c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D148A28B\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:47 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fb921-301e-0094-0bfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:47 GMT", + "x-ms-client-request-id" : "9e0fe44c-990e-4be8-9e72-a9a14b1fdb00" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesac0pageblobapitestclearpagesac96d45425ea0a6c/javablobclearpagesac1pageblobapitestclearpagesac96d559341a7", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D14DD416\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:47 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fb931-301e-0094-19fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:47 GMT", + "x-ms-client-request-id" : "20c3bc00-764c-432d-b819-8928c22bb6ea" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesac0pageblobapitestclearpagesac96d45425ea0a6c/javablobclearpagesac1pageblobapitestclearpagesac96d559341a7?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "jIPeDJnpNXM=", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:47 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:47 GMT", + "ETag" : "\"0x8D72813D152B732\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77fb944-301e-0094-27fc-5950b8000000", + "x-ms-client-request-id" : "87a4a6c0-bef8-4d25-834a-fce57085a84f" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesac0pageblobapitestclearpagesac96d45425ea0a6c/javablobclearpagesac1pageblobapitestclearpagesac96d559341a7", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:47 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:49:47 GMT", + "x-ms-blob-type" : "PageBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72813D152B732\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:49:47 GMT", + "Content-Length" : "512", + "x-ms-request-id" : "f77fb950-301e-0094-32fc-5950b8000000", + "x-ms-client-request-id" : "768e9e57-9a2e-4e98-a922-a40dbd1be5ee", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesac0pageblobapitestclearpagesac96d45425ea0a6c/javablobclearpagesac1pageblobapitestclearpagesac96d559341a7?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D15B1DC3\"", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:47 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fb95f-301e-0094-40fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:47 GMT", + "x-ms-client-request-id" : "88a02613-15f0-405c-960f-3d8e05b357c6" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcclearpagesac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fb96c-301e-0094-4cfc-5950b8000000", + "Body" : "jtcclearpagesacjtcclearpagesac0pageblobapitestclearpagesac96d45425ea0a6cFri, 23 Aug 2019 21:49:47 GMT\"0x8D72813D148A28B\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:47 GMT", + "x-ms-client-request-id" : "0a4e391f-f16a-4225-9f1f-b37596ab34c1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesac0pageblobapitestclearpagesac96d45425ea0a6c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fb977-301e-0094-54fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:47 GMT", + "x-ms-client-request-id" : "acb4ec05-a3aa-4077-be2a-2df03c8dfe5f" + }, + "Exception" : null + } ], + "variables" : [ "jtcclearpagesac0pageblobapitestclearpagesac96d45425ea0a6c", "javablobclearpagesac1pageblobapitestclearpagesac96d559341a7", "5a248409-7841-4d4c-aa77-0aa8b4ef5930" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestclearpagesac[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestclearpagesac[4].json new file mode 100644 index 0000000000000..e444ede8eb3e4 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestclearpagesac[4].json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesac0pageblobapitestclearpagesaca8a68727886744?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D169C6D6\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:47 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fb98d-301e-0094-69fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:47 GMT", + "x-ms-client-request-id" : "f092154b-c393-41ef-85bc-e1b921006159" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesac0pageblobapitestclearpagesaca8a68727886744/javablobclearpagesac1pageblobapitestclearpagesaca8a58881a96", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D16EF8BA\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:47 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fb9a1-301e-0094-76fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:47 GMT", + "x-ms-client-request-id" : "a24f695b-a3a7-4487-85d2-9edd66b120ff" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesac0pageblobapitestclearpagesaca8a68727886744/javablobclearpagesac1pageblobapitestclearpagesaca8a58881a96?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "VoPAzf4vY7o=", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:47 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:47 GMT", + "ETag" : "\"0x8D72813D1742A20\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77fb9b2-301e-0094-06fc-5950b8000000", + "x-ms-client-request-id" : "66ad1d03-0568-4532-9e70-8bbefb70c900" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesac0pageblobapitestclearpagesaca8a68727886744/javablobclearpagesac1pageblobapitestclearpagesaca8a58881a96?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D17870F2\"", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:48 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fb9bc-301e-0094-0ffc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:47 GMT", + "x-ms-client-request-id" : "477c36b4-469c-4ddc-9ac6-65d349c1721b" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcclearpagesac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fb9d0-301e-0094-20fc-5950b8000000", + "Body" : "jtcclearpagesacjtcclearpagesac0pageblobapitestclearpagesaca8a68727886744Fri, 23 Aug 2019 21:49:47 GMT\"0x8D72813D169C6D6\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:47 GMT", + "x-ms-client-request-id" : "a878fe33-5463-429f-866a-fe2fb78c7c81", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesac0pageblobapitestclearpagesaca8a68727886744?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fb9e4-301e-0094-30fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:47 GMT", + "x-ms-client-request-id" : "4185e8e6-9907-4505-80b1-b264a2c25939" + }, + "Exception" : null + } ], + "variables" : [ "jtcclearpagesac0pageblobapitestclearpagesaca8a68727886744", "javablobclearpagesac1pageblobapitestclearpagesaca8a58881a96", "9ac81331-c651-49d4-8b0c-887a3b928759" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestclearpagesac[5].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestclearpagesac[5].json new file mode 100644 index 0000000000000..b5a170b8df468 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestclearpagesac[5].json @@ -0,0 +1,149 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesac0pageblobapitestclearpagesac1b674248e74c89?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D1878F07\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:48 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fb9f7-301e-0094-42fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:47 GMT", + "x-ms-client-request-id" : "3a2d005c-904c-45da-8b7c-584a507354b1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesac0pageblobapitestclearpagesac1b674248e74c89/javablobclearpagesac1pageblobapitestclearpagesac1b6136753c0", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D18DFA09\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:48 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fba0a-301e-0094-51fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:47 GMT", + "x-ms-client-request-id" : "62c63dc3-69aa-43b3-bb20-520d144e0c52" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesac0pageblobapitestclearpagesac1b674248e74c89/javablobclearpagesac1pageblobapitestclearpagesac1b6136753c0?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "cCQgg4x/xeg=", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:48 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:47 GMT", + "ETag" : "\"0x8D72813D192DD38\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77fba17-301e-0094-5dfc-5950b8000000", + "x-ms-client-request-id" : "82012885-2acc-42e2-8377-c5b330586183" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesac0pageblobapitestclearpagesac1b674248e74c89/javablobclearpagesac1pageblobapitestclearpagesac1b6136753c0?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D192DD38\"", + "x-ms-lease-id" : "46cde987-447f-430f-bed6-84dae5cfcc62", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:48 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fba2d-301e-0094-71fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:47 GMT", + "x-ms-client-request-id" : "806e925f-94b6-4f26-97ab-44db7f8ae7b5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesac0pageblobapitestclearpagesac1b674248e74c89/javablobclearpagesac1pageblobapitestclearpagesac1b6136753c0?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D19C2E54\"", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:48 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fba41-301e-0094-04fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:47 GMT", + "x-ms-client-request-id" : "1c8bf092-3014-4e3a-b2dd-1d46f6e051db" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcclearpagesac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fba5b-301e-0094-1afc-5950b8000000", + "Body" : "jtcclearpagesacjtcclearpagesac0pageblobapitestclearpagesac1b674248e74c89Fri, 23 Aug 2019 21:49:48 GMT\"0x8D72813D1878F07\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:47 GMT", + "x-ms-client-request-id" : "a173fc02-9d82-43f3-9b4b-e2df398d817f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesac0pageblobapitestclearpagesac1b674248e74c89?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fba6a-301e-0094-27fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:47 GMT", + "x-ms-client-request-id" : "3a02e236-812f-4abf-93c1-c39bc9650a16" + }, + "Exception" : null + } ], + "variables" : [ "jtcclearpagesac0pageblobapitestclearpagesac1b674248e74c89", "javablobclearpagesac1pageblobapitestclearpagesac1b6136753c0", "91e979fe-740c-4560-ae6a-34979e9cc32d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestclearpagesac[6].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestclearpagesac[6].json new file mode 100644 index 0000000000000..a85456d049e77 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestclearpagesac[6].json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesac0pageblobapitestclearpagesac273151985bc270?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D1AA616E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:48 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fba84-301e-0094-3dfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:47 GMT", + "x-ms-client-request-id" : "e3c0ad21-b161-48f6-b4b0-4459a3802497" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesac0pageblobapitestclearpagesac273151985bc270/javablobclearpagesac1pageblobapitestclearpagesac27347572b14", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D1AFE238\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:48 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fba94-301e-0094-49fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:48 GMT", + "x-ms-client-request-id" : "84b12a5f-b4fb-4f1a-8f0f-6fb1628d0443" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesac0pageblobapitestclearpagesac273151985bc270/javablobclearpagesac1pageblobapitestclearpagesac27347572b14?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "MbemdRTC3iQ=", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:48 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:48 GMT", + "ETag" : "\"0x8D72813D1B5139F\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77fbaab-301e-0094-5dfc-5950b8000000", + "x-ms-client-request-id" : "8e050dd4-ab58-4de8-9406-d4b98db443e6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesac0pageblobapitestclearpagesac273151985bc270/javablobclearpagesac1pageblobapitestclearpagesac27347572b14?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D1B9A8A4\"", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:48 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fbac5-301e-0094-72fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:48 GMT", + "x-ms-client-request-id" : "a0284b66-956c-498a-8c79-284216a215ed" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcclearpagesac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fbacd-301e-0094-78fc-5950b8000000", + "Body" : "jtcclearpagesacjtcclearpagesac0pageblobapitestclearpagesac273151985bc270Fri, 23 Aug 2019 21:49:48 GMT\"0x8D72813D1AA616E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:48 GMT", + "x-ms-client-request-id" : "124fc20a-f091-4050-a1fe-619f317953ea", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesac0pageblobapitestclearpagesac273151985bc270?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fbad9-301e-0094-02fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:48 GMT", + "x-ms-client-request-id" : "337c0914-a0f3-4746-98dc-56ea44852ced" + }, + "Exception" : null + } ], + "variables" : [ "jtcclearpagesac0pageblobapitestclearpagesac273151985bc270", "javablobclearpagesac1pageblobapitestclearpagesac27347572b14", "80e41055-d65a-4de3-9256-4b48fe004dd7" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestclearpagesac[7].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestclearpagesac[7].json new file mode 100644 index 0000000000000..4b31926f64b88 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestclearpagesac[7].json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesac0pageblobapitestclearpagesacf3e34131a42a02?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D1C8027E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:48 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fbaf0-301e-0094-16fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:48 GMT", + "x-ms-client-request-id" : "2c4bc5ef-0389-44ab-b7e2-f0526933552a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesac0pageblobapitestclearpagesacf3e34131a42a02/javablobclearpagesac1pageblobapitestclearpagesacf3e76964d19", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D1CD356C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:48 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fbb01-301e-0094-25fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:48 GMT", + "x-ms-client-request-id" : "39a87534-557f-4144-8e2b-3f46e9b79023" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesac0pageblobapitestclearpagesacf3e34131a42a02/javablobclearpagesac1pageblobapitestclearpagesacf3e76964d19?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "rA+DT4PxUwo=", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:48 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:48 GMT", + "ETag" : "\"0x8D72813D1D2189B\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77fbb11-301e-0094-31fc-5950b8000000", + "x-ms-client-request-id" : "1d5f0393-e590-4b88-a56e-8491b7a24499" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesac0pageblobapitestclearpagesacf3e34131a42a02/javablobclearpagesac1pageblobapitestclearpagesacf3e76964d19?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D1DA5806\"", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:48 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fbb3b-301e-0094-55fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:48 GMT", + "x-ms-client-request-id" : "81e6f7b3-1ca7-4df3-8efc-a50ba5945da2" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcclearpagesac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fbb4a-301e-0094-62fc-5950b8000000", + "Body" : "jtcclearpagesacjtcclearpagesac0pageblobapitestclearpagesacf3e34131a42a02Fri, 23 Aug 2019 21:49:48 GMT\"0x8D72813D1C8027E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:48 GMT", + "x-ms-client-request-id" : "87fd68a0-8d54-42f6-a5d3-50be2f85044f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesac0pageblobapitestclearpagesacf3e34131a42a02?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fbb59-301e-0094-6ffc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:48 GMT", + "x-ms-client-request-id" : "14e292cd-e089-47b9-b02a-7934b3a2ec41" + }, + "Exception" : null + } ], + "variables" : [ "jtcclearpagesac0pageblobapitestclearpagesacf3e34131a42a02", "javablobclearpagesac1pageblobapitestclearpagesacf3e76964d19", "5a83b2c3-85d7-4980-bd2c-193b9a336190" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestclearpagesac[8].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestclearpagesac[8].json new file mode 100644 index 0000000000000..7220b960a97df --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestclearpagesac[8].json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesac0pageblobapitestclearpagesac74430402a880c6?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D1E9EA58\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:48 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fbb69-301e-0094-7ffc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:48 GMT", + "x-ms-client-request-id" : "689ec2f1-14f9-4651-84c6-6eda3ef0f913" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesac0pageblobapitestclearpagesac74430402a880c6/javablobclearpagesac1pageblobapitestclearpagesac74408035b2d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D1EF6BCE\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:48 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fbb81-301e-0094-14fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:48 GMT", + "x-ms-client-request-id" : "3777b1d7-911b-4fbc-9663-f4e69dbbea7a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesac0pageblobapitestclearpagesac74430402a880c6/javablobclearpagesac1pageblobapitestclearpagesac74408035b2d?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "qOz50PTCStQ=", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:48 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:48 GMT", + "ETag" : "\"0x8D72813D1F47622\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77fbb8b-301e-0094-1dfc-5950b8000000", + "x-ms-client-request-id" : "bc931f9a-1e39-4021-badd-faa384c27ff2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesac0pageblobapitestclearpagesac74430402a880c6/javablobclearpagesac1pageblobapitestclearpagesac74408035b2d?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D1F8BCEF\"", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:48 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fbb98-301e-0094-27fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:48 GMT", + "x-ms-client-request-id" : "14c06cb7-8fc3-4452-9985-0f1b9bfdb9db" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcclearpagesac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fbba5-301e-0094-33fc-5950b8000000", + "Body" : "jtcclearpagesacjtcclearpagesac0pageblobapitestclearpagesac74430402a880c6Fri, 23 Aug 2019 21:49:48 GMT\"0x8D72813D1E9EA58\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:48 GMT", + "x-ms-client-request-id" : "b11ed08b-ad21-4f95-ada8-dfd0017e49b1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesac0pageblobapitestclearpagesac74430402a880c6?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fbbaf-301e-0094-3bfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:48 GMT", + "x-ms-client-request-id" : "231cbcc3-0900-4f6d-944f-d95e5f3300a1" + }, + "Exception" : null + } ], + "variables" : [ "jtcclearpagesac0pageblobapitestclearpagesac74430402a880c6", "javablobclearpagesac1pageblobapitestclearpagesac74408035b2d", "423d40c1-b2a3-453b-8c3a-39aa18e8603f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestclearpagesacfail[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestclearpagesacfail[0].json new file mode 100644 index 0000000000000..c2eae593896d1 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestclearpagesacfail[0].json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesacfail0pageblobapitestclearpagesacfail14f6224558?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D206C7DF\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:48 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fbbd1-301e-0094-59fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:48 GMT", + "x-ms-client-request-id" : "82a86e1f-0318-49b8-8caf-25ba9ac55503" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesacfail0pageblobapitestclearpagesacfail14f6224558/javablobclearpagesacfail15172955698c517c5046b6", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D20C70CF\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:48 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fbbe3-301e-0094-68fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:48 GMT", + "x-ms-client-request-id" : "2f493436-6b10-4b5a-8511-ccc9e5f24e29" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesacfail0pageblobapitestclearpagesacfail14f6224558/javablobclearpagesacfail15172955698c517c5046b6?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "IyWSznax7p4=", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:49 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:48 GMT", + "ETag" : "\"0x8D72813D2117B23\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77fbbfe-301e-0094-80fc-5950b8000000", + "x-ms-client-request-id" : "4898ee65-92cb-41d0-b850-d0963ed59f7b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesacfail0pageblobapitestclearpagesacfail14f6224558/javablobclearpagesacfail15172955698c517c5046b6?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "f77fbc0f-301e-0094-0ffc-5950b8000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:f77fbc0f-301e-0094-0ffc-5950b8000000\nTime:2019-08-23T21:49:49.0434907Z", + "Date" : "Fri, 23 Aug 2019 21:49:48 GMT", + "x-ms-client-request-id" : "1bd63e90-e63a-4f48-8cea-81053c76415b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcclearpagesacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fbc21-301e-0094-21fc-5950b8000000", + "Body" : "jtcclearpagesacfailjtcclearpagesacfail0pageblobapitestclearpagesacfail14f6224558Fri, 23 Aug 2019 21:49:48 GMT\"0x8D72813D206C7DF\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:48 GMT", + "x-ms-client-request-id" : "6dbf4c0a-343d-4f92-8cdc-869b0a051076", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesacfail0pageblobapitestclearpagesacfail14f6224558?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fbc37-301e-0094-34fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:48 GMT", + "x-ms-client-request-id" : "9126365b-a53b-4483-89c3-6078abc6e1a2" + }, + "Exception" : null + } ], + "variables" : [ "jtcclearpagesacfail0pageblobapitestclearpagesacfail14f6224558", "javablobclearpagesacfail15172955698c517c5046b6", "30eadb57-3065-4f63-8404-9ea81da45b23" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestclearpagesacfail[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestclearpagesacfail[1].json new file mode 100644 index 0000000000000..94d2173243ba7 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestclearpagesacfail[1].json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesacfail0pageblobapitestclearpagesacfail8ac785633d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D2250553\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:49 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fbc48-301e-0094-43fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:48 GMT", + "x-ms-client-request-id" : "b815b0ce-b904-4368-980b-7c83ab01932d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesacfail0pageblobapitestclearpagesacfail8ac785633d/javablobclearpagesacfail175136b1ebcdbcdae14cbe", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D22A395B\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:49 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fbc5d-301e-0094-54fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:48 GMT", + "x-ms-client-request-id" : "a8afa52b-1cc0-4941-84ac-5e7c909c446a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesacfail0pageblobapitestclearpagesacfail8ac785633d/javablobclearpagesacfail175136b1ebcdbcdae14cbe?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "LrkudOW/c+E=", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:49 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:48 GMT", + "ETag" : "\"0x8D72813D22F6AC6\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77fbc75-301e-0094-6bfc-5950b8000000", + "x-ms-client-request-id" : "45c71694-efef-4c92-afe9-ed9ce52b2b74" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesacfail0pageblobapitestclearpagesacfail8ac785633d/javablobclearpagesacfail175136b1ebcdbcdae14cbe?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "f77fbc8a-301e-0094-7cfc-5950b8000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:f77fbc8a-301e-0094-7cfc-5950b8000000\nTime:2019-08-23T21:49:49.2416729Z", + "Date" : "Fri, 23 Aug 2019 21:49:48 GMT", + "x-ms-client-request-id" : "cc0ce64f-6807-4706-b1ee-b2a4c49d8fd4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcclearpagesacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fbc93-301e-0094-05fc-5950b8000000", + "Body" : "jtcclearpagesacfailjtcclearpagesacfail0pageblobapitestclearpagesacfail8ac785633dFri, 23 Aug 2019 21:49:49 GMT\"0x8D72813D2250553\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:48 GMT", + "x-ms-client-request-id" : "f661d4f8-6e88-4d97-8933-2824074976f9", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesacfail0pageblobapitestclearpagesacfail8ac785633d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fbca2-301e-0094-13fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:48 GMT", + "x-ms-client-request-id" : "ebbb86a0-4435-4911-bcd5-909c896930da" + }, + "Exception" : null + } ], + "variables" : [ "jtcclearpagesacfail0pageblobapitestclearpagesacfail8ac785633d", "javablobclearpagesacfail175136b1ebcdbcdae14cbe", "143a962c-a042-4bc9-af7e-a525c4e151ae" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestclearpagesacfail[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestclearpagesacfail[2].json new file mode 100644 index 0000000000000..19b5428a0c0f4 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestclearpagesacfail[2].json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesacfail0pageblobapitestclearpagesacfail47862397b1?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D24629AD\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:49 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fbcb3-301e-0094-22fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:49 GMT", + "x-ms-client-request-id" : "6b13083d-5ca7-4d39-bb64-13d8a2fbdefa" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesacfail0pageblobapitestclearpagesacfail47862397b1/javablobclearpagesacfail152163b6a263ed5ff646b8", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D25264A9\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:49 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fbce0-301e-0094-4afc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:49 GMT", + "x-ms-client-request-id" : "f37a71b5-a86c-4e6d-9146-2088ddfee2e2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesacfail0pageblobapitestclearpagesacfail47862397b1/javablobclearpagesacfail152163b6a263ed5ff646b8?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "5PHfSgKXlCU=", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:49 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:49 GMT", + "ETag" : "\"0x8D72813D2579611\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77fbcf2-301e-0094-5bfc-5950b8000000", + "x-ms-client-request-id" : "588c6cad-fa15-442b-b696-8c4b3a872c02" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesacfail0pageblobapitestclearpagesacfail47862397b1/javablobclearpagesacfail152163b6a263ed5ff646b8?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "f77fbcfc-301e-0094-64fc-5950b8000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:f77fbcfc-301e-0094-64fc-5950b8000000\nTime:2019-08-23T21:49:49.4949057Z", + "Date" : "Fri, 23 Aug 2019 21:49:49 GMT", + "x-ms-client-request-id" : "80e6a22a-33c4-4d89-a8f1-bf4f5793845a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcclearpagesacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fbd0d-301e-0094-74fc-5950b8000000", + "Body" : "jtcclearpagesacfailjtcclearpagesacfail0pageblobapitestclearpagesacfail47862397b1Fri, 23 Aug 2019 21:49:49 GMT\"0x8D72813D24629AD\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:49 GMT", + "x-ms-client-request-id" : "af7a5a90-10a6-4311-8bb3-d3e7d03d8692", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesacfail0pageblobapitestclearpagesacfail47862397b1?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fbd16-301e-0094-7dfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:49 GMT", + "x-ms-client-request-id" : "e5d2bd4e-d669-42ee-a8c7-231fa1656021" + }, + "Exception" : null + } ], + "variables" : [ "jtcclearpagesacfail0pageblobapitestclearpagesacfail47862397b1", "javablobclearpagesacfail152163b6a263ed5ff646b8", "8fef2b27-f471-4c84-a319-2b2f0695e2dd" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestclearpagesacfail[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestclearpagesacfail[3].json new file mode 100644 index 0000000000000..ebf116e7a05bf --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestclearpagesacfail[3].json @@ -0,0 +1,159 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesacfail0pageblobapitestclearpagesacfail8c03330638?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D269BF90\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:49 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fbd28-301e-0094-0efc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:49 GMT", + "x-ms-client-request-id" : "899e0e33-5393-49de-8b17-b69a4a28d0e8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesacfail0pageblobapitestclearpagesacfail8c03330638/javablobclearpagesacfail147207b935e8c82dd347ab", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D26F429E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:49 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fbd36-301e-0094-19fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:49 GMT", + "x-ms-client-request-id" : "d6a3f9df-78dd-4c9a-9fad-7b9629130fec" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesacfail0pageblobapitestclearpagesacfail8c03330638/javablobclearpagesacfail147207b935e8c82dd347ab?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "mQXOPhxx4/I=", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:49 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:49 GMT", + "ETag" : "\"0x8D72813D273FEBC\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77fbd50-301e-0094-2dfc-5950b8000000", + "x-ms-client-request-id" : "fb6d79dd-05bb-4489-86f3-7a5ef886a721" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesacfail0pageblobapitestclearpagesacfail8c03330638/javablobclearpagesacfail147207b935e8c82dd347ab", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:49 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:49:49 GMT", + "x-ms-blob-type" : "PageBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72813D273FEBC\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:49:49 GMT", + "Content-Length" : "512", + "x-ms-request-id" : "f77fbd60-301e-0094-3bfc-5950b8000000", + "x-ms-client-request-id" : "04ede7c8-03d3-4072-a344-e0a9d17ee478", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesacfail0pageblobapitestclearpagesacfail8c03330638/javablobclearpagesacfail147207b935e8c82dd347ab?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "f77fbd69-301e-0094-44fc-5950b8000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:f77fbd69-301e-0094-44fc-5950b8000000\nTime:2019-08-23T21:49:49.7301201Z", + "Date" : "Fri, 23 Aug 2019 21:49:49 GMT", + "x-ms-client-request-id" : "56e41925-0902-4c91-aaaf-3d881efa54f6", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcclearpagesacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fbd79-301e-0094-51fc-5950b8000000", + "Body" : "jtcclearpagesacfailjtcclearpagesacfail0pageblobapitestclearpagesacfail8c03330638Fri, 23 Aug 2019 21:49:49 GMT\"0x8D72813D269BF90\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:49 GMT", + "x-ms-client-request-id" : "bf9f62ab-21e7-477f-9a71-e2bafbcab0ab", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesacfail0pageblobapitestclearpagesacfail8c03330638?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fbd8a-301e-0094-61fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:49 GMT", + "x-ms-client-request-id" : "ef7ed2de-2557-4a30-91ee-b9b326483072" + }, + "Exception" : null + } ], + "variables" : [ "jtcclearpagesacfail0pageblobapitestclearpagesacfail8c03330638", "javablobclearpagesacfail147207b935e8c82dd347ab", "28acd555-81bb-4d86-b7e6-8a6de1013406" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestclearpagesacfail[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestclearpagesacfail[4].json new file mode 100644 index 0000000000000..9abab21a32e66 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestclearpagesacfail[4].json @@ -0,0 +1,149 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesacfail0pageblobapitestclearpagesacfaila8f69925db?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D28DF1E5\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:49 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fbd9a-301e-0094-70fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:49 GMT", + "x-ms-client-request-id" : "e7ae505d-fd18-4123-b553-8f266be272f4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesacfail0pageblobapitestclearpagesacfaila8f69925db/javablobclearpagesacfail14182103056ba78f514747", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D2934E43\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:49 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fbda9-301e-0094-7dfc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:49 GMT", + "x-ms-client-request-id" : "bafec08c-aecd-4ee2-ab09-d0112934b2d9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesacfail0pageblobapitestclearpagesacfaila8f69925db/javablobclearpagesacfail14182103056ba78f514747?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "DfXM0e+dpVk=", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:49 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:49 GMT", + "ETag" : "\"0x8D72813D298F4F6\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77fbdb4-301e-0094-06fc-5950b8000000", + "x-ms-client-request-id" : "ba855fed-0c28-4fec-b525-3260eb85cff3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesacfail0pageblobapitestclearpagesacfaila8f69925db/javablobclearpagesacfail14182103056ba78f514747?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D298F4F6\"", + "x-ms-lease-id" : "4858d3ec-a207-4aa1-81d1-50458a0cc22e", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:49 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fbdc7-301e-0094-15fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:49 GMT", + "x-ms-client-request-id" : "866b286f-522d-471e-99db-c798e7160e01" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesacfail0pageblobapitestclearpagesacfaila8f69925db/javablobclearpagesacfail14182103056ba78f514747?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "LeaseIdMismatchWithBlobOperation", + "retry-after" : "0", + "Content-Length" : "264", + "StatusCode" : "412", + "x-ms-request-id" : "f77fbde6-301e-0094-31fc-5950b8000000", + "Body" : "LeaseIdMismatchWithBlobOperationThe lease ID specified did not match the lease ID for the blob.\nRequestId:f77fbde6-301e-0094-31fc-5950b8000000\nTime:2019-08-23T21:49:50.0023701Z", + "Date" : "Fri, 23 Aug 2019 21:49:49 GMT", + "x-ms-client-request-id" : "247f044b-bd38-4fb4-b4dd-aaf51c96d628", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcclearpagesacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fbdf3-301e-0094-3dfc-5950b8000000", + "Body" : "jtcclearpagesacfailjtcclearpagesacfail0pageblobapitestclearpagesacfaila8f69925dbFri, 23 Aug 2019 21:49:49 GMT\"0x8D72813D28DF1E5\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:49 GMT", + "x-ms-client-request-id" : "3c435f87-5f18-47a8-b0df-5ae9f0f99977", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesacfail0pageblobapitestclearpagesacfaila8f69925db?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fbdfb-301e-0094-45fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:49 GMT", + "x-ms-client-request-id" : "decdaf19-b322-4587-9ecd-2cf8dac63477" + }, + "Exception" : null + } ], + "variables" : [ "jtcclearpagesacfail0pageblobapitestclearpagesacfaila8f69925db", "javablobclearpagesacfail14182103056ba78f514747", "e5842395-9953-4cc0-a728-ce3b899e6411" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestclearpagesacfail[5].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestclearpagesacfail[5].json new file mode 100644 index 0000000000000..08ecfe21d02b0 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestclearpagesacfail[5].json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesacfail0pageblobapitestclearpagesacfaila283090031?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D2B7F1DA\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fbe1b-301e-0094-5ffc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:49 GMT", + "x-ms-client-request-id" : "fa23e043-1cd4-4049-9a46-c293b663a853" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesacfail0pageblobapitestclearpagesacfaila283090031/javablobclearpagesacfail167952ab3856bfd4414c13", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D2BD75F4\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fbe2b-301e-0094-6cfc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:49 GMT", + "x-ms-client-request-id" : "e905c5b8-77a4-4719-a403-fcf49a23f7d9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesacfail0pageblobapitestclearpagesacfaila283090031/javablobclearpagesacfail167952ab3856bfd4414c13?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "ZMxC090eAJI=", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:50 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:49 GMT", + "ETag" : "\"0x8D72813D2C2CE82\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77fbe3f-301e-0094-7cfc-5950b8000000", + "x-ms-client-request-id" : "75f888f8-a908-4771-b209-052b57e83204" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesacfail0pageblobapitestclearpagesacfaila283090031/javablobclearpagesacfail167952ab3856bfd4414c13?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "InvalidInput", + "retry-after" : "0", + "Content-Length" : "220", + "StatusCode" : "400", + "x-ms-request-id" : "f77fbe4d-301e-0094-09fc-5950b8000000", + "Body" : "InvalidInputOne of the request inputs is not valid.\nRequestId:f77fbe4d-301e-0094-09fc-5950b8000000\nTime:2019-08-23T21:49:50.2195676Z", + "Date" : "Fri, 23 Aug 2019 21:49:49 GMT", + "x-ms-client-request-id" : "165369a5-695f-48b0-9b6a-7e7f79184567", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcclearpagesacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fbe59-301e-0094-14fc-5950b8000000", + "Body" : "jtcclearpagesacfailjtcclearpagesacfail0pageblobapitestclearpagesacfaila283090031Fri, 23 Aug 2019 21:49:50 GMT\"0x8D72813D2B7F1DA\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:49 GMT", + "x-ms-client-request-id" : "22d20c3c-aa3e-4238-969c-48ff7cd74281", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesacfail0pageblobapitestclearpagesacfaila283090031?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fbe61-301e-0094-1bfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:49 GMT", + "x-ms-client-request-id" : "a9e31206-a243-4eb8-82cc-e0cd1ad47342" + }, + "Exception" : null + } ], + "variables" : [ "jtcclearpagesacfail0pageblobapitestclearpagesacfaila283090031", "javablobclearpagesacfail167952ab3856bfd4414c13", "89d18247-6723-4731-844f-a76161ce6b3c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestclearpagesacfail[6].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestclearpagesacfail[6].json new file mode 100644 index 0000000000000..dd6f6d2848fb6 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestclearpagesacfail[6].json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesacfail0pageblobapitestclearpagesacfail7779201368?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D2DD8402\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fbe7f-301e-0094-30fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:50 GMT", + "x-ms-client-request-id" : "090dce8d-c4e2-49fb-afcf-275e4af5ee9a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesacfail0pageblobapitestclearpagesacfail7779201368/javablobclearpagesacfail132498535fbb8f3ee34a9d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D2E2934B\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fbe86-301e-0094-35fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:50 GMT", + "x-ms-client-request-id" : "2ed5c449-c6e9-48ca-888b-dc33ef324fa0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesacfail0pageblobapitestclearpagesacfail7779201368/javablobclearpagesacfail132498535fbb8f3ee34a9d?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "+bSK//vH92Y=", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:50 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:50 GMT", + "ETag" : "\"0x8D72813D2E74F67\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77fbe96-301e-0094-42fc-5950b8000000", + "x-ms-client-request-id" : "9593e61d-60a5-44a6-90fe-1633155874da" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesacfail0pageblobapitestclearpagesacfail7779201368/javablobclearpagesacfail132498535fbb8f3ee34a9d?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "InvalidInput", + "retry-after" : "0", + "Content-Length" : "220", + "StatusCode" : "400", + "x-ms-request-id" : "f77fbea2-301e-0094-4dfc-5950b8000000", + "Body" : "InvalidInputOne of the request inputs is not valid.\nRequestId:f77fbea2-301e-0094-4dfc-5950b8000000\nTime:2019-08-23T21:49:50.4397690Z", + "Date" : "Fri, 23 Aug 2019 21:49:50 GMT", + "x-ms-client-request-id" : "6a02dcc4-995d-45d6-bfc3-b335103e6e77", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcclearpagesacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fbea9-301e-0094-54fc-5950b8000000", + "Body" : "jtcclearpagesacfailjtcclearpagesacfail0pageblobapitestclearpagesacfail7779201368Fri, 23 Aug 2019 21:49:50 GMT\"0x8D72813D2DD8402\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:50 GMT", + "x-ms-client-request-id" : "ca955fea-fac8-4a32-ad79-a31eec62b9af", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesacfail0pageblobapitestclearpagesacfail7779201368?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fbeaf-301e-0094-5afc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:50 GMT", + "x-ms-client-request-id" : "4318ec35-d96b-4ced-a814-e85be686882d" + }, + "Exception" : null + } ], + "variables" : [ "jtcclearpagesacfail0pageblobapitestclearpagesacfail7779201368", "javablobclearpagesacfail132498535fbb8f3ee34a9d", "86a6a497-562c-47eb-a4bf-2f7cc83a581b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestclearpagesacfail[7].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestclearpagesacfail[7].json new file mode 100644 index 0000000000000..cf372bf201814 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestclearpagesacfail[7].json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesacfail0pageblobapitestclearpagesacfail99e30251e3?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D2FA88B2\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fbec9-301e-0094-6dfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:50 GMT", + "x-ms-client-request-id" : "0b0d6e21-8695-4adc-9d12-95d10090cb1b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesacfail0pageblobapitestclearpagesacfail99e30251e3/javablobclearpagesacfail195771ef099969028146d9", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D3000D96\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fbed5-301e-0094-77fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:50 GMT", + "x-ms-client-request-id" : "b9c17342-8800-4612-a1cf-22dbba98ca06" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesacfail0pageblobapitestclearpagesacfail99e30251e3/javablobclearpagesacfail195771ef099969028146d9?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "oa0KToiVFeo=", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:50 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:50 GMT", + "ETag" : "\"0x8D72813D305661D\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77fbedb-301e-0094-7dfc-5950b8000000", + "x-ms-client-request-id" : "2958f921-bdf6-4795-a0d5-c78c158e1b6c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesacfail0pageblobapitestclearpagesacfail99e30251e3/javablobclearpagesacfail195771ef099969028146d9?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "SequenceNumberConditionNotMet", + "retry-after" : "0", + "Content-Length" : "250", + "StatusCode" : "412", + "x-ms-request-id" : "f77fbef5-301e-0094-15fc-5950b8000000", + "Body" : "SequenceNumberConditionNotMetThe sequence number condition specified was not met.\nRequestId:f77fbef5-301e-0094-15fc-5950b8000000\nTime:2019-08-23T21:49:50.6369491Z", + "Date" : "Fri, 23 Aug 2019 21:49:50 GMT", + "x-ms-client-request-id" : "2153622f-41e6-449f-a0cc-78125b29d804", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcclearpagesacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fbf02-301e-0094-20fc-5950b8000000", + "Body" : "jtcclearpagesacfailjtcclearpagesacfail0pageblobapitestclearpagesacfail99e30251e3Fri, 23 Aug 2019 21:49:50 GMT\"0x8D72813D2FA88B2\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:50 GMT", + "x-ms-client-request-id" : "76c40cc0-5f2f-4ed1-a52b-119a8e01a6df", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcclearpagesacfail0pageblobapitestclearpagesacfail99e30251e3?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fbf10-301e-0094-29fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:50 GMT", + "x-ms-client-request-id" : "7ace1877-c886-488c-8235-05edbb0cb522" + }, + "Exception" : null + } ], + "variables" : [ "jtcclearpagesacfail0pageblobapitestclearpagesacfail99e30251e3", "javablobclearpagesacfail195771ef099969028146d9", "5c5df530-1d66-4af2-a2f3-489177f46341" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestcreateac[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestcreateac[0].json new file mode 100644 index 0000000000000..6ea74a3275d4c --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestcreateac[0].json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateac0pageblobapitestcreateacd0670209360e2fcca0?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C62B2FCB\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d05fc5-501e-00c0-69fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:28 GMT", + "x-ms-client-request-id" : "108d57f8-9d83-4651-a13c-ed6a5a8be562" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateac0pageblobapitestcreateacd0670209360e2fcca0/javablobcreateac1pageblobapitestcreateacd0601245d463c3a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C630625A\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d06005-501e-00c0-21fc-59ba32000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:28 GMT", + "x-ms-client-request-id" : "0d454a25-b3e0-41af-b446-fd0085b163fd" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateac0pageblobapitestcreateacd0670209360e2fcca0/javablobcreateac1pageblobapitestcreateacd0601245d463c3a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C634F756\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d06040-501e-00c0-53fc-59ba32000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:28 GMT", + "x-ms-client-request-id" : "67a22a78-f501-4c3f-812a-a8679b31cc00" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccreateac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d06074-501e-00c0-04fc-59ba32000000", + "Body" : "jtccreateacjtccreateac0pageblobapitestcreateacd0670209360e2fcca0Fri, 23 Aug 2019 21:49:29 GMT\"0x8D72813C62B2FCB\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:28 GMT", + "x-ms-client-request-id" : "5cf2249a-d0ef-4b41-b8b9-c2dc70ccb3e0", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateac0pageblobapitestcreateacd0670209360e2fcca0?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d060a2-501e-00c0-2cfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:28 GMT", + "x-ms-client-request-id" : "cad22fa3-8a73-452b-a589-601b705eb149" + }, + "Exception" : null + } ], + "variables" : [ "jtccreateac0pageblobapitestcreateacd0670209360e2fcca0", "javablobcreateac1pageblobapitestcreateacd0601245d463c3a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestcreateac[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestcreateac[1].json new file mode 100644 index 0000000000000..a61d836d547b4 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestcreateac[1].json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateac0pageblobapitestcreateac6a238928f219ffb8ae?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C64526C1\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d060e7-501e-00c0-6afc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:28 GMT", + "x-ms-client-request-id" : "47078c21-f247-4181-b09e-1a6939abc346" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateac0pageblobapitestcreateac6a238928f219ffb8ae/javablobcreateac1pageblobapitestcreateac6a2343386d3fa0b", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C649E40C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d0611e-501e-00c0-1dfc-59ba32000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:28 GMT", + "x-ms-client-request-id" : "309b011c-7ea5-429b-995c-4015d2179f86" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateac0pageblobapitestcreateac6a238928f219ffb8ae/javablobcreateac1pageblobapitestcreateac6a2343386d3fa0b", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C64E7907\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d06148-501e-00c0-46fc-59ba32000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:28 GMT", + "x-ms-client-request-id" : "576341ab-bc2a-4f2e-8896-317cd9485f72" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccreateac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d06176-501e-00c0-6efc-59ba32000000", + "Body" : "jtccreateacjtccreateac0pageblobapitestcreateac6a238928f219ffb8aeFri, 23 Aug 2019 21:49:29 GMT\"0x8D72813C64526C1\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:28 GMT", + "x-ms-client-request-id" : "c93ccc2e-429a-43ba-acb7-b829b521c98b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateac0pageblobapitestcreateac6a238928f219ffb8ae?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d0619a-501e-00c0-0efc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:28 GMT", + "x-ms-client-request-id" : "9737f6c4-57af-4a24-8efb-64e4d0e8dcf8" + }, + "Exception" : null + } ], + "variables" : [ "jtccreateac0pageblobapitestcreateac6a238928f219ffb8ae", "javablobcreateac1pageblobapitestcreateac6a2343386d3fa0b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestcreateac[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestcreateac[2].json new file mode 100644 index 0000000000000..1857b4dbfa2df --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestcreateac[2].json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateac0pageblobapitestcreateacd2280120d528deafa8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C6600855\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d061db-501e-00c0-47fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:28 GMT", + "x-ms-client-request-id" : "8cd0fc47-c008-4f65-9724-98cda23042ac" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateac0pageblobapitestcreateacd2280120d528deafa8/javablobcreateac1pageblobapitestcreateacd2269065f28bc16", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C66513E1\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d0620a-501e-00c0-72fc-59ba32000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:28 GMT", + "x-ms-client-request-id" : "124d7fd0-6191-4e51-8e9e-2c63731b171e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateac0pageblobapitestcreateacd2280120d528deafa8/javablobcreateac1pageblobapitestcreateacd2269065f28bc16", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C66981CC\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d06238-501e-00c0-1efc-59ba32000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:28 GMT", + "x-ms-client-request-id" : "20a0321e-4aee-4409-a3ef-afdedd4b5d9e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccreateac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d06261-501e-00c0-43fc-59ba32000000", + "Body" : "jtccreateacjtccreateac0pageblobapitestcreateacd2280120d528deafa8Fri, 23 Aug 2019 21:49:29 GMT\"0x8D72813C6600855\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:28 GMT", + "x-ms-client-request-id" : "673f1d74-981d-41f9-9630-4342b3404743", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateac0pageblobapitestcreateacd2280120d528deafa8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d06286-501e-00c0-66fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:28 GMT", + "x-ms-client-request-id" : "623b5641-b58a-4c2c-ad49-9552d19ad9e0" + }, + "Exception" : null + } ], + "variables" : [ "jtccreateac0pageblobapitestcreateacd2280120d528deafa8", "javablobcreateac1pageblobapitestcreateacd2269065f28bc16" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestcreateac[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestcreateac[3].json new file mode 100644 index 0000000000000..c62bed39f420f --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestcreateac[3].json @@ -0,0 +1,135 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateac0pageblobapitestcreateac9e77929486d87cec43?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C67962E1\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d062ba-501e-00c0-19fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:28 GMT", + "x-ms-client-request-id" : "95aaee07-af30-4b29-9221-02fb1359011a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateac0pageblobapitestcreateac9e77929486d87cec43/javablobcreateac1pageblobapitestcreateac9e7561380ab669d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C67E476A\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d062dd-501e-00c0-3afc-59ba32000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:28 GMT", + "x-ms-client-request-id" : "acbaf453-d402-4667-be05-3dda80466147" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateac0pageblobapitestcreateac9e77929486d87cec43/javablobcreateac1pageblobapitestcreateac9e7561380ab669d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:29 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:49:28 GMT", + "x-ms-blob-type" : "PageBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72813C67E476A\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:49:29 GMT", + "Content-Length" : "512", + "x-ms-request-id" : "77d0630d-501e-00c0-66fc-59ba32000000", + "x-ms-client-request-id" : "243ef98e-27fc-4437-bbf9-12b24a2a9620", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateac0pageblobapitestcreateac9e77929486d87cec43/javablobcreateac1pageblobapitestcreateac9e7561380ab669d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C686D515\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d06332-501e-00c0-07fc-59ba32000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:28 GMT", + "x-ms-client-request-id" : "c519fb82-599f-44c5-8110-6a5d3dafc9ad" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccreateac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d06363-501e-00c0-36fc-59ba32000000", + "Body" : "jtccreateacjtccreateac0pageblobapitestcreateac9e77929486d87cec43Fri, 23 Aug 2019 21:49:29 GMT\"0x8D72813C67962E1\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:29 GMT", + "x-ms-client-request-id" : "3e7e0f2a-4f97-44eb-ad62-f27d1f87aa0d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateac0pageblobapitestcreateac9e77929486d87cec43?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d0637f-501e-00c0-50fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:29 GMT", + "x-ms-client-request-id" : "6f77bb21-a865-4fbb-958a-c5f2ef08cb2e" + }, + "Exception" : null + } ], + "variables" : [ "jtccreateac0pageblobapitestcreateac9e77929486d87cec43", "javablobcreateac1pageblobapitestcreateac9e7561380ab669d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestcreateac[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestcreateac[4].json new file mode 100644 index 0000000000000..f5b600880e427 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestcreateac[4].json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateac0pageblobapitestcreateac6291666576b0d3c34c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C69619A9\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d063ba-501e-00c0-07fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:29 GMT", + "x-ms-client-request-id" : "a567e233-ec16-4cca-a7a6-591e206eb725" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateac0pageblobapitestcreateac6291666576b0d3c34c/javablobcreateac1pageblobapitestcreateac6299665233c14ea", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C69AFE3F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d063ea-501e-00c0-34fc-59ba32000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:29 GMT", + "x-ms-client-request-id" : "3f818cf5-aba8-44d8-89ea-3e47f862b4bd" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateac0pageblobapitestcreateac6291666576b0d3c34c/javablobcreateac1pageblobapitestcreateac6299665233c14ea", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C69FBA61\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d06411-501e-00c0-56fc-59ba32000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:29 GMT", + "x-ms-client-request-id" : "edbcdfd8-10aa-4cb8-a1ce-d39cecfa4e84" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccreateac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d0643c-501e-00c0-7dfc-59ba32000000", + "Body" : "jtccreateacjtccreateac0pageblobapitestcreateac6291666576b0d3c34cFri, 23 Aug 2019 21:49:29 GMT\"0x8D72813C69619A9\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:29 GMT", + "x-ms-client-request-id" : "49d287af-778e-40e1-8bfb-2f0482ee9ea9", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateac0pageblobapitestcreateac6291666576b0d3c34c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d06454-501e-00c0-15fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:29 GMT", + "x-ms-client-request-id" : "298182ef-3431-4c79-a30f-41a6786a83a3" + }, + "Exception" : null + } ], + "variables" : [ "jtccreateac0pageblobapitestcreateac6291666576b0d3c34c", "javablobcreateac1pageblobapitestcreateac6299665233c14ea" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestcreateac[5].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestcreateac[5].json new file mode 100644 index 0000000000000..71f3df426496b --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestcreateac[5].json @@ -0,0 +1,125 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateac0pageblobapitestcreateac3dc114692aaeab9100?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C6AEB0A8\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d0647e-501e-00c0-3efc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:29 GMT", + "x-ms-client-request-id" : "9a4853bb-9d24-46b6-b236-2396c5da280a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateac0pageblobapitestcreateac3dc114692aaeab9100/javablobcreateac1pageblobapitestcreateac3dc28494fb868b2", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C6B3BC8F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d0649d-501e-00c0-5cfc-59ba32000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:29 GMT", + "x-ms-client-request-id" : "a080111c-21d4-4336-98a8-20f2989ffffc" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateac0pageblobapitestcreateac3dc114692aaeab9100/javablobcreateac1pageblobapitestcreateac3dc28494fb868b2?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C6B3BC8F\"", + "x-ms-lease-id" : "e21df567-126f-41ae-9f38-2b2b92d9cfad", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d064d5-501e-00c0-0bfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:29 GMT", + "x-ms-client-request-id" : "72590903-d707-4675-80a0-a21e2f02fa22" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateac0pageblobapitestcreateac3dc114692aaeab9100/javablobcreateac1pageblobapitestcreateac3dc28494fb868b2", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C6BCE685\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d064f3-501e-00c0-26fc-59ba32000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:29 GMT", + "x-ms-client-request-id" : "6b9042a2-b0c0-4d1c-bec5-d638e3ce5c6c" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccreateac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d06517-501e-00c0-45fc-59ba32000000", + "Body" : "jtccreateacjtccreateac0pageblobapitestcreateac3dc114692aaeab9100Fri, 23 Aug 2019 21:49:29 GMT\"0x8D72813C6AEB0A8\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:29 GMT", + "x-ms-client-request-id" : "5c31de74-9021-4b5a-9bb1-f4bcef200fd4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateac0pageblobapitestcreateac3dc114692aaeab9100?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d06532-501e-00c0-5efc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:29 GMT", + "x-ms-client-request-id" : "44cabfb0-0d4d-4328-ad63-c2981fcfedd9" + }, + "Exception" : null + } ], + "variables" : [ "jtccreateac0pageblobapitestcreateac3dc114692aaeab9100", "javablobcreateac1pageblobapitestcreateac3dc28494fb868b2" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestcreateacfail[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestcreateacfail[0].json new file mode 100644 index 0000000000000..43e84e2733d39 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestcreateacfail[0].json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateacfail0pageblobapitestcreateacfail6e49542124ff1a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C6CBDCA3\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d06570-501e-00c0-15fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:29 GMT", + "x-ms-client-request-id" : "ff4409a5-1b59-497d-b8f1-bcba8519a292" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateacfail0pageblobapitestcreateacfail6e49542124ff1a/javablobcreateacfail1pageblobapitestcreateacfail6e410331a3d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C6D10FBD\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d0659d-501e-00c0-40fc-59ba32000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:29 GMT", + "x-ms-client-request-id" : "68f89810-6330-48a4-a8f1-1e882c3349ca" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateacfail0pageblobapitestcreateacfail6e49542124ff1a/javablobcreateacfail1pageblobapitestcreateacfail6e410331a3d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "77d065dd-501e-00c0-79fc-59ba32000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:77d065dd-501e-00c0-79fc-59ba32000000\nTime:2019-08-23T21:49:30.1824073Z", + "Date" : "Fri, 23 Aug 2019 21:49:29 GMT", + "x-ms-client-request-id" : "8fa1eb75-add7-4cfb-987c-2e49b0cf3aa2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccreateacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d065f6-501e-00c0-12fc-59ba32000000", + "Body" : "jtccreateacfailjtccreateacfail0pageblobapitestcreateacfail6e49542124ff1aFri, 23 Aug 2019 21:49:30 GMT\"0x8D72813C6CBDCA3\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:29 GMT", + "x-ms-client-request-id" : "7a1ac661-da99-4a06-990b-63074626d4dc", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateacfail0pageblobapitestcreateacfail6e49542124ff1a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d06620-501e-00c0-37fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:29 GMT", + "x-ms-client-request-id" : "37f5e24c-7d6f-476c-bfb3-f3989961dce0" + }, + "Exception" : null + } ], + "variables" : [ "jtccreateacfail0pageblobapitestcreateacfail6e49542124ff1a", "javablobcreateacfail1pageblobapitestcreateacfail6e410331a3d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestcreateacfail[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestcreateacfail[1].json new file mode 100644 index 0000000000000..a462ad4e2e9bb --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestcreateacfail[1].json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateacfail0pageblobapitestcreateacfailb8e520651c033c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C6E70C5A\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d06660-501e-00c0-72fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:29 GMT", + "x-ms-client-request-id" : "259101a2-7c34-406a-a9cd-0ee2de1be13e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateacfail0pageblobapitestcreateacfailb8e520651c033c/javablobcreateacfail1pageblobapitestcreateacfailb8e473398a1", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C6EC3F95\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d06698-501e-00c0-24fc-59ba32000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:29 GMT", + "x-ms-client-request-id" : "d3ce4cc8-97d0-44a0-a80e-418dce608eca" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateacfail0pageblobapitestcreateacfailb8e520651c033c/javablobcreateacfail1pageblobapitestcreateacfailb8e473398a1", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "77d066ba-501e-00c0-46fc-59ba32000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:77d066ba-501e-00c0-46fc-59ba32000000\nTime:2019-08-23T21:49:30.3425599Z", + "Date" : "Fri, 23 Aug 2019 21:49:29 GMT", + "x-ms-client-request-id" : "28b1afec-715c-47cd-80e5-2fd925a4ea24", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccreateacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d066d4-501e-00c0-5ffc-59ba32000000", + "Body" : "jtccreateacfailjtccreateacfail0pageblobapitestcreateacfailb8e520651c033cFri, 23 Aug 2019 21:49:30 GMT\"0x8D72813C6E70C5A\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:29 GMT", + "x-ms-client-request-id" : "e31b9bac-47e0-4b93-b71f-937a399a4b95", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateacfail0pageblobapitestcreateacfailb8e520651c033c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d066ec-501e-00c0-75fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:29 GMT", + "x-ms-client-request-id" : "3f597f5b-9588-46e2-b19b-97c83109aaeb" + }, + "Exception" : null + } ], + "variables" : [ "jtccreateacfail0pageblobapitestcreateacfailb8e520651c033c", "javablobcreateacfail1pageblobapitestcreateacfailb8e473398a1" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestcreateacfail[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestcreateacfail[2].json new file mode 100644 index 0000000000000..22148818bdb2b --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestcreateacfail[2].json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateacfail0pageblobapitestcreateacfail0ec75373c07fdb?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C6FF552F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d06713-501e-00c0-17fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:29 GMT", + "x-ms-client-request-id" : "0d5ad572-7f7b-44ae-95c8-34d668576def" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateacfail0pageblobapitestcreateacfail0ec75373c07fdb/javablobcreateacfail1pageblobapitestcreateacfail0ec74839bba", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C704132F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d0673c-501e-00c0-3afc-59ba32000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:29 GMT", + "x-ms-client-request-id" : "764f24ac-1547-4bc0-9bca-d7738b979618" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateacfail0pageblobapitestcreateacfail0ec75373c07fdb/javablobcreateacfail1pageblobapitestcreateacfail0ec74839bba", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "77d0675d-501e-00c0-5bfc-59ba32000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:77d0675d-501e-00c0-5bfc-59ba32000000\nTime:2019-08-23T21:49:30.4917004Z", + "Date" : "Fri, 23 Aug 2019 21:49:29 GMT", + "x-ms-client-request-id" : "1702dc76-2223-4bb5-961f-1acfc5078096", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccreateacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d06772-501e-00c0-6ffc-59ba32000000", + "Body" : "jtccreateacfailjtccreateacfail0pageblobapitestcreateacfail0ec75373c07fdbFri, 23 Aug 2019 21:49:30 GMT\"0x8D72813C6FF552F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:29 GMT", + "x-ms-client-request-id" : "c703c7b9-4120-4ab5-86d8-749af998180e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateacfail0pageblobapitestcreateacfail0ec75373c07fdb?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d06788-501e-00c0-04fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:29 GMT", + "x-ms-client-request-id" : "7291161c-cb6e-414a-83db-b9e1f9625e06" + }, + "Exception" : null + } ], + "variables" : [ "jtccreateacfail0pageblobapitestcreateacfail0ec75373c07fdb", "javablobcreateacfail1pageblobapitestcreateacfail0ec74839bba" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestcreateacfail[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestcreateacfail[3].json new file mode 100644 index 0000000000000..268efd36d83fc --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestcreateacfail[3].json @@ -0,0 +1,135 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateacfail0pageblobapitestcreateacfail4eb16259acb9ed?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C7168C4F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d067b6-501e-00c0-2ffc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:29 GMT", + "x-ms-client-request-id" : "643b26ac-1cce-4fce-8e83-c9c9ec8221b1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateacfail0pageblobapitestcreateacfail4eb16259acb9ed/javablobcreateacfail1pageblobapitestcreateacfail4eb044695e8", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C71CAA59\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d067de-501e-00c0-4ffc-59ba32000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:29 GMT", + "x-ms-client-request-id" : "cc3d9db2-40d0-4aa5-a2e8-eba12ea7806f" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateacfail0pageblobapitestcreateacfail4eb16259acb9ed/javablobcreateacfail1pageblobapitestcreateacfail4eb044695e8", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:30 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:49:29 GMT", + "x-ms-blob-type" : "PageBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72813C71CAA59\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:49:30 GMT", + "Content-Length" : "512", + "x-ms-request-id" : "77d06805-501e-00c0-6efc-59ba32000000", + "x-ms-client-request-id" : "8a5adab2-d8bc-468c-b33f-93c5b022a6d2", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateacfail0pageblobapitestcreateacfail4eb16259acb9ed/javablobcreateacfail1pageblobapitestcreateacfail4eb044695e8", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "77d06824-501e-00c0-0afc-59ba32000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:77d06824-501e-00c0-0afc-59ba32000000\nTime:2019-08-23T21:49:30.6868862Z", + "Date" : "Fri, 23 Aug 2019 21:49:30 GMT", + "x-ms-client-request-id" : "4ca323d0-1cf7-480c-b3b0-c32dd6f87caa", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccreateacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d06847-501e-00c0-28fc-59ba32000000", + "Body" : "jtccreateacfailjtccreateacfail0pageblobapitestcreateacfail4eb16259acb9edFri, 23 Aug 2019 21:49:30 GMT\"0x8D72813C7168C4F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:30 GMT", + "x-ms-client-request-id" : "a8ade871-5d75-40bc-9c9b-6c5486485713", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateacfail0pageblobapitestcreateacfail4eb16259acb9ed?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d0685a-501e-00c0-3afc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:30 GMT", + "x-ms-client-request-id" : "b6f7c0ed-c22c-44c8-8596-6767b7876cf4" + }, + "Exception" : null + } ], + "variables" : [ "jtccreateacfail0pageblobapitestcreateacfail4eb16259acb9ed", "javablobcreateacfail1pageblobapitestcreateacfail4eb044695e8" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestcreateacfail[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestcreateacfail[4].json new file mode 100644 index 0000000000000..69ab010485006 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestcreateacfail[4].json @@ -0,0 +1,125 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateacfail0pageblobapitestcreateacfail19f5627978c595?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C734CA0D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d06883-501e-00c0-5dfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:30 GMT", + "x-ms-client-request-id" : "c458e071-4f1f-4a24-b91c-f82a6b3cbd92" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateacfail0pageblobapitestcreateacfail19f5627978c595/javablobcreateacfail1pageblobapitestcreateacfail19f15710082", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C73A4BC5\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d068b2-501e-00c0-09fc-59ba32000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:30 GMT", + "x-ms-client-request-id" : "6e7fe634-3649-496e-b003-f98bbb34960c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateacfail0pageblobapitestcreateacfail19f5627978c595/javablobcreateacfail1pageblobapitestcreateacfail19f15710082?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C73A4BC5\"", + "x-ms-lease-id" : "e1885379-e0fd-4e4d-8c56-9c951814d167", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d068d4-501e-00c0-28fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:30 GMT", + "x-ms-client-request-id" : "1554cd14-f0e0-46a3-aca9-ae2f75dc651c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateacfail0pageblobapitestcreateacfail19f5627978c595/javablobcreateacfail1pageblobapitestcreateacfail19f15710082", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "LeaseIdMismatchWithBlobOperation", + "retry-after" : "0", + "Content-Length" : "264", + "StatusCode" : "412", + "x-ms-request-id" : "77d068f7-501e-00c0-46fc-59ba32000000", + "Body" : "LeaseIdMismatchWithBlobOperationThe lease ID specified did not match the lease ID for the blob.\nRequestId:77d068f7-501e-00c0-46fc-59ba32000000\nTime:2019-08-23T21:49:30.8830728Z", + "Date" : "Fri, 23 Aug 2019 21:49:30 GMT", + "x-ms-client-request-id" : "b11f6362-ca71-4809-b227-db846dcef471", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccreateacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d0690d-501e-00c0-5cfc-59ba32000000", + "Body" : "jtccreateacfailjtccreateacfail0pageblobapitestcreateacfail19f5627978c595Fri, 23 Aug 2019 21:49:30 GMT\"0x8D72813C734CA0D\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:30 GMT", + "x-ms-client-request-id" : "0478d80a-f217-4d4e-a307-c51272ccda3b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateacfail0pageblobapitestcreateacfail19f5627978c595?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d06945-501e-00c0-11fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:30 GMT", + "x-ms-client-request-id" : "5ab3f8e5-5a5c-4ba9-ac3b-7fbadd001950" + }, + "Exception" : null + } ], + "variables" : [ "jtccreateacfail0pageblobapitestcreateacfail19f5627978c595", "javablobcreateacfail1pageblobapitestcreateacfail19f15710082" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestcreateallnull.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestcreateallnull.json new file mode 100644 index 0000000000000..d2f53642283f2 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestcreateallnull.json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateallnull0pageblobapitestcreateallnull97a0863914d03?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C55BED69\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d05872-501e-00c0-2bfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:27 GMT", + "x-ms-client-request-id" : "0ee3b817-6084-4e08-bd81-d3f3b1c7d8c5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateallnull0pageblobapitestcreateallnull97a0863914d03/javablobcreateallnull1pageblobapitestcreateallnull97a7540542", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C5623157\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d058a7-501e-00c0-5cfc-59ba32000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:27 GMT", + "x-ms-client-request-id" : "c620602b-cca6-4cd1-9ecd-95fb3bedbd35" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateallnull0pageblobapitestcreateallnull97a0863914d03/javablobcreateallnull2pageblobapitestcreateallnull97a0609134", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C5673B9D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d058dc-501e-00c0-0dfc-59ba32000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:27 GMT", + "x-ms-client-request-id" : "a09ff286-d85a-4667-a853-702d9078ef7c" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccreateallnull&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d0593c-501e-00c0-66fc-59ba32000000", + "Body" : "jtccreateallnulljtccreateallnull0pageblobapitestcreateallnull97a0863914d03Fri, 23 Aug 2019 21:49:27 GMT\"0x8D72813C55BED69\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:27 GMT", + "x-ms-client-request-id" : "e443901a-c2e6-4102-93d6-4e2215d82f49", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateallnull0pageblobapitestcreateallnull97a0863914d03?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d05956-501e-00c0-7efc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:27 GMT", + "x-ms-client-request-id" : "4aa7fe63-b30a-46bc-a268-5a14a2ec734e" + }, + "Exception" : null + } ], + "variables" : [ "jtccreateallnull0pageblobapitestcreateallnull97a0863914d03", "javablobcreateallnull1pageblobapitestcreateallnull97a7540542", "javablobcreateallnull2pageblobapitestcreateallnull97a0609134" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestcreateerror.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestcreateerror.json new file mode 100644 index 0000000000000..dc2a6dc6ee76c --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestcreateerror.json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateerror0pageblobapitestcreateerror05412673738ccc1?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C7574E9A\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d0696d-501e-00c0-38fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:30 GMT", + "x-ms-client-request-id" : "ddd0461a-a581-4e30-a607-f90b34747c1a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateerror0pageblobapitestcreateerror05412673738ccc1/javablobcreateerror1pageblobapitestcreateerror0543716054b1", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C76C164D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d06a26-501e-00c0-5cfc-59ba32000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:30 GMT", + "x-ms-client-request-id" : "c4555fca-c4df-4696-9100-79d7f55030f9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateerror0pageblobapitestcreateerror05412673738ccc1/javablobcreateerror1pageblobapitestcreateerror0543716054b1", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "InvalidHeaderValue", + "retry-after" : "0", + "Content-Length" : "321", + "StatusCode" : "400", + "x-ms-request-id" : "77d06a48-501e-00c0-7afc-59ba32000000", + "Body" : "InvalidHeaderValueThe value for one of the HTTP headers is not in the correct format.\nRequestId:77d06a48-501e-00c0-7afc-59ba32000000\nTime:2019-08-23T21:49:31.1733495Zx-ms-lease-idid", + "Date" : "Fri, 23 Aug 2019 21:49:30 GMT", + "x-ms-client-request-id" : "c73107aa-da03-49ba-b895-ee8969133e41", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccreateerror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d06a70-501e-00c0-1bfc-59ba32000000", + "Body" : "jtccreateerrorjtccreateerror0pageblobapitestcreateerror05412673738ccc1Fri, 23 Aug 2019 21:49:31 GMT\"0x8D72813C7574E9A\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:30 GMT", + "x-ms-client-request-id" : "508ff9c4-a145-4aea-bacd-1839b3c6c38b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateerror0pageblobapitestcreateerror05412673738ccc1?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d06a89-501e-00c0-31fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:30 GMT", + "x-ms-client-request-id" : "11693dde-676d-42b0-b467-18949b1720c9" + }, + "Exception" : null + } ], + "variables" : [ "jtccreateerror0pageblobapitestcreateerror05412673738ccc1", "javablobcreateerror1pageblobapitestcreateerror0543716054b1" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestcreateheaders[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestcreateheaders[0].json new file mode 100644 index 0000000000000..5d9b6e6b190f7 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestcreateheaders[0].json @@ -0,0 +1,135 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateheaders0pageblobapitestcreateheaders13c363909859c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C5B40DFD\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d05b85-501e-00c0-6bfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:27 GMT", + "x-ms-client-request-id" : "c7461bc4-58b5-4cbe-a67a-2305608e94dc" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateheaders0pageblobapitestcreateheaders13c363909859c/javablobcreateheaders1pageblobapitestcreateheaders13c5312891", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C5B96770\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d05bc1-501e-00c0-1efc-59ba32000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:27 GMT", + "x-ms-client-request-id" : "83d7955c-604b-47bf-b540-794b9cb1ae08" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateheaders0pageblobapitestcreateheaders13c363909859c/javablobcreateheaders1pageblobapitestcreateheaders13c5312891", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C5BE2387\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d05bf1-501e-00c0-4bfc-59ba32000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:27 GMT", + "x-ms-client-request-id" : "1f7257c0-e417-4a8f-961f-78bce732bea1" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateheaders0pageblobapitestcreateheaders13c363909859c/javablobcreateheaders1pageblobapitestcreateheaders13c5312891", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:28 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:49:27 GMT", + "x-ms-blob-type" : "PageBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72813C5BE2387\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:49:28 GMT", + "Content-Length" : "512", + "x-ms-request-id" : "77d05c1d-501e-00c0-75fc-59ba32000000", + "x-ms-client-request-id" : "ed531c92-a1db-4756-9f60-7026bce614ae", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccreateheaders&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d05c3e-501e-00c0-11fc-59ba32000000", + "Body" : "jtccreateheadersjtccreateheaders0pageblobapitestcreateheaders13c363909859cFri, 23 Aug 2019 21:49:28 GMT\"0x8D72813C5B40DFD\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:27 GMT", + "x-ms-client-request-id" : "221199a0-74a9-4dfc-b700-ab2e7fe6b0e3", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateheaders0pageblobapitestcreateheaders13c363909859c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d05c6c-501e-00c0-3bfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:27 GMT", + "x-ms-client-request-id" : "5a042b53-120f-4fae-9608-df9818be8926" + }, + "Exception" : null + } ], + "variables" : [ "jtccreateheaders0pageblobapitestcreateheaders13c363909859c", "javablobcreateheaders1pageblobapitestcreateheaders13c5312891" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestcreateheaders[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestcreateheaders[1].json new file mode 100644 index 0000000000000..f65b7a740bf64 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestcreateheaders[1].json @@ -0,0 +1,140 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateheaders0pageblobapitestcreateheaders6f940191faa59?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C5D1FD90\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d05ca3-501e-00c0-71fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:27 GMT", + "x-ms-client-request-id" : "80f5b67e-d3d3-4e76-be2c-cb99848d6753" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateheaders0pageblobapitestcreateheaders6f940191faa59/javablobcreateheaders1pageblobapitestcreateheaders6f94015022", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C5D708D2\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d05cd7-501e-00c0-22fc-59ba32000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:27 GMT", + "x-ms-client-request-id" : "8b691de1-874e-4733-8b15-8483139b1460" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateheaders0pageblobapitestcreateheaders6f940191faa59/javablobcreateheaders1pageblobapitestcreateheaders6f94015022", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C5DC1321\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d05d07-501e-00c0-51fc-59ba32000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:27 GMT", + "x-ms-client-request-id" : "9e27fa9f-017e-4264-b0d9-a2ea82fe1a7b" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateheaders0pageblobapitestcreateheaders6f940191faa59/javablobcreateheaders1pageblobapitestcreateheaders6f94015022", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:28 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-blob-type" : "PageBlob", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "Content-Encoding" : "encoding", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:49:28 GMT", + "Content-Length" : "512", + "x-ms-request-id" : "77d05d31-501e-00c0-79fc-59ba32000000", + "Content-Type" : "type", + "x-ms-version" : "2019-02-02", + "x-ms-blob-sequence-number" : "0", + "Date" : "Fri, 23 Aug 2019 21:49:27 GMT", + "Content-MD5" : "d2grV20xOEQwejFENEUrUEUyNTJnZz09", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "Cache-Control" : "control", + "ETag" : "\"0x8D72813C5DC1321\"", + "Content-Disposition" : "disposition", + "x-ms-client-request-id" : "c212a064-da23-49a6-b4e2-fec4c67c7f4d", + "Content-Language" : "language" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccreateheaders&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d05d5b-501e-00c0-20fc-59ba32000000", + "Body" : "jtccreateheadersjtccreateheaders0pageblobapitestcreateheaders6f940191faa59Fri, 23 Aug 2019 21:49:28 GMT\"0x8D72813C5D1FD90\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:27 GMT", + "x-ms-client-request-id" : "feef67c9-0112-4f6b-bbe9-ee2dc9c7bbbb", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreateheaders0pageblobapitestcreateheaders6f940191faa59?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d05d74-501e-00c0-38fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:27 GMT", + "x-ms-client-request-id" : "bd281a50-dc4e-41b0-97ca-85ac706f5fad" + }, + "Exception" : null + } ], + "variables" : [ "jtccreateheaders0pageblobapitestcreateheaders6f940191faa59", "javablobcreateheaders1pageblobapitestcreateheaders6f94015022" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestcreatemetadata[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestcreatemetadata[0].json new file mode 100644 index 0000000000000..2a95ecf944b87 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestcreatemetadata[0].json @@ -0,0 +1,135 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatemetadata0pageblobapitestcreatemetadata24825769cca4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C5EEDB60\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d05d95-501e-00c0-59fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:27 GMT", + "x-ms-client-request-id" : "a297a9f5-05a7-4398-9f65-dfa1d15f86c4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatemetadata0pageblobapitestcreatemetadata24825769cca4/javablobcreatemetadata1pageblobapitestcreatemetadata248940260", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C5F40DD7\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d05dd3-501e-00c0-14fc-59ba32000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:28 GMT", + "x-ms-client-request-id" : "815744b9-5ce9-4db2-96dd-3f6012ac007a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatemetadata0pageblobapitestcreatemetadata24825769cca4/javablobcreatemetadata1pageblobapitestcreatemetadata248940260", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C5FC4D42\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d05e2a-501e-00c0-68fc-59ba32000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:28 GMT", + "x-ms-client-request-id" : "c07c9414-ee18-452a-82d6-10396bdce801" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatemetadata0pageblobapitestcreatemetadata24825769cca4/javablobcreatemetadata1pageblobapitestcreatemetadata248940260", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:28 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:49:28 GMT", + "x-ms-blob-type" : "PageBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72813C5FC4D42\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:49:28 GMT", + "Content-Length" : "512", + "x-ms-request-id" : "77d05e62-501e-00c0-1efc-59ba32000000", + "x-ms-client-request-id" : "ffb28b21-557b-4c72-9ba3-467f665bf395", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccreatemetadata&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d05e8f-501e-00c0-48fc-59ba32000000", + "Body" : "jtccreatemetadatajtccreatemetadata0pageblobapitestcreatemetadata24825769cca4Fri, 23 Aug 2019 21:49:28 GMT\"0x8D72813C5EEDB60\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:28 GMT", + "x-ms-client-request-id" : "5cf81afc-6583-487f-9f8f-4765c5d2d02d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatemetadata0pageblobapitestcreatemetadata24825769cca4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d05eaa-501e-00c0-61fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:28 GMT", + "x-ms-client-request-id" : "b47b8bcd-66db-4fd4-bff8-dbfdc2190df9" + }, + "Exception" : null + } ], + "variables" : [ "jtccreatemetadata0pageblobapitestcreatemetadata24825769cca4", "javablobcreatemetadata1pageblobapitestcreatemetadata248940260" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestcreatemetadata[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestcreatemetadata[1].json new file mode 100644 index 0000000000000..a3c600615e599 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestcreatemetadata[1].json @@ -0,0 +1,137 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatemetadata0pageblobapitestcreatemetadata8e123548a06f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C60EC73C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d05ed1-501e-00c0-05fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:28 GMT", + "x-ms-client-request-id" : "e9c14263-0795-4b9e-b3bc-efef061d0616" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatemetadata0pageblobapitestcreatemetadata8e123548a06f/javablobcreatemetadata1pageblobapitestcreatemetadata8e124742d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C613F9BC\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d05f03-501e-00c0-34fc-59ba32000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:28 GMT", + "x-ms-client-request-id" : "4e97c317-11bd-453f-8243-800dafb177a7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatemetadata0pageblobapitestcreatemetadata8e123548a06f/javablobcreatemetadata1pageblobapitestcreatemetadata8e124742d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C61867A5\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d05f27-501e-00c0-56fc-59ba32000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:28 GMT", + "x-ms-client-request-id" : "9c6636b5-1445-4318-bec8-bfe69cd3106d" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatemetadata0pageblobapitestcreatemetadata8e123548a06f/javablobcreatemetadata1pageblobapitestcreatemetadata8e124742d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:28 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:49:28 GMT", + "x-ms-meta-foo" : "bar", + "x-ms-blob-type" : "PageBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72813C61867A5\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:49:28 GMT", + "Content-Length" : "512", + "x-ms-request-id" : "77d05f47-501e-00c0-74fc-59ba32000000", + "x-ms-meta-fizz" : "buzz", + "x-ms-client-request-id" : "ed322f23-9593-4991-ae57-796401289e38", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccreatemetadata&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d05f6f-501e-00c0-18fc-59ba32000000", + "Body" : "jtccreatemetadatajtccreatemetadata0pageblobapitestcreatemetadata8e123548a06fFri, 23 Aug 2019 21:49:28 GMT\"0x8D72813C60EC73C\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:28 GMT", + "x-ms-client-request-id" : "23376eac-b44e-42dc-ae79-0a2681e1ebac", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatemetadata0pageblobapitestcreatemetadata8e123548a06f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d05fa0-501e-00c0-46fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:28 GMT", + "x-ms-client-request-id" : "e6e61c3f-ecbb-4ce7-91d2-d3f720e2e46d" + }, + "Exception" : null + } ], + "variables" : [ "jtccreatemetadata0pageblobapitestcreatemetadata8e123548a06f", "javablobcreatemetadata1pageblobapitestcreatemetadata8e124742d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestcreatemin.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestcreatemin.json new file mode 100644 index 0000000000000..de49a95524c7b --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestcreatemin.json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatemin0pageblobapitestcreatemin4ec9992635fbfd46b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C57DAE74\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d05991-501e-00c0-32fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:27 GMT", + "x-ms-client-request-id" : "eb6ddcbc-363a-43c7-b4b1-ed81a6b4e218" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatemin0pageblobapitestcreatemin4ec9992635fbfd46b/javablobcreatemin1pageblobapitestcreatemin4ec54158edb46f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C582B9A2\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d059b1-501e-00c0-51fc-59ba32000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:27 GMT", + "x-ms-client-request-id" : "fe4f5015-05b7-40ff-9665-1fd56c66cc23" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatemin0pageblobapitestcreatemin4ec9992635fbfd46b/javablobcreatemin1pageblobapitestcreatemin4ec54158edb46f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C587EB09\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d059e2-501e-00c0-7dfc-59ba32000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:27 GMT", + "x-ms-client-request-id" : "8ccc2e2a-cb08-4336-939b-32642792e2d1" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccreatemin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d05a15-501e-00c0-2cfc-59ba32000000", + "Body" : "jtccreateminjtccreatemin0pageblobapitestcreatemin4ec9992635fbfd46bFri, 23 Aug 2019 21:49:27 GMT\"0x8D72813C57DAE74\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:27 GMT", + "x-ms-client-request-id" : "3108c7df-22cc-4bb1-b6d3-cac1720d35cf", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatemin0pageblobapitestcreatemin4ec9992635fbfd46b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d05a3b-501e-00c0-4efc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:27 GMT", + "x-ms-client-request-id" : "ba441317-d98a-4441-9177-9408ee3bf1c5" + }, + "Exception" : null + } ], + "variables" : [ "jtccreatemin0pageblobapitestcreatemin4ec9992635fbfd46b", "javablobcreatemin1pageblobapitestcreatemin4ec54158edb46f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestcreatesequencenumber.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestcreatesequencenumber.json new file mode 100644 index 0000000000000..6b8623d91187a --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestcreatesequencenumber.json @@ -0,0 +1,135 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatesequencenumber066534eed701a93dcd47bab?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C59693B5\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d05a6c-501e-00c0-79fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:27 GMT", + "x-ms-client-request-id" : "6d8f019d-567e-454c-be87-8da5833110a7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatesequencenumber066534eed701a93dcd47bab/javablobcreatesequencenumber1014567c102a7f1f1d47", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C59B77D6\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d05aa6-501e-00c0-28fc-59ba32000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:27 GMT", + "x-ms-client-request-id" : "a0d30cce-2efb-4b16-8abd-3291443eba56" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatesequencenumber066534eed701a93dcd47bab/javablobcreatesequencenumber1014567c102a7f1f1d47", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C5A033ED\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d05ad5-501e-00c0-4efc-59ba32000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:27 GMT", + "x-ms-client-request-id" : "e3b3130d-6755-4dcd-b356-4dff7b30c2d3" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatesequencenumber066534eed701a93dcd47bab/javablobcreatesequencenumber1014567c102a7f1f1d47", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "x-ms-blob-sequence-number" : "2", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:28 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:49:27 GMT", + "x-ms-blob-type" : "PageBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72813C5A033ED\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:49:28 GMT", + "Content-Length" : "512", + "x-ms-request-id" : "77d05b03-501e-00c0-76fc-59ba32000000", + "x-ms-client-request-id" : "3c7def69-75d8-4212-b339-3cebc6c2fac9", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccreatesequencenumber&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d05b22-501e-00c0-11fc-59ba32000000", + "Body" : "jtccreatesequencenumberjtccreatesequencenumber066534eed701a93dcd47babFri, 23 Aug 2019 21:49:28 GMT\"0x8D72813C59693B5\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:27 GMT", + "x-ms-client-request-id" : "87120801-d6e3-49fa-9ff0-90dbb730b737", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccreatesequencenumber066534eed701a93dcd47bab?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d05b42-501e-00c0-2dfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:27 GMT", + "x-ms-client-request-id" : "818089c3-5413-434b-ba05-0e2d73e8ac5f" + }, + "Exception" : null + } ], + "variables" : [ "jtccreatesequencenumber066534eed701a93dcd47bab", "javablobcreatesequencenumber1014567c102a7f1f1d47" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpageranges.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpageranges.json new file mode 100644 index 0000000000000..6bc54b607b675 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpageranges.json @@ -0,0 +1,130 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpageranges0pageblobapitestgetpageranges7a24360429688?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D3318412\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fbf5d-301e-0094-6dfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:50 GMT", + "x-ms-client-request-id" : "da2783da-17ed-483a-b4d2-0e1cf06359ec" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpageranges0pageblobapitestgetpageranges7a24360429688/javablobgetpageranges1pageblobapitestgetpageranges7a228613ba", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D336944C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fbf75-301e-0094-80fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:50 GMT", + "x-ms-client-request-id" : "eccdba7e-d7fa-4903-8bbf-fd265d4d5e3c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpageranges0pageblobapitestgetpageranges7a24360429688/javablobgetpageranges1pageblobapitestgetpageranges7a228613ba?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "Rn2nxzJRw5U=", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:50 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:50 GMT", + "ETag" : "\"0x8D72813D33B777B\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77fbf81-301e-0094-0afc-5950b8000000", + "x-ms-client-request-id" : "164e9d7c-a8d9-4d44-9a60-8945443ea205" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpageranges0pageblobapitestgetpageranges7a24360429688/javablobgetpageranges1pageblobapitestgetpageranges7a228613ba?comp=pagelist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-blob-content-length" : "512", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:50 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:49:50 GMT", + "ETag" : "\"0x8D72813D33B777B\"", + "x-ms-request-id" : "f77fbf8f-301e-0094-14fc-5950b8000000", + "Body" : "0511", + "x-ms-client-request-id" : "fd407511-25f3-46bd-be9d-828b9ba61991", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetpageranges&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fbf9e-301e-0094-20fc-5950b8000000", + "Body" : "jtcgetpagerangesjtcgetpageranges0pageblobapitestgetpageranges7a24360429688Fri, 23 Aug 2019 21:49:50 GMT\"0x8D72813D3318412\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:50 GMT", + "x-ms-client-request-id" : "60471673-99f0-47a6-8cb2-77547de47af8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpageranges0pageblobapitestgetpageranges7a24360429688?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fbfaa-301e-0094-29fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:50 GMT", + "x-ms-client-request-id" : "b53dc3aa-3ff5-4f77-9ea6-9a901c2c084d" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetpageranges0pageblobapitestgetpageranges7a24360429688", "javablobgetpageranges1pageblobapitestgetpageranges7a228613ba", "6f52ba19-e080-4325-8a5d-c4e186ad5367" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesac[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesac[0].json new file mode 100644 index 0000000000000..0d74b8585ee62 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesac[0].json @@ -0,0 +1,106 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesac0pageblobapitestgetpagerangesacdc617925df6?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D36FFB40\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc01d-301e-0094-0dfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:50 GMT", + "x-ms-client-request-id" : "ac73a077-c37f-4b84-a440-1f6afef50637" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesac0pageblobapitestgetpagerangesacdc617925df6/javablobgetpagerangesac1pageblobapitestgetpagerangesacdc657500", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D375F6CB\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc033-301e-0094-1efc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:51 GMT", + "x-ms-client-request-id" : "076359d7-9de1-49c2-9dce-cc588b2f4224" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesac0pageblobapitestgetpagerangesacdc617925df6/javablobgetpagerangesac1pageblobapitestgetpagerangesacdc657500?comp=pagelist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-blob-content-length" : "512", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:51 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:49:51 GMT", + "ETag" : "\"0x8D72813D375F6CB\"", + "x-ms-request-id" : "f77fc040-301e-0094-2bfc-5950b8000000", + "Body" : "", + "x-ms-client-request-id" : "e24b004e-a5e9-4d82-9086-421ff63861eb", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetpagerangesac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fc048-301e-0094-33fc-5950b8000000", + "Body" : "jtcgetpagerangesacjtcgetpagerangesac0pageblobapitestgetpagerangesacdc617925df6Fri, 23 Aug 2019 21:49:51 GMT\"0x8D72813D36FFB40\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:51 GMT", + "x-ms-client-request-id" : "effd957f-7d80-4176-bf7b-5b07444f1280", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesac0pageblobapitestgetpagerangesacdc617925df6?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fc055-301e-0094-3dfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:51 GMT", + "x-ms-client-request-id" : "4613d6a6-64e1-4704-a6e7-12d69c04d722" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetpagerangesac0pageblobapitestgetpagerangesacdc617925df6", "javablobgetpagerangesac1pageblobapitestgetpagerangesacdc657500" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesac[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesac[1].json new file mode 100644 index 0000000000000..1fab29d1cbf51 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesac[1].json @@ -0,0 +1,106 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesac0pageblobapitestgetpagerangesacdac671130d2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D38A1919\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc06c-301e-0094-51fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:51 GMT", + "x-ms-client-request-id" : "eec5321c-ab24-4cad-947c-6d660ddedf64" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesac0pageblobapitestgetpagerangesacdac671130d2/javablobgetpagerangesac1pageblobapitestgetpagerangesacdac40516", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D38F2A52\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc085-301e-0094-66fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:51 GMT", + "x-ms-client-request-id" : "455419d7-f15c-41c9-b127-c9014408a210" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesac0pageblobapitestgetpagerangesacdac671130d2/javablobgetpagerangesac1pageblobapitestgetpagerangesacdac40516?comp=pagelist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-blob-content-length" : "512", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:51 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:49:51 GMT", + "ETag" : "\"0x8D72813D38F2A52\"", + "x-ms-request-id" : "f77fc09a-301e-0094-7bfc-5950b8000000", + "Body" : "", + "x-ms-client-request-id" : "cad5cb4d-a154-4924-82cc-e84e4de43ffe", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetpagerangesac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fc0ac-301e-0094-0cfc-5950b8000000", + "Body" : "jtcgetpagerangesacjtcgetpagerangesac0pageblobapitestgetpagerangesacdac671130d2Fri, 23 Aug 2019 21:49:51 GMT\"0x8D72813D38A1919\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:51 GMT", + "x-ms-client-request-id" : "6a184611-d1c6-4c00-8fdf-bb867e4c4ed2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesac0pageblobapitestgetpagerangesacdac671130d2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fc0ba-301e-0094-1afc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:51 GMT", + "x-ms-client-request-id" : "7d5f7a41-8d8f-412e-84ef-6eec20691e29" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetpagerangesac0pageblobapitestgetpagerangesacdac671130d2", "javablobgetpagerangesac1pageblobapitestgetpagerangesacdac40516" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesac[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesac[2].json new file mode 100644 index 0000000000000..64bdc1b125f86 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesac[2].json @@ -0,0 +1,106 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesac0pageblobapitestgetpagerangesaceab41806d77?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D3A261B6\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc0ce-301e-0094-2bfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:51 GMT", + "x-ms-client-request-id" : "6cfe583a-82cc-41a7-9e05-2f0e4e19002b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesac0pageblobapitestgetpagerangesaceab41806d77/javablobgetpagerangesac1pageblobapitestgetpagerangesaceab98880", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D3A7C165\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc0e6-301e-0094-41fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:51 GMT", + "x-ms-client-request-id" : "1a984d31-041f-4ad9-affc-bc28e0ae8349" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesac0pageblobapitestgetpagerangesaceab41806d77/javablobgetpagerangesac1pageblobapitestgetpagerangesaceab98880?comp=pagelist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-blob-content-length" : "512", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:51 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:49:51 GMT", + "ETag" : "\"0x8D72813D3A7C165\"", + "x-ms-request-id" : "f77fc0f9-301e-0094-50fc-5950b8000000", + "Body" : "", + "x-ms-client-request-id" : "007a47c7-3eda-4754-b3d9-bf28b94f0ebe", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetpagerangesac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fc100-301e-0094-55fc-5950b8000000", + "Body" : "jtcgetpagerangesacjtcgetpagerangesac0pageblobapitestgetpagerangesaceab41806d77Fri, 23 Aug 2019 21:49:51 GMT\"0x8D72813D3A261B6\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:51 GMT", + "x-ms-client-request-id" : "2a1f2b95-f61b-410a-acea-1e931121c61d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesac0pageblobapitestgetpagerangesaceab41806d77?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fc10a-301e-0094-5ffc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:51 GMT", + "x-ms-client-request-id" : "18cec56f-5dc5-468b-91b6-cb10dcc1ff04" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetpagerangesac0pageblobapitestgetpagerangesaceab41806d77", "javablobgetpagerangesac1pageblobapitestgetpagerangesaceab98880" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesac[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesac[3].json new file mode 100644 index 0000000000000..2b954bf2403d2 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesac[3].json @@ -0,0 +1,137 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesac0pageblobapitestgetpagerangesac9434173559e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D3BAD174\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc11b-301e-0094-6bfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:51 GMT", + "x-ms-client-request-id" : "448c6657-a8c4-480a-a55d-f6c6c878fb78" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesac0pageblobapitestgetpagerangesac9434173559e/javablobgetpagerangesac1pageblobapitestgetpagerangesac94304638", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D3C16A37\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc12d-301e-0094-77fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:51 GMT", + "x-ms-client-request-id" : "ae777c28-56bf-4e32-8cf7-8c7744d240d2" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesac0pageblobapitestgetpagerangesac9434173559e/javablobgetpagerangesac1pageblobapitestgetpagerangesac94304638", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:51 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:49:51 GMT", + "x-ms-blob-type" : "PageBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72813D3C16A37\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:49:51 GMT", + "Content-Length" : "512", + "x-ms-request-id" : "f77fc149-301e-0094-10fc-5950b8000000", + "x-ms-client-request-id" : "ca8e8d55-e5ae-4a75-ac6c-0b532d13ba27", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesac0pageblobapitestgetpagerangesac9434173559e/javablobgetpagerangesac1pageblobapitestgetpagerangesac94304638?comp=pagelist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-blob-content-length" : "512", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:51 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:49:51 GMT", + "ETag" : "\"0x8D72813D3C16A37\"", + "x-ms-request-id" : "f77fc152-301e-0094-18fc-5950b8000000", + "Body" : "", + "x-ms-client-request-id" : "babb0c86-b01e-44cb-974e-f680f9fed1dc", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetpagerangesac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fc160-301e-0094-23fc-5950b8000000", + "Body" : "jtcgetpagerangesacjtcgetpagerangesac0pageblobapitestgetpagerangesac9434173559eFri, 23 Aug 2019 21:49:51 GMT\"0x8D72813D3BAD174\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:51 GMT", + "x-ms-client-request-id" : "2a600706-5199-47bf-b4b0-d8dd07623625", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesac0pageblobapitestgetpagerangesac9434173559e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fc166-301e-0094-28fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:51 GMT", + "x-ms-client-request-id" : "b8125479-c86a-448d-8746-efbeb99c573e" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetpagerangesac0pageblobapitestgetpagerangesac9434173559e", "javablobgetpagerangesac1pageblobapitestgetpagerangesac94304638" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesac[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesac[4].json new file mode 100644 index 0000000000000..0989ad2399f4d --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesac[4].json @@ -0,0 +1,106 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesac0pageblobapitestgetpagerangesac68804678592?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D3DF03BB\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc175-301e-0094-35fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:51 GMT", + "x-ms-client-request-id" : "f3f9f4af-9c53-46d5-a66c-85ec3ec26278" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesac0pageblobapitestgetpagerangesac68804678592/javablobgetpagerangesac1pageblobapitestgetpagerangesac68892829", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D3E4641C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc189-301e-0094-47fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:51 GMT", + "x-ms-client-request-id" : "5dcd6709-2ca3-4143-af72-cf5c9c58b00d" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesac0pageblobapitestgetpagerangesac68804678592/javablobgetpagerangesac1pageblobapitestgetpagerangesac68892829?comp=pagelist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-blob-content-length" : "512", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:52 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:49:51 GMT", + "ETag" : "\"0x8D72813D3E4641C\"", + "x-ms-request-id" : "f77fc19f-301e-0094-59fc-5950b8000000", + "Body" : "", + "x-ms-client-request-id" : "373a1baf-1725-4a87-97ad-b87ffb08ce78", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetpagerangesac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fc1ad-301e-0094-67fc-5950b8000000", + "Body" : "jtcgetpagerangesacjtcgetpagerangesac0pageblobapitestgetpagerangesac68804678592Fri, 23 Aug 2019 21:49:52 GMT\"0x8D72813D3DF03BB\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:51 GMT", + "x-ms-client-request-id" : "48d4571b-4cee-4864-bc54-89a629cead32", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesac0pageblobapitestgetpagerangesac68804678592?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fc1bf-301e-0094-76fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:51 GMT", + "x-ms-client-request-id" : "ca54049d-985a-49c6-bd3b-13484699b741" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetpagerangesac0pageblobapitestgetpagerangesac68804678592", "javablobgetpagerangesac1pageblobapitestgetpagerangesac68892829" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesac[5].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesac[5].json new file mode 100644 index 0000000000000..8e1c4f8089959 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesac[5].json @@ -0,0 +1,127 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesac0pageblobapitestgetpagerangesac13742901db2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D3F996CB\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc1cd-301e-0094-02fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:51 GMT", + "x-ms-client-request-id" : "09c3ca97-d667-42e2-a4a3-faeef3740f46" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesac0pageblobapitestgetpagerangesac13742901db2/javablobgetpagerangesac1pageblobapitestgetpagerangesac13793395", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D3FF6CD2\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc1e4-301e-0094-13fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:51 GMT", + "x-ms-client-request-id" : "4a04ebae-33db-4b72-bac3-9ba9ebf21284" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesac0pageblobapitestgetpagerangesac13742901db2/javablobgetpagerangesac1pageblobapitestgetpagerangesac13793395?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D3FF6CD2\"", + "x-ms-lease-id" : "98f5837f-db49-453c-bc5a-b994780f3523", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc1f6-301e-0094-24fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:51 GMT", + "x-ms-client-request-id" : "f3c969e8-0397-45e1-b376-ce2616b998ae" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesac0pageblobapitestgetpagerangesac13742901db2/javablobgetpagerangesac1pageblobapitestgetpagerangesac13793395?comp=pagelist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-blob-content-length" : "512", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:52 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:49:51 GMT", + "ETag" : "\"0x8D72813D3FF6CD2\"", + "x-ms-request-id" : "f77fc1fc-301e-0094-29fc-5950b8000000", + "Body" : "", + "x-ms-client-request-id" : "b7f133de-4f68-48ae-a0f3-e13c2071bf59", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetpagerangesac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fc208-301e-0094-32fc-5950b8000000", + "Body" : "jtcgetpagerangesacjtcgetpagerangesac0pageblobapitestgetpagerangesac13742901db2Fri, 23 Aug 2019 21:49:52 GMT\"0x8D72813D3F996CB\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:51 GMT", + "x-ms-client-request-id" : "438a319c-7c02-4db5-913c-9211781b2a2a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesac0pageblobapitestgetpagerangesac13742901db2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fc21e-301e-0094-45fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:52 GMT", + "x-ms-client-request-id" : "26de9c81-0bbc-4f44-bce2-61c9e6a1ea01" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetpagerangesac0pageblobapitestgetpagerangesac13742901db2", "javablobgetpagerangesac1pageblobapitestgetpagerangesac13793395" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesacfail[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesacfail[0].json new file mode 100644 index 0000000000000..5a372d1804f2a --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesacfail[0].json @@ -0,0 +1,103 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesacfail043753020ce54fe8dc40298?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D4182277\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc234-301e-0094-55fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:52 GMT", + "x-ms-client-request-id" : "5c521851-5ba0-428d-8f3b-7c4a31bf73be" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesacfail043753020ce54fe8dc40298/javablobgetpagerangesacfail13723456ffca69fa174b4", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D41DAA9F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc247-301e-0094-61fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:52 GMT", + "x-ms-client-request-id" : "f06e8372-a104-4a4c-91b6-81f739aecaf9" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesacfail043753020ce54fe8dc40298/javablobgetpagerangesacfail13723456ffca69fa174b4?comp=pagelist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "StatusCode" : "304", + "x-ms-request-id" : "f77fc259-301e-0094-71fc-5950b8000000", + "Body" : "", + "Date" : "Fri, 23 Aug 2019 21:49:52 GMT", + "x-ms-client-request-id" : "cd1f11a5-ba19-455a-be1a-a02b28f4147a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetpagerangesacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fc260-301e-0094-77fc-5950b8000000", + "Body" : "jtcgetpagerangesacfailjtcgetpagerangesacfail043753020ce54fe8dc40298Fri, 23 Aug 2019 21:49:52 GMT\"0x8D72813D4182277\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:52 GMT", + "x-ms-client-request-id" : "3edbdb34-0acb-4b3c-a321-daf8d35e2917", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesacfail043753020ce54fe8dc40298?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fc26a-301e-0094-01fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:52 GMT", + "x-ms-client-request-id" : "ff66ae32-d266-4e45-8d27-d886de52f891" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetpagerangesacfail043753020ce54fe8dc40298", "javablobgetpagerangesacfail13723456ffca69fa174b4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesacfail[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesacfail[1].json new file mode 100644 index 0000000000000..08c5f0b1a238a --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesacfail[1].json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesacfail0075185669ab094e1e49079?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D4326759\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc27a-301e-0094-10fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:52 GMT", + "x-ms-client-request-id" : "067796f3-87ef-40d2-b4a5-c22952d96268" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesacfail0075185669ab094e1e49079/javablobgetpagerangesacfail16653117eea54c1026439", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D437EFE1\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc28f-301e-0094-21fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:52 GMT", + "x-ms-client-request-id" : "fe92d8de-caef-4869-838f-4f942b8430c1" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesacfail0075185669ab094e1e49079/javablobgetpagerangesacfail16653117eea54c1026439?comp=pagelist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "f77fc2a0-301e-0094-31fc-5950b8000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:f77fc2a0-301e-0094-31fc-5950b8000000\nTime:2019-08-23T21:49:52.6467875Z", + "Date" : "Fri, 23 Aug 2019 21:49:52 GMT", + "x-ms-client-request-id" : "fdc1b1af-d83c-4125-a85f-c2768149e38a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetpagerangesacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fc2a8-301e-0094-39fc-5950b8000000", + "Body" : "jtcgetpagerangesacfailjtcgetpagerangesacfail0075185669ab094e1e49079Fri, 23 Aug 2019 21:49:52 GMT\"0x8D72813D4326759\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:52 GMT", + "x-ms-client-request-id" : "e922c469-9c34-4c6a-84be-5baddd35e359", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesacfail0075185669ab094e1e49079?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fc2b4-301e-0094-43fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:52 GMT", + "x-ms-client-request-id" : "d19e8d42-f513-499c-99ae-a0de3d0698e9" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetpagerangesacfail0075185669ab094e1e49079", "javablobgetpagerangesacfail16653117eea54c1026439" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesacfail[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesacfail[2].json new file mode 100644 index 0000000000000..4e99c7f6ab58c --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesacfail[2].json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesacfail043464d9144632e4ba4c069?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D44B9A8D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc2d0-301e-0094-5afc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:52 GMT", + "x-ms-client-request-id" : "96463c81-6096-4ad8-abd3-65b15e81198f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesacfail043464d9144632e4ba4c069/javablobgetpagerangesacfail19672368c537a5e64d47c", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D454F4D3\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc2e5-301e-0094-6bfc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:52 GMT", + "x-ms-client-request-id" : "ee22fd5f-a312-47df-8da2-2e7ac118dea9" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesacfail043464d9144632e4ba4c069/javablobgetpagerangesacfail19672368c537a5e64d47c?comp=pagelist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "f77fc2f0-301e-0094-75fc-5950b8000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:f77fc2f0-301e-0094-75fc-5950b8000000\nTime:2019-08-23T21:49:52.8349591Z", + "Date" : "Fri, 23 Aug 2019 21:49:52 GMT", + "x-ms-client-request-id" : "24b37370-6d10-4978-ae3b-8fb8a7379c5c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetpagerangesacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fc2f7-301e-0094-7cfc-5950b8000000", + "Body" : "jtcgetpagerangesacfailjtcgetpagerangesacfail043464d9144632e4ba4c069Fri, 23 Aug 2019 21:49:52 GMT\"0x8D72813D44B9A8D\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:52 GMT", + "x-ms-client-request-id" : "05d75529-b50d-4234-bd00-ff5581d3a438", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesacfail043464d9144632e4ba4c069?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fc2fe-301e-0094-02fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:52 GMT", + "x-ms-client-request-id" : "8439cd9d-3fb6-4cb1-a7c5-a33189c793c9" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetpagerangesacfail043464d9144632e4ba4c069", "javablobgetpagerangesacfail19672368c537a5e64d47c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesacfail[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesacfail[3].json new file mode 100644 index 0000000000000..bdea250ead6ca --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesacfail[3].json @@ -0,0 +1,134 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesacfail0829479a5b1659ae964aac9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D46829EF\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc318-301e-0094-18fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:52 GMT", + "x-ms-client-request-id" : "2878d76e-c6a9-4f91-b1ff-5ddf3f4b6aeb" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesacfail0829479a5b1659ae964aac9/javablobgetpagerangesacfail1183302ce1c7fd3a924c0", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D46D8BF4\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc332-301e-0094-2bfc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:52 GMT", + "x-ms-client-request-id" : "58d1e9da-2d4f-4d7a-97b6-86b43d9b74b5" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesacfail0829479a5b1659ae964aac9/javablobgetpagerangesacfail1183302ce1c7fd3a924c0", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:52 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:49:52 GMT", + "x-ms-blob-type" : "PageBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72813D46D8BF4\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:49:52 GMT", + "Content-Length" : "512", + "x-ms-request-id" : "f77fc33e-301e-0094-36fc-5950b8000000", + "x-ms-client-request-id" : "9162b627-0f1f-4da1-9014-304254ad557a", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesacfail0829479a5b1659ae964aac9/javablobgetpagerangesacfail1183302ce1c7fd3a924c0?comp=pagelist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "StatusCode" : "304", + "x-ms-request-id" : "f77fc347-301e-0094-3efc-5950b8000000", + "Body" : "", + "Date" : "Fri, 23 Aug 2019 21:49:52 GMT", + "x-ms-client-request-id" : "5eb34c66-fbcd-4f2b-b785-cf43adca5668", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetpagerangesacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fc352-301e-0094-49fc-5950b8000000", + "Body" : "jtcgetpagerangesacfailjtcgetpagerangesacfail0829479a5b1659ae964aac9Fri, 23 Aug 2019 21:49:52 GMT\"0x8D72813D46829EF\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:52 GMT", + "x-ms-client-request-id" : "f7e493e9-58e9-4334-b8f1-b6145853936d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesacfail0829479a5b1659ae964aac9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fc35e-301e-0094-54fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:52 GMT", + "x-ms-client-request-id" : "8effa432-cac7-45b8-b71d-6591c1c366ed" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetpagerangesacfail0829479a5b1659ae964aac9", "javablobgetpagerangesacfail1183302ce1c7fd3a924c0" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesacfail[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesacfail[4].json new file mode 100644 index 0000000000000..61b4e1c32592e --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesacfail[4].json @@ -0,0 +1,125 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesacfail04037800cd1ef74145439b9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D4866764\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc380-301e-0094-74fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:52 GMT", + "x-ms-client-request-id" : "3d4251f5-8fa7-440a-92e4-b57011cf90a1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesacfail04037800cd1ef74145439b9/javablobgetpagerangesacfail1370524942e623dc1b45a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D48B7B85\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc38c-301e-0094-7efc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:52 GMT", + "x-ms-client-request-id" : "2608dc82-752b-4f44-af3f-828b8a8c0121" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesacfail04037800cd1ef74145439b9/javablobgetpagerangesacfail1370524942e623dc1b45a?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D48B7B85\"", + "x-ms-lease-id" : "47b15803-691f-4a60-8e95-ceae637e28df", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc39e-301e-0094-0efc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:52 GMT", + "x-ms-client-request-id" : "e8d3211e-4ddd-45f2-ba32-a7fb43e77ac0" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesacfail04037800cd1ef74145439b9/javablobgetpagerangesacfail1370524942e623dc1b45a?comp=pagelist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "LeaseIdMismatchWithBlobOperation", + "retry-after" : "0", + "Content-Length" : "264", + "StatusCode" : "412", + "x-ms-request-id" : "f77fc3a8-301e-0094-18fc-5950b8000000", + "Body" : "LeaseIdMismatchWithBlobOperationThe lease ID specified did not match the lease ID for the blob.\nRequestId:f77fc3a8-301e-0094-18fc-5950b8000000\nTime:2019-08-23T21:49:53.2353258Z", + "Date" : "Fri, 23 Aug 2019 21:49:52 GMT", + "x-ms-client-request-id" : "fa2fda55-8c30-4285-8c30-4374a772969b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetpagerangesacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fc3b1-301e-0094-21fc-5950b8000000", + "Body" : "jtcgetpagerangesacfailjtcgetpagerangesacfail04037800cd1ef74145439b9Fri, 23 Aug 2019 21:49:53 GMT\"0x8D72813D4866764\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:52 GMT", + "x-ms-client-request-id" : "75045a01-a429-49a8-96c6-9e51a7c29a8e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesacfail04037800cd1ef74145439b9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fc3ba-301e-0094-2afc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:52 GMT", + "x-ms-client-request-id" : "2194d04d-ef2c-477e-845d-a30e164e8d78" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetpagerangesacfail04037800cd1ef74145439b9", "javablobgetpagerangesacfail1370524942e623dc1b45a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesdiff.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesdiff.json new file mode 100644 index 0000000000000..853782ae84f29 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesdiff.json @@ -0,0 +1,218 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiff0pageblobapitestgetpagerangesdiff7ba35452a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D4BCED7F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc415-301e-0094-79fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:53 GMT", + "x-ms-client-request-id" : "aecac4b7-fd59-4a00-bb77-401ea1cdf876" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiff0pageblobapitestgetpagerangesdiff7ba35452a/javablobgetpagerangesdiff17804757cab200caaf468b", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D4C1DB1B\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc42f-301e-0094-0dfc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:53 GMT", + "x-ms-client-request-id" : "da3b1c38-5ed3-46cc-86a5-cf7294b04605" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiff0pageblobapitestgetpagerangesdiff7ba35452a/javablobgetpagerangesdiff17804757cab200caaf468b", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D4C6701B\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc440-301e-0094-1cfc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:53 GMT", + "x-ms-client-request-id" : "381956ab-20b1-4f02-a4f9-a5378c4d4365" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiff0pageblobapitestgetpagerangesdiff7ba35452a/javablobgetpagerangesdiff17804757cab200caaf468b?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "KPFrAtAz8hY=", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:53 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:53 GMT", + "ETag" : "\"0x8D72813D4CB7A6A\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77fc454-301e-0094-2dfc-5950b8000000", + "x-ms-client-request-id" : "4922188c-1e15-438a-8d8f-4771d1429f0c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiff0pageblobapitestgetpagerangesdiff7ba35452a/javablobgetpagerangesdiff17804757cab200caaf468b?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-snapshot" : "2019-08-23T21:49:53.6119430Z", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D4CB7A6A\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc463-301e-0094-3afc-5950b8000000", + "x-ms-request-server-encrypted" : "false", + "Date" : "Fri, 23 Aug 2019 21:49:53 GMT", + "x-ms-client-request-id" : "7cf851da-ba5b-4fb6-9d2b-2448a86ea6fb" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiff0pageblobapitestgetpagerangesdiff7ba35452a/javablobgetpagerangesdiff17804757cab200caaf468b?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "SxF1ErNXV3Q=", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:53 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:53 GMT", + "ETag" : "\"0x8D72813D4D58F08\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77fc47b-301e-0094-4efc-5950b8000000", + "x-ms-client-request-id" : "e0429b49-9bc1-413e-bf80-827bd4c58eb2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiff0pageblobapitestgetpagerangesdiff7ba35452a/javablobgetpagerangesdiff17804757cab200caaf468b?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D4D9D5D5\"", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc488-301e-0094-5afc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:53 GMT", + "x-ms-client-request-id" : "95f93fed-3341-4b5f-ad79-bd4b8a5dd03e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiff0pageblobapitestgetpagerangesdiff7ba35452a/javablobgetpagerangesdiff17804757cab200caaf468b?prevsnapshot=2019-08-23T21%3a49%3a53.6119430Z&comp=pagelist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-blob-content-length" : "1024", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:53 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:49:53 GMT", + "ETag" : "\"0x8D72813D4D9D5D5\"", + "x-ms-request-id" : "f77fc49b-301e-0094-6cfc-5950b8000000", + "Body" : "05115121023", + "x-ms-client-request-id" : "7b1a5b8a-9382-42f1-9468-925907836a91", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetpagerangesdiff&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fc4af-301e-0094-80fc-5950b8000000", + "Body" : "jtcgetpagerangesdiffjtcgetpagerangesdiff0pageblobapitestgetpagerangesdiff7ba35452aFri, 23 Aug 2019 21:49:53 GMT\"0x8D72813D4BCED7F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:53 GMT", + "x-ms-client-request-id" : "28cc26bf-41b0-425b-8c24-cbd3b2f68203", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiff0pageblobapitestgetpagerangesdiff7ba35452a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fc4c4-301e-0094-14fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:53 GMT", + "x-ms-client-request-id" : "45afc60d-fca1-478a-ba2b-4317b39c802d" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetpagerangesdiff0pageblobapitestgetpagerangesdiff7ba35452a", "javablobgetpagerangesdiff17804757cab200caaf468b", "9b4b823f-541d-4135-b45e-11d43f32f844", "e01c3f03-1d49-41ed-8888-87596536e5b5" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesdiffac[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesdiffac[0].json new file mode 100644 index 0000000000000..335da7bf76bd6 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesdiffac[0].json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffac015469f49702d662f64c57a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D5135F18\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc553-301e-0094-11fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:53 GMT", + "x-ms-client-request-id" : "68f4161c-4a93-4182-9796-6d2282ddd433" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffac015469f49702d662f64c57a/javablobgetpagerangesdiffac137922d11d9792a3c0407", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D5189BED\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc572-301e-0094-2cfc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:53 GMT", + "x-ms-client-request-id" : "b1241bb5-fc82-4a78-9dfe-5cbca78e99a7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffac015469f49702d662f64c57a/javablobgetpagerangesdiffac137922d11d9792a3c0407?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-snapshot" : "2019-08-23T21:49:54.1184293Z", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D5189BED\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc581-301e-0094-39fc-5950b8000000", + "x-ms-request-server-encrypted" : "false", + "Date" : "Fri, 23 Aug 2019 21:49:53 GMT", + "x-ms-client-request-id" : "70ac3156-a6ed-47d3-a970-ebf006ba9441" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffac015469f49702d662f64c57a/javablobgetpagerangesdiffac137922d11d9792a3c0407?prevsnapshot=2019-08-23T21%3a49%3a54.1184293Z&comp=pagelist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-blob-content-length" : "512", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:54 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:49:53 GMT", + "ETag" : "\"0x8D72813D5189BED\"", + "x-ms-request-id" : "f77fc590-301e-0094-45fc-5950b8000000", + "Body" : "", + "x-ms-client-request-id" : "e593effc-a993-4df1-adae-46a2bc99e3d3", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetpagerangesdiffac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fc5a4-301e-0094-59fc-5950b8000000", + "Body" : "jtcgetpagerangesdiffacjtcgetpagerangesdiffac015469f49702d662f64c57aFri, 23 Aug 2019 21:49:54 GMT\"0x8D72813D5135F18\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:53 GMT", + "x-ms-client-request-id" : "9143c20e-ec90-4734-bfeb-21f49cee859e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffac015469f49702d662f64c57a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fc5b2-301e-0094-66fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:53 GMT", + "x-ms-client-request-id" : "6965a8b9-ce9b-4e9d-858d-a075a403de15" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetpagerangesdiffac015469f49702d662f64c57a", "javablobgetpagerangesdiffac137922d11d9792a3c0407" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesdiffac[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesdiffac[1].json new file mode 100644 index 0000000000000..d10f8e78fb1c0 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesdiffac[1].json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffac0732096eca2c47389148508?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D53E229C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc5e0-301e-0094-0ffc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:53 GMT", + "x-ms-client-request-id" : "9368c96b-db43-438e-9ead-cdabbf956af3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffac0732096eca2c47389148508/javablobgetpagerangesdiffac1885092e4eac9dd953492", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D543D53D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc5f6-301e-0094-22fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:54 GMT", + "x-ms-client-request-id" : "d3ea2639-ab30-4a83-b34d-58ab2fa1b411" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffac0732096eca2c47389148508/javablobgetpagerangesdiffac1885092e4eac9dd953492?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-snapshot" : "2019-08-23T21:49:54.4017004Z", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D543D53D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc60d-301e-0094-37fc-5950b8000000", + "x-ms-request-server-encrypted" : "false", + "Date" : "Fri, 23 Aug 2019 21:49:54 GMT", + "x-ms-client-request-id" : "76748a58-86ea-4934-84b2-f27a285abec5" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffac0732096eca2c47389148508/javablobgetpagerangesdiffac1885092e4eac9dd953492?prevsnapshot=2019-08-23T21%3a49%3a54.4017004Z&comp=pagelist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-blob-content-length" : "512", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:54 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:49:54 GMT", + "ETag" : "\"0x8D72813D543D53D\"", + "x-ms-request-id" : "f77fc61d-301e-0094-44fc-5950b8000000", + "Body" : "", + "x-ms-client-request-id" : "1dc7dbc0-675d-47bd-9f17-b8dd69a76a16", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetpagerangesdiffac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fc627-301e-0094-4efc-5950b8000000", + "Body" : "jtcgetpagerangesdiffacjtcgetpagerangesdiffac0732096eca2c47389148508Fri, 23 Aug 2019 21:49:54 GMT\"0x8D72813D53E229C\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:54 GMT", + "x-ms-client-request-id" : "36a18d1b-9aa9-4e45-882a-686bd9284d0c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffac0732096eca2c47389148508?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fc639-301e-0094-5ffc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:54 GMT", + "x-ms-client-request-id" : "e22e8be4-bf68-40f2-affe-cc2b5e74c30e" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetpagerangesdiffac0732096eca2c47389148508", "javablobgetpagerangesdiffac1885092e4eac9dd953492" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesdiffac[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesdiffac[2].json new file mode 100644 index 0000000000000..4effda6af533a --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesdiffac[2].json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffac0856259b8ece5e37f846d89?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D55CAE4C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc64e-301e-0094-70fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:54 GMT", + "x-ms-client-request-id" : "48ed0924-1567-49bb-bc76-ddca6cf09155" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffac0856259b8ece5e37f846d89/javablobgetpagerangesdiffac1351801138ab6853ac483", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D561C4D7\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc669-301e-0094-07fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:54 GMT", + "x-ms-client-request-id" : "b869c54f-e73d-4ae7-b0fc-d6a531e5fe89" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffac0856259b8ece5e37f846d89/javablobgetpagerangesdiffac1351801138ab6853ac483?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-snapshot" : "2019-08-23T21:49:54.6038962Z", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D561C4D7\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc683-301e-0094-1bfc-5950b8000000", + "x-ms-request-server-encrypted" : "false", + "Date" : "Fri, 23 Aug 2019 21:49:54 GMT", + "x-ms-client-request-id" : "001906fb-0829-4891-b15b-faee7bbad1f9" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffac0856259b8ece5e37f846d89/javablobgetpagerangesdiffac1351801138ab6853ac483?prevsnapshot=2019-08-23T21%3a49%3a54.6038962Z&comp=pagelist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-blob-content-length" : "512", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:54 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:49:54 GMT", + "ETag" : "\"0x8D72813D561C4D7\"", + "x-ms-request-id" : "f77fc69a-301e-0094-2ffc-5950b8000000", + "Body" : "", + "x-ms-client-request-id" : "b66df3e9-8d07-4a42-9eeb-cc8032a67593", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetpagerangesdiffac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fc6bb-301e-0094-4dfc-5950b8000000", + "Body" : "jtcgetpagerangesdiffacjtcgetpagerangesdiffac0856259b8ece5e37f846d89Fri, 23 Aug 2019 21:49:54 GMT\"0x8D72813D55CAE4C\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:54 GMT", + "x-ms-client-request-id" : "bcaab385-2a7b-4a40-8615-dc58c465249d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffac0856259b8ece5e37f846d89?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fc6cf-301e-0094-60fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:54 GMT", + "x-ms-client-request-id" : "d7248cd3-77df-46c0-83c3-0a6a3a114f15" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetpagerangesdiffac0856259b8ece5e37f846d89", "javablobgetpagerangesdiffac1351801138ab6853ac483" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesdiffac[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesdiffac[3].json new file mode 100644 index 0000000000000..16966d4baf424 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesdiffac[3].json @@ -0,0 +1,159 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffac046034968e508ddb6541638?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D5817CF4\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc6ea-301e-0094-7afc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:54 GMT", + "x-ms-client-request-id" : "d69563e7-e12f-4b7b-9a7f-2eb3cdbf2d0d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffac046034968e508ddb6541638/javablobgetpagerangesdiffac115553f05932736fee436", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D586E227\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc6fc-301e-0094-0afc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:54 GMT", + "x-ms-client-request-id" : "85b3d930-c64f-453c-9835-202481e9736f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffac046034968e508ddb6541638/javablobgetpagerangesdiffac115553f05932736fee436?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-snapshot" : "2019-08-23T21:49:54.8431241Z", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D586E227\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc70d-301e-0094-19fc-5950b8000000", + "x-ms-request-server-encrypted" : "false", + "Date" : "Fri, 23 Aug 2019 21:49:54 GMT", + "x-ms-client-request-id" : "4d757035-e2eb-4019-b8e4-45c9b74e4a1e" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffac046034968e508ddb6541638/javablobgetpagerangesdiffac115553f05932736fee436", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:54 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:49:54 GMT", + "x-ms-blob-type" : "PageBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72813D586E227\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:49:54 GMT", + "Content-Length" : "512", + "x-ms-request-id" : "f77fc71f-301e-0094-2afc-5950b8000000", + "x-ms-client-request-id" : "ecb8d759-e2a4-4a2b-bfe7-4e34a2800575", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffac046034968e508ddb6541638/javablobgetpagerangesdiffac115553f05932736fee436?prevsnapshot=2019-08-23T21%3a49%3a54.8431241Z&comp=pagelist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-blob-content-length" : "512", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:54 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:49:54 GMT", + "ETag" : "\"0x8D72813D586E227\"", + "x-ms-request-id" : "f77fc729-301e-0094-33fc-5950b8000000", + "Body" : "", + "x-ms-client-request-id" : "bbc0fefe-4537-47e9-b51f-4731d1f4ac04", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetpagerangesdiffac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fc73c-301e-0094-46fc-5950b8000000", + "Body" : "jtcgetpagerangesdiffacjtcgetpagerangesdiffac046034968e508ddb6541638Fri, 23 Aug 2019 21:49:54 GMT\"0x8D72813D5817CF4\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:54 GMT", + "x-ms-client-request-id" : "c7290bd6-9f88-4260-bf84-f53f736d3f79", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffac046034968e508ddb6541638?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fc753-301e-0094-5cfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:54 GMT", + "x-ms-client-request-id" : "388e2546-18f7-4756-8c33-3cfcba7c69f4" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetpagerangesdiffac046034968e508ddb6541638", "javablobgetpagerangesdiffac115553f05932736fee436" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesdiffac[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesdiffac[4].json new file mode 100644 index 0000000000000..cb1e94652eaef --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesdiffac[4].json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffac024792786c00e4048945819?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D5A4766D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc774-301e-0094-78fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:54 GMT", + "x-ms-client-request-id" : "76b0f443-cf03-4ff9-b6ce-9a5a0c377491" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffac024792786c00e4048945819/javablobgetpagerangesdiffac163527d381306d436b43a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D5A9DC07\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc792-301e-0094-0ffc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:54 GMT", + "x-ms-client-request-id" : "8e534c09-9435-485a-96b3-a5cbe31f262d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffac024792786c00e4048945819/javablobgetpagerangesdiffac163527d381306d436b43a?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-snapshot" : "2019-08-23T21:49:55.0723447Z", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D5A9DC07\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc7b5-301e-0094-2ffc-5950b8000000", + "x-ms-request-server-encrypted" : "false", + "Date" : "Fri, 23 Aug 2019 21:49:54 GMT", + "x-ms-client-request-id" : "21dbd324-f374-47a7-b41a-3568c48c54eb" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffac024792786c00e4048945819/javablobgetpagerangesdiffac163527d381306d436b43a?prevsnapshot=2019-08-23T21%3a49%3a55.0723447Z&comp=pagelist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-blob-content-length" : "512", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:55 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:49:54 GMT", + "ETag" : "\"0x8D72813D5A9DC07\"", + "x-ms-request-id" : "f77fc7c8-301e-0094-42fc-5950b8000000", + "Body" : "", + "x-ms-client-request-id" : "e11b1ebb-c38c-4ddc-8bc5-c27d2e42fa59", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetpagerangesdiffac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fc7d7-301e-0094-50fc-5950b8000000", + "Body" : "jtcgetpagerangesdiffacjtcgetpagerangesdiffac024792786c00e4048945819Fri, 23 Aug 2019 21:49:55 GMT\"0x8D72813D5A4766D\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:54 GMT", + "x-ms-client-request-id" : "ea0b1799-2764-49aa-8397-84ce5a7d5019", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffac024792786c00e4048945819?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fc7e8-301e-0094-5efc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:54 GMT", + "x-ms-client-request-id" : "c1335c63-a46e-4c9f-9fb6-759e6fccb50d" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetpagerangesdiffac024792786c00e4048945819", "javablobgetpagerangesdiffac163527d381306d436b43a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesdiffac[5].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesdiffac[5].json new file mode 100644 index 0000000000000..a8d8940ee1f9f --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesdiffac[5].json @@ -0,0 +1,149 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffac00683186f685aef0cc4f119?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D5C2B3E2\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc7fc-301e-0094-70fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:54 GMT", + "x-ms-client-request-id" : "5b4b44a6-631e-46b6-b6a9-488acd585f49" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffac00683186f685aef0cc4f119/javablobgetpagerangesdiffac1686828b644bbfa0db40b", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D5C819D9\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc816-301e-0094-02fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:54 GMT", + "x-ms-client-request-id" : "c6a07e4a-e591-401c-921d-6eee76f5ce64" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffac00683186f685aef0cc4f119/javablobgetpagerangesdiffac1686828b644bbfa0db40b?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-snapshot" : "2019-08-23T21:49:55.2695331Z", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D5C819D9\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc822-301e-0094-0cfc-5950b8000000", + "x-ms-request-server-encrypted" : "false", + "Date" : "Fri, 23 Aug 2019 21:49:54 GMT", + "x-ms-client-request-id" : "563b2e21-a794-4003-a92b-1545192374b4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffac00683186f685aef0cc4f119/javablobgetpagerangesdiffac1686828b644bbfa0db40b?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D5C819D9\"", + "x-ms-lease-id" : "07e96545-43c4-44f9-9d01-10459947bde2", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc831-301e-0094-19fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:54 GMT", + "x-ms-client-request-id" : "309f3c3b-3e30-4bb3-a075-88abd478c7c3" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffac00683186f685aef0cc4f119/javablobgetpagerangesdiffac1686828b644bbfa0db40b?prevsnapshot=2019-08-23T21%3a49%3a55.2695331Z&comp=pagelist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-blob-content-length" : "512", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:55 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:49:54 GMT", + "ETag" : "\"0x8D72813D5C819D9\"", + "x-ms-request-id" : "f77fc844-301e-0094-2afc-5950b8000000", + "Body" : "", + "x-ms-client-request-id" : "b2f70758-a09a-4ae1-b68d-94c6b7b909c9", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetpagerangesdiffac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fc851-301e-0094-35fc-5950b8000000", + "Body" : "jtcgetpagerangesdiffacjtcgetpagerangesdiffac00683186f685aef0cc4f119Fri, 23 Aug 2019 21:49:55 GMT\"0x8D72813D5C2B3E2\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:55 GMT", + "x-ms-client-request-id" : "db409dfb-ef85-4be0-8307-06ac338aff7d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffac00683186f685aef0cc4f119?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fc862-301e-0094-42fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:55 GMT", + "x-ms-client-request-id" : "9c1de257-95f9-4ed7-b36e-23a0794127cb" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetpagerangesdiffac00683186f685aef0cc4f119", "javablobgetpagerangesdiffac1686828b644bbfa0db40b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesdiffacfail[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesdiffacfail[0].json new file mode 100644 index 0000000000000..f9b2c517b9390 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesdiffacfail[0].json @@ -0,0 +1,125 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffacfail0782710b3224b01d8a4fe?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D5E51100\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc877-301e-0094-52fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:55 GMT", + "x-ms-client-request-id" : "f5e1487d-691a-4c7c-a29a-3a38858f0013" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffacfail0782710b3224b01d8a4fe/javablobgetpagerangesdiffacfail1750888332c7c024a34", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D5EA2924\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc88b-301e-0094-64fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:55 GMT", + "x-ms-client-request-id" : "61038f60-dfc8-4205-a699-02d91b8a8403" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffacfail0782710b3224b01d8a4fe/javablobgetpagerangesdiffacfail1750888332c7c024a34?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-snapshot" : "2019-08-23T21:49:55.4917472Z", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D5EA2924\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc8a4-301e-0094-7cfc-5950b8000000", + "x-ms-request-server-encrypted" : "false", + "Date" : "Fri, 23 Aug 2019 21:49:55 GMT", + "x-ms-client-request-id" : "0fb6e54e-85cb-48bb-8821-2d1ce2b86263" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffacfail0782710b3224b01d8a4fe/javablobgetpagerangesdiffacfail1750888332c7c024a34?prevsnapshot=2019-08-23T21%3a49%3a55.4917472Z&comp=pagelist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "StatusCode" : "304", + "x-ms-request-id" : "f77fc8ae-301e-0094-06fc-5950b8000000", + "Body" : "", + "Date" : "Fri, 23 Aug 2019 21:49:55 GMT", + "x-ms-client-request-id" : "de1cc9c7-fc36-462a-bfe5-4f700d4b3f10", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetpagerangesdiffacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fc8b8-301e-0094-0ffc-5950b8000000", + "Body" : "jtcgetpagerangesdiffacfailjtcgetpagerangesdiffacfail0782710b3224b01d8a4feFri, 23 Aug 2019 21:49:55 GMT\"0x8D72813D5E51100\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:55 GMT", + "x-ms-client-request-id" : "4a96b6a0-510c-4083-bdd1-1c29d21e0d23", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffacfail0782710b3224b01d8a4fe?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fc8c8-301e-0094-1dfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:55 GMT", + "x-ms-client-request-id" : "b67b4b4a-a3dc-45f7-ba43-73abcb1759b7" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetpagerangesdiffacfail0782710b3224b01d8a4fe", "javablobgetpagerangesdiffacfail1750888332c7c024a34" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesdiffacfail[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesdiffacfail[1].json new file mode 100644 index 0000000000000..c7a33ccf7a3b0 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesdiffacfail[1].json @@ -0,0 +1,126 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffacfail076838d5052273928d42a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D60FAD6D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc917-301e-0094-64fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:55 GMT", + "x-ms-client-request-id" : "85cc42a5-45bf-45f3-bba5-8586690be1fa" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffacfail076838d5052273928d42a/javablobgetpagerangesdiffacfail183809a4d20a01d18e4", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D6153B5C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc927-301e-0094-72fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:55 GMT", + "x-ms-client-request-id" : "4d27f945-0311-4e82-808f-c62d2a5905ad" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffacfail076838d5052273928d42a/javablobgetpagerangesdiffacfail183809a4d20a01d18e4?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-snapshot" : "2019-08-23T21:49:55.7800228Z", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D6153B5C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc938-301e-0094-02fc-5950b8000000", + "x-ms-request-server-encrypted" : "false", + "Date" : "Fri, 23 Aug 2019 21:49:55 GMT", + "x-ms-client-request-id" : "0cc9e54d-eb6d-47ba-b302-8621dd2bd0ab" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffacfail076838d5052273928d42a/javablobgetpagerangesdiffacfail183809a4d20a01d18e4?prevsnapshot=2019-08-23T21%3a49%3a55.7800228Z&comp=pagelist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "f77fc94c-301e-0094-13fc-5950b8000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:f77fc94c-301e-0094-13fc-5950b8000000\nTime:2019-08-23T21:49:55.8126830Z", + "Date" : "Fri, 23 Aug 2019 21:49:55 GMT", + "x-ms-client-request-id" : "a6b04319-ac5e-4116-a0f1-d9682a1f0df5", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetpagerangesdiffacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fc95a-301e-0094-21fc-5950b8000000", + "Body" : "jtcgetpagerangesdiffacfailjtcgetpagerangesdiffacfail076838d5052273928d42aFri, 23 Aug 2019 21:49:55 GMT\"0x8D72813D60FAD6D\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:55 GMT", + "x-ms-client-request-id" : "253f3a94-e807-4ed9-8192-9403a3c9b69d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffacfail076838d5052273928d42a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fc96a-301e-0094-30fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:55 GMT", + "x-ms-client-request-id" : "0056c744-0527-400f-8647-49b894d3785a" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetpagerangesdiffacfail076838d5052273928d42a", "javablobgetpagerangesdiffacfail183809a4d20a01d18e4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesdiffacfail[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesdiffacfail[2].json new file mode 100644 index 0000000000000..525d060676c91 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesdiffacfail[2].json @@ -0,0 +1,126 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffacfail061581819e165dd1654a6?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D62E11FD\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc981-301e-0094-42fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:55 GMT", + "x-ms-client-request-id" : "522d1bc4-4e53-4009-aca1-a8d64f07dfb0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffacfail061581819e165dd1654a6/javablobgetpagerangesdiffacfail197724290e90c3021d4", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D63303D1\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc995-301e-0094-52fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:55 GMT", + "x-ms-client-request-id" : "f31577c9-083b-4ace-8e6e-e208a26cc5f1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffacfail061581819e165dd1654a6/javablobgetpagerangesdiffacfail197724290e90c3021d4?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-snapshot" : "2019-08-23T21:49:55.9692041Z", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D63303D1\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc9a3-301e-0094-5efc-5950b8000000", + "x-ms-request-server-encrypted" : "false", + "Date" : "Fri, 23 Aug 2019 21:49:55 GMT", + "x-ms-client-request-id" : "bd459992-f71b-43f5-84a0-b880ed0b8309" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffacfail061581819e165dd1654a6/javablobgetpagerangesdiffacfail197724290e90c3021d4?prevsnapshot=2019-08-23T21%3a49%3a55.9692041Z&comp=pagelist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "f77fc9b2-301e-0094-6bfc-5950b8000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:f77fc9b2-301e-0094-6bfc-5950b8000000\nTime:2019-08-23T21:49:55.9988537Z", + "Date" : "Fri, 23 Aug 2019 21:49:55 GMT", + "x-ms-client-request-id" : "2b813abc-75cd-4eef-b167-8bc3acfc534f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetpagerangesdiffacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fc9b9-301e-0094-72fc-5950b8000000", + "Body" : "jtcgetpagerangesdiffacfailjtcgetpagerangesdiffacfail061581819e165dd1654a6Fri, 23 Aug 2019 21:49:55 GMT\"0x8D72813D62E11FD\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:55 GMT", + "x-ms-client-request-id" : "768ddf61-89a2-4333-ac19-af99af79984d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffacfail061581819e165dd1654a6?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fc9c6-301e-0094-7ffc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:55 GMT", + "x-ms-client-request-id" : "7fa22866-702f-4b6b-8d7b-fc86fe2b3828" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetpagerangesdiffacfail061581819e165dd1654a6", "javablobgetpagerangesdiffacfail197724290e90c3021d4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesdiffacfail[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesdiffacfail[3].json new file mode 100644 index 0000000000000..e2ad718d54cbe --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesdiffacfail[3].json @@ -0,0 +1,156 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffacfail070137bf84e902f6094f6?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D64A5324\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc9ea-301e-0094-1efc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:55 GMT", + "x-ms-client-request-id" : "f6691028-11f7-4e07-bff4-8a8b41e82f45" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffacfail070137bf84e902f6094f6/javablobgetpagerangesdiffacfail1012001cbea535dd4c4", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D64FBAA8\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc9fe-301e-0094-2ffc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:55 GMT", + "x-ms-client-request-id" : "93c5e6f4-f61c-4afb-a7c4-07dd39f453ef" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffacfail070137bf84e902f6094f6/javablobgetpagerangesdiffacfail1012001cbea535dd4c4?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-snapshot" : "2019-08-23T21:49:56.1583863Z", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D64FBAA8\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fca11-301e-0094-3efc-5950b8000000", + "x-ms-request-server-encrypted" : "false", + "Date" : "Fri, 23 Aug 2019 21:49:55 GMT", + "x-ms-client-request-id" : "a590292a-eedf-4838-880e-4d250a523f01" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffacfail070137bf84e902f6094f6/javablobgetpagerangesdiffacfail1012001cbea535dd4c4", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:56 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:49:55 GMT", + "x-ms-blob-type" : "PageBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72813D64FBAA8\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:49:56 GMT", + "Content-Length" : "512", + "x-ms-request-id" : "f77fca29-301e-0094-54fc-5950b8000000", + "x-ms-client-request-id" : "400e4f97-3e71-40b3-ae10-be42c6fd8a24", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffacfail070137bf84e902f6094f6/javablobgetpagerangesdiffacfail1012001cbea535dd4c4?prevsnapshot=2019-08-23T21%3a49%3a56.1583863Z&comp=pagelist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "StatusCode" : "304", + "x-ms-request-id" : "f77fca3c-301e-0094-65fc-5950b8000000", + "Body" : "", + "Date" : "Fri, 23 Aug 2019 21:49:55 GMT", + "x-ms-client-request-id" : "99836f01-782e-40e3-acfa-a15ad9baa935", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetpagerangesdiffacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fca4e-301e-0094-74fc-5950b8000000", + "Body" : "jtcgetpagerangesdiffacfailjtcgetpagerangesdiffacfail070137bf84e902f6094f6Fri, 23 Aug 2019 21:49:56 GMT\"0x8D72813D64A5324\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:55 GMT", + "x-ms-client-request-id" : "e7ca3467-4ee0-47e0-be2b-cac0adc7f74b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffacfail070137bf84e902f6094f6?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fca61-301e-0094-03fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:55 GMT", + "x-ms-client-request-id" : "0e8b9497-660c-49b1-83a8-5d52023e99d1" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetpagerangesdiffacfail070137bf84e902f6094f6", "javablobgetpagerangesdiffacfail1012001cbea535dd4c4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesdiffacfail[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesdiffacfail[4].json new file mode 100644 index 0000000000000..7dc5482c10906 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesdiffacfail[4].json @@ -0,0 +1,147 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffacfail03978465a26a9be0534f8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D66C13E2\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fca7f-301e-0094-14fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:55 GMT", + "x-ms-client-request-id" : "6d296ac4-c9d1-42a5-99be-f28eb5289640" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffacfail03978465a26a9be0534f8/javablobgetpagerangesdiffacfail1793303b306ed8427b4", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D671C9F3\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fca97-301e-0094-22fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:56 GMT", + "x-ms-client-request-id" : "513242cf-09cb-45d6-bf87-12c298981530" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffacfail03978465a26a9be0534f8/javablobgetpagerangesdiffacfail1793303b306ed8427b4?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-snapshot" : "2019-08-23T21:49:56.3826009Z", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D671C9F3\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fcab2-301e-0094-37fc-5950b8000000", + "x-ms-request-server-encrypted" : "false", + "Date" : "Fri, 23 Aug 2019 21:49:56 GMT", + "x-ms-client-request-id" : "71f43ca1-06da-4bdd-8698-d376d2cdff25" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffacfail03978465a26a9be0534f8/javablobgetpagerangesdiffacfail1793303b306ed8427b4?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D671C9F3\"", + "x-ms-lease-id" : "161ec213-34d0-478b-a269-919738011870", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fcac0-301e-0094-44fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:56 GMT", + "x-ms-client-request-id" : "0a4e069f-d25e-4829-b07d-863d7b1c971b" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffacfail03978465a26a9be0534f8/javablobgetpagerangesdiffacfail1793303b306ed8427b4?prevsnapshot=2019-08-23T21%3a49%3a56.3826009Z&comp=pagelist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "LeaseIdMismatchWithBlobOperation", + "retry-after" : "0", + "Content-Length" : "264", + "StatusCode" : "412", + "x-ms-request-id" : "f77fcacc-301e-0094-4dfc-5950b8000000", + "Body" : "LeaseIdMismatchWithBlobOperationThe lease ID specified did not match the lease ID for the blob.\nRequestId:f77fcacc-301e-0094-4dfc-5950b8000000\nTime:2019-08-23T21:49:56.4452611Z", + "Date" : "Fri, 23 Aug 2019 21:49:56 GMT", + "x-ms-client-request-id" : "be52358a-c9ec-4319-8758-1df0b9fe7759", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetpagerangesdiffacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fcad9-301e-0094-56fc-5950b8000000", + "Body" : "jtcgetpagerangesdiffacfailjtcgetpagerangesdiffacfail03978465a26a9be0534f8Fri, 23 Aug 2019 21:49:56 GMT\"0x8D72813D66C13E2\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:56 GMT", + "x-ms-client-request-id" : "02af9a9e-e5df-447d-a2ba-29010fa19e2b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffacfail03978465a26a9be0534f8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fcaf4-301e-0094-69fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:56 GMT", + "x-ms-client-request-id" : "a696d86b-a162-4dfb-a70c-0e629fd9f62d" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetpagerangesdiffacfail03978465a26a9be0534f8", "javablobgetpagerangesdiffacfail1793303b306ed8427b4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesdifferror.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesdifferror.json new file mode 100644 index 0000000000000..44994ea73ea2f --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesdifferror.json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdifferror041558f93bc28f51de4855?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D68EE652\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fcb14-301e-0094-80fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:56 GMT", + "x-ms-client-request-id" : "23a75030-f810-40e7-bd5c-855f89f9d02c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdifferror041558f93bc28f51de4855/javablobgetpagerangesdifferror160752e85149b149534", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D6944E96\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fcb21-301e-0094-09fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:56 GMT", + "x-ms-client-request-id" : "f7629e7b-ed3d-4369-af3a-8e421a0fd15e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdifferror041558f93bc28f51de4855/javablobgetpagerangesdifferror24133246a6984d53824?prevsnapshot=snapshot&comp=pagelist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "InvalidQueryParameterValue", + "retry-after" : "0", + "Content-Length" : "444", + "StatusCode" : "400", + "x-ms-request-id" : "f77fcb3f-301e-0094-1dfc-5950b8000000", + "Body" : "InvalidQueryParameterValueValue for one of the query parameters specified in the request URI is invalid.\nRequestId:f77fcb3f-301e-0094-1dfc-5950b8000000\nTime:2019-08-23T21:49:56.6184202ZprevsnapshotsnapshotMust be in the specific snapshot date time format.", + "Date" : "Fri, 23 Aug 2019 21:49:56 GMT", + "x-ms-client-request-id" : "9ea14091-9566-48f4-876a-f80cc6885c74", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetpagerangesdifferror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fcb49-301e-0094-26fc-5950b8000000", + "Body" : "jtcgetpagerangesdifferrorjtcgetpagerangesdifferror041558f93bc28f51de4855Fri, 23 Aug 2019 21:49:56 GMT\"0x8D72813D68EE652\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:56 GMT", + "x-ms-client-request-id" : "a307e9d6-aba3-4b82-9bd0-81ed75bb1cd2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdifferror041558f93bc28f51de4855?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fcb5a-301e-0094-34fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:56 GMT", + "x-ms-client-request-id" : "022bbae8-866f-45e3-a345-f2d7cff9b937" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetpagerangesdifferror041558f93bc28f51de4855", "javablobgetpagerangesdifferror160752e85149b149534", "javablobgetpagerangesdifferror24133246a6984d53824" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesdiffmin.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesdiffmin.json new file mode 100644 index 0000000000000..ebb4701052681 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesdiffmin.json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffmin000312fa3b6760575042c7a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D4F17751\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc4d3-301e-0094-21fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:53 GMT", + "x-ms-client-request-id" : "96258e8e-3ecd-48b9-b1a2-dc3c042b7020" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffmin000312fa3b6760575042c7a/javablobgetpagerangesdiffmin10775325d538329cd042", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D4F66590\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc4e6-301e-0094-32fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:53 GMT", + "x-ms-client-request-id" : "705a566c-4824-4fba-9a9b-c409d75d75ba" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffmin000312fa3b6760575042c7a/javablobgetpagerangesdiffmin10775325d538329cd042?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-snapshot" : "2019-08-23T21:49:53.9242426Z", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D4F66590\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc507-301e-0094-4cfc-5950b8000000", + "x-ms-request-server-encrypted" : "false", + "Date" : "Fri, 23 Aug 2019 21:49:53 GMT", + "x-ms-client-request-id" : "4f34c082-939b-487b-a759-aa0a8574000f" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffmin000312fa3b6760575042c7a/javablobgetpagerangesdiffmin10775325d538329cd042?prevsnapshot=2019-08-23T21%3a49%3a53.9242426Z&comp=pagelist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-blob-content-length" : "512", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:53 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:49:53 GMT", + "ETag" : "\"0x8D72813D4F66590\"", + "x-ms-request-id" : "f77fc515-301e-0094-5afc-5950b8000000", + "Body" : "", + "x-ms-client-request-id" : "c40b067c-45cb-4005-a5cd-035aa9417ca9", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetpagerangesdiffmin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fc520-301e-0094-65fc-5950b8000000", + "Body" : "jtcgetpagerangesdiffminjtcgetpagerangesdiffmin000312fa3b6760575042c7aFri, 23 Aug 2019 21:49:53 GMT\"0x8D72813D4F17751\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:53 GMT", + "x-ms-client-request-id" : "262c0250-0f0a-44fd-a5c9-ee4fd4fcc6a4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesdiffmin000312fa3b6760575042c7a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fc537-301e-0094-77fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:53 GMT", + "x-ms-client-request-id" : "9f7e63b7-6232-419f-b97e-c40d82cf25b3" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetpagerangesdiffmin000312fa3b6760575042c7a", "javablobgetpagerangesdiffmin10775325d538329cd042" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangeserror.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangeserror.json new file mode 100644 index 0000000000000..6a49f283098c3 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangeserror.json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangeserror035534895806a9845c433c8d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D4A4A4DD\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc3cd-301e-0094-38fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:52 GMT", + "x-ms-client-request-id" : "f4e32330-cf8d-427d-8a7d-a334070f8650" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangeserror035534895806a9845c433c8d/javablobgetpagerangeserror17073274178ac1b2d14ea", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D4A9B952\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fc3e0-301e-0094-48fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:53 GMT", + "x-ms-client-request-id" : "a6bd0fe3-04c1-44f6-8059-f0e15b625480" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangeserror035534895806a9845c433c8d/javablobgetpagerangeserror2395506e6681658250495?comp=pagelist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "BlobNotFound", + "retry-after" : "0", + "Content-Length" : "215", + "StatusCode" : "404", + "x-ms-request-id" : "f77fc3f1-301e-0094-58fc-5950b8000000", + "Body" : "BlobNotFoundThe specified blob does not exist.\nRequestId:f77fc3f1-301e-0094-58fc-5950b8000000\nTime:2019-08-23T21:49:53.3924693Z", + "Date" : "Fri, 23 Aug 2019 21:49:53 GMT", + "x-ms-client-request-id" : "f9f281b7-a90a-4212-a79a-7e1e40279a63", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetpagerangeserror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fc3fe-301e-0094-63fc-5950b8000000", + "Body" : "jtcgetpagerangeserrorjtcgetpagerangeserror035534895806a9845c433c8dFri, 23 Aug 2019 21:49:53 GMT\"0x8D72813D4A4A4DD\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:53 GMT", + "x-ms-client-request-id" : "6f766ef7-a22a-4095-ac86-d55b2cf75d9d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangeserror035534895806a9845c433c8d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fc404-301e-0094-69fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:53 GMT", + "x-ms-client-request-id" : "0e874ed2-2ff4-454b-8321-11f793e0a708" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetpagerangeserror035534895806a9845c433c8d", "javablobgetpagerangeserror17073274178ac1b2d14ea", "javablobgetpagerangeserror2395506e6681658250495" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesmin.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesmin.json new file mode 100644 index 0000000000000..cfe07f2edc0cc --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestgetpagerangesmin.json @@ -0,0 +1,106 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesmin0pageblobapitestgetpagerangesmin671914297d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D3562BAC\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fbfdb-301e-0094-56fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:50 GMT", + "x-ms-client-request-id" : "2531a9f4-2598-4dd3-a930-aba6ad96013c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesmin0pageblobapitestgetpagerangesmin671914297d/javablobgetpagerangesmin16444054976c696b1f4a91", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D35B8A85\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fbfe8-301e-0094-62fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:50 GMT", + "x-ms-client-request-id" : "cae3374c-ce10-4fb2-8beb-9609c75cfc8e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesmin0pageblobapitestgetpagerangesmin671914297d/javablobgetpagerangesmin16444054976c696b1f4a91?comp=pagelist", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-blob-content-length" : "512", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:51 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:49:50 GMT", + "ETag" : "\"0x8D72813D35B8A85\"", + "x-ms-request-id" : "f77fbffa-301e-0094-70fc-5950b8000000", + "Body" : "", + "x-ms-client-request-id" : "f34365be-80ab-402c-bada-98da700592d0", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetpagerangesmin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fbfff-301e-0094-74fc-5950b8000000", + "Body" : "jtcgetpagerangesminjtcgetpagerangesmin0pageblobapitestgetpagerangesmin671914297dFri, 23 Aug 2019 21:49:51 GMT\"0x8D72813D3562BAC\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:50 GMT", + "x-ms-client-request-id" : "e6d2075f-6e09-4846-b3b8-28366a106a5c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpagerangesmin0pageblobapitestgetpagerangesmin671914297d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fc00d-301e-0094-80fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:50 GMT", + "x-ms-client-request-id" : "938b4c91-5ee8-40ab-af9d-76e5b1bd3bcf" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetpagerangesmin0pageblobapitestgetpagerangesmin671914297d", "javablobgetpagerangesmin16444054976c696b1f4a91" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestpagerangeia[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestpagerangeia[0].json new file mode 100644 index 0000000000000..83b5fe947a6ea --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestpagerangeia[0].json @@ -0,0 +1,83 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcpagerangeia0pageblobapitestpagerangeia19e2464980a467c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D6A95247\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fcb74-301e-0094-48fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:56 GMT", + "x-ms-client-request-id" : "5db612c6-5a94-440c-9b0f-51b92b05364b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcpagerangeia0pageblobapitestpagerangeia19e2464980a467c/javablobpagerangeia1pageblobapitestpagerangeia19e72056a476", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D6AE4596\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fcb87-301e-0094-59fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:56 GMT", + "x-ms-client-request-id" : "98ea6855-00d1-42c0-85aa-bfe4cb3685f4" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcpagerangeia&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fcb99-301e-0094-68fc-5950b8000000", + "Body" : "jtcpagerangeiajtcpagerangeia0pageblobapitestpagerangeia19e2464980a467cFri, 23 Aug 2019 21:49:56 GMT\"0x8D72813D6A95247\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:56 GMT", + "x-ms-client-request-id" : "a903173a-34de-47f9-a193-51117a4a6684", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcpagerangeia0pageblobapitestpagerangeia19e2464980a467c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fcbb0-301e-0094-7afc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:56 GMT", + "x-ms-client-request-id" : "14b2a3a6-2cb0-407d-85ac-b585322a55d0" + }, + "Exception" : null + } ], + "variables" : [ "jtcpagerangeia0pageblobapitestpagerangeia19e2464980a467c", "javablobpagerangeia1pageblobapitestpagerangeia19e72056a476" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestpagerangeia[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestpagerangeia[1].json new file mode 100644 index 0000000000000..e60355c970d8e --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestpagerangeia[1].json @@ -0,0 +1,83 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcpagerangeia0pageblobapitestpagerangeiad5086816023819e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D6BCDEDB\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fcbd1-301e-0094-12fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:56 GMT", + "x-ms-client-request-id" : "553d62bc-481f-4aa2-bd51-7e8f9379d7bb" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcpagerangeia0pageblobapitestpagerangeiad5086816023819e/javablobpagerangeia1pageblobapitestpagerangeiad50431754748", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D6C9000B\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fcc00-301e-0094-3afc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:56 GMT", + "x-ms-client-request-id" : "87c3f553-d059-42d4-bcc8-d66af00a2697" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcpagerangeia&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fcc15-301e-0094-4cfc-5950b8000000", + "Body" : "jtcpagerangeiajtcpagerangeia0pageblobapitestpagerangeiad5086816023819eFri, 23 Aug 2019 21:49:56 GMT\"0x8D72813D6BCDEDB\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:56 GMT", + "x-ms-client-request-id" : "4a95aacc-f322-4117-8e4d-6c3ad8b804a3", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcpagerangeia0pageblobapitestpagerangeiad5086816023819e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fcc20-301e-0094-57fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:56 GMT", + "x-ms-client-request-id" : "6f5ea773-c763-410a-9c72-b40ccf6b8ed4" + }, + "Exception" : null + } ], + "variables" : [ "jtcpagerangeia0pageblobapitestpagerangeiad5086816023819e", "javablobpagerangeia1pageblobapitestpagerangeiad50431754748" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestpagerangeia[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestpagerangeia[2].json new file mode 100644 index 0000000000000..3b11eb16e1fd6 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestpagerangeia[2].json @@ -0,0 +1,83 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcpagerangeia0pageblobapitestpagerangeia22938809d2e91b8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D6D79906\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fcc31-301e-0094-67fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:56 GMT", + "x-ms-client-request-id" : "8ffbc186-3602-4114-a946-98095d2968f7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcpagerangeia0pageblobapitestpagerangeia22938809d2e91b8/javablobpagerangeia1pageblobapitestpagerangeia229311777919", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D6DCB3FD\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fcc48-301e-0094-78fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:56 GMT", + "x-ms-client-request-id" : "9000994c-bc57-4568-a32e-41909d586f54" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcpagerangeia&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fcc5f-301e-0094-08fc-5950b8000000", + "Body" : "jtcpagerangeiajtcpagerangeia0pageblobapitestpagerangeia22938809d2e91b8Fri, 23 Aug 2019 21:49:57 GMT\"0x8D72813D6D79906\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:56 GMT", + "x-ms-client-request-id" : "3f2a3091-b507-4f18-a8a5-607a2d4753fd", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcpagerangeia0pageblobapitestpagerangeia22938809d2e91b8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fcc75-301e-0094-16fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:56 GMT", + "x-ms-client-request-id" : "9abd8470-a1a1-4242-b427-0dadb8cbc380" + }, + "Exception" : null + } ], + "variables" : [ "jtcpagerangeia0pageblobapitestpagerangeia22938809d2e91b8", "javablobpagerangeia1pageblobapitestpagerangeia229311777919" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestpagerangeia[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestpagerangeia[3].json new file mode 100644 index 0000000000000..3e19b92e94f6a --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestpagerangeia[3].json @@ -0,0 +1,83 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcpagerangeia0pageblobapitestpagerangeia95a491534ae769b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D6EBE91A\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fcc89-301e-0094-27fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:56 GMT", + "x-ms-client-request-id" : "b1eefb5d-04a8-4b64-91a7-406face0043f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcpagerangeia0pageblobapitestpagerangeia95a491534ae769b/javablobpagerangeia1pageblobapitestpagerangeia95a57329667e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D6F10444\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fcc9e-301e-0094-39fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:56 GMT", + "x-ms-client-request-id" : "4434ba90-0710-4f09-a3eb-b148b22a52ef" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcpagerangeia&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fccae-301e-0094-46fc-5950b8000000", + "Body" : "jtcpagerangeiajtcpagerangeia0pageblobapitestpagerangeia95a491534ae769bFri, 23 Aug 2019 21:49:57 GMT\"0x8D72813D6EBE91A\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:56 GMT", + "x-ms-client-request-id" : "b39d0b86-eecd-4b03-bbcd-9a11bbe2ca32", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcpagerangeia0pageblobapitestpagerangeia95a491534ae769b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fccbe-301e-0094-51fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:56 GMT", + "x-ms-client-request-id" : "430a609d-9be1-4af3-bc75-07932e036b84" + }, + "Exception" : null + } ], + "variables" : [ "jtcpagerangeia0pageblobapitestpagerangeia95a491534ae769b", "javablobpagerangeia1pageblobapitestpagerangeia95a57329667e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestpagerangeia[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestpagerangeia[4].json new file mode 100644 index 0000000000000..f357fb5ce824f --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestpagerangeia[4].json @@ -0,0 +1,83 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcpagerangeia0pageblobapitestpagerangeiadea40705bc0613e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D6FF9CCE\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fcccf-301e-0094-5ffc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:56 GMT", + "x-ms-client-request-id" : "431f1acd-c688-45dc-9196-22d42ec14e01" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcpagerangeia0pageblobapitestpagerangeiadea40705bc0613e/javablobpagerangeia1pageblobapitestpagerangeiadea14733a089", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D704911A\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fcce1-301e-0094-6cfc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:56 GMT", + "x-ms-client-request-id" : "ba7959e7-463c-40b1-b17b-77944dabf0ef" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcpagerangeia&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fccf3-301e-0094-7bfc-5950b8000000", + "Body" : "jtcpagerangeiajtcpagerangeia0pageblobapitestpagerangeiadea40705bc0613eFri, 23 Aug 2019 21:49:57 GMT\"0x8D72813D6FF9CCE\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:56 GMT", + "x-ms-client-request-id" : "79c6677b-5da3-43d1-98b1-c33e6ffeb428", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcpagerangeia0pageblobapitestpagerangeiadea40705bc0613e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fccfd-301e-0094-04fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:57 GMT", + "x-ms-client-request-id" : "1b7afacf-7f15-4a54-a61a-bd014dabb691" + }, + "Exception" : null + } ], + "variables" : [ "jtcpagerangeia0pageblobapitestpagerangeiadea40705bc0613e", "javablobpagerangeia1pageblobapitestpagerangeiadea14733a089" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestpagerangeia[5].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestpagerangeia[5].json new file mode 100644 index 0000000000000..1a2965635f13a --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestpagerangeia[5].json @@ -0,0 +1,83 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcpagerangeia0pageblobapitestpagerangeia288282710a0fd40?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D7143B14\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fcd1a-301e-0094-1afc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:57 GMT", + "x-ms-client-request-id" : "f8f1960c-b55e-4c4b-aac0-704c701661b2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcpagerangeia0pageblobapitestpagerangeia288282710a0fd40/javablobpagerangeia1pageblobapitestpagerangeia28871799de2c", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D7197DC2\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fcd37-301e-0094-34fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:57 GMT", + "x-ms-client-request-id" : "f6791bad-c991-441e-8430-c89fcdf91a7a" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcpagerangeia&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fcd4c-301e-0094-47fc-5950b8000000", + "Body" : "jtcpagerangeiajtcpagerangeia0pageblobapitestpagerangeia288282710a0fd40Fri, 23 Aug 2019 21:49:57 GMT\"0x8D72813D7143B14\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:57 GMT", + "x-ms-client-request-id" : "7b33e6e4-7a92-4dd5-b5bc-00519edf1876", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcpagerangeia0pageblobapitestpagerangeia288282710a0fd40?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fcd55-301e-0094-4ffc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:57 GMT", + "x-ms-client-request-id" : "196e2414-254d-4f2b-aa62-007b45eec532" + }, + "Exception" : null + } ], + "variables" : [ "jtcpagerangeia0pageblobapitestpagerangeia288282710a0fd40", "javablobpagerangeia1pageblobapitestpagerangeia28871799de2c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestresize.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestresize.json new file mode 100644 index 0000000000000..4e5a44b2d723b --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestresize.json @@ -0,0 +1,135 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcresize0pageblobapitestresize57588046294bcc70fe60?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D7283CF6\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fcd6f-301e-0094-65fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:57 GMT", + "x-ms-client-request-id" : "fa16db78-b8eb-44c5-8dde-075b1c489cd1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcresize0pageblobapitestresize57588046294bcc70fe60/javablobresize1pageblobapitestresize575076003358171f6", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D7310329\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fcd82-301e-0094-77fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:57 GMT", + "x-ms-client-request-id" : "229ce18d-d10d-4bf2-be05-e7f2c7209202" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcresize0pageblobapitestresize57588046294bcc70fe60/javablobresize1pageblobapitestresize575076003358171f6?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D7376D5C\"", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fcda2-301e-0094-12fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:57 GMT", + "x-ms-client-request-id" : "d33236b3-93d6-43c0-95aa-1b883c59411a" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcresize0pageblobapitestresize57588046294bcc70fe60/javablobresize1pageblobapitestresize575076003358171f6", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:57 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:49:57 GMT", + "x-ms-blob-type" : "PageBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72813D7376D5C\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:49:57 GMT", + "Content-Length" : "1024", + "x-ms-request-id" : "f77fcdb8-301e-0094-21fc-5950b8000000", + "x-ms-client-request-id" : "ae7edb43-9f08-4a44-896f-9f6572444828", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcresize&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fcdcc-301e-0094-31fc-5950b8000000", + "Body" : "jtcresizejtcresize0pageblobapitestresize57588046294bcc70fe60Fri, 23 Aug 2019 21:49:57 GMT\"0x8D72813D7283CF6\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:57 GMT", + "x-ms-client-request-id" : "d38c4166-1a32-4d88-822f-0bffe438febf", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcresize0pageblobapitestresize57588046294bcc70fe60?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fcde4-301e-0094-44fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:57 GMT", + "x-ms-client-request-id" : "1a0fe1c0-4f26-4b02-b893-2a9b998ae79a" + }, + "Exception" : null + } ], + "variables" : [ "jtcresize0pageblobapitestresize57588046294bcc70fe60", "javablobresize1pageblobapitestresize575076003358171f6" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestresizeac[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestresizeac[0].json new file mode 100644 index 0000000000000..67acfea2bc9e0 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestresizeac[0].json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcresizeac0pageblobapitestresizeac06a80523efee7b37c2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D7641B6C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fce8c-301e-0094-4afc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:57 GMT", + "x-ms-client-request-id" : "fe5cdd40-03bc-4f8d-9590-40f5018efa83" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcresizeac0pageblobapitestresizeac06a80523efee7b37c2/javablobresizeac1pageblobapitestresizeac06a20840f03530a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D769AD41\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fcea2-301e-0094-5efc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:57 GMT", + "x-ms-client-request-id" : "215543be-d575-46bd-93b7-75cf2cdf3295" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcresizeac0pageblobapitestresizeac06a80523efee7b37c2/javablobresizeac1pageblobapitestresizeac06a20840f03530a?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D76EB78B\"", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fceba-301e-0094-73fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:57 GMT", + "x-ms-client-request-id" : "7bb1adaa-aa1e-4262-a38d-b2e75f54c9b3" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcresizeac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fcec5-301e-0094-7efc-5950b8000000", + "Body" : "jtcresizeacjtcresizeac0pageblobapitestresizeac06a80523efee7b37c2Fri, 23 Aug 2019 21:49:57 GMT\"0x8D72813D7641B6C\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:57 GMT", + "x-ms-client-request-id" : "816b284a-f8f4-406e-bd25-ae3bc78bbc79", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcresizeac0pageblobapitestresizeac06a80523efee7b37c2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fcee5-301e-0094-18fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:57 GMT", + "x-ms-client-request-id" : "2d0e1129-ec32-4734-9409-6dd24839ae68" + }, + "Exception" : null + } ], + "variables" : [ "jtcresizeac0pageblobapitestresizeac06a80523efee7b37c2", "javablobresizeac1pageblobapitestresizeac06a20840f03530a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestresizeac[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestresizeac[1].json new file mode 100644 index 0000000000000..285718639525d --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestresizeac[1].json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcresizeac0pageblobapitestresizeacf1b13732b7321db09d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D77E122A\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fcf09-301e-0094-34fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:57 GMT", + "x-ms-client-request-id" : "3d292fbc-00a9-4cf1-8ce3-bed95f472e25" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcresizeac0pageblobapitestresizeacf1b13732b7321db09d/javablobresizeac1pageblobapitestresizeacf1b741975ee3253", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D7832EF7\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fcf1b-301e-0094-40fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:57 GMT", + "x-ms-client-request-id" : "08e42a77-222a-421c-b1de-de32c93fa74b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcresizeac0pageblobapitestresizeacf1b13732b7321db09d/javablobresizeac1pageblobapitestresizeacf1b741975ee3253?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D7ABA875\"", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fcfbb-301e-0094-46fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:58 GMT", + "x-ms-client-request-id" : "aeca6948-4a30-4806-a229-cf682d9e41b5" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcresizeac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fcfc9-301e-0094-4efc-5950b8000000", + "Body" : "jtcresizeacjtcresizeac0pageblobapitestresizeacf1b13732b7321db09dFri, 23 Aug 2019 21:49:58 GMT\"0x8D72813D77E122A\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:58 GMT", + "x-ms-client-request-id" : "1eabfa51-6e78-45db-8d48-b86aad0c74cd", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcresizeac0pageblobapitestresizeacf1b13732b7321db09d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fcfd7-301e-0094-5bfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:58 GMT", + "x-ms-client-request-id" : "68a0f30c-1b67-40f1-aac9-093829a1d037" + }, + "Exception" : null + } ], + "variables" : [ "jtcresizeac0pageblobapitestresizeacf1b13732b7321db09d", "javablobresizeac1pageblobapitestresizeacf1b741975ee3253" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestresizeac[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestresizeac[2].json new file mode 100644 index 0000000000000..8bf2ab93391ca --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestresizeac[2].json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcresizeac0pageblobapitestresizeacb2590390132ebbe257?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D7BA3ED8\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fcfec-301e-0094-6bfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:58 GMT", + "x-ms-client-request-id" : "a0d9517d-b104-43e6-b758-89dd84a78f87" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcresizeac0pageblobapitestresizeacb2590390132ebbe257/javablobresizeac1pageblobapitestresizeacb259054359c49d5", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D7BF8383\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fd004-301e-0094-7efc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:58 GMT", + "x-ms-client-request-id" : "4f6ecbca-5c72-4c0b-b92e-bb317d750d9f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcresizeac0pageblobapitestresizeacb2590390132ebbe257/javablobresizeac1pageblobapitestresizeacb259054359c49d5?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D7C48DC9\"", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fd012-301e-0094-0afc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:58 GMT", + "x-ms-client-request-id" : "cf22a3c3-23b0-4a89-907f-6edab9425af0" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcresizeac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fd023-301e-0094-1afc-5950b8000000", + "Body" : "jtcresizeacjtcresizeac0pageblobapitestresizeacb2590390132ebbe257Fri, 23 Aug 2019 21:49:58 GMT\"0x8D72813D7BA3ED8\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:58 GMT", + "x-ms-client-request-id" : "d09519bb-9528-4746-af78-a36f3936f795", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcresizeac0pageblobapitestresizeacb2590390132ebbe257?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fd030-301e-0094-24fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:58 GMT", + "x-ms-client-request-id" : "b205fa99-cb55-43e2-9bc0-2f19bf85c998" + }, + "Exception" : null + } ], + "variables" : [ "jtcresizeac0pageblobapitestresizeacb2590390132ebbe257", "javablobresizeac1pageblobapitestresizeacb259054359c49d5" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestresizeac[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestresizeac[3].json new file mode 100644 index 0000000000000..1f08fa0d9acdb --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestresizeac[3].json @@ -0,0 +1,135 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcresizeac0pageblobapitestresizeac12c5170889b8e532fc?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D7D3C043\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fd04d-301e-0094-3ffc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:58 GMT", + "x-ms-client-request-id" : "35a4c8bc-b948-4169-8d44-6842597f4ea0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcresizeac0pageblobapitestresizeac12c5170889b8e532fc/javablobresizeac1pageblobapitestresizeac12c8213567feb4a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D7D9535A\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fd064-301e-0094-51fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:58 GMT", + "x-ms-client-request-id" : "afa45bef-8b41-4478-a115-a11cffb55540" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcresizeac0pageblobapitestresizeac12c5170889b8e532fc/javablobresizeac1pageblobapitestresizeac12c8213567feb4a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:58 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:49:58 GMT", + "x-ms-blob-type" : "PageBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72813D7D9535A\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:49:58 GMT", + "Content-Length" : "512", + "x-ms-request-id" : "f77fd082-301e-0094-67fc-5950b8000000", + "x-ms-client-request-id" : "9469d002-83a4-41a0-8b2d-f7ffb0098961", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcresizeac0pageblobapitestresizeac12c5170889b8e532fc/javablobresizeac1pageblobapitestresizeac12c8213567feb4a?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D7E22F30\"", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fd095-301e-0094-78fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:58 GMT", + "x-ms-client-request-id" : "5df5bc5a-d088-415a-9dc0-b3b0569c82ed" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcresizeac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fd0ae-301e-0094-0cfc-5950b8000000", + "Body" : "jtcresizeacjtcresizeac0pageblobapitestresizeac12c5170889b8e532fcFri, 23 Aug 2019 21:49:58 GMT\"0x8D72813D7D3C043\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:58 GMT", + "x-ms-client-request-id" : "f2da0e9f-b915-41df-8aa8-0f3a11d13c99", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcresizeac0pageblobapitestresizeac12c5170889b8e532fc?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fd0c0-301e-0094-1bfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:58 GMT", + "x-ms-client-request-id" : "7c460034-b8c4-423b-93c8-c516c032d5d0" + }, + "Exception" : null + } ], + "variables" : [ "jtcresizeac0pageblobapitestresizeac12c5170889b8e532fc", "javablobresizeac1pageblobapitestresizeac12c8213567feb4a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestresizeac[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestresizeac[4].json new file mode 100644 index 0000000000000..53392120a9a6b --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestresizeac[4].json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcresizeac0pageblobapitestresizeac09b096273bf4a6587d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D7F04FA5\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fd0cb-301e-0094-26fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:58 GMT", + "x-ms-client-request-id" : "a7f0940c-c583-461d-8aba-7a7a749935ab" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcresizeac0pageblobapitestresizeac09b096273bf4a6587d/javablobresizeac1pageblobapitestresizeac09b2263663cbb01", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D7F76A1E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fd0e2-301e-0094-37fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:58 GMT", + "x-ms-client-request-id" : "d03aee09-db70-40bc-b779-ae3ea5a64b72" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcresizeac0pageblobapitestresizeac09b096273bf4a6587d/javablobresizeac1pageblobapitestresizeac09b2263663cbb01?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D7FCE9A9\"", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fd0f7-301e-0094-49fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:58 GMT", + "x-ms-client-request-id" : "5157ad46-8370-4088-9f25-7e369331ddd7" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcresizeac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fd105-301e-0094-53fc-5950b8000000", + "Body" : "jtcresizeacjtcresizeac0pageblobapitestresizeac09b096273bf4a6587dFri, 23 Aug 2019 21:49:58 GMT\"0x8D72813D7F04FA5\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:58 GMT", + "x-ms-client-request-id" : "c198e7db-a229-4e28-92d5-5f3e11ba7d95", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcresizeac0pageblobapitestresizeac09b096273bf4a6587d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fd113-301e-0094-5ffc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:58 GMT", + "x-ms-client-request-id" : "bbca71fe-6093-4849-a308-06ecdc1ff016" + }, + "Exception" : null + } ], + "variables" : [ "jtcresizeac0pageblobapitestresizeac09b096273bf4a6587d", "javablobresizeac1pageblobapitestresizeac09b2263663cbb01" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestresizeac[5].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestresizeac[5].json new file mode 100644 index 0000000000000..56ccc1c82d80b --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestresizeac[5].json @@ -0,0 +1,125 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcresizeac0pageblobapitestresizeacfd2517215eaed4cce2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D80B5811\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fd12c-301e-0094-74fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:58 GMT", + "x-ms-client-request-id" : "b76a599c-27d0-41b7-974a-9ccb91cee0f6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcresizeac0pageblobapitestresizeacfd2517215eaed4cce2/javablobresizeac1pageblobapitestresizeacfd2900155d34cc7", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D811FD77\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fd15b-301e-0094-1cfc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:58 GMT", + "x-ms-client-request-id" : "e3fa7551-6dd2-46b1-a6c1-e1d3156c1072" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcresizeac0pageblobapitestresizeacfd2517215eaed4cce2/javablobresizeac1pageblobapitestresizeacfd2900155d34cc7?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D811FD77\"", + "x-ms-lease-id" : "f0486b63-5a8a-42c8-a7a5-f90aae50e406", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fd172-301e-0094-31fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:58 GMT", + "x-ms-client-request-id" : "2b6e0206-2cc6-4d26-90d0-cb5a978a6216" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcresizeac0pageblobapitestresizeacfd2517215eaed4cce2/javablobresizeac1pageblobapitestresizeacfd2900155d34cc7?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D81B4E93\"", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fd18a-301e-0094-46fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:58 GMT", + "x-ms-client-request-id" : "980f4df1-5325-4fc3-811f-5800d614b417" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcresizeac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fd1ae-301e-0094-66fc-5950b8000000", + "Body" : "jtcresizeacjtcresizeac0pageblobapitestresizeacfd2517215eaed4cce2Fri, 23 Aug 2019 21:49:59 GMT\"0x8D72813D80B5811\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:58 GMT", + "x-ms-client-request-id" : "9f206859-bea4-42de-8ece-70e4ccadf9bf", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcresizeac0pageblobapitestresizeacfd2517215eaed4cce2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fd1c4-301e-0094-76fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:58 GMT", + "x-ms-client-request-id" : "62497c1b-2a4d-4fc5-92b3-cfcdebb1cbea" + }, + "Exception" : null + } ], + "variables" : [ "jtcresizeac0pageblobapitestresizeacfd2517215eaed4cce2", "javablobresizeac1pageblobapitestresizeacfd2900155d34cc7" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestresizeacfail[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestresizeacfail[0].json new file mode 100644 index 0000000000000..373c949fe54c2 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestresizeacfail[0].json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcresizeacfail0pageblobapitestresizeacfail46143689086cd0?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D82CCA93\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fd1d7-301e-0094-04fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:58 GMT", + "x-ms-client-request-id" : "0f2786ca-f8ec-4e8a-86ae-2a50935951a3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcresizeacfail0pageblobapitestresizeacfail46143689086cd0/javablobresizeacfail1pageblobapitestresizeacfail46175779cb9", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D831E95B\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fd1ec-301e-0094-12fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:58 GMT", + "x-ms-client-request-id" : "b782a6a1-a37f-437a-a10c-65ac41c1fbfb" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcresizeacfail0pageblobapitestresizeacfail46143689086cd0/javablobresizeacfail1pageblobapitestresizeacfail46175779cb9?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "f77fd1f8-301e-0094-1dfc-5950b8000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:f77fd1f8-301e-0094-1dfc-5950b8000000\nTime:2019-08-23T21:49:59.3178900Z", + "Date" : "Fri, 23 Aug 2019 21:49:58 GMT", + "x-ms-client-request-id" : "f86e8c93-67ad-4d80-bb08-0fb44cdc8021", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcresizeacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fd206-301e-0094-27fc-5950b8000000", + "Body" : "jtcresizeacfailjtcresizeacfail0pageblobapitestresizeacfail46143689086cd0Fri, 23 Aug 2019 21:49:59 GMT\"0x8D72813D82CCA93\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:58 GMT", + "x-ms-client-request-id" : "8e28aa94-3e7c-4153-82bb-e5cb09ba48e0", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcresizeacfail0pageblobapitestresizeacfail46143689086cd0?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fd213-301e-0094-32fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:59 GMT", + "x-ms-client-request-id" : "32899ff9-ccf7-43d8-a5a9-fa8a04d66eb7" + }, + "Exception" : null + } ], + "variables" : [ "jtcresizeacfail0pageblobapitestresizeacfail46143689086cd0", "javablobresizeacfail1pageblobapitestresizeacfail46175779cb9" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestresizeacfail[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestresizeacfail[1].json new file mode 100644 index 0000000000000..04471010bea1d --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestresizeacfail[1].json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcresizeacfail0pageblobapitestresizeacfailf5a30907fdfc75?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D844EC15\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fd225-301e-0094-41fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:59 GMT", + "x-ms-client-request-id" : "443ff6b8-709c-4c47-9448-21f72f110055" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcresizeacfail0pageblobapitestresizeacfailf5a30907fdfc75/javablobresizeacfail1pageblobapitestresizeacfailf5a12649d61", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D84A8084\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fd23c-301e-0094-54fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:59 GMT", + "x-ms-client-request-id" : "1934d6fe-b0e0-4234-b032-5b4fbf9f05a7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcresizeacfail0pageblobapitestresizeacfailf5a30907fdfc75/javablobresizeacfail1pageblobapitestresizeacfailf5a12649d61?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "f77fd253-301e-0094-69fc-5950b8000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:f77fd253-301e-0094-69fc-5950b8000000\nTime:2019-08-23T21:49:59.4800374Z", + "Date" : "Fri, 23 Aug 2019 21:49:59 GMT", + "x-ms-client-request-id" : "e9da55f4-f95e-4c55-bb39-4f1b3263d0dc", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcresizeacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fd266-301e-0094-7afc-5950b8000000", + "Body" : "jtcresizeacfailjtcresizeacfail0pageblobapitestresizeacfailf5a30907fdfc75Fri, 23 Aug 2019 21:49:59 GMT\"0x8D72813D844EC15\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:59 GMT", + "x-ms-client-request-id" : "1be78a92-a5e6-4453-bbc9-1eb9b8bc17a4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcresizeacfail0pageblobapitestresizeacfailf5a30907fdfc75?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fd276-301e-0094-07fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:59 GMT", + "x-ms-client-request-id" : "079e9c87-2412-4f48-8a48-5c2db10de227" + }, + "Exception" : null + } ], + "variables" : [ "jtcresizeacfail0pageblobapitestresizeacfailf5a30907fdfc75", "javablobresizeacfail1pageblobapitestresizeacfailf5a12649d61" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestresizeacfail[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestresizeacfail[2].json new file mode 100644 index 0000000000000..b13de5f117c26 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestresizeacfail[2].json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcresizeacfail0pageblobapitestresizeacfaile6f6130138708d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D85DD121\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fd286-301e-0094-17fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:59 GMT", + "x-ms-client-request-id" : "fb4c45d9-f011-4602-b321-dfd36f974f95" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcresizeacfail0pageblobapitestresizeacfaile6f6130138708d/javablobresizeacfail1pageblobapitestresizeacfaile6f21472d77", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D862F08F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fd292-301e-0094-22fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:59 GMT", + "x-ms-client-request-id" : "ac8a7c18-4765-4a38-aceb-6ccdff46834d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcresizeacfail0pageblobapitestresizeacfaile6f6130138708d/javablobresizeacfail1pageblobapitestresizeacfaile6f21472d77?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "f77fd2a2-301e-0094-30fc-5950b8000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:f77fd2a2-301e-0094-30fc-5950b8000000\nTime:2019-08-23T21:49:59.6351805Z", + "Date" : "Fri, 23 Aug 2019 21:49:59 GMT", + "x-ms-client-request-id" : "65698bd4-9717-48f3-91a7-691ea0b50da7", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcresizeacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fd2af-301e-0094-3afc-5950b8000000", + "Body" : "jtcresizeacfailjtcresizeacfail0pageblobapitestresizeacfaile6f6130138708dFri, 23 Aug 2019 21:49:59 GMT\"0x8D72813D85DD121\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:59 GMT", + "x-ms-client-request-id" : "ce3d4602-2648-47d8-8cca-bef7d4eaf11a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcresizeacfail0pageblobapitestresizeacfaile6f6130138708d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fd2b5-301e-0094-40fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:59 GMT", + "x-ms-client-request-id" : "0cbe6eab-e3f7-4d9f-a6d5-6e6ca055abe5" + }, + "Exception" : null + } ], + "variables" : [ "jtcresizeacfail0pageblobapitestresizeacfaile6f6130138708d", "javablobresizeacfail1pageblobapitestresizeacfaile6f21472d77" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestresizeacfail[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestresizeacfail[3].json new file mode 100644 index 0000000000000..31dbda2cfe726 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestresizeacfail[3].json @@ -0,0 +1,135 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcresizeacfail0pageblobapitestresizeacfail3b3594953a1804?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D8757D59\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fd2c5-301e-0094-4efc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:59 GMT", + "x-ms-client-request-id" : "dd508e14-794a-4688-8c11-a43cc12e99ff" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcresizeacfail0pageblobapitestresizeacfail3b3594953a1804/javablobresizeacfail1pageblobapitestresizeacfail3b391838900", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D87AC433\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fd2ea-301e-0094-6afc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:59 GMT", + "x-ms-client-request-id" : "454ad7b6-36be-4407-936a-bcba01eaa6c2" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcresizeacfail0pageblobapitestresizeacfail3b3594953a1804/javablobresizeacfail1pageblobapitestresizeacfail3b391838900", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:59 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:49:59 GMT", + "x-ms-blob-type" : "PageBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72813D87AC433\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:49:59 GMT", + "Content-Length" : "512", + "x-ms-request-id" : "f77fd2ff-301e-0094-7ffc-5950b8000000", + "x-ms-client-request-id" : "7e5dbaf4-bca0-45d9-b278-d3d130752eec", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcresizeacfail0pageblobapitestresizeacfail3b3594953a1804/javablobresizeacfail1pageblobapitestresizeacfail3b391838900?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "f77fd313-301e-0094-0ffc-5950b8000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:f77fd313-301e-0094-0ffc-5950b8000000\nTime:2019-08-23T21:49:59.8223505Z", + "Date" : "Fri, 23 Aug 2019 21:49:59 GMT", + "x-ms-client-request-id" : "8512a6ae-a43c-4cc9-844f-6e2a81079c73", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcresizeacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fd32a-301e-0094-23fc-5950b8000000", + "Body" : "jtcresizeacfailjtcresizeacfail0pageblobapitestresizeacfail3b3594953a1804Fri, 23 Aug 2019 21:49:59 GMT\"0x8D72813D8757D59\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:59 GMT", + "x-ms-client-request-id" : "2122fe5a-157b-4913-b9ae-b6e5a53c92cd", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcresizeacfail0pageblobapitestresizeacfail3b3594953a1804?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fd336-301e-0094-2dfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:59 GMT", + "x-ms-client-request-id" : "018ea4ab-1fb7-4cbd-842b-b1400f6f9689" + }, + "Exception" : null + } ], + "variables" : [ "jtcresizeacfail0pageblobapitestresizeacfail3b3594953a1804", "javablobresizeacfail1pageblobapitestresizeacfail3b391838900" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestresizeacfail[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestresizeacfail[4].json new file mode 100644 index 0000000000000..5a3075e6bf58e --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestresizeacfail[4].json @@ -0,0 +1,125 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcresizeacfail0pageblobapitestresizeacfail524762540c2d1c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D891BE89\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fd341-301e-0094-38fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:59 GMT", + "x-ms-client-request-id" : "56779ec5-95b4-4611-b8bf-fb0d96179285" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcresizeacfail0pageblobapitestresizeacfail524762540c2d1c/javablobresizeacfail1pageblobapitestresizeacfail52432385f6c", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D89753EC\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fd359-301e-0094-4cfc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:59 GMT", + "x-ms-client-request-id" : "d1784a6c-1a9e-4590-bf6d-34d51b259404" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcresizeacfail0pageblobapitestresizeacfail524762540c2d1c/javablobresizeacfail1pageblobapitestresizeacfail52432385f6c?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D89753EC\"", + "x-ms-lease-id" : "405c059d-8ecb-47d3-bdf0-076e2f95b4d1", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fd375-301e-0094-63fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:59 GMT", + "x-ms-client-request-id" : "4ec97589-f621-464d-9a3c-a4efc7699f1b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcresizeacfail0pageblobapitestresizeacfail524762540c2d1c/javablobresizeacfail1pageblobapitestresizeacfail52432385f6c?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "LeaseIdMismatchWithBlobOperation", + "retry-after" : "0", + "Content-Length" : "264", + "StatusCode" : "412", + "x-ms-request-id" : "f77fd392-301e-0094-7dfc-5950b8000000", + "Body" : "LeaseIdMismatchWithBlobOperationThe lease ID specified did not match the lease ID for the blob.\nRequestId:f77fd392-301e-0094-7dfc-5950b8000000\nTime:2019-08-23T21:50:00.0125245Z", + "Date" : "Fri, 23 Aug 2019 21:49:59 GMT", + "x-ms-client-request-id" : "b7e9b0f4-e594-48be-8075-ddfdbbf89c12", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcresizeacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fd3a4-301e-0094-0efc-5950b8000000", + "Body" : "jtcresizeacfailjtcresizeacfail0pageblobapitestresizeacfail524762540c2d1cFri, 23 Aug 2019 21:49:59 GMT\"0x8D72813D891BE89\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:59 GMT", + "x-ms-client-request-id" : "fc7f76eb-a0e7-4070-bd7a-19e0b6442f18", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcresizeacfail0pageblobapitestresizeacfail524762540c2d1c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fd3b6-301e-0094-1cfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:59 GMT", + "x-ms-client-request-id" : "160b458f-8151-471b-a855-0b84863269c2" + }, + "Exception" : null + } ], + "variables" : [ "jtcresizeacfail0pageblobapitestresizeacfail524762540c2d1c", "javablobresizeacfail1pageblobapitestresizeacfail52432385f6c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestresizeerror.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestresizeerror.json new file mode 100644 index 0000000000000..c89559153cd78 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestresizeerror.json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcresizeerror0pageblobapitestresizeerror5ee53336ae162d7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D8AF1162\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fd3c6-301e-0094-2afc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:59 GMT", + "x-ms-client-request-id" : "682db5a2-0689-4056-a895-e5a02814f5d5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcresizeerror0pageblobapitestresizeerror5ee53336ae162d7/javablobresizeerror1pageblobapitestresizeerror5ee38423d344", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D8D04C59\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fd442-301e-0094-11fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:59 GMT", + "x-ms-client-request-id" : "ea01413b-325e-4ff8-9899-a94d5a147f12" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcresizeerror0pageblobapitestresizeerror5ee53336ae162d7/javablobresizeerror2pageblobapitestresizeerror5ee15874fec1?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "BlobNotFound", + "retry-after" : "0", + "Content-Length" : "215", + "StatusCode" : "404", + "x-ms-request-id" : "f77fd458-301e-0094-21fc-5950b8000000", + "Body" : "BlobNotFoundThe specified blob does not exist.\nRequestId:f77fd458-301e-0094-21fc-5950b8000000\nTime:2019-08-23T21:50:00.3568394Z", + "Date" : "Fri, 23 Aug 2019 21:50:00 GMT", + "x-ms-client-request-id" : "81352f1c-97d6-402d-80e4-ac940937153b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcresizeerror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fd467-301e-0094-2ffc-5950b8000000", + "Body" : "jtcresizeerrorjtcresizeerror0pageblobapitestresizeerror5ee53336ae162d7Fri, 23 Aug 2019 21:50:00 GMT\"0x8D72813D8AF1162\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:50:00 GMT", + "x-ms-client-request-id" : "277312a1-e7e4-454b-955a-c45b862c2a1e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcresizeerror0pageblobapitestresizeerror5ee53336ae162d7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fd472-301e-0094-39fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:00 GMT", + "x-ms-client-request-id" : "fafb7aaf-e20e-4ec1-8e17-087b9d7edd06" + }, + "Exception" : null + } ], + "variables" : [ "jtcresizeerror0pageblobapitestresizeerror5ee53336ae162d7", "javablobresizeerror1pageblobapitestresizeerror5ee38423d344", "javablobresizeerror2pageblobapitestresizeerror5ee15874fec1" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestresizemin.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestresizemin.json new file mode 100644 index 0000000000000..41f0daf9deb1f --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestresizemin.json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcresizemin0pageblobapitestresizemin08504661ac24797c0?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D74BD2D8\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fce01-301e-0094-59fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:57 GMT", + "x-ms-client-request-id" : "4db1bb62-982e-4b67-8828-b6a07030d5d2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcresizemin0pageblobapitestresizemin08504661ac24797c0/javablobresizemin1pageblobapitestresizemin0856235390bd18", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D750C7F6\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fce25-301e-0094-75fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:57 GMT", + "x-ms-client-request-id" : "2e924b6d-9b11-4b96-9645-2918cd3ebabe" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcresizemin0pageblobapitestresizemin08504661ac24797c0/javablobresizemin1pageblobapitestresizemin0856235390bd18?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D7558412\"", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fce42-301e-0094-0dfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:57 GMT", + "x-ms-client-request-id" : "c9980462-7092-4c4e-97f2-44144850392e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcresizemin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fce5c-301e-0094-24fc-5950b8000000", + "Body" : "jtcresizeminjtcresizemin0pageblobapitestresizemin08504661ac24797c0Fri, 23 Aug 2019 21:49:57 GMT\"0x8D72813D74BD2D8\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:57 GMT", + "x-ms-client-request-id" : "e6c4d9ba-3015-4d00-b16b-fddde9edb4b1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcresizemin0pageblobapitestresizemin08504661ac24797c0?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fce6b-301e-0094-30fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:57 GMT", + "x-ms-client-request-id" : "6b7fdaae-4c95-403f-9fd7-207282c678b5" + }, + "Exception" : null + } ], + "variables" : [ "jtcresizemin0pageblobapitestresizemin08504661ac24797c0", "javablobresizemin1pageblobapitestresizemin0856235390bd18" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestsequencenumber[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestsequencenumber[0].json new file mode 100644 index 0000000000000..28189c92055a1 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestsequencenumber[0].json @@ -0,0 +1,135 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumber0pageblobapitestsequencenumber5ed176467695?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D8E4379E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fd483-301e-0094-48fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:00 GMT", + "x-ms-client-request-id" : "571262d3-76ab-4bfa-a690-5f669eae7f6b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumber0pageblobapitestsequencenumber5ed176467695/javablobsequencenumber1pageblobapitestsequencenumber5ed65019a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D8E90A91\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fd4a0-301e-0094-5cfc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:50:00 GMT", + "x-ms-client-request-id" : "5a7edf45-ea03-4e32-9256-43d1536d57fb" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumber0pageblobapitestsequencenumber5ed176467695/javablobsequencenumber1pageblobapitestsequencenumber5ed65019a?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D8EEFF7A\"", + "x-ms-blob-sequence-number" : "5", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fd4bb-301e-0094-70fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:00 GMT", + "x-ms-client-request-id" : "06b2052f-86c9-489c-b4d7-ef6d754a42d5" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumber0pageblobapitestsequencenumber5ed176467695/javablobsequencenumber1pageblobapitestsequencenumber5ed65019a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "x-ms-blob-sequence-number" : "5", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:00 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:50:00 GMT", + "x-ms-blob-type" : "PageBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72813D8EEFF7A\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:50:00 GMT", + "Content-Length" : "512", + "x-ms-request-id" : "f77fd4cc-301e-0094-7cfc-5950b8000000", + "x-ms-client-request-id" : "04446257-001f-4137-970e-19b9e2b97dd4", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsequencenumber&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fd4de-301e-0094-08fc-5950b8000000", + "Body" : "jtcsequencenumberjtcsequencenumber0pageblobapitestsequencenumber5ed176467695Fri, 23 Aug 2019 21:50:00 GMT\"0x8D72813D8E4379E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:50:00 GMT", + "x-ms-client-request-id" : "175d89c9-7b48-4a73-9037-f6080fe1df17", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumber0pageblobapitestsequencenumber5ed176467695?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fd4ec-301e-0094-15fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:00 GMT", + "x-ms-client-request-id" : "3de31cd9-01a4-44cf-92ae-faf5db94f7c8" + }, + "Exception" : null + } ], + "variables" : [ "jtcsequencenumber0pageblobapitestsequencenumber5ed176467695", "javablobsequencenumber1pageblobapitestsequencenumber5ed65019a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestsequencenumber[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestsequencenumber[1].json new file mode 100644 index 0000000000000..388ed8d78b457 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestsequencenumber[1].json @@ -0,0 +1,135 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumber0pageblobapitestsequencenumberd9029441714c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D9016360\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fd4fb-301e-0094-24fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:00 GMT", + "x-ms-client-request-id" : "efb8d4ea-d4f1-4eb7-b31b-d8930fef1a58" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumber0pageblobapitestsequencenumberd9029441714c/javablobsequencenumber1pageblobapitestsequencenumberd9077940f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D90684E1\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fd517-301e-0094-3afc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:50:00 GMT", + "x-ms-client-request-id" : "27711a93-5b35-4dc3-8f5c-30847fe25d70" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumber0pageblobapitestsequencenumberd9029441714c/javablobsequencenumber1pageblobapitestsequencenumberd9077940f?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D90EEB51\"", + "x-ms-blob-sequence-number" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fd52d-301e-0094-4bfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:00 GMT", + "x-ms-client-request-id" : "e3ddd98a-32ab-40a9-8ede-12f5eeea3a60" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumber0pageblobapitestsequencenumberd9029441714c/javablobsequencenumber1pageblobapitestsequencenumberd9077940f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "x-ms-blob-sequence-number" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:00 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:50:00 GMT", + "x-ms-blob-type" : "PageBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72813D90EEB51\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:50:00 GMT", + "Content-Length" : "512", + "x-ms-request-id" : "f77fd53b-301e-0094-57fc-5950b8000000", + "x-ms-client-request-id" : "c4b8190d-25cf-4b7c-bbc1-d17a19221580", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsequencenumber&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fd545-301e-0094-60fc-5950b8000000", + "Body" : "jtcsequencenumberjtcsequencenumber0pageblobapitestsequencenumberd9029441714cFri, 23 Aug 2019 21:50:00 GMT\"0x8D72813D9016360\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:50:00 GMT", + "x-ms-client-request-id" : "9be87ff7-4621-426a-9978-611e249c7e7f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumber0pageblobapitestsequencenumberd9029441714c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fd550-301e-0094-67fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:00 GMT", + "x-ms-client-request-id" : "04720cd6-1552-4a2b-9620-8daf87763661" + }, + "Exception" : null + } ], + "variables" : [ "jtcsequencenumber0pageblobapitestsequencenumberd9029441714c", "javablobsequencenumber1pageblobapitestsequencenumberd9077940f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestsequencenumber[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestsequencenumber[2].json new file mode 100644 index 0000000000000..a3fc250363328 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestsequencenumber[2].json @@ -0,0 +1,135 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumber0pageblobapitestsequencenumber56390629242c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D922FCF5\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fd569-301e-0094-79fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:00 GMT", + "x-ms-client-request-id" : "1b43827b-48d8-4d9e-936c-27d903485dc5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumber0pageblobapitestsequencenumber56390629242c/javablobsequencenumber1pageblobapitestsequencenumber563237603", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D92845EB\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fd577-301e-0094-05fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:50:00 GMT", + "x-ms-client-request-id" : "c13f76f6-6c71-4c95-b59c-15249343cead" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumber0pageblobapitestsequencenumber56390629242c/javablobsequencenumber1pageblobapitestsequencenumber563237603?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D92CDAEF\"", + "x-ms-blob-sequence-number" : "2", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fd585-301e-0094-11fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:00 GMT", + "x-ms-client-request-id" : "d5c11992-bbdd-463a-88a8-0606528b9a7e" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumber0pageblobapitestsequencenumber56390629242c/javablobsequencenumber1pageblobapitestsequencenumber563237603", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "x-ms-blob-sequence-number" : "2", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:00 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:50:00 GMT", + "x-ms-blob-type" : "PageBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72813D92CDAEF\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:50:00 GMT", + "Content-Length" : "512", + "x-ms-request-id" : "f77fd5a6-301e-0094-2efc-5950b8000000", + "x-ms-client-request-id" : "66aba7c9-70c8-4ece-8732-3c7cad6bbcdb", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsequencenumber&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fd5ad-301e-0094-35fc-5950b8000000", + "Body" : "jtcsequencenumberjtcsequencenumber0pageblobapitestsequencenumber56390629242cFri, 23 Aug 2019 21:50:00 GMT\"0x8D72813D922FCF5\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:50:00 GMT", + "x-ms-client-request-id" : "11872413-6047-4a6c-b7cc-7eb148f0dc3e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumber0pageblobapitestsequencenumber56390629242c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fd5be-301e-0094-45fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:00 GMT", + "x-ms-client-request-id" : "730dacf3-c285-40e7-90bf-0d7b17a62760" + }, + "Exception" : null + } ], + "variables" : [ "jtcsequencenumber0pageblobapitestsequencenumber56390629242c", "javablobsequencenumber1pageblobapitestsequencenumber563237603" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestsequencenumberac[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestsequencenumberac[0].json new file mode 100644 index 0000000000000..761e2a36239e9 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestsequencenumberac[0].json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumberac0pageblobapitestsequencenumberace3c25794cc?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D960D7BE\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fd62a-301e-0094-24fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:00 GMT", + "x-ms-client-request-id" : "86618b58-09f1-42f2-bc70-28e117935eda" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumberac0pageblobapitestsequencenumberace3c25794cc/javablobsequencenumberac1956156f873910f98845a6", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D965FA69\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fd63e-301e-0094-31fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:50:00 GMT", + "x-ms-client-request-id" : "b77f89ca-108c-409b-9393-4cb05fcbd5a2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumberac0pageblobapitestsequencenumberace3c25794cc/javablobsequencenumberac1956156f873910f98845a6?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D96ADD93\"", + "x-ms-blob-sequence-number" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fd650-301e-0094-3efc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:00 GMT", + "x-ms-client-request-id" : "b3ba9b07-8ad3-4167-b938-e96ecb69587d" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsequencenumberac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fd663-301e-0094-4afc-5950b8000000", + "Body" : "jtcsequencenumberacjtcsequencenumberac0pageblobapitestsequencenumberace3c25794ccFri, 23 Aug 2019 21:50:01 GMT\"0x8D72813D960D7BE\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:50:01 GMT", + "x-ms-client-request-id" : "48121d34-5820-4009-808e-a3da3dd4b863", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumberac0pageblobapitestsequencenumberace3c25794cc?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fd674-301e-0094-57fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:01 GMT", + "x-ms-client-request-id" : "362b8a67-4033-4cc1-adc7-e72f86aded21" + }, + "Exception" : null + } ], + "variables" : [ "jtcsequencenumberac0pageblobapitestsequencenumberace3c25794cc", "javablobsequencenumberac1956156f873910f98845a6" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestsequencenumberac[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestsequencenumberac[1].json new file mode 100644 index 0000000000000..f6f23098a0237 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestsequencenumberac[1].json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumberac0pageblobapitestsequencenumberac0788281045?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D9792065\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fd684-301e-0094-65fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:01 GMT", + "x-ms-client-request-id" : "46976b64-8096-4fed-8efc-bfd0a7de177b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumberac0pageblobapitestsequencenumberac0788281045/javablobsequencenumberac199529d2ee58fb52e6426c", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D97E9173\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fd691-301e-0094-6ffc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:50:01 GMT", + "x-ms-client-request-id" : "ea2a0380-96f2-4791-b5b9-09f283169a7c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumberac0pageblobapitestsequencenumberac0788281045/javablobsequencenumberac199529d2ee58fb52e6426c?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D98374A2\"", + "x-ms-blob-sequence-number" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fd6a8-301e-0094-01fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:01 GMT", + "x-ms-client-request-id" : "bcc28cb9-8afc-4da0-8af6-c0c197d78e68" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsequencenumberac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fd6bf-301e-0094-11fc-5950b8000000", + "Body" : "jtcsequencenumberacjtcsequencenumberac0pageblobapitestsequencenumberac0788281045Fri, 23 Aug 2019 21:50:01 GMT\"0x8D72813D9792065\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:50:01 GMT", + "x-ms-client-request-id" : "8ddc81ce-2bd7-42c0-8459-b66e15f81819", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumberac0pageblobapitestsequencenumberac0788281045?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fd6cb-301e-0094-1cfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:01 GMT", + "x-ms-client-request-id" : "c3e73921-f289-4781-8cdc-e11de239b3f4" + }, + "Exception" : null + } ], + "variables" : [ "jtcsequencenumberac0pageblobapitestsequencenumberac0788281045", "javablobsequencenumberac199529d2ee58fb52e6426c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestsequencenumberac[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestsequencenumberac[2].json new file mode 100644 index 0000000000000..52499bc0b2859 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestsequencenumberac[2].json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumberac0pageblobapitestsequencenumberacfde36213cf?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D9920562\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fd6e7-301e-0094-31fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:01 GMT", + "x-ms-client-request-id" : "2af0826f-4be6-4910-b5ec-b19b7fbd1bfa" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumberac0pageblobapitestsequencenumberacfde36213cf/javablobsequencenumberac12120602e75b698c854071", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D997017D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fd6f4-301e-0094-3afc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:50:01 GMT", + "x-ms-client-request-id" : "46838dbd-0cf9-4aac-b7b8-9e0d40ea828a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumberac0pageblobapitestsequencenumberacfde36213cf/javablobsequencenumberac12120602e75b698c854071?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D99BBD8F\"", + "x-ms-blob-sequence-number" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fd701-301e-0094-45fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:01 GMT", + "x-ms-client-request-id" : "fa1e06d7-6aeb-4a99-bbd8-781b07a95630" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsequencenumberac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fd70c-301e-0094-4ffc-5950b8000000", + "Body" : "jtcsequencenumberacjtcsequencenumberac0pageblobapitestsequencenumberacfde36213cfFri, 23 Aug 2019 21:50:01 GMT\"0x8D72813D9920562\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:50:01 GMT", + "x-ms-client-request-id" : "47accc46-9a49-4d69-b9ca-b18e447fe38f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumberac0pageblobapitestsequencenumberacfde36213cf?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fd719-301e-0094-5cfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:01 GMT", + "x-ms-client-request-id" : "9d300bac-3fe9-4c04-aa92-ca59e22ec199" + }, + "Exception" : null + } ], + "variables" : [ "jtcsequencenumberac0pageblobapitestsequencenumberacfde36213cf", "javablobsequencenumberac12120602e75b698c854071" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestsequencenumberac[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestsequencenumberac[3].json new file mode 100644 index 0000000000000..41d70087b54d4 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestsequencenumberac[3].json @@ -0,0 +1,135 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumberac0pageblobapitestsequencenumberace3a61786dc?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D9AA7520\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fd72e-301e-0094-6efc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:01 GMT", + "x-ms-client-request-id" : "9e20ebfb-47b2-4bf2-8729-4910d6336fe2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumberac0pageblobapitestsequencenumberace3a61786dc/javablobsequencenumberac108927a0143f7c6b274871", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D9AFE6B9\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fd74d-301e-0094-06fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:50:01 GMT", + "x-ms-client-request-id" : "17c173d5-51b0-4cb0-b9bc-5d873efceedb" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumberac0pageblobapitestsequencenumberace3a61786dc/javablobsequencenumberac108927a0143f7c6b274871", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:01 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:50:01 GMT", + "x-ms-blob-type" : "PageBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72813D9AFE6B9\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:50:01 GMT", + "Content-Length" : "512", + "x-ms-request-id" : "f77fd765-301e-0094-18fc-5950b8000000", + "x-ms-client-request-id" : "c0195ce9-b9ff-490b-9605-d3919a3f915a", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumberac0pageblobapitestsequencenumberace3a61786dc/javablobsequencenumberac108927a0143f7c6b274871?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D9BC6CF6\"", + "x-ms-blob-sequence-number" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fd776-301e-0094-29fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:01 GMT", + "x-ms-client-request-id" : "6c3b9187-cbb5-4ee5-9115-d9068c11c25f" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsequencenumberac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fd783-301e-0094-35fc-5950b8000000", + "Body" : "jtcsequencenumberacjtcsequencenumberac0pageblobapitestsequencenumberace3a61786dcFri, 23 Aug 2019 21:50:01 GMT\"0x8D72813D9AA7520\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:50:01 GMT", + "x-ms-client-request-id" : "15de6f47-7866-468d-945a-6951f2436b4f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumberac0pageblobapitestsequencenumberace3a61786dc?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fd791-301e-0094-43fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:01 GMT", + "x-ms-client-request-id" : "3e44aba2-00b1-4a63-b5bd-c6fc857531a0" + }, + "Exception" : null + } ], + "variables" : [ "jtcsequencenumberac0pageblobapitestsequencenumberace3a61786dc", "javablobsequencenumberac108927a0143f7c6b274871" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestsequencenumberac[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestsequencenumberac[4].json new file mode 100644 index 0000000000000..d6cb5cc7e7c7a --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestsequencenumberac[4].json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumberac0pageblobapitestsequencenumberacf4240563fa?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D9CB4B42\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fd7a6-301e-0094-54fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:01 GMT", + "x-ms-client-request-id" : "893e7d2a-d318-4e32-b0a9-50ba0df3818a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumberac0pageblobapitestsequencenumberacf4240563fa/javablobsequencenumberac13871090622b9a2bf34009", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D9D06F20\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fd7bc-301e-0094-65fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:50:01 GMT", + "x-ms-client-request-id" : "f74c4b37-ab90-4e04-8923-3b97694b9599" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumberac0pageblobapitestsequencenumberacf4240563fa/javablobsequencenumberac13871090622b9a2bf34009?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D9D5523C\"", + "x-ms-blob-sequence-number" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fd7cb-301e-0094-70fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:01 GMT", + "x-ms-client-request-id" : "7d325a3f-c973-4f79-92e2-5ef7998518b2" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsequencenumberac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fd7df-301e-0094-01fc-5950b8000000", + "Body" : "jtcsequencenumberacjtcsequencenumberac0pageblobapitestsequencenumberacf4240563faFri, 23 Aug 2019 21:50:01 GMT\"0x8D72813D9CB4B42\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:50:01 GMT", + "x-ms-client-request-id" : "9597d172-4cc8-4a06-b880-83356b9e2866", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumberac0pageblobapitestsequencenumberacf4240563fa?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fd7f5-301e-0094-14fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:01 GMT", + "x-ms-client-request-id" : "e049c7a9-bd2c-4087-8b21-6f04e94a4a26" + }, + "Exception" : null + } ], + "variables" : [ "jtcsequencenumberac0pageblobapitestsequencenumberacf4240563fa", "javablobsequencenumberac13871090622b9a2bf34009" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestsequencenumberac[5].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestsequencenumberac[5].json new file mode 100644 index 0000000000000..f745c436fdb81 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestsequencenumberac[5].json @@ -0,0 +1,125 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumberac0pageblobapitestsequencenumberac83f6986485?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D9E47E77\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fd811-301e-0094-2efc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:01 GMT", + "x-ms-client-request-id" : "453767f7-9dd5-49c5-a849-2d839bdcd9ba" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumberac0pageblobapitestsequencenumberac83f6986485/javablobsequencenumberac129568579b52c5c5624e96", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D9F90FA8\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fd855-301e-0094-64fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:50:01 GMT", + "x-ms-client-request-id" : "b49ca4bf-9850-4e5c-9c75-3a4b344459e9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumberac0pageblobapitestsequencenumberac83f6986485/javablobsequencenumberac129568579b52c5c5624e96?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D9F90FA8\"", + "x-ms-lease-id" : "e42c5418-d883-4127-b960-4a55bbaab560", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fd863-301e-0094-70fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:02 GMT", + "x-ms-client-request-id" : "f1fad55e-4606-429d-ad01-85682c5a84a3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumberac0pageblobapitestsequencenumberac83f6986485/javablobsequencenumberac129568579b52c5c5624e96?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813DA11588C\"", + "x-ms-blob-sequence-number" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fd8a4-301e-0094-26fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:02 GMT", + "x-ms-client-request-id" : "5612a388-da63-4c69-a0f7-b68ff3f38264" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsequencenumberac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fd8b8-301e-0094-37fc-5950b8000000", + "Body" : "jtcsequencenumberacjtcsequencenumberac0pageblobapitestsequencenumberac83f6986485Fri, 23 Aug 2019 21:50:02 GMT\"0x8D72813D9E47E77\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:50:02 GMT", + "x-ms-client-request-id" : "7be1e14e-3e9c-43e6-ac36-ff4e91228d99", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumberac0pageblobapitestsequencenumberac83f6986485?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fd8c6-301e-0094-42fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:02 GMT", + "x-ms-client-request-id" : "f4109b53-fc2d-4ce2-b099-fb97c136733c" + }, + "Exception" : null + } ], + "variables" : [ "jtcsequencenumberac0pageblobapitestsequencenumberac83f6986485", "javablobsequencenumberac129568579b52c5c5624e96" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestsequencenumberacfail[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestsequencenumberacfail[0].json new file mode 100644 index 0000000000000..7c9d64c88d81c --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestsequencenumberacfail[0].json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumberacfail0761515f06d9473f924c2fa?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813DA21478E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fd8e3-301e-0094-5bfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:02 GMT", + "x-ms-client-request-id" : "847879ab-e2c9-4a3c-b7b3-b050a3fd57af" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumberacfail0761515f06d9473f924c2fa/javablobsequencenumberacfail11036653edeae72d4944", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813DA269371\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fd8f3-301e-0094-69fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:50:02 GMT", + "x-ms-client-request-id" : "233ee1ac-eeae-4389-8356-843bb930a033" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumberacfail0761515f06d9473f924c2fa/javablobsequencenumberacfail11036653edeae72d4944?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "f77fd902-301e-0094-77fc-5950b8000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:f77fd902-301e-0094-77fc-5950b8000000\nTime:2019-08-23T21:50:02.6008920Z", + "Date" : "Fri, 23 Aug 2019 21:50:02 GMT", + "x-ms-client-request-id" : "c7a0185d-d37b-4a77-901a-8b16f819b0f7", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsequencenumberacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fd90a-301e-0094-7efc-5950b8000000", + "Body" : "jtcsequencenumberacfailjtcsequencenumberacfail0761515f06d9473f924c2faFri, 23 Aug 2019 21:50:02 GMT\"0x8D72813DA21478E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:50:02 GMT", + "x-ms-client-request-id" : "1e7bfe12-e621-4055-8aa3-ab250eaa815f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumberacfail0761515f06d9473f924c2fa?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fd916-301e-0094-08fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:02 GMT", + "x-ms-client-request-id" : "99236db3-f035-4903-8f45-3a8d9867ac17" + }, + "Exception" : null + } ], + "variables" : [ "jtcsequencenumberacfail0761515f06d9473f924c2fa", "javablobsequencenumberacfail11036653edeae72d4944" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestsequencenumberacfail[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestsequencenumberacfail[1].json new file mode 100644 index 0000000000000..e5c136d5e97a7 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestsequencenumberacfail[1].json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumberacfail0624197807891a09ba48d39?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813DA3A2C90\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fd921-301e-0094-12fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:02 GMT", + "x-ms-client-request-id" : "e8dfcb40-4575-4755-bb74-ee2f397da852" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumberacfail0624197807891a09ba48d39/javablobsequencenumberacfail189328b8ddb1348f6744", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813DA3FEE0F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fd939-301e-0094-26fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:50:02 GMT", + "x-ms-client-request-id" : "ff02f76d-b3c0-47d7-af20-eabbd5915d37" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumberacfail0624197807891a09ba48d39/javablobsequencenumberacfail189328b8ddb1348f6744?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "f77fd94e-301e-0094-39fc-5950b8000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:f77fd94e-301e-0094-39fc-5950b8000000\nTime:2019-08-23T21:50:02.7680446Z", + "Date" : "Fri, 23 Aug 2019 21:50:02 GMT", + "x-ms-client-request-id" : "0b306561-07fd-4881-95d0-a164a2aedff4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsequencenumberacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fd958-301e-0094-42fc-5950b8000000", + "Body" : "jtcsequencenumberacfailjtcsequencenumberacfail0624197807891a09ba48d39Fri, 23 Aug 2019 21:50:02 GMT\"0x8D72813DA3A2C90\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:50:02 GMT", + "x-ms-client-request-id" : "75e610f7-d200-4814-97aa-7c0944a20331", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumberacfail0624197807891a09ba48d39?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fd967-301e-0094-4ffc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:02 GMT", + "x-ms-client-request-id" : "003551ff-7198-417b-bf82-fcf39bdd8303" + }, + "Exception" : null + } ], + "variables" : [ "jtcsequencenumberacfail0624197807891a09ba48d39", "javablobsequencenumberacfail189328b8ddb1348f6744" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestsequencenumberacfail[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestsequencenumberacfail[2].json new file mode 100644 index 0000000000000..e7d3cb2e1c14b --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestsequencenumberacfail[2].json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumberacfail010323ef2c697ba37c4bc79?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813DA5386F7\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fd975-301e-0094-5bfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:02 GMT", + "x-ms-client-request-id" : "09783d18-99ad-4108-b086-cd6fdf6baa95" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumberacfail010323ef2c697ba37c4bc79/javablobsequencenumberacfail1414725e3d7202d2e045", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813DA58FA72\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fd984-301e-0094-69fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:50:02 GMT", + "x-ms-client-request-id" : "f5deab5c-4537-4827-b888-8b01c01c8946" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumberacfail010323ef2c697ba37c4bc79/javablobsequencenumberacfail1414725e3d7202d2e045?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "f77fd996-301e-0094-7bfc-5950b8000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:f77fd996-301e-0094-7bfc-5950b8000000\nTime:2019-08-23T21:50:02.9281911Z", + "Date" : "Fri, 23 Aug 2019 21:50:02 GMT", + "x-ms-client-request-id" : "6af59fb6-41ab-4cc5-a8ab-d1d15fab87d1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsequencenumberacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fd9a5-301e-0094-08fc-5950b8000000", + "Body" : "jtcsequencenumberacfailjtcsequencenumberacfail010323ef2c697ba37c4bc79Fri, 23 Aug 2019 21:50:02 GMT\"0x8D72813DA5386F7\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:50:02 GMT", + "x-ms-client-request-id" : "2e20c2d9-bf17-43df-a471-90267da71046", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumberacfail010323ef2c697ba37c4bc79?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fd9b4-301e-0094-16fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:02 GMT", + "x-ms-client-request-id" : "d86b29d2-60f7-4c47-9a0d-eb55306cf36a" + }, + "Exception" : null + } ], + "variables" : [ "jtcsequencenumberacfail010323ef2c697ba37c4bc79", "javablobsequencenumberacfail1414725e3d7202d2e045" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestsequencenumberacfail[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestsequencenumberacfail[3].json new file mode 100644 index 0000000000000..9a7acf8628a64 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestsequencenumberacfail[3].json @@ -0,0 +1,135 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumberacfail015195431c0e8f138044d38?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813DA6BCF86\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fd9d0-301e-0094-2efc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:02 GMT", + "x-ms-client-request-id" : "b4117508-f91e-4bab-bac5-0f423c4be5ca" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumberacfail015195431c0e8f138044d38/javablobsequencenumberacfail1204657f51ddbeb5ad4a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813DA711C48\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fd9dd-301e-0094-37fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:50:02 GMT", + "x-ms-client-request-id" : "6a0cfc4b-0690-4731-b409-6005bc4399b2" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumberacfail015195431c0e8f138044d38/javablobsequencenumberacfail1204657f51ddbeb5ad4a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:03 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:50:02 GMT", + "x-ms-blob-type" : "PageBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72813DA711C48\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:50:03 GMT", + "Content-Length" : "512", + "x-ms-request-id" : "f77fd9fa-301e-0094-4dfc-5950b8000000", + "x-ms-client-request-id" : "2913a7d4-f92a-4f08-8d72-02cbf634e5ab", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumberacfail015195431c0e8f138044d38/javablobsequencenumberacfail1204657f51ddbeb5ad4a?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "f77fda07-301e-0094-58fc-5950b8000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:f77fda07-301e-0094-58fc-5950b8000000\nTime:2019-08-23T21:50:03.1183651Z", + "Date" : "Fri, 23 Aug 2019 21:50:02 GMT", + "x-ms-client-request-id" : "2e095e5f-34d2-4b6d-86e8-16c194b2d3cc", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsequencenumberacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fda1a-301e-0094-6afc-5950b8000000", + "Body" : "jtcsequencenumberacfailjtcsequencenumberacfail015195431c0e8f138044d38Fri, 23 Aug 2019 21:50:03 GMT\"0x8D72813DA6BCF86\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:50:02 GMT", + "x-ms-client-request-id" : "694840ff-a45c-4fe1-9a8b-bcd651b8f3fa", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumberacfail015195431c0e8f138044d38?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fda27-301e-0094-76fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:02 GMT", + "x-ms-client-request-id" : "6449e998-ab2b-40d0-bfe6-1e1c0d558098" + }, + "Exception" : null + } ], + "variables" : [ "jtcsequencenumberacfail015195431c0e8f138044d38", "javablobsequencenumberacfail1204657f51ddbeb5ad4a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestsequencenumberacfail[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestsequencenumberacfail[4].json new file mode 100644 index 0000000000000..a7d7372a954f5 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestsequencenumberacfail[4].json @@ -0,0 +1,125 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumberacfail0242448b3b370e1ce247eaa?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813DA88FB48\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fda34-301e-0094-01fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:02 GMT", + "x-ms-client-request-id" : "1653ca90-e970-4da0-b43c-247deb6905a0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumberacfail0242448b3b370e1ce247eaa/javablobsequencenumberacfail12383384beac1a8e8044", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813DA8E6F72\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fda45-301e-0094-0efc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:50:02 GMT", + "x-ms-client-request-id" : "961661ac-f23b-4cfa-b6d2-73aaed8afecd" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumberacfail0242448b3b370e1ce247eaa/javablobsequencenumberacfail12383384beac1a8e8044?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813DA8E6F72\"", + "x-ms-lease-id" : "62ec9573-ae81-40e1-bf3f-625c4b3e5347", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fda52-301e-0094-1afc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:02 GMT", + "x-ms-client-request-id" : "ceb92d4a-6519-4b07-b257-89b408e331c9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumberacfail0242448b3b370e1ce247eaa/javablobsequencenumberacfail12383384beac1a8e8044?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "LeaseIdMismatchWithBlobOperation", + "retry-after" : "0", + "Content-Length" : "264", + "StatusCode" : "412", + "x-ms-request-id" : "f77fda63-301e-0094-28fc-5950b8000000", + "Body" : "LeaseIdMismatchWithBlobOperationThe lease ID specified did not match the lease ID for the blob.\nRequestId:f77fda63-301e-0094-28fc-5950b8000000\nTime:2019-08-23T21:50:03.3115420Z", + "Date" : "Fri, 23 Aug 2019 21:50:02 GMT", + "x-ms-client-request-id" : "12b662ca-3783-4fec-80f7-bf8aa2fe19d1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsequencenumberacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fda74-301e-0094-37fc-5950b8000000", + "Body" : "jtcsequencenumberacfailjtcsequencenumberacfail0242448b3b370e1ce247eaaFri, 23 Aug 2019 21:50:03 GMT\"0x8D72813DA88FB48\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:50:02 GMT", + "x-ms-client-request-id" : "78c8ba2c-3d23-4b4a-8950-9252e0c78aca", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumberacfail0242448b3b370e1ce247eaa?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fda87-301e-0094-47fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:03 GMT", + "x-ms-client-request-id" : "21e3b6a2-5514-4349-8be2-971206c371b0" + }, + "Exception" : null + } ], + "variables" : [ "jtcsequencenumberacfail0242448b3b370e1ce247eaa", "javablobsequencenumberacfail12383384beac1a8e8044" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestsequencenumbererror.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestsequencenumbererror.json new file mode 100644 index 0000000000000..a798c1f63454a --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestsequencenumbererror.json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumbererror00422893a0e79555164d0a8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813DAA711B0\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fda9c-301e-0094-5afc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:03 GMT", + "x-ms-client-request-id" : "57d81a13-4a83-4532-b9bd-160dc520b2e5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumbererror00422893a0e79555164d0a8/javablobsequencenumbererror121442d0e20c443cd941d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813DAB4C58F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fdac1-301e-0094-78fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:50:03 GMT", + "x-ms-client-request-id" : "10cb2e23-e946-4ad5-b012-65020f8e2c8d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumbererror00422893a0e79555164d0a8/javablobsequencenumbererror225918b22a05273a7a4cd?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "BlobNotFound", + "retry-after" : "0", + "Content-Length" : "215", + "StatusCode" : "404", + "x-ms-request-id" : "f77fdae6-301e-0094-19fc-5950b8000000", + "Body" : "BlobNotFoundThe specified blob does not exist.\nRequestId:f77fdae6-301e-0094-19fc-5950b8000000\nTime:2019-08-23T21:50:03.5527629Z", + "Date" : "Fri, 23 Aug 2019 21:50:03 GMT", + "x-ms-client-request-id" : "ba648b6c-f142-4d04-9188-a94f53bcd13a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsequencenumbererror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fdaf6-301e-0094-27fc-5950b8000000", + "Body" : "jtcsequencenumbererrorjtcsequencenumbererror00422893a0e79555164d0a8Fri, 23 Aug 2019 21:50:03 GMT\"0x8D72813DAA711B0\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:50:03 GMT", + "x-ms-client-request-id" : "73afd2c0-c7eb-461b-9a5e-56e245b80f7e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumbererror00422893a0e79555164d0a8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fdb09-301e-0094-3afc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:03 GMT", + "x-ms-client-request-id" : "f1146b92-1e30-4bfa-acb9-9766b0d3ca06" + }, + "Exception" : null + } ], + "variables" : [ "jtcsequencenumbererror00422893a0e79555164d0a8", "javablobsequencenumbererror121442d0e20c443cd941d", "javablobsequencenumbererror225918b22a05273a7a4cd" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestsequencenumbermin.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestsequencenumbermin.json new file mode 100644 index 0000000000000..fb873ce02d829 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestsequencenumbermin.json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumbermin0pageblobapitestsequencenumbermin92c030999?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D948B646\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fd5dd-301e-0094-61fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:00 GMT", + "x-ms-client-request-id" : "e7851a35-72ae-4ade-b407-e7800e01aea9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumbermin0pageblobapitestsequencenumbermin92c030999/javablobsequencenumbermin155277a66186b46e544179", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D94DB172\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fd5e8-301e-0094-6bfc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:50:00 GMT", + "x-ms-client-request-id" : "734c16b9-2eff-43e9-b114-c31b0f1c5ff9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumbermin0pageblobapitestsequencenumbermin92c030999/javablobsequencenumbermin155277a66186b46e544179?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D9524677\"", + "x-ms-blob-sequence-number" : "1", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fd5fb-301e-0094-7afc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:00 GMT", + "x-ms-client-request-id" : "ff85ecdc-e4a3-4258-bb7f-0507a24a2a83" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsequencenumbermin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fd611-301e-0094-0efc-5950b8000000", + "Body" : "jtcsequencenumberminjtcsequencenumbermin0pageblobapitestsequencenumbermin92c030999Fri, 23 Aug 2019 21:50:01 GMT\"0x8D72813D948B646\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:50:00 GMT", + "x-ms-client-request-id" : "bec4c27e-8b74-4509-ab91-cef2e516eae2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsequencenumbermin0pageblobapitestsequencenumbermin92c030999?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fd61c-301e-0094-18fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:00 GMT", + "x-ms-client-request-id" : "cb06fd07-2624-443c-8ca6-4ff0b5259408" + }, + "Exception" : null + } ], + "variables" : [ "jtcsequencenumbermin0pageblobapitestsequencenumbermin92c030999", "javablobsequencenumbermin155277a66186b46e544179" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITeststartincrementalcopy.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITeststartincrementalcopy.json new file mode 100644 index 0000000000000..b4adcbb2ea928 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITeststartincrementalcopy.json @@ -0,0 +1,260 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopy077862e14253b7c00a4e8db?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813DACEA01C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fdb1f-301e-0094-4cfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:03 GMT", + "x-ms-client-request-id" : "7906eea6-04f9-4ab4-9940-95d0ca530fbb" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopy077862e14253b7c00a4e8db/javablobstartincrementalcopy11631110d3816c7f484e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813DAD4FFA7\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fdb38-301e-0094-60fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:50:03 GMT", + "x-ms-client-request-id" : "957af1d0-91d9-49e9-bb05-f2296e933741" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopy077862e14253b7c00a4e8db?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813DAD9C172\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fdb4e-301e-0094-73fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:03 GMT", + "x-ms-client-request-id" : "d4c55398-5c2f-4abf-ba76-075dca966f30" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopy077862e14253b7c00a4e8db/javablobstartincrementalcopy11631110d3816c7f484e?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-snapshot" : "2019-08-23T21:50:03.7716954Z", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813DAD4FFA7\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fdb62-301e-0094-03fc-5950b8000000", + "x-ms-request-server-encrypted" : "false", + "Date" : "Fri, 23 Aug 2019 21:50:03 GMT", + "x-ms-client-request-id" : "b2705e41-3632-4880-a643-f9850c98932c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopy077862e14253b7c00a4e8db/javablobstartincrementalcopy27410230e1e0e9b81548?comp=incrementalcopy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-copy-id" : "8c91482b-1a3e-46ed-931e-9dd19a39b580", + "ETag" : "\"0x8D72813DAEFE14A\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "x-ms-copy-status" : "pending", + "StatusCode" : "202", + "x-ms-request-id" : "f77fdb85-301e-0094-24fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:03 GMT", + "x-ms-client-request-id" : "93a03103-6bb0-4ff4-a7e3-f2b43e48ba77" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopy077862e14253b7c00a4e8db/javablobstartincrementalcopy27410230e1e0e9b81548", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:03 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-blob-type" : "PageBlob", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:50:03 GMT", + "x-ms-incremental-copy" : "true", + "Content-Length" : "512", + "x-ms-request-id" : "f77fdbbc-301e-0094-57fc-5950b8000000", + "Content-Type" : "application/octet-stream", + "x-ms-version" : "2019-02-02", + "x-ms-copy-id" : "8c91482b-1a3e-46ed-931e-9dd19a39b580", + "x-ms-copy-source" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopy077862e14253b7c00a4e8db/javablobstartincrementalcopy11631110d3816c7f484e?snapshot=2019-08-23T21:50:03.7716954Z", + "x-ms-blob-sequence-number" : "0", + "x-ms-copy-progress" : "0/512", + "Date" : "Fri, 23 Aug 2019 21:50:03 GMT", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "\"0x8D72813DAEFE14A\"", + "x-ms-copy-status" : "pending", + "x-ms-client-request-id" : "2bd29fe3-1e09-4769-806b-661bca7193ac" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopy077862e14253b7c00a4e8db/javablobstartincrementalcopy27410230e1e0e9b81548", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-copy-destination-snapshot" : "2019-08-23T21:50:03.9648810Z", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:03 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-blob-type" : "PageBlob", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:50:03 GMT", + "x-ms-incremental-copy" : "true", + "Content-Length" : "512", + "x-ms-request-id" : "f77fddc3-301e-0094-11fc-5950b8000000", + "Content-Type" : "application/octet-stream", + "x-ms-version" : "2019-02-02", + "x-ms-copy-id" : "8c91482b-1a3e-46ed-931e-9dd19a39b580", + "x-ms-copy-source" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopy077862e14253b7c00a4e8db/javablobstartincrementalcopy11631110d3816c7f484e?snapshot=2019-08-23T21:50:03.7716954Z", + "x-ms-blob-sequence-number" : "0", + "x-ms-copy-progress" : "512/512", + "Date" : "Fri, 23 Aug 2019 21:50:04 GMT", + "x-ms-copy-completion-time" : "Fri, 23 Aug 2019 21:50:03 GMT", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "\"0x8D72813DAEFE14A\"", + "x-ms-copy-status" : "success", + "x-ms-client-request-id" : "1bd80ab8-07d4-4e5b-a43a-c8e228c05156" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopy077862e14253b7c00a4e8db/javablobstartincrementalcopy27410230e1e0e9b81548", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-copy-destination-snapshot" : "2019-08-23T21:50:03.9648810Z", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:03 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-blob-type" : "PageBlob", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:50:03 GMT", + "x-ms-incremental-copy" : "true", + "Content-Length" : "512", + "x-ms-request-id" : "f77fe029-301e-0094-2afc-5950b8000000", + "Content-Type" : "application/octet-stream", + "x-ms-version" : "2019-02-02", + "x-ms-copy-id" : "8c91482b-1a3e-46ed-931e-9dd19a39b580", + "x-ms-copy-source" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopy077862e14253b7c00a4e8db/javablobstartincrementalcopy11631110d3816c7f484e?snapshot=2019-08-23T21:50:03.7716954Z", + "x-ms-blob-sequence-number" : "0", + "x-ms-copy-progress" : "512/512", + "Date" : "Fri, 23 Aug 2019 21:50:05 GMT", + "x-ms-copy-completion-time" : "Fri, 23 Aug 2019 21:50:03 GMT", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "\"0x8D72813DAEFE14A\"", + "x-ms-copy-status" : "success", + "x-ms-client-request-id" : "583d2dcd-75ac-4214-bc8d-9340b15d5f79" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcstartincrementalcopy&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fe036-301e-0094-35fc-5950b8000000", + "Body" : "jtcstartincrementalcopyjtcstartincrementalcopy077862e14253b7c00a4e8dbFri, 23 Aug 2019 21:50:03 GMT\"0x8D72813DAD9C172\"unlockedavailableblob$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:50:05 GMT", + "x-ms-client-request-id" : "1793d4e8-0822-4662-8aab-989730b99374", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopy077862e14253b7c00a4e8db?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fe045-301e-0094-41fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:05 GMT", + "x-ms-client-request-id" : "618b2ab1-c580-4d32-9533-49303cf95fa2" + }, + "Exception" : null + } ], + "variables" : [ "jtcstartincrementalcopy077862e14253b7c00a4e8db", "javablobstartincrementalcopy11631110d3816c7f484e", "javablobstartincrementalcopy27410230e1e0e9b81548" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITeststartincrementalcopyac[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITeststartincrementalcopyac[0].json new file mode 100644 index 0000000000000..a1d30c6f70d0a --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITeststartincrementalcopyac[0].json @@ -0,0 +1,266 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyac00081154497fdfcea945fe?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813DC657DE1\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fe0c1-301e-0094-2afc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:05 GMT", + "x-ms-client-request-id" : "acdffc2b-f6a5-4e41-a969-d72af29d55fb" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyac00081154497fdfcea945fe/javablobstartincrementalcopyac1079800fd71d61a09b4", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813DC6AD067\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fe0d9-301e-0094-3ffc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:50:06 GMT", + "x-ms-client-request-id" : "54758cef-eb4d-4006-9345-4b6b57a69730" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyac00081154497fdfcea945fe?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813DC6F8F7C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fe0e9-301e-0094-4cfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:06 GMT", + "x-ms-client-request-id" : "e8d35a29-0a56-4a7b-be1b-01969d35353c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyac00081154497fdfcea945fe/javablobstartincrementalcopyac1079800fd71d61a09b4?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-snapshot" : "2019-08-23T21:50:06.4422573Z", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813DC6AD067\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fe0f8-301e-0094-5afc-5950b8000000", + "x-ms-request-server-encrypted" : "false", + "Date" : "Fri, 23 Aug 2019 21:50:06 GMT", + "x-ms-client-request-id" : "f1b02ed4-eee1-45b3-a562-17a79dde1b98" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyac00081154497fdfcea945fe/javablobstartincrementalcopyac25276123443a8e9cd74?comp=incrementalcopy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-copy-id" : "14a09b7f-1bce-4805-a492-f07774e10dfa", + "ETag" : "\"0x8D72813DC7D729F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "x-ms-copy-status" : "pending", + "StatusCode" : "202", + "x-ms-request-id" : "f77fe10d-301e-0094-6bfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:06 GMT", + "x-ms-client-request-id" : "64871887-e24e-4f12-acb6-fd366ca913b3" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyac00081154497fdfcea945fe/javablobstartincrementalcopyac25276123443a8e9cd74", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:06 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-blob-type" : "PageBlob", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:50:06 GMT", + "x-ms-incremental-copy" : "true", + "Content-Length" : "512", + "x-ms-request-id" : "f77fe123-301e-0094-7efc-5950b8000000", + "Content-Type" : "application/octet-stream", + "x-ms-version" : "2019-02-02", + "x-ms-copy-id" : "14a09b7f-1bce-4805-a492-f07774e10dfa", + "x-ms-copy-source" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyac00081154497fdfcea945fe/javablobstartincrementalcopyac1079800fd71d61a09b4?snapshot=2019-08-23T21:50:06.4422573Z", + "x-ms-blob-sequence-number" : "0", + "x-ms-copy-progress" : "0/512", + "Date" : "Fri, 23 Aug 2019 21:50:06 GMT", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "\"0x8D72813DC7D729F\"", + "x-ms-copy-status" : "pending", + "x-ms-client-request-id" : "3fd62a59-98a2-4966-9305-15588cd3b4cc" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyac00081154497fdfcea945fe/javablobstartincrementalcopyac25276123443a8e9cd74", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-copy-destination-snapshot" : "2019-08-23T21:50:06.5213339Z", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:06 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-blob-type" : "PageBlob", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:50:06 GMT", + "x-ms-incremental-copy" : "true", + "Content-Length" : "512", + "x-ms-request-id" : "f77fe2fd-301e-0094-07fc-5950b8000000", + "Content-Type" : "application/octet-stream", + "x-ms-version" : "2019-02-02", + "x-ms-copy-id" : "14a09b7f-1bce-4805-a492-f07774e10dfa", + "x-ms-copy-source" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyac00081154497fdfcea945fe/javablobstartincrementalcopyac1079800fd71d61a09b4?snapshot=2019-08-23T21:50:06.4422573Z", + "x-ms-blob-sequence-number" : "0", + "x-ms-copy-progress" : "512/512", + "Date" : "Fri, 23 Aug 2019 21:50:07 GMT", + "x-ms-copy-completion-time" : "Fri, 23 Aug 2019 21:50:06 GMT", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "\"0x8D72813DC7D729F\"", + "x-ms-copy-status" : "success", + "x-ms-client-request-id" : "d2d135ca-6eee-4d68-b3f9-e931f9d0d782" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyac00081154497fdfcea945fe/javablobstartincrementalcopyac1079800fd71d61a09b4?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-snapshot" : "2019-08-23T21:50:08.5793076Z", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813DC6AD067\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fe4ee-301e-0094-3efc-5950b8000000", + "x-ms-request-server-encrypted" : "false", + "Date" : "Fri, 23 Aug 2019 21:50:08 GMT", + "x-ms-client-request-id" : "3a55d305-ad15-4c09-876f-668f1bc9cbef" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyac00081154497fdfcea945fe/javablobstartincrementalcopyac25276123443a8e9cd74?comp=incrementalcopy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-copy-id" : "bb6dcd5a-da1f-4792-9be2-93e7325d1f22", + "ETag" : "\"0x8D72813DDC7F70B\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "x-ms-copy-status" : "pending", + "StatusCode" : "202", + "x-ms-request-id" : "f77fe508-301e-0094-57fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:08 GMT", + "x-ms-client-request-id" : "79248fa6-0ae4-421c-b390-15f574f855d3" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcstartincrementalcopyac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fe52c-301e-0094-77fc-5950b8000000", + "Body" : "jtcstartincrementalcopyacjtcstartincrementalcopyac00081154497fdfcea945feFri, 23 Aug 2019 21:50:06 GMT\"0x8D72813DC6F8F7C\"unlockedavailableblob$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:50:08 GMT", + "x-ms-client-request-id" : "4be19385-2d91-4a07-9d23-d1a2a852b436", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyac00081154497fdfcea945fe?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fe53a-301e-0094-02fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:08 GMT", + "x-ms-client-request-id" : "2442c691-e70a-4a03-acff-6efa8a570ff5" + }, + "Exception" : null + } ], + "variables" : [ "jtcstartincrementalcopyac00081154497fdfcea945fe", "javablobstartincrementalcopyac1079800fd71d61a09b4", "javablobstartincrementalcopyac25276123443a8e9cd74" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITeststartincrementalcopyac[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITeststartincrementalcopyac[1].json new file mode 100644 index 0000000000000..f3fe612e004d8 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITeststartincrementalcopyac[1].json @@ -0,0 +1,230 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyac0950987fe6783676db499f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813DDD7B40C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fe549-301e-0094-10fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:08 GMT", + "x-ms-client-request-id" : "129704d2-4a83-49c1-b85e-c676213d0eb3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyac0950987fe6783676db499f/javablobstartincrementalcopyac1876583e51a77fc6364", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813DDDD31EA\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fe55a-301e-0094-1dfc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:50:08 GMT", + "x-ms-client-request-id" : "97504c83-f733-4908-aaa8-b070d89eed37" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyac0950987fe6783676db499f?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813DDE263E5\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fe566-301e-0094-29fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:08 GMT", + "x-ms-client-request-id" : "430b6575-44fa-4828-857f-a37c3dfce480" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyac0950987fe6783676db499f/javablobstartincrementalcopyac1876583e51a77fc6364?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-snapshot" : "2019-08-23T21:50:08.8635813Z", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813DDDD31EA\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fe578-301e-0094-37fc-5950b8000000", + "x-ms-request-server-encrypted" : "false", + "Date" : "Fri, 23 Aug 2019 21:50:08 GMT", + "x-ms-client-request-id" : "41093f75-42cd-45d8-b90d-46bf62168f7b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyac0950987fe6783676db499f/javablobstartincrementalcopyac2202835f3a1313a5674?comp=incrementalcopy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-copy-id" : "44cf15bb-1431-4694-bd35-d6d3b490711c", + "ETag" : "\"0x8D72813DDEE7435\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "x-ms-copy-status" : "pending", + "StatusCode" : "202", + "x-ms-request-id" : "f77fe58f-301e-0094-4afc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:08 GMT", + "x-ms-client-request-id" : "8651fd60-338d-45ee-b3b7-af901d257171" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyac0950987fe6783676db499f/javablobstartincrementalcopyac2202835f3a1313a5674", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-copy-destination-snapshot" : "2019-08-23T21:50:08.9336476Z", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:08 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-blob-type" : "PageBlob", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:50:08 GMT", + "x-ms-incremental-copy" : "true", + "Content-Length" : "512", + "x-ms-request-id" : "f77fe5a6-301e-0094-60fc-5950b8000000", + "Content-Type" : "application/octet-stream", + "x-ms-version" : "2019-02-02", + "x-ms-copy-id" : "44cf15bb-1431-4694-bd35-d6d3b490711c", + "x-ms-copy-source" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyac0950987fe6783676db499f/javablobstartincrementalcopyac1876583e51a77fc6364?snapshot=2019-08-23T21:50:08.8635813Z", + "x-ms-blob-sequence-number" : "0", + "x-ms-copy-progress" : "512/512", + "Date" : "Fri, 23 Aug 2019 21:50:08 GMT", + "x-ms-copy-completion-time" : "Fri, 23 Aug 2019 21:50:08 GMT", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "\"0x8D72813DDEE7435\"", + "x-ms-copy-status" : "success", + "x-ms-client-request-id" : "4b3efb9d-2e2e-43f6-b06a-9985eaef4326" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyac0950987fe6783676db499f/javablobstartincrementalcopyac1876583e51a77fc6364?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-snapshot" : "2019-08-23T21:50:09.9746504Z", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813DDDD31EA\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fe750-301e-0094-51fc-5950b8000000", + "x-ms-request-server-encrypted" : "false", + "Date" : "Fri, 23 Aug 2019 21:50:09 GMT", + "x-ms-client-request-id" : "245a483e-c3a9-4773-9302-81eaa73e0160" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyac0950987fe6783676db499f/javablobstartincrementalcopyac2202835f3a1313a5674?comp=incrementalcopy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-copy-id" : "ce4929e7-fd9d-421e-8948-d83797c0f92d", + "ETag" : "\"0x8D72813DE984B93\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "x-ms-copy-status" : "pending", + "StatusCode" : "202", + "x-ms-request-id" : "f77fe763-301e-0094-62fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:09 GMT", + "x-ms-client-request-id" : "458c8327-060e-48eb-b3d2-ce3e04dbb543" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcstartincrementalcopyac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fe776-301e-0094-70fc-5950b8000000", + "Body" : "jtcstartincrementalcopyacjtcstartincrementalcopyac0950987fe6783676db499fFri, 23 Aug 2019 21:50:08 GMT\"0x8D72813DDE263E5\"unlockedavailableblob$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:50:09 GMT", + "x-ms-client-request-id" : "6523309d-d319-456b-8a2d-b270e0703783", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyac0950987fe6783676db499f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fe77c-301e-0094-76fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:09 GMT", + "x-ms-client-request-id" : "a8e5900f-2c35-45f9-b983-6dc5f6d08d65" + }, + "Exception" : null + } ], + "variables" : [ "jtcstartincrementalcopyac0950987fe6783676db499f", "javablobstartincrementalcopyac1876583e51a77fc6364", "javablobstartincrementalcopyac2202835f3a1313a5674" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITeststartincrementalcopyac[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITeststartincrementalcopyac[2].json new file mode 100644 index 0000000000000..c08aac2a1e5e6 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITeststartincrementalcopyac[2].json @@ -0,0 +1,266 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyac09315791154d1f31d04043?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813DEA790E2\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fe793-301e-0094-09fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:09 GMT", + "x-ms-client-request-id" : "0c5f7287-7322-4e7f-8b7a-5f98d6e8b17a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyac09315791154d1f31d04043/javablobstartincrementalcopyac186543dde2054dcc704", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813DEACEA2C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fe7a7-301e-0094-17fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:50:09 GMT", + "x-ms-client-request-id" : "8b57b32b-41eb-4318-986d-8f088a7a0726" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyac09315791154d1f31d04043?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813DEB21A90\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fe7b1-301e-0094-21fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:09 GMT", + "x-ms-client-request-id" : "b1f2ebe8-9d7f-446c-a9a1-b7fa60d5120e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyac09315791154d1f31d04043/javablobstartincrementalcopyac186543dde2054dcc704?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-snapshot" : "2019-08-23T21:50:10.2268944Z", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813DEACEA2C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fe7c0-301e-0094-2ffc-5950b8000000", + "x-ms-request-server-encrypted" : "false", + "Date" : "Fri, 23 Aug 2019 21:50:09 GMT", + "x-ms-client-request-id" : "a103a976-7c24-4b7c-a2bb-72aa64d37938" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyac09315791154d1f31d04043/javablobstartincrementalcopyac214569e0177b281b9a4?comp=incrementalcopy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-copy-id" : "c24ac169-5e93-4bc5-8b96-a3deec434192", + "ETag" : "\"0x8D72813DEBDB72A\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "x-ms-copy-status" : "pending", + "StatusCode" : "202", + "x-ms-request-id" : "f77fe7c9-301e-0094-38fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:09 GMT", + "x-ms-client-request-id" : "890d88ca-447c-4bc3-92ce-c16a1c8429bd" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyac09315791154d1f31d04043/javablobstartincrementalcopyac214569e0177b281b9a4", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:10 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-blob-type" : "PageBlob", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:50:10 GMT", + "x-ms-incremental-copy" : "true", + "Content-Length" : "512", + "x-ms-request-id" : "f77fe7e9-301e-0094-55fc-5950b8000000", + "Content-Type" : "application/octet-stream", + "x-ms-version" : "2019-02-02", + "x-ms-copy-id" : "c24ac169-5e93-4bc5-8b96-a3deec434192", + "x-ms-copy-source" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyac09315791154d1f31d04043/javablobstartincrementalcopyac186543dde2054dcc704?snapshot=2019-08-23T21:50:10.2268944Z", + "x-ms-blob-sequence-number" : "0", + "x-ms-copy-progress" : "0/512", + "Date" : "Fri, 23 Aug 2019 21:50:09 GMT", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "\"0x8D72813DEBDB72A\"", + "x-ms-copy-status" : "pending", + "x-ms-client-request-id" : "371511c9-76eb-4ec3-a529-b8953168f5cb" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyac09315791154d1f31d04043/javablobstartincrementalcopyac214569e0177b281b9a4", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-copy-destination-snapshot" : "2019-08-23T21:50:10.3139788Z", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:10 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-blob-type" : "PageBlob", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:50:10 GMT", + "x-ms-incremental-copy" : "true", + "Content-Length" : "512", + "x-ms-request-id" : "f77fe9ed-301e-0094-0afc-5950b8000000", + "Content-Type" : "application/octet-stream", + "x-ms-version" : "2019-02-02", + "x-ms-copy-id" : "c24ac169-5e93-4bc5-8b96-a3deec434192", + "x-ms-copy-source" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyac09315791154d1f31d04043/javablobstartincrementalcopyac186543dde2054dcc704?snapshot=2019-08-23T21:50:10.2268944Z", + "x-ms-blob-sequence-number" : "0", + "x-ms-copy-progress" : "512/512", + "Date" : "Fri, 23 Aug 2019 21:50:10 GMT", + "x-ms-copy-completion-time" : "Fri, 23 Aug 2019 21:50:10 GMT", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "\"0x8D72813DEBDB72A\"", + "x-ms-copy-status" : "success", + "x-ms-client-request-id" : "44b0d8b2-56f4-4bf2-b00b-cfe3a812277e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyac09315791154d1f31d04043/javablobstartincrementalcopyac186543dde2054dcc704?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-snapshot" : "2019-08-23T21:50:12.3679493Z", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813DEACEA2C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fec65-301e-0094-10fc-5950b8000000", + "x-ms-request-server-encrypted" : "false", + "Date" : "Fri, 23 Aug 2019 21:50:12 GMT", + "x-ms-client-request-id" : "4be4dc4d-25c8-4d91-a589-eb82f26734d7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyac09315791154d1f31d04043/javablobstartincrementalcopyac214569e0177b281b9a4?comp=incrementalcopy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-copy-id" : "5961131b-623e-4bff-9077-f427cc8905aa", + "ETag" : "\"0x8D72813E005F11D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "x-ms-copy-status" : "pending", + "StatusCode" : "202", + "x-ms-request-id" : "f77fec85-301e-0094-2afc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:12 GMT", + "x-ms-client-request-id" : "b7329ce8-8f34-426e-9bee-44effb3d5b58" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcstartincrementalcopyac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fecb7-301e-0094-54fc-5950b8000000", + "Body" : "jtcstartincrementalcopyacjtcstartincrementalcopyac09315791154d1f31d04043Fri, 23 Aug 2019 21:50:10 GMT\"0x8D72813DEB21A90\"unlockedavailableblob$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:50:12 GMT", + "x-ms-client-request-id" : "e3dda803-d630-4199-a74f-fd225da8d4dc", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyac09315791154d1f31d04043?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fecc5-301e-0094-5ffc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:12 GMT", + "x-ms-client-request-id" : "1b7d11a8-d417-4dd3-b669-e76f22c8e32c" + }, + "Exception" : null + } ], + "variables" : [ "jtcstartincrementalcopyac09315791154d1f31d04043", "javablobstartincrementalcopyac186543dde2054dcc704", "javablobstartincrementalcopyac214569e0177b281b9a4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITeststartincrementalcopyac[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITeststartincrementalcopyac[3].json new file mode 100644 index 0000000000000..968632d622d9a --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITeststartincrementalcopyac[3].json @@ -0,0 +1,268 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyac08758004bc9b8ee6234ea5?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813E01978C8\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fecdd-301e-0094-74fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:12 GMT", + "x-ms-client-request-id" : "98592799-63a7-4b95-8762-34b5a1c0beab" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyac08758004bc9b8ee6234ea5/javablobstartincrementalcopyac158124c676664f67684", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813E01EAF50\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fecf0-301e-0094-03fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:50:12 GMT", + "x-ms-client-request-id" : "251f8afd-af00-418f-9434-bd2b5eb87a58" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyac08758004bc9b8ee6234ea5?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813E0238F04\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fed07-301e-0094-15fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:12 GMT", + "x-ms-client-request-id" : "af0a0165-9823-44da-accc-ef6960a9162c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyac08758004bc9b8ee6234ea5/javablobstartincrementalcopyac158124c676664f67684?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-snapshot" : "2019-08-23T21:50:12.6482173Z", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813E01EAF50\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fed23-301e-0094-2efc-5950b8000000", + "x-ms-request-server-encrypted" : "false", + "Date" : "Fri, 23 Aug 2019 21:50:12 GMT", + "x-ms-client-request-id" : "f2698ac2-1da6-4330-b28d-0f7da9c93129" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyac08758004bc9b8ee6234ea5/javablobstartincrementalcopyac225156505339a5d86f4?comp=incrementalcopy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-copy-id" : "c7031611-9feb-480a-95fb-090053c5bb86", + "ETag" : "\"0x8D72813E02F2E19\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "x-ms-copy-status" : "pending", + "StatusCode" : "202", + "x-ms-request-id" : "f77fed4b-301e-0094-4cfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:12 GMT", + "x-ms-client-request-id" : "63de0b48-01bf-4c08-8dd1-2d903bd94a8f" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyac08758004bc9b8ee6234ea5/javablobstartincrementalcopyac225156505339a5d86f4", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-copy-destination-snapshot" : "2019-08-23T21:50:12.7172838Z", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:12 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-blob-type" : "PageBlob", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:50:12 GMT", + "x-ms-incremental-copy" : "true", + "Content-Length" : "512", + "x-ms-request-id" : "f77fed66-301e-0094-62fc-5950b8000000", + "Content-Type" : "application/octet-stream", + "x-ms-version" : "2019-02-02", + "x-ms-copy-id" : "c7031611-9feb-480a-95fb-090053c5bb86", + "x-ms-copy-source" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyac08758004bc9b8ee6234ea5/javablobstartincrementalcopyac158124c676664f67684?snapshot=2019-08-23T21:50:12.6482173Z", + "x-ms-blob-sequence-number" : "0", + "x-ms-copy-progress" : "512/512", + "Date" : "Fri, 23 Aug 2019 21:50:12 GMT", + "x-ms-copy-completion-time" : "Fri, 23 Aug 2019 21:50:12 GMT", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "\"0x8D72813E02F2E19\"", + "x-ms-copy-status" : "success", + "x-ms-client-request-id" : "2650c284-81e2-421e-aaee-2068f2ee342e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyac08758004bc9b8ee6234ea5/javablobstartincrementalcopyac158124c676664f67684?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-snapshot" : "2019-08-23T21:50:13.7612855Z", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813E01EAF50\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fefff-301e-0094-12fc-5950b8000000", + "x-ms-request-server-encrypted" : "false", + "Date" : "Fri, 23 Aug 2019 21:50:13 GMT", + "x-ms-client-request-id" : "2a4e4661-f06e-4b95-9c69-6ce9e68607a6" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyac08758004bc9b8ee6234ea5/javablobstartincrementalcopyac225156505339a5d86f4", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-copy-destination-snapshot" : "2019-08-23T21:50:12.7172838Z", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:12 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-blob-type" : "PageBlob", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:50:12 GMT", + "x-ms-incremental-copy" : "true", + "Content-Length" : "512", + "x-ms-request-id" : "f77ff00e-301e-0094-20fc-5950b8000000", + "Content-Type" : "application/octet-stream", + "x-ms-version" : "2019-02-02", + "x-ms-copy-id" : "c7031611-9feb-480a-95fb-090053c5bb86", + "x-ms-copy-source" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyac08758004bc9b8ee6234ea5/javablobstartincrementalcopyac158124c676664f67684?snapshot=2019-08-23T21:50:12.6482173Z", + "x-ms-blob-sequence-number" : "0", + "x-ms-copy-progress" : "512/512", + "Date" : "Fri, 23 Aug 2019 21:50:13 GMT", + "x-ms-copy-completion-time" : "Fri, 23 Aug 2019 21:50:12 GMT", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "\"0x8D72813E02F2E19\"", + "x-ms-copy-status" : "success", + "x-ms-client-request-id" : "695abae1-85ea-4a2b-8575-784bfde8daa3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyac08758004bc9b8ee6234ea5/javablobstartincrementalcopyac225156505339a5d86f4?comp=incrementalcopy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-copy-id" : "882252cb-5d36-46a9-a988-b68510bb322e", + "ETag" : "\"0x8D72813E0DE0F99\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "x-ms-copy-status" : "pending", + "StatusCode" : "202", + "x-ms-request-id" : "f77ff026-301e-0094-32fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:13 GMT", + "x-ms-client-request-id" : "d30c168e-a7ce-4e40-a2fc-ab23854f473f" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcstartincrementalcopyac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77ff05e-301e-0094-63fc-5950b8000000", + "Body" : "jtcstartincrementalcopyacjtcstartincrementalcopyac08758004bc9b8ee6234ea5Fri, 23 Aug 2019 21:50:12 GMT\"0x8D72813E0238F04\"unlockedavailableblob$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:50:13 GMT", + "x-ms-client-request-id" : "518416f4-00cc-413f-a515-e6adbc6a74aa", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyac08758004bc9b8ee6234ea5?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77ff072-301e-0094-75fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:13 GMT", + "x-ms-client-request-id" : "75f56f11-2fbc-4b04-a6e1-c5ec9f00944b" + }, + "Exception" : null + } ], + "variables" : [ "jtcstartincrementalcopyac08758004bc9b8ee6234ea5", "javablobstartincrementalcopyac158124c676664f67684", "javablobstartincrementalcopyac225156505339a5d86f4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITeststartincrementalcopyac[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITeststartincrementalcopyac[4].json new file mode 100644 index 0000000000000..d2a1f4876a8bf --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITeststartincrementalcopyac[4].json @@ -0,0 +1,266 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyac047506ddb4b23f44cc433b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813E0F342E7\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77ff08b-301e-0094-0bfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:13 GMT", + "x-ms-client-request-id" : "3a624f17-c9a9-4254-9e85-d7284ea089f2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyac047506ddb4b23f44cc433b/javablobstartincrementalcopyac120434b632db577a494", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813E0F854D1\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77ff0aa-301e-0094-24fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:50:13 GMT", + "x-ms-client-request-id" : "b690f283-b438-46dc-894e-0036e49754ba" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyac047506ddb4b23f44cc433b?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813E0FD3322\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77ff0bf-301e-0094-37fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:13 GMT", + "x-ms-client-request-id" : "9325f701-7857-43d6-b47b-b04b3b3a341f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyac047506ddb4b23f44cc433b/javablobstartincrementalcopyac120434b632db577a494?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-snapshot" : "2019-08-23T21:50:14.1886953Z", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813E0F854D1\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77ff11d-301e-0094-01fc-5950b8000000", + "x-ms-request-server-encrypted" : "false", + "Date" : "Fri, 23 Aug 2019 21:50:13 GMT", + "x-ms-client-request-id" : "474d916c-7996-4bd0-a950-e51c9d8d2428" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyac047506ddb4b23f44cc433b/javablobstartincrementalcopyac224685f306009d69e34?comp=incrementalcopy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-copy-id" : "7a4daf88-cb36-4096-a326-e64b3bc4f132", + "ETag" : "\"0x8D72813E11A3D05\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "x-ms-copy-status" : "pending", + "StatusCode" : "202", + "x-ms-request-id" : "f77ff12f-301e-0094-12fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:13 GMT", + "x-ms-client-request-id" : "49dd0eec-33a7-40e9-842d-a06182690944" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyac047506ddb4b23f44cc433b/javablobstartincrementalcopyac224685f306009d69e34", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:14 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-blob-type" : "PageBlob", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:50:14 GMT", + "x-ms-incremental-copy" : "true", + "Content-Length" : "512", + "x-ms-request-id" : "f77ff14a-301e-0094-29fc-5950b8000000", + "Content-Type" : "application/octet-stream", + "x-ms-version" : "2019-02-02", + "x-ms-copy-id" : "7a4daf88-cb36-4096-a326-e64b3bc4f132", + "x-ms-copy-source" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyac047506ddb4b23f44cc433b/javablobstartincrementalcopyac120434b632db577a494?snapshot=2019-08-23T21:50:14.1886953Z", + "x-ms-blob-sequence-number" : "0", + "x-ms-copy-progress" : "0/512", + "Date" : "Fri, 23 Aug 2019 21:50:13 GMT", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "\"0x8D72813E11A3D05\"", + "x-ms-copy-status" : "pending", + "x-ms-client-request-id" : "f141ee93-f02f-40c4-a527-bf9828541275" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyac047506ddb4b23f44cc433b/javablobstartincrementalcopyac224685f306009d69e34", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-copy-destination-snapshot" : "2019-08-23T21:50:14.2687726Z", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:14 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-blob-type" : "PageBlob", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:50:14 GMT", + "x-ms-incremental-copy" : "true", + "Content-Length" : "512", + "x-ms-request-id" : "f77ff392-301e-0094-31fc-5950b8000000", + "Content-Type" : "application/octet-stream", + "x-ms-version" : "2019-02-02", + "x-ms-copy-id" : "7a4daf88-cb36-4096-a326-e64b3bc4f132", + "x-ms-copy-source" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyac047506ddb4b23f44cc433b/javablobstartincrementalcopyac120434b632db577a494?snapshot=2019-08-23T21:50:14.1886953Z", + "x-ms-blob-sequence-number" : "0", + "x-ms-copy-progress" : "512/512", + "Date" : "Fri, 23 Aug 2019 21:50:14 GMT", + "x-ms-copy-completion-time" : "Fri, 23 Aug 2019 21:50:14 GMT", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "\"0x8D72813E11A3D05\"", + "x-ms-copy-status" : "success", + "x-ms-client-request-id" : "d63ed402-246c-4b33-ac30-6761590312db" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyac047506ddb4b23f44cc433b/javablobstartincrementalcopyac120434b632db577a494?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-snapshot" : "2019-08-23T21:50:16.3207406Z", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813E0F854D1\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77ff686-301e-0094-45fc-5950b8000000", + "x-ms-request-server-encrypted" : "false", + "Date" : "Fri, 23 Aug 2019 21:50:15 GMT", + "x-ms-client-request-id" : "c3c95eb3-d618-4a4d-bd77-5c0b558e9e47" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyac047506ddb4b23f44cc433b/javablobstartincrementalcopyac224685f306009d69e34?comp=incrementalcopy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-copy-id" : "aac9f980-fa19-49c6-94bd-10ea321fd16e", + "ETag" : "\"0x8D72813E2602C6C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "x-ms-copy-status" : "pending", + "StatusCode" : "202", + "x-ms-request-id" : "f77ff691-301e-0094-4ffc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:16 GMT", + "x-ms-client-request-id" : "6a6eb759-bb47-4f8f-a164-48d4c7ff19bd" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcstartincrementalcopyac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77ff6ab-301e-0094-65fc-5950b8000000", + "Body" : "jtcstartincrementalcopyacjtcstartincrementalcopyac047506ddb4b23f44cc433bFri, 23 Aug 2019 21:50:14 GMT\"0x8D72813E0FD3322\"unlockedavailableblob$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:50:16 GMT", + "x-ms-client-request-id" : "11a2d546-0693-4274-98c9-8baee9c32eb9", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyac047506ddb4b23f44cc433b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77ff6bf-301e-0094-77fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:16 GMT", + "x-ms-client-request-id" : "df1986ff-8740-475d-889c-4298d9545040" + }, + "Exception" : null + } ], + "variables" : [ "jtcstartincrementalcopyac047506ddb4b23f44cc433b", "javablobstartincrementalcopyac120434b632db577a494", "javablobstartincrementalcopyac224685f306009d69e34" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITeststartincrementalcopyacfail[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITeststartincrementalcopyacfail[0].json new file mode 100644 index 0000000000000..4e6a6b656da14 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITeststartincrementalcopyacfail[0].json @@ -0,0 +1,191 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyacfail018746f9785a8daede40?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813E27162C6\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77ff6d4-301e-0094-0afc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:16 GMT", + "x-ms-client-request-id" : "9c606af1-afd2-4382-b7f4-f506fbb8c376" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyacfail018746f9785a8daede40/javablobstartincrementalcopyacfail194673c9d6d2f9a60", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813E2767918\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77ff6eb-301e-0094-1ffc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:50:16 GMT", + "x-ms-client-request-id" : "2ffd0dc0-a2b3-47d1-a7f1-0f40ed7d02f3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyacfail018746f9785a8daede40?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813E27B7BF1\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77ff6fe-301e-0094-31fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:16 GMT", + "x-ms-client-request-id" : "0c476e33-d7a7-4e59-beff-0b56480e33a6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyacfail018746f9785a8daede40/javablobstartincrementalcopyacfail194673c9d6d2f9a60?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-snapshot" : "2019-08-23T21:50:16.5759852Z", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813E2767918\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77ff70e-301e-0094-3ffc-5950b8000000", + "x-ms-request-server-encrypted" : "false", + "Date" : "Fri, 23 Aug 2019 21:50:16 GMT", + "x-ms-client-request-id" : "9d1d7f1c-e2ef-4ec1-87db-55c312e4a214" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyacfail018746f9785a8daede40/javablobstartincrementalcopyacfail29228135ac7ef56a2?comp=incrementalcopy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-copy-id" : "83fd55cf-a9b2-49c9-ba0e-136a4a31d0b6", + "ETag" : "\"0x8D72813E286A9A9\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "x-ms-copy-status" : "pending", + "StatusCode" : "202", + "x-ms-request-id" : "f77ff71b-301e-0094-4bfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:16 GMT", + "x-ms-client-request-id" : "7c9eaffa-72db-46fa-9397-1317d52da40d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyacfail018746f9785a8daede40/javablobstartincrementalcopyacfail194673c9d6d2f9a60?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-snapshot" : "2019-08-23T21:50:16.6500567Z", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813E2767918\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77ff734-301e-0094-61fc-5950b8000000", + "x-ms-request-server-encrypted" : "false", + "Date" : "Fri, 23 Aug 2019 21:50:16 GMT", + "x-ms-client-request-id" : "5db2b8c6-ae36-4b41-ae27-f5322310123e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyacfail018746f9785a8daede40/javablobstartincrementalcopyacfail29228135ac7ef56a2?comp=incrementalcopy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "f77ff746-301e-0094-71fc-5950b8000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:f77ff746-301e-0094-71fc-5950b8000000\nTime:2019-08-23T21:50:16.6957842Z", + "Date" : "Fri, 23 Aug 2019 21:50:16 GMT", + "x-ms-client-request-id" : "013fbfc0-0ed2-40b2-be5d-188ea3b45785", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcstartincrementalcopyacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77ff756-301e-0094-7efc-5950b8000000", + "Body" : "jtcstartincrementalcopyacfailjtcstartincrementalcopyacfail018746f9785a8daede40Fri, 23 Aug 2019 21:50:16 GMT\"0x8D72813E27B7BF1\"unlockedavailableblob$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:50:16 GMT", + "x-ms-client-request-id" : "6e763f22-281c-43e9-a0e7-f647e8704b2d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyacfail018746f9785a8daede40?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77ff767-301e-0094-0ffc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:16 GMT", + "x-ms-client-request-id" : "47aeb0cd-a005-4c58-bce0-299f82bd0b45" + }, + "Exception" : null + } ], + "variables" : [ "jtcstartincrementalcopyacfail018746f9785a8daede40", "javablobstartincrementalcopyacfail194673c9d6d2f9a60", "javablobstartincrementalcopyacfail29228135ac7ef56a2" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITeststartincrementalcopyacfail[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITeststartincrementalcopyacfail[1].json new file mode 100644 index 0000000000000..2d2abbcb8716d --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITeststartincrementalcopyacfail[1].json @@ -0,0 +1,191 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyacfail0716622e1222d1ea344a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813E2A0E24E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77ff773-301e-0094-1bfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:16 GMT", + "x-ms-client-request-id" : "d209ca64-8423-4fb3-874e-61e6f93d023f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyacfail0716622e1222d1ea344a/javablobstartincrementalcopyacfail1491799c85e9cb974", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813E2A5F922\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77ff78c-301e-0094-2efc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:50:16 GMT", + "x-ms-client-request-id" : "38e33284-89ae-4ea4-8b2a-ffa4a802ccc6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyacfail0716622e1222d1ea344a?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813E2AAD4A6\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77ff79a-301e-0094-3bfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:16 GMT", + "x-ms-client-request-id" : "1f20a681-2d1d-4631-85df-19c2457293fb" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyacfail0716622e1222d1ea344a/javablobstartincrementalcopyacfail1491799c85e9cb974?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-snapshot" : "2019-08-23T21:50:16.9273230Z", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813E2A5F922\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77ff7b7-301e-0094-53fc-5950b8000000", + "x-ms-request-server-encrypted" : "false", + "Date" : "Fri, 23 Aug 2019 21:50:16 GMT", + "x-ms-client-request-id" : "7af44a94-f90e-4f8b-8bed-a6e246d36ab8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyacfail0716622e1222d1ea344a/javablobstartincrementalcopyacfail284926c72b267228b?comp=incrementalcopy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-copy-id" : "97b1d08d-dc32-4e1b-8e64-921b48675126", + "ETag" : "\"0x8D72813E2C3253A\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "x-ms-copy-status" : "pending", + "StatusCode" : "202", + "x-ms-request-id" : "f77ff7df-301e-0094-77fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:16 GMT", + "x-ms-client-request-id" : "7ade5a69-9055-4472-ad9b-044706b7c942" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyacfail0716622e1222d1ea344a/javablobstartincrementalcopyacfail1491799c85e9cb974?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-snapshot" : "2019-08-23T21:50:17.0484385Z", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813E2A5F922\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77ff7ee-301e-0094-04fc-5950b8000000", + "x-ms-request-server-encrypted" : "false", + "Date" : "Fri, 23 Aug 2019 21:50:16 GMT", + "x-ms-client-request-id" : "aa4d537b-b801-4c1c-b554-5df1406e3536" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyacfail0716622e1222d1ea344a/javablobstartincrementalcopyacfail284926c72b267228b?comp=incrementalcopy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "f77ff805-301e-0094-15fc-5950b8000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:f77ff805-301e-0094-15fc-5950b8000000\nTime:2019-08-23T21:50:17.0951501Z", + "Date" : "Fri, 23 Aug 2019 21:50:16 GMT", + "x-ms-client-request-id" : "aa10ad4c-11ec-4531-bacb-8259a8301b5d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcstartincrementalcopyacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77ff816-301e-0094-25fc-5950b8000000", + "Body" : "jtcstartincrementalcopyacfailjtcstartincrementalcopyacfail0716622e1222d1ea344aFri, 23 Aug 2019 21:50:16 GMT\"0x8D72813E2AAD4A6\"unlockedavailableblob$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:50:16 GMT", + "x-ms-client-request-id" : "149e726c-1ce9-43d9-8021-8ab2f5c13a70", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyacfail0716622e1222d1ea344a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77ff823-301e-0094-2efc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:16 GMT", + "x-ms-client-request-id" : "0dd305c8-a828-402e-b7b3-57fd070b5d06" + }, + "Exception" : null + } ], + "variables" : [ "jtcstartincrementalcopyacfail0716622e1222d1ea344a", "javablobstartincrementalcopyacfail1491799c85e9cb974", "javablobstartincrementalcopyacfail284926c72b267228b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITeststartincrementalcopyacfail[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITeststartincrementalcopyacfail[2].json new file mode 100644 index 0000000000000..b4e2392945fe4 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITeststartincrementalcopyacfail[2].json @@ -0,0 +1,191 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyacfail0861252992916a80e54f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813E2DDAB6F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77ff831-301e-0094-3afc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:16 GMT", + "x-ms-client-request-id" : "0c0886a2-ecc3-4cbc-9955-a4711a4dfafa" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyacfail0861252992916a80e54f/javablobstartincrementalcopyacfail147693389fe825255", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813E2E2C2F0\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77ff83f-301e-0094-45fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:50:16 GMT", + "x-ms-client-request-id" : "07d40d52-ef04-4668-b450-6a59c39198c6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyacfail0861252992916a80e54f?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813E2E79E0A\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77ff84a-301e-0094-4ffc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:16 GMT", + "x-ms-client-request-id" : "8952f2c1-c1de-4e0c-9379-58b3e1a9cae7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyacfail0861252992916a80e54f/javablobstartincrementalcopyacfail147693389fe825255?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-snapshot" : "2019-08-23T21:50:17.2836643Z", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813E2E2C2F0\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77ff851-301e-0094-56fc-5950b8000000", + "x-ms-request-server-encrypted" : "false", + "Date" : "Fri, 23 Aug 2019 21:50:16 GMT", + "x-ms-client-request-id" : "b7050544-7982-45f9-a298-f85e77e8de0d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyacfail0861252992916a80e54f/javablobstartincrementalcopyacfail29116226e74ebda22?comp=incrementalcopy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-copy-id" : "1b1d2622-f73e-491b-bc28-0820de9cec10", + "ETag" : "\"0x8D72813E2F25728\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "x-ms-copy-status" : "pending", + "StatusCode" : "202", + "x-ms-request-id" : "f77ff858-301e-0094-5bfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:16 GMT", + "x-ms-client-request-id" : "da96f025-8662-46b7-8890-73daf6d5ea1e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyacfail0861252992916a80e54f/javablobstartincrementalcopyacfail147693389fe825255?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-snapshot" : "2019-08-23T21:50:17.3617402Z", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813E2E2C2F0\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77ff868-301e-0094-66fc-5950b8000000", + "x-ms-request-server-encrypted" : "false", + "Date" : "Fri, 23 Aug 2019 21:50:17 GMT", + "x-ms-client-request-id" : "8f4d52f7-88bd-4d5d-9076-e3cdf1b158b1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyacfail0861252992916a80e54f/javablobstartincrementalcopyacfail29116226e74ebda22?comp=incrementalcopy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "TargetConditionNotMet", + "retry-after" : "0", + "Content-Length" : "265", + "StatusCode" : "412", + "x-ms-request-id" : "f77ff87e-301e-0094-7afc-5950b8000000", + "Body" : "TargetConditionNotMetThe target condition specified using HTTP conditional header(s) is not met.\nRequestId:f77ff87e-301e-0094-7afc-5950b8000000\nTime:2019-08-23T21:50:17.4294550Z", + "Date" : "Fri, 23 Aug 2019 21:50:17 GMT", + "x-ms-client-request-id" : "1649980a-18e4-43c2-8225-1977cd6c9a62", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcstartincrementalcopyacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77ff891-301e-0094-0cfc-5950b8000000", + "Body" : "jtcstartincrementalcopyacfailjtcstartincrementalcopyacfail0861252992916a80e54fFri, 23 Aug 2019 21:50:17 GMT\"0x8D72813E2E79E0A\"unlockedavailableblob$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:50:17 GMT", + "x-ms-client-request-id" : "644d3267-a16e-4f7d-84d1-7af9e45ca809", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyacfail0861252992916a80e54f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77ff8a1-301e-0094-19fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:17 GMT", + "x-ms-client-request-id" : "d9c1a586-de06-4a50-96dd-be1815c2a83c" + }, + "Exception" : null + } ], + "variables" : [ "jtcstartincrementalcopyacfail0861252992916a80e54f", "javablobstartincrementalcopyacfail147693389fe825255", "javablobstartincrementalcopyacfail29116226e74ebda22" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITeststartincrementalcopyacfail[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITeststartincrementalcopyacfail[3].json new file mode 100644 index 0000000000000..d54a6b50a1342 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITeststartincrementalcopyacfail[3].json @@ -0,0 +1,229 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyacfail095051499124c5734d4c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813E31DD0B4\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77ff8e4-301e-0094-52fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:17 GMT", + "x-ms-client-request-id" : "afdc1258-ed2f-4593-9a96-c3afdb411d2f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyacfail095051499124c5734d4c/javablobstartincrementalcopyacfail116296b2349cea632", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813E3246FF6\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77ff8fd-301e-0094-69fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:50:17 GMT", + "x-ms-client-request-id" : "d55a1372-b513-497a-966c-4bf5b6b81c4e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyacfail095051499124c5734d4c?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813E3294A9C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77ff90a-301e-0094-76fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:17 GMT", + "x-ms-client-request-id" : "b47e613c-1a58-46a2-b157-5a5eb9727dc8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyacfail095051499124c5734d4c/javablobstartincrementalcopyacfail116296b2349cea632?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-snapshot" : "2019-08-23T21:50:17.7150784Z", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813E3246FF6\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77ff91c-301e-0094-05fc-5950b8000000", + "x-ms-request-server-encrypted" : "false", + "Date" : "Fri, 23 Aug 2019 21:50:17 GMT", + "x-ms-client-request-id" : "3f440ec4-6e4c-4db0-9e44-05efe2b42ba2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyacfail095051499124c5734d4c/javablobstartincrementalcopyacfail2356756c13faec228?comp=incrementalcopy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-copy-id" : "b9e0802b-41f4-450b-ace2-399f011a3d95", + "ETag" : "\"0x8D72813E334525C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "x-ms-copy-status" : "pending", + "StatusCode" : "202", + "x-ms-request-id" : "f77ff929-301e-0094-12fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:17 GMT", + "x-ms-client-request-id" : "da14a526-7e72-47bc-834b-72a609201024" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyacfail095051499124c5734d4c/javablobstartincrementalcopyacfail116296b2349cea632?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-snapshot" : "2019-08-23T21:50:17.7881483Z", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813E3246FF6\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77ff93f-301e-0094-25fc-5950b8000000", + "x-ms-request-server-encrypted" : "false", + "Date" : "Fri, 23 Aug 2019 21:50:17 GMT", + "x-ms-client-request-id" : "30f92d0f-f202-4c25-8508-ab355186a9ad" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyacfail095051499124c5734d4c/javablobstartincrementalcopyacfail2356756c13faec228", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-copy-destination-snapshot" : "2019-08-23T21:50:17.7851456Z", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:17 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-blob-type" : "PageBlob", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:50:17 GMT", + "x-ms-incremental-copy" : "true", + "Content-Length" : "512", + "x-ms-request-id" : "f77ff956-301e-0094-3bfc-5950b8000000", + "Content-Type" : "application/octet-stream", + "x-ms-version" : "2019-02-02", + "x-ms-copy-id" : "b9e0802b-41f4-450b-ace2-399f011a3d95", + "x-ms-copy-source" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyacfail095051499124c5734d4c/javablobstartincrementalcopyacfail116296b2349cea632?snapshot=2019-08-23T21:50:17.7150784Z", + "x-ms-blob-sequence-number" : "0", + "x-ms-copy-progress" : "512/512", + "Date" : "Fri, 23 Aug 2019 21:50:17 GMT", + "x-ms-copy-completion-time" : "Fri, 23 Aug 2019 21:50:17 GMT", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "\"0x8D72813E334525C\"", + "x-ms-copy-status" : "success", + "x-ms-client-request-id" : "c95b8859-c406-4d7f-abba-bfc4eeda292b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyacfail095051499124c5734d4c/javablobstartincrementalcopyacfail2356756c13faec228?comp=incrementalcopy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "f77ff967-301e-0094-4cfc-5950b8000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:f77ff967-301e-0094-4cfc-5950b8000000\nTime:2019-08-23T21:50:17.8618505Z", + "Date" : "Fri, 23 Aug 2019 21:50:17 GMT", + "x-ms-client-request-id" : "0d65090e-78de-444a-af98-fb46a91bdc83", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcstartincrementalcopyacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77ff990-301e-0094-72fc-5950b8000000", + "Body" : "jtcstartincrementalcopyacfailjtcstartincrementalcopyacfail095051499124c5734d4cFri, 23 Aug 2019 21:50:17 GMT\"0x8D72813E3294A9C\"unlockedavailableblob$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:50:17 GMT", + "x-ms-client-request-id" : "dbd1f4bd-4e8b-4d7c-9857-c4aa1a5e3bc3", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyacfail095051499124c5734d4c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77ff99d-301e-0094-7efc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:17 GMT", + "x-ms-client-request-id" : "b6465985-48d9-4d5d-8fb0-40296dac918f" + }, + "Exception" : null + } ], + "variables" : [ "jtcstartincrementalcopyacfail095051499124c5734d4c", "javablobstartincrementalcopyacfail116296b2349cea632", "javablobstartincrementalcopyacfail2356756c13faec228" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITeststartincrementalcopyerror.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITeststartincrementalcopyerror.json new file mode 100644 index 0000000000000..d68fb4fc4aee3 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITeststartincrementalcopyerror.json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyerror0972711d425e89c69040?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813E3531DFC\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77ff9a9-301e-0094-08fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:17 GMT", + "x-ms-client-request-id" : "b26d775e-4e60-421f-87fb-9bd5486ddcf7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyerror0972711d425e89c69040/javablobstartincrementalcopyerror1921794731328db8c4", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813E3580FC8\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77ff9c0-301e-0094-1cfc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:50:17 GMT", + "x-ms-client-request-id" : "308609ce-237b-4bef-8a5e-d3081d9dbb6a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyerror0972711d425e89c69040/javablobstartincrementalcopyerror2891946f3fea4f76c3?comp=incrementalcopy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "InvalidSourceBlobUrl", + "retry-after" : "0", + "Content-Length" : "270", + "StatusCode" : "409", + "x-ms-request-id" : "f77ff9ce-301e-0094-29fc-5950b8000000", + "Body" : "InvalidSourceBlobUrlThe source url for incremental copy request must be valid azure storage blob url.\nRequestId:f77ff9ce-301e-0094-29fc-5950b8000000\nTime:2019-08-23T21:50:18.0250000Z", + "Date" : "Fri, 23 Aug 2019 21:50:17 GMT", + "x-ms-client-request-id" : "11eda4e1-3f13-4266-82c4-1b91b558006e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcstartincrementalcopyerror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77ff9da-301e-0094-33fc-5950b8000000", + "Body" : "jtcstartincrementalcopyerrorjtcstartincrementalcopyerror0972711d425e89c69040Fri, 23 Aug 2019 21:50:17 GMT\"0x8D72813E3531DFC\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:50:17 GMT", + "x-ms-client-request-id" : "d0ae54d5-17fd-46ce-bcfe-e5db6e552157", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopyerror0972711d425e89c69040?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77ff9e9-301e-0094-40fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:17 GMT", + "x-ms-client-request-id" : "8f4c712d-1722-4588-8fb3-9fdea3f38389" + }, + "Exception" : null + } ], + "variables" : [ "jtcstartincrementalcopyerror0972711d425e89c69040", "javablobstartincrementalcopyerror1921794731328db8c4", "javablobstartincrementalcopyerror2891946f3fea4f76c3" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITeststartincrementalcopymin.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITeststartincrementalcopymin.json new file mode 100644 index 0000000000000..2ee71749398a9 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITeststartincrementalcopymin.json @@ -0,0 +1,148 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopymin089018269b36656520457?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813DC40FD6C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fe053-301e-0094-4dfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:05 GMT", + "x-ms-client-request-id" : "120ca411-2441-4dd2-922b-5cd94544b572" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopymin089018269b36656520457/javablobstartincrementalcopymin1133809037bbcf6a4e4", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813DC462866\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fe065-301e-0094-5dfc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:50:05 GMT", + "x-ms-client-request-id" : "f2178b24-dbb4-4a98-aba4-4cc957558187" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopymin089018269b36656520457?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813DC4B0ED4\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fe076-301e-0094-6cfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:05 GMT", + "x-ms-client-request-id" : "1accfae5-f110-473a-ba33-b5f950679e25" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopymin089018269b36656520457/javablobstartincrementalcopymin1133809037bbcf6a4e4?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-snapshot" : "2019-08-23T21:50:06.1930208Z", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813DC462866\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fe08a-301e-0094-7bfc-5950b8000000", + "x-ms-request-server-encrypted" : "false", + "Date" : "Fri, 23 Aug 2019 21:50:05 GMT", + "x-ms-client-request-id" : "c21bc8a7-2407-4771-82d5-c00eaed200c7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopymin089018269b36656520457/javablobstartincrementalcopymin230646159d0b682a974?comp=incrementalcopy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-copy-id" : "4e340133-37eb-477b-bbaf-f56b122f3e0e", + "ETag" : "\"0x8D72813DC568021\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "x-ms-copy-status" : "pending", + "StatusCode" : "202", + "x-ms-request-id" : "f77fe096-301e-0094-07fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:05 GMT", + "x-ms-client-request-id" : "52a11b95-0105-4085-a51a-0a303d3b42de" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcstartincrementalcopymin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fe0a5-301e-0094-12fc-5950b8000000", + "Body" : "jtcstartincrementalcopyminjtcstartincrementalcopymin089018269b36656520457Fri, 23 Aug 2019 21:50:06 GMT\"0x8D72813DC4B0ED4\"unlockedavailableblob$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:50:05 GMT", + "x-ms-client-request-id" : "12985cd3-f08c-492a-a25f-46ab032e1b01", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcstartincrementalcopymin089018269b36656520457?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fe0ac-301e-0094-19fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:05 GMT", + "x-ms-client-request-id" : "58df29e6-f03a-4223-894c-57bee91c700a" + }, + "Exception" : null + } ], + "variables" : [ "jtcstartincrementalcopymin089018269b36656520457", "javablobstartincrementalcopymin1133809037bbcf6a4e4", "javablobstartincrementalcopymin230646159d0b682a974" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpage.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpage.json new file mode 100644 index 0000000000000..c6e29172846e7 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpage.json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpage0pageblobapitestuploadpaged9267295aff1954e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C77EB653\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d06aa7-501e-00c0-4dfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:30 GMT", + "x-ms-client-request-id" : "2cf69244-1780-48a0-bad2-c431ff805f36" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpage0pageblobapitestuploadpaged9267295aff1954e/javablobuploadpage1pageblobapitestuploadpaged92663715d36b", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C78374A1\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d06ac6-501e-00c0-6afc-59ba32000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:30 GMT", + "x-ms-client-request-id" : "675e5dc9-a135-46a8-868e-2162d2b8e7cb" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpage0pageblobapitestuploadpaged9267295aff1954e/javablobuploadpage1pageblobapitestuploadpaged92663715d36b?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "OEiAqd7Y+hE=", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:31 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:30 GMT", + "ETag" : "\"0x8D72813C78AA252\"", + "Content-Length" : "0", + "x-ms-request-id" : "77d06b00-501e-00c0-1dfc-59ba32000000", + "x-ms-client-request-id" : "a07e3f25-8c50-448b-81ee-f8d40a62dc12" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadpage&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d06b1c-501e-00c0-37fc-59ba32000000", + "Body" : "jtcuploadpagejtcuploadpage0pageblobapitestuploadpaged9267295aff1954eFri, 23 Aug 2019 21:49:31 GMT\"0x8D72813C77EB653\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:30 GMT", + "x-ms-client-request-id" : "6b8ef239-ecb0-4d17-b351-b464562885e0", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpage0pageblobapitestuploadpaged9267295aff1954e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d06b42-501e-00c0-58fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:30 GMT", + "x-ms-client-request-id" : "f8b11f59-fad5-4686-87fc-87b6085a57e0" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadpage0pageblobapitestuploadpaged9267295aff1954e", "javablobuploadpage1pageblobapitestuploadpaged92663715d36b", "64790a18-4c98-4ced-9fd6-c0b5294eebfe" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageac[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageac[0].json new file mode 100644 index 0000000000000..90f98860a443c --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageac[0].json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageac0pageblobapitestuploadpageac0bc642895f9498?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C805D836\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:32 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77f98cd-301e-0094-1ffc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:31 GMT", + "x-ms-client-request-id" : "e8a52ef3-776c-4473-bccf-0209034ceb12" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageac0pageblobapitestuploadpageac0bc642895f9498/javablobuploadpageac1pageblobapitestuploadpageac0bc073396fe", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C80AEE4F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:32 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77f98df-301e-0094-2ffc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:31 GMT", + "x-ms-client-request-id" : "ca98c345-5a51-4d02-b459-afc210f9b1cb" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageac0pageblobapitestuploadpageac0bc642895f9498/javablobuploadpageac1pageblobapitestuploadpageac0bc073396fe?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "5rWzqhEtJQU=", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:32 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:31 GMT", + "ETag" : "\"0x8D72813C810E338\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77f98f4-301e-0094-42fc-5950b8000000", + "x-ms-client-request-id" : "e12fe7a3-6b32-480a-a5cc-1c416eacf1bb" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadpageac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77f9902-301e-0094-4ffc-5950b8000000", + "Body" : "jtcuploadpageacjtcuploadpageac0pageblobapitestuploadpageac0bc642895f9498Fri, 23 Aug 2019 21:49:32 GMT\"0x8D72813C805D836\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:31 GMT", + "x-ms-client-request-id" : "428c77f9-29c7-4c92-a0b6-820c1483fa4c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageac0pageblobapitestuploadpageac0bc642895f9498?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77f990b-301e-0094-58fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:31 GMT", + "x-ms-client-request-id" : "c2620f25-300b-4cdc-8386-d56826b4e1eb" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadpageac0pageblobapitestuploadpageac0bc642895f9498", "javablobuploadpageac1pageblobapitestuploadpageac0bc073396fe", "598ae4b1-ff6a-492e-9c7a-5ed7b8edca29" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageac[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageac[1].json new file mode 100644 index 0000000000000..c51a1515fba57 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageac[1].json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageac0pageblobapitestuploadpageac27442788392cb1?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C81FF601\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:32 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77f9920-301e-0094-6cfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:32 GMT", + "x-ms-client-request-id" : "63c31a5d-8ccb-40b6-9dec-d6e2bf37e331" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageac0pageblobapitestuploadpageac27442788392cb1/javablobuploadpageac1pageblobapitestuploadpageac2749961687a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C8272FD2\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:32 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77f9938-301e-0094-01fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:32 GMT", + "x-ms-client-request-id" : "72a85c9b-6e5d-4469-8adc-2e65270bacea" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageac0pageblobapitestuploadpageac27442788392cb1/javablobuploadpageac1pageblobapitestuploadpageac2749961687a?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "yx4/u8B6g50=", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:32 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:32 GMT", + "ETag" : "\"0x8D72813C82C1301\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77f9947-301e-0094-0ffc-5950b8000000", + "x-ms-client-request-id" : "49cce742-062c-414d-b011-d3e62117d762" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadpageac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77f9952-301e-0094-1afc-5950b8000000", + "Body" : "jtcuploadpageacjtcuploadpageac0pageblobapitestuploadpageac27442788392cb1Fri, 23 Aug 2019 21:49:32 GMT\"0x8D72813C81FF601\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:32 GMT", + "x-ms-client-request-id" : "eb941d96-3fcd-4c57-800c-c94110695ae2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageac0pageblobapitestuploadpageac27442788392cb1?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77f995c-301e-0094-24fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:32 GMT", + "x-ms-client-request-id" : "c92b45c9-1410-46be-aff6-055930e78702" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadpageac0pageblobapitestuploadpageac27442788392cb1", "javablobuploadpageac1pageblobapitestuploadpageac2749961687a", "4b920eab-c707-4c8b-825a-6824160cb6e0" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageac[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageac[2].json new file mode 100644 index 0000000000000..bfffc18152f00 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageac[2].json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageac0pageblobapitestuploadpageac99b8202383c691?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C83A891F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:32 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77f996d-301e-0094-34fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:32 GMT", + "x-ms-client-request-id" : "e2119782-59fa-4bf2-a8dc-ca2f2fcbac6d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageac0pageblobapitestuploadpageac99b8202383c691/javablobuploadpageac1pageblobapitestuploadpageac99b999872f2", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C83FC6EA\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:32 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77f9979-301e-0094-3dfc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:32 GMT", + "x-ms-client-request-id" : "4d69adc4-5ef8-4b5e-96ce-8a3d064ed1c4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageac0pageblobapitestuploadpageac99b8202383c691/javablobuploadpageac1pageblobapitestuploadpageac99b999872f2?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "ShiVx5W+viQ=", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:32 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:32 GMT", + "ETag" : "\"0x8D72813C8480655\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77f998a-301e-0094-4cfc-5950b8000000", + "x-ms-client-request-id" : "ebf886a1-0178-481e-9f7f-f1457e55ebad" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadpageac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77f99b3-301e-0094-6cfc-5950b8000000", + "Body" : "jtcuploadpageacjtcuploadpageac0pageblobapitestuploadpageac99b8202383c691Fri, 23 Aug 2019 21:49:32 GMT\"0x8D72813C83A891F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:32 GMT", + "x-ms-client-request-id" : "1eeb5bc7-a3e7-4301-b453-411976a89344", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageac0pageblobapitestuploadpageac99b8202383c691?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77f99bd-301e-0094-75fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:32 GMT", + "x-ms-client-request-id" : "0dcae15d-7cc0-408a-b3fe-2bd8338c3f5a" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadpageac0pageblobapitestuploadpageac99b8202383c691", "javablobuploadpageac1pageblobapitestuploadpageac99b999872f2", "96bdeb6c-3423-4082-96de-23ef7a79b287" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageac[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageac[3].json new file mode 100644 index 0000000000000..5607f67607c42 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageac[3].json @@ -0,0 +1,138 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageac0pageblobapitestuploadpageac3d600925970519?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C85B1114\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:32 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77f99ce-301e-0094-04fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:32 GMT", + "x-ms-client-request-id" : "5920b0c0-705c-4c5c-9389-25ee0b907bc6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageac0pageblobapitestuploadpageac3d600925970519/javablobuploadpageac1pageblobapitestuploadpageac3d624593dcb", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C8600106\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:32 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77f99da-301e-0094-0efc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:32 GMT", + "x-ms-client-request-id" : "61f0b2c3-c719-4793-833a-eba9a5484a34" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageac0pageblobapitestuploadpageac3d600925970519/javablobuploadpageac1pageblobapitestuploadpageac3d624593dcb", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:32 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:49:32 GMT", + "x-ms-blob-type" : "PageBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72813C8600106\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:49:32 GMT", + "Content-Length" : "512", + "x-ms-request-id" : "f77f99f6-301e-0094-28fc-5950b8000000", + "x-ms-client-request-id" : "629a3b2c-c7cb-4f8d-80be-fd62ee19136a", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageac0pageblobapitestuploadpageac3d600925970519/javablobuploadpageac1pageblobapitestuploadpageac3d624593dcb?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "MpBzSijuIi8=", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:32 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:32 GMT", + "ETag" : "\"0x8D72813C86D4AB7\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77f9a08-301e-0094-33fc-5950b8000000", + "x-ms-client-request-id" : "8a2eb5ab-9ed7-438f-b115-3d530aebca51" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadpageac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77f9a15-301e-0094-3efc-5950b8000000", + "Body" : "jtcuploadpageacjtcuploadpageac0pageblobapitestuploadpageac3d600925970519Fri, 23 Aug 2019 21:49:32 GMT\"0x8D72813C85B1114\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:32 GMT", + "x-ms-client-request-id" : "6e9b4c35-cf48-4b8e-9c5f-4bb5dcd50060", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageac0pageblobapitestuploadpageac3d600925970519?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77f9a1e-301e-0094-47fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:32 GMT", + "x-ms-client-request-id" : "42620937-e795-43ca-8ddf-7b999f7efc2f" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadpageac0pageblobapitestuploadpageac3d600925970519", "javablobuploadpageac1pageblobapitestuploadpageac3d624593dcb", "24715f43-eefe-4c2c-8062-6edd7e9e03be" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageac[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageac[4].json new file mode 100644 index 0000000000000..ec478e53f8ace --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageac[4].json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageac0pageblobapitestuploadpageac700143573612f3?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C87BC01B\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:32 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77f9a2f-301e-0094-56fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:32 GMT", + "x-ms-client-request-id" : "db7d0cd1-2f04-42a3-a56a-75635d81179c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageac0pageblobapitestuploadpageac700143573612f3/javablobuploadpageac1pageblobapitestuploadpageac700862621b3", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C880B06D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:32 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77f9a44-301e-0094-67fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:32 GMT", + "x-ms-client-request-id" : "d7bccfa3-59f0-454b-b4ad-4eb1a672a3f3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageac0pageblobapitestuploadpageac700143573612f3/javablobuploadpageac1pageblobapitestuploadpageac700862621b3?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "OeRSmLoARAo=", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:32 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:32 GMT", + "ETag" : "\"0x8D72813C885BAB7\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77f9a52-301e-0094-74fc-5950b8000000", + "x-ms-client-request-id" : "a04f3430-0761-4429-8f44-e467a68b167c" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadpageac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77f9a61-301e-0094-01fc-5950b8000000", + "Body" : "jtcuploadpageacjtcuploadpageac0pageblobapitestuploadpageac700143573612f3Fri, 23 Aug 2019 21:49:32 GMT\"0x8D72813C87BC01B\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:32 GMT", + "x-ms-client-request-id" : "4d2d8325-5010-4c1b-9b39-f89f427d0108", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageac0pageblobapitestuploadpageac700143573612f3?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77f9a6a-301e-0094-08fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:32 GMT", + "x-ms-client-request-id" : "bccf5aac-e241-44cd-b87b-6ae713d9ac53" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadpageac0pageblobapitestuploadpageac700143573612f3", "javablobuploadpageac1pageblobapitestuploadpageac700862621b3", "7c8452dd-cc35-4ab2-953e-2700c99f9f2d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageac[5].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageac[5].json new file mode 100644 index 0000000000000..abb2600c677d3 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageac[5].json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageac0pageblobapitestuploadpageacaf487673d6a882?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C89456E1\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:33 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77f9a84-301e-0094-20fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:32 GMT", + "x-ms-client-request-id" : "677edadc-3b4e-4f72-a9b9-13a134a776b1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageac0pageblobapitestuploadpageacaf487673d6a882/javablobuploadpageac1pageblobapitestuploadpageacaf4955947a4", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C89995BC\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:33 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77f9a9b-301e-0094-33fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:32 GMT", + "x-ms-client-request-id" : "fd73d0a2-7729-46f9-b9d4-4270f9a48364" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageac0pageblobapitestuploadpageacaf487673d6a882/javablobuploadpageac1pageblobapitestuploadpageacaf4955947a4?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C89995BC\"", + "x-ms-lease-id" : "8d45628b-2ff8-4f31-a409-ef84dbfc40c9", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:33 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77f9ab1-301e-0094-47fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:32 GMT", + "x-ms-client-request-id" : "a4e8b5b9-6843-4813-bbfd-9e3e56fcf310" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageac0pageblobapitestuploadpageacaf487673d6a882/javablobuploadpageac1pageblobapitestuploadpageacaf4955947a4?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "ZuDc09AZ4P4=", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:33 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:32 GMT", + "ETag" : "\"0x8D72813C8A5314D\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77f9ac2-301e-0094-56fc-5950b8000000", + "x-ms-client-request-id" : "43571474-b06b-4435-85b8-fab510054a16" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadpageac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77f9ada-301e-0094-6bfc-5950b8000000", + "Body" : "jtcuploadpageacjtcuploadpageac0pageblobapitestuploadpageacaf487673d6a882Fri, 23 Aug 2019 21:49:33 GMT\"0x8D72813C89456E1\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:32 GMT", + "x-ms-client-request-id" : "fa88948e-8d50-42ea-bd99-c9a706041dba", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageac0pageblobapitestuploadpageacaf487673d6a882?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77f9aed-301e-0094-7bfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:32 GMT", + "x-ms-client-request-id" : "85f8e606-65c8-48fd-b492-25ac3f7eb007" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadpageac0pageblobapitestuploadpageacaf487673d6a882", "javablobuploadpageac1pageblobapitestuploadpageacaf4955947a4", "176591ce-e441-4492-bf2d-e7838996159a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageac[6].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageac[6].json new file mode 100644 index 0000000000000..02e9d99a28331 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageac[6].json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageac0pageblobapitestuploadpageac4b486503608045?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C8B3CD29\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:33 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77f9aff-301e-0094-0bfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:32 GMT", + "x-ms-client-request-id" : "dc9ccad7-1b9c-41b8-abe4-4b987279dadb" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageac0pageblobapitestuploadpageac4b486503608045/javablobuploadpageac1pageblobapitestuploadpageac4b453490637", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C8B8E53F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:33 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77f9b08-301e-0094-13fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:33 GMT", + "x-ms-client-request-id" : "ef9c2bce-9957-4a5f-8121-9387d099770a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageac0pageblobapitestuploadpageac4b486503608045/javablobuploadpageac1pageblobapitestuploadpageac4b453490637?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "XDZNarQ6sMk=", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:33 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:33 GMT", + "ETag" : "\"0x8D72813C8BDC86E\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77f9b18-301e-0094-23fc-5950b8000000", + "x-ms-client-request-id" : "75cba183-3c8d-451f-834b-0b5da3413ec1" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadpageac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77f9b29-301e-0094-32fc-5950b8000000", + "Body" : "jtcuploadpageacjtcuploadpageac0pageblobapitestuploadpageac4b486503608045Fri, 23 Aug 2019 21:49:33 GMT\"0x8D72813C8B3CD29\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:33 GMT", + "x-ms-client-request-id" : "2dcb6d34-7db5-4791-9bf3-44e9fcd967a8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageac0pageblobapitestuploadpageac4b486503608045?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77f9b3a-301e-0094-42fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:33 GMT", + "x-ms-client-request-id" : "79b267d8-df0e-49d4-b42a-b3655d4e05c0" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadpageac0pageblobapitestuploadpageac4b486503608045", "javablobuploadpageac1pageblobapitestuploadpageac4b453490637", "dc2c2cc2-152a-4edc-8ca2-5ccbb758658f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageac[7].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageac[7].json new file mode 100644 index 0000000000000..1e4963013e830 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageac[7].json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageac0pageblobapitestuploadpageac85f69596f4989e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C8CC3CE6\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:33 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77f9b47-301e-0094-4dfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:33 GMT", + "x-ms-client-request-id" : "df4258ce-8da0-4400-8532-a8e1a0fb8730" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageac0pageblobapitestuploadpageac85f69596f4989e/javablobuploadpageac1pageblobapitestuploadpageac85f27790300", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C8D1553B\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:33 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77f9b56-301e-0094-5bfc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:33 GMT", + "x-ms-client-request-id" : "2acef205-b024-45c1-90f6-a02d0ec0fe7d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageac0pageblobapitestuploadpageac85f69596f4989e/javablobuploadpageac1pageblobapitestuploadpageac85f27790300?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "/VadNO9MWiY=", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:33 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:33 GMT", + "ETag" : "\"0x8D72813C8D61157\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77f9b6d-301e-0094-6dfc-5950b8000000", + "x-ms-client-request-id" : "9582842e-ab98-4b2f-affb-93084742b34c" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadpageac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77f9b7c-301e-0094-78fc-5950b8000000", + "Body" : "jtcuploadpageacjtcuploadpageac0pageblobapitestuploadpageac85f69596f4989eFri, 23 Aug 2019 21:49:33 GMT\"0x8D72813C8CC3CE6\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:33 GMT", + "x-ms-client-request-id" : "ca9103d6-6a49-4b4d-b7a9-93031dc1d4a9", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageac0pageblobapitestuploadpageac85f69596f4989e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77f9b8e-301e-0094-09fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:33 GMT", + "x-ms-client-request-id" : "8ad7631f-8ded-4901-b57e-b7fa9365b5b7" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadpageac0pageblobapitestuploadpageac85f69596f4989e", "javablobuploadpageac1pageblobapitestuploadpageac85f27790300", "454d4c96-fa22-4de9-ae69-2ae6c68348e6" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageac[8].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageac[8].json new file mode 100644 index 0000000000000..c298e707a8396 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageac[8].json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageac0pageblobapitestuploadpageac2674694689ee06?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C8E521E3\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:33 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77f9ba6-301e-0094-1ffc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:33 GMT", + "x-ms-client-request-id" : "4b4de492-69c8-4b35-a88b-cc5ef6e8ee2f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageac0pageblobapitestuploadpageac2674694689ee06/javablobuploadpageac1pageblobapitestuploadpageac26710119ee4", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C8EA136A\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:33 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77f9bc0-301e-0094-34fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:33 GMT", + "x-ms-client-request-id" : "ee9e26b0-55cf-45de-8f40-d527cf71c95c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageac0pageblobapitestuploadpageac2674694689ee06/javablobuploadpageac1pageblobapitestuploadpageac26710119ee4?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "LNwM1pgGRNc=", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:33 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:33 GMT", + "ETag" : "\"0x8D72813C8EEF6A6\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77f9bce-301e-0094-40fc-5950b8000000", + "x-ms-client-request-id" : "4f222dd4-d86b-459f-b3f6-c373f4909e74" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadpageac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77f9bdc-301e-0094-4dfc-5950b8000000", + "Body" : "jtcuploadpageacjtcuploadpageac0pageblobapitestuploadpageac2674694689ee06Fri, 23 Aug 2019 21:49:33 GMT\"0x8D72813C8E521E3\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:33 GMT", + "x-ms-client-request-id" : "7914e12d-d2c0-426a-a31a-a4ff12105a3a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageac0pageblobapitestuploadpageac2674694689ee06?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77f9be7-301e-0094-57fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:33 GMT", + "x-ms-client-request-id" : "1f5db953-2889-4daf-86c7-645f34808c3a" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadpageac0pageblobapitestuploadpageac2674694689ee06", "javablobuploadpageac1pageblobapitestuploadpageac26710119ee4", "c66491c9-1efe-4cf4-805a-b682cbc1ca03" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageacfail[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageacfail[0].json new file mode 100644 index 0000000000000..d91d34aecdb36 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageacfail[0].json @@ -0,0 +1,105 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageacfail0pageblobapitestuploadpageacfaile4b10863d8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C8FDDFCA\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:33 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77f9bf6-301e-0094-65fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:33 GMT", + "x-ms-client-request-id" : "13337b34-7e5d-4214-b19b-6d5d01c34996" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageacfail0pageblobapitestuploadpageacfaile4b10863d8/javablobuploadpageacfail145404eb771f9b781c4dea", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C902F8BE\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:33 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77f9c07-301e-0094-75fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:33 GMT", + "x-ms-client-request-id" : "71400c55-892c-4bdf-9fa8-8ed26a40fc52" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageacfail0pageblobapitestuploadpageacfaile4b10863d8/javablobuploadpageacfail145404eb771f9b781c4dea?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "f77f9c2c-301e-0094-16fc-5950b8000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:f77f9c2c-301e-0094-16fc-5950b8000000\nTime:2019-08-23T21:49:33.8475929Z", + "Date" : "Fri, 23 Aug 2019 21:49:33 GMT", + "x-ms-client-request-id" : "21f7e956-c57f-40b9-87e0-cb7717fba225", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadpageacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77f9c3b-301e-0094-24fc-5950b8000000", + "Body" : "jtcuploadpageacfailjtcuploadpageacfail0pageblobapitestuploadpageacfaile4b10863d8Fri, 23 Aug 2019 21:49:33 GMT\"0x8D72813C8FDDFCA\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:33 GMT", + "x-ms-client-request-id" : "134e42ae-841e-4fdb-8f0e-16f0b0215223", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageacfail0pageblobapitestuploadpageacfaile4b10863d8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77f9c4b-301e-0094-32fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:33 GMT", + "x-ms-client-request-id" : "1e219400-b3d8-4076-8bd5-98b07dd80f0c" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadpageacfail0pageblobapitestuploadpageacfaile4b10863d8", "javablobuploadpageacfail145404eb771f9b781c4dea", "8ceee250-ffc3-49ca-9c6e-cbd196423488" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageacfail[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageacfail[1].json new file mode 100644 index 0000000000000..69181192887d9 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageacfail[1].json @@ -0,0 +1,105 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageacfail0pageblobapitestuploadpageacfail57895842f8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C9160150\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:33 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77f9c5c-301e-0094-40fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:33 GMT", + "x-ms-client-request-id" : "3689ea63-47b5-4134-b133-2aa7f5cccea3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageacfail0pageblobapitestuploadpageacfail57895842f8/javablobuploadpageacfail1960233055dc52a164498d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C91B8FD6\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:33 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77f9c6e-301e-0094-4efc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:33 GMT", + "x-ms-client-request-id" : "3f2195d5-ed8c-4a92-b45f-4a8f17f1acf2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageacfail0pageblobapitestuploadpageacfail57895842f8/javablobuploadpageacfail1960233055dc52a164498d?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "f77f9c82-301e-0094-5ffc-5950b8000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:f77f9c82-301e-0094-5ffc-5950b8000000\nTime:2019-08-23T21:49:34.0087396Z", + "Date" : "Fri, 23 Aug 2019 21:49:33 GMT", + "x-ms-client-request-id" : "cf27f14e-e283-4f45-83c0-d0018deed77e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadpageacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77f9c91-301e-0094-6dfc-5950b8000000", + "Body" : "jtcuploadpageacfailjtcuploadpageacfail0pageblobapitestuploadpageacfail57895842f8Fri, 23 Aug 2019 21:49:33 GMT\"0x8D72813C9160150\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:33 GMT", + "x-ms-client-request-id" : "a1e3304b-192e-46c7-95bc-12be2554e1c1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageacfail0pageblobapitestuploadpageacfail57895842f8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77f9cac-301e-0094-04fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:33 GMT", + "x-ms-client-request-id" : "d0234194-ab11-4482-ae99-03d265e67b3e" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadpageacfail0pageblobapitestuploadpageacfail57895842f8", "javablobuploadpageacfail1960233055dc52a164498d", "815cb790-7dcd-4bcf-84fe-28e39ab74fd3" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageacfail[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageacfail[2].json new file mode 100644 index 0000000000000..2675d899f4747 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageacfail[2].json @@ -0,0 +1,105 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageacfail0pageblobapitestuploadpageacfail62b551009c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C94E5C90\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:34 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77f9d33-301e-0094-76fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:33 GMT", + "x-ms-client-request-id" : "426b6d12-dce2-4ac7-bec4-c3abbef1b566" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageacfail0pageblobapitestuploadpageacfail62b551009c/javablobuploadpageacfail150875bf82683474c844fb", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C9539D87\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:34 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77f9d43-301e-0094-01fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:34 GMT", + "x-ms-client-request-id" : "b5048130-2961-4224-94ed-78d43ce5c227" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageacfail0pageblobapitestuploadpageacfail62b551009c/javablobuploadpageacfail150875bf82683474c844fb?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "f77f9d5a-301e-0094-16fc-5950b8000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:f77f9d5a-301e-0094-16fc-5950b8000000\nTime:2019-08-23T21:49:34.3720721Z", + "Date" : "Fri, 23 Aug 2019 21:49:34 GMT", + "x-ms-client-request-id" : "1c6b9af9-0cd2-4b24-9ba3-2a7b6d1e3fbf", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadpageacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77f9d5f-301e-0094-1bfc-5950b8000000", + "Body" : "jtcuploadpageacfailjtcuploadpageacfail0pageblobapitestuploadpageacfail62b551009cFri, 23 Aug 2019 21:49:34 GMT\"0x8D72813C94E5C90\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:34 GMT", + "x-ms-client-request-id" : "d394a853-701c-4aeb-a1b7-e183af608549", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageacfail0pageblobapitestuploadpageacfail62b551009c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77f9d7a-301e-0094-2ffc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:34 GMT", + "x-ms-client-request-id" : "329fcef3-499a-4dcd-a566-7cdfdbe5ee89" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadpageacfail0pageblobapitestuploadpageacfail62b551009c", "javablobuploadpageacfail150875bf82683474c844fb", "b43f7cd4-3f90-4204-a54e-fbae54610123" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageacfail[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageacfail[3].json new file mode 100644 index 0000000000000..d8dae2c9e2aed --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageacfail[3].json @@ -0,0 +1,136 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageacfail0pageblobapitestuploadpageacfaile3496789cb?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C96A9DBC\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:34 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77f9d8a-301e-0094-3efc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:34 GMT", + "x-ms-client-request-id" : "89c69259-5d56-47e2-b126-46fd34f1048e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageacfail0pageblobapitestuploadpageacfaile3496789cb/javablobuploadpageacfail1611981d3670d8a1fa4848", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C96F90D7\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:34 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77f9d9d-301e-0094-4ffc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:34 GMT", + "x-ms-client-request-id" : "c86af335-fa37-4c5d-b673-c68c5415b2aa" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageacfail0pageblobapitestuploadpageacfaile3496789cb/javablobuploadpageacfail1611981d3670d8a1fa4848", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:34 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:49:34 GMT", + "x-ms-blob-type" : "PageBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72813C96F90D7\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:49:34 GMT", + "Content-Length" : "512", + "x-ms-request-id" : "f77f9dcb-301e-0094-77fc-5950b8000000", + "x-ms-client-request-id" : "31b02e41-c5f7-4ad3-99c9-2739e71218a4", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageacfail0pageblobapitestuploadpageacfaile3496789cb/javablobuploadpageacfail1611981d3670d8a1fa4848?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "f77f9dd0-301e-0094-7cfc-5950b8000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:f77f9dd0-301e-0094-7cfc-5950b8000000\nTime:2019-08-23T21:49:34.6333108Z", + "Date" : "Fri, 23 Aug 2019 21:49:34 GMT", + "x-ms-client-request-id" : "5a9e11a9-c280-4487-aa60-d9ec6b182c92", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadpageacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77f9ddd-301e-0094-07fc-5950b8000000", + "Body" : "jtcuploadpageacfailjtcuploadpageacfail0pageblobapitestuploadpageacfaile3496789cbFri, 23 Aug 2019 21:49:34 GMT\"0x8D72813C96A9DBC\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:34 GMT", + "x-ms-client-request-id" : "70a48fae-2825-4c5e-b741-83873ba7b5ba", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageacfail0pageblobapitestuploadpageacfaile3496789cb?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77f9dea-301e-0094-14fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:34 GMT", + "x-ms-client-request-id" : "6986c485-7b8f-4bbe-a650-af848cef2b7e" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadpageacfail0pageblobapitestuploadpageacfaile3496789cb", "javablobuploadpageacfail1611981d3670d8a1fa4848", "820d9856-a94b-42e0-bc9c-8e069fae9b41" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageacfail[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageacfail[4].json new file mode 100644 index 0000000000000..bdd20d1eb40eb --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageacfail[4].json @@ -0,0 +1,126 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageacfail0pageblobapitestuploadpageacfail0f2511051b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C98E5AC8\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:34 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77f9dff-301e-0094-26fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:34 GMT", + "x-ms-client-request-id" : "f7d62249-0d33-4772-a118-fc4c4592d972" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageacfail0pageblobapitestuploadpageacfail0f2511051b/javablobuploadpageacfail140283b101314957034f17", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C9A2943E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:34 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77f9e3b-301e-0094-5dfc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:34 GMT", + "x-ms-client-request-id" : "80809e56-7de6-4f7c-88f9-3830204130c9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageacfail0pageblobapitestuploadpageacfail0f2511051b/javablobuploadpageacfail140283b101314957034f17?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C9A2943E\"", + "x-ms-lease-id" : "95c10554-f2c8-47ef-a04f-11d82f0b6c66", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:34 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77f9e47-301e-0094-68fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:34 GMT", + "x-ms-client-request-id" : "4d923a62-2513-4765-8f47-93713740b3be" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageacfail0pageblobapitestuploadpageacfail0f2511051b/javablobuploadpageacfail140283b101314957034f17?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "LeaseIdMismatchWithBlobOperation", + "retry-after" : "0", + "Content-Length" : "264", + "StatusCode" : "412", + "x-ms-request-id" : "f77f9e50-301e-0094-70fc-5950b8000000", + "Body" : "LeaseIdMismatchWithBlobOperationThe lease ID specified did not match the lease ID for the blob.\nRequestId:f77f9e50-301e-0094-70fc-5950b8000000\nTime:2019-08-23T21:49:34.9245770Z", + "Date" : "Fri, 23 Aug 2019 21:49:34 GMT", + "x-ms-client-request-id" : "26f0070c-b262-49f5-a145-bb1960a6f9be", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadpageacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77f9e61-301e-0094-80fc-5950b8000000", + "Body" : "jtcuploadpageacfailjtcuploadpageacfail0pageblobapitestuploadpageacfail0f2511051bFri, 23 Aug 2019 21:49:34 GMT\"0x8D72813C98E5AC8\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:34 GMT", + "x-ms-client-request-id" : "ead2106d-00df-4186-a870-ffa4aa0d3c9d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageacfail0pageblobapitestuploadpageacfail0f2511051b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77f9e71-301e-0094-10fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:34 GMT", + "x-ms-client-request-id" : "63f4c7b0-49c9-48bc-9e6a-526417f41747" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadpageacfail0pageblobapitestuploadpageacfail0f2511051b", "javablobuploadpageacfail140283b101314957034f17", "164966fb-20d9-4eb6-8e1d-536dfb5bbdae" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageacfail[5].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageacfail[5].json new file mode 100644 index 0000000000000..f34c41057c987 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageacfail[5].json @@ -0,0 +1,105 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageacfail0pageblobapitestuploadpageacfailc4010271d8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C9BAA542\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:35 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77f9e89-301e-0094-27fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:34 GMT", + "x-ms-client-request-id" : "90cbb78c-5614-455b-9fe9-a1016bfce3aa" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageacfail0pageblobapitestuploadpageacfailc4010271d8/javablobuploadpageacfail1412946733460d6d474cd3", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C9BFE772\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:35 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77f9e9d-301e-0094-39fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:34 GMT", + "x-ms-client-request-id" : "3c37a982-dff2-4813-b389-ebd8cb56b2b5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageacfail0pageblobapitestuploadpageacfailc4010271d8/javablobuploadpageacfail1412946733460d6d474cd3?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "InvalidInput", + "retry-after" : "0", + "Content-Length" : "220", + "StatusCode" : "400", + "x-ms-request-id" : "f77f9ec4-301e-0094-5dfc-5950b8000000", + "Body" : "InvalidInputOne of the request inputs is not valid.\nRequestId:f77f9ec4-301e-0094-5dfc-5950b8000000\nTime:2019-08-23T21:49:35.1617942Z", + "Date" : "Fri, 23 Aug 2019 21:49:34 GMT", + "x-ms-client-request-id" : "52504ba6-abe3-48d2-8786-ded254dc2cc0", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadpageacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77f9ef8-301e-0094-07fc-5950b8000000", + "Body" : "jtcuploadpageacfailjtcuploadpageacfail0pageblobapitestuploadpageacfailc4010271d8Fri, 23 Aug 2019 21:49:35 GMT\"0x8D72813C9BAA542\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:34 GMT", + "x-ms-client-request-id" : "bad49978-feaf-4f6d-b616-fb85f7581408", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageacfail0pageblobapitestuploadpageacfailc4010271d8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77f9f0e-301e-0094-1afc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:34 GMT", + "x-ms-client-request-id" : "c627f3cd-5994-406a-b4b9-1496d74f1967" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadpageacfail0pageblobapitestuploadpageacfailc4010271d8", "javablobuploadpageacfail1412946733460d6d474cd3", "4dceb8cd-f582-46c4-8955-56f74e31be8f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageacfail[6].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageacfail[6].json new file mode 100644 index 0000000000000..54ff9124421e9 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageacfail[6].json @@ -0,0 +1,105 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageacfail0pageblobapitestuploadpageacfailb695087886?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C9DF9B05\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:35 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77f9f2b-301e-0094-34fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:34 GMT", + "x-ms-client-request-id" : "574a882b-b7e5-4fa4-8fbe-8191c704a8e2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageacfail0pageblobapitestuploadpageacfailb695087886/javablobuploadpageacfail176494c21fdb1ba6054ecb", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C9E4B68E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:35 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77f9f3e-301e-0094-46fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:34 GMT", + "x-ms-client-request-id" : "d8f5b312-2eaf-4789-859c-b08638578879" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageacfail0pageblobapitestuploadpageacfailb695087886/javablobuploadpageacfail176494c21fdb1ba6054ecb?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "InvalidInput", + "retry-after" : "0", + "Content-Length" : "220", + "StatusCode" : "400", + "x-ms-request-id" : "f77f9f50-301e-0094-53fc-5950b8000000", + "Body" : "InvalidInputOne of the request inputs is not valid.\nRequestId:f77f9f50-301e-0094-53fc-5950b8000000\nTime:2019-08-23T21:49:35.3269451Z", + "Date" : "Fri, 23 Aug 2019 21:49:35 GMT", + "x-ms-client-request-id" : "8d295e42-a715-49c1-83ad-3b676d63af4f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadpageacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77f9f5a-301e-0094-5cfc-5950b8000000", + "Body" : "jtcuploadpageacfailjtcuploadpageacfail0pageblobapitestuploadpageacfailb695087886Fri, 23 Aug 2019 21:49:35 GMT\"0x8D72813C9DF9B05\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:35 GMT", + "x-ms-client-request-id" : "a3b135a3-7153-4692-937e-db2f06b326fd", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageacfail0pageblobapitestuploadpageacfailb695087886?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77f9f67-301e-0094-67fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:35 GMT", + "x-ms-client-request-id" : "b49daf13-a67a-4b66-82d3-ea0771716f3d" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadpageacfail0pageblobapitestuploadpageacfailb695087886", "javablobuploadpageacfail176494c21fdb1ba6054ecb", "cb104bfb-887b-49a5-865f-674a9f472510" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageacfail[7].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageacfail[7].json new file mode 100644 index 0000000000000..d8722731cfb01 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageacfail[7].json @@ -0,0 +1,105 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageacfail0pageblobapitestuploadpageacfail5cb237778d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C9F96AA3\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:35 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77f9f82-301e-0094-80fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:35 GMT", + "x-ms-client-request-id" : "9626f64c-1ed1-4715-afe7-ecea13edaf37" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageacfail0pageblobapitestuploadpageacfail5cb237778d/javablobuploadpageacfail1745633f58084d6b324407", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C9FE8673\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:35 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77f9f95-301e-0094-10fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:35 GMT", + "x-ms-client-request-id" : "7a9c2e76-a034-4fa6-84de-f3c5607475d1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageacfail0pageblobapitestuploadpageacfail5cb237778d/javablobuploadpageacfail1745633f58084d6b324407?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "SequenceNumberConditionNotMet", + "retry-after" : "0", + "Content-Length" : "250", + "StatusCode" : "412", + "x-ms-request-id" : "f77f9fa8-301e-0094-23fc-5950b8000000", + "Body" : "SequenceNumberConditionNotMetThe sequence number condition specified was not met.\nRequestId:f77f9fa8-301e-0094-23fc-5950b8000000\nTime:2019-08-23T21:49:35.4981023Z", + "Date" : "Fri, 23 Aug 2019 21:49:35 GMT", + "x-ms-client-request-id" : "65cd5689-2029-4b10-a518-8d56ab766119", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadpageacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77f9fbf-301e-0094-33fc-5950b8000000", + "Body" : "jtcuploadpageacfailjtcuploadpageacfail0pageblobapitestuploadpageacfail5cb237778dFri, 23 Aug 2019 21:49:35 GMT\"0x8D72813C9F96AA3\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:35 GMT", + "x-ms-client-request-id" : "e541b063-2a6a-41f9-bfc1-ac2d051e6fce", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageacfail0pageblobapitestuploadpageacfail5cb237778d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77f9fca-301e-0094-3dfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:35 GMT", + "x-ms-client-request-id" : "e6ea3738-a80b-4ab0-a893-5e9a2d62af44" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadpageacfail0pageblobapitestuploadpageacfail5cb237778d", "javablobuploadpageacfail1745633f58084d6b324407", "d42dc386-14ee-4f0b-bc6f-3df3d42368ce" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageerror.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageerror.json new file mode 100644 index 0000000000000..8655c8500a9f0 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageerror.json @@ -0,0 +1,105 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageerror0pageblobapitestuploadpageerror63a5077953e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CA124FA0\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:35 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77f9fd8-301e-0094-4bfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:35 GMT", + "x-ms-client-request-id" : "81e30178-6e11-4176-9ff9-dda81f116149" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageerror0pageblobapitestuploadpageerror63a5077953e/javablobuploadpageerror1pageblobapitestuploadpageerror63a04324", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CA1744A6\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:35 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77f9fe9-301e-0094-5afc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:35 GMT", + "x-ms-client-request-id" : "1b34fd11-99c7-46dc-be05-afecece20d57" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageerror0pageblobapitestuploadpageerror63a5077953e/javablobuploadpageerror2pageblobapitestuploadpageerror63a80698?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "InvalidHeaderValue", + "retry-after" : "0", + "Content-Length" : "321", + "StatusCode" : "400", + "x-ms-request-id" : "f77f9ff4-301e-0094-64fc-5950b8000000", + "Body" : "InvalidHeaderValueThe value for one of the HTTP headers is not in the correct format.\nRequestId:f77f9ff4-301e-0094-64fc-5950b8000000\nTime:2019-08-23T21:49:36.2948315Zx-ms-lease-idid", + "Date" : "Fri, 23 Aug 2019 21:49:35 GMT", + "x-ms-client-request-id" : "59106297-59e8-4b73-b5e9-05854a6ac782", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadpageerror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fa159-301e-0094-1afc-5950b8000000", + "Body" : "jtcuploadpageerrorjtcuploadpageerror0pageblobapitestuploadpageerror63a5077953eFri, 23 Aug 2019 21:49:35 GMT\"0x8D72813CA124FA0\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:35 GMT", + "x-ms-client-request-id" : "d69e2061-9ac2-414d-b6ad-17d5182df6c2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageerror0pageblobapitestuploadpageerror63a5077953e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fa162-301e-0094-21fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:36 GMT", + "x-ms-client-request-id" : "50152bc8-0ffe-42a7-9fab-627c2389a7f9" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadpageerror0pageblobapitestuploadpageerror63a5077953e", "javablobuploadpageerror1pageblobapitestuploadpageerror63a04324", "javablobuploadpageerror2pageblobapitestuploadpageerror63a80698", "50bd2aa6-ca97-4649-bb98-5eb090f9d27c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurldestinationac[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurldestinationac[0].json new file mode 100644 index 0000000000000..d1d9b5572d20d --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurldestinationac[0].json @@ -0,0 +1,172 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac008201ca8c26312021?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CBAA6633\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:38 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fa533-301e-0094-6cfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:37 GMT", + "x-ms-client-request-id" : "d83ec85c-047f-45af-9f99-27dcc12cac83" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac008201ca8c26312021/javablobuploadpagefromurldestinationac102347d2897c733", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CBAF5FE0\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:38 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fa54a-301e-0094-80fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:37 GMT", + "x-ms-client-request-id" : "f9f272d8-0ebc-43d1-9138-ddf358c66922" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac008201ca8c26312021?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CBB46263\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:38 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fa561-301e-0094-15fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:38 GMT", + "x-ms-client-request-id" : "95434d20-8e2d-459d-a723-e42f659f87a9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac008201ca8c26312021/javablobuploadpagefromurldestinationac22238266a58c51a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CBBA37FC\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:38 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fa570-301e-0094-23fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:38 GMT", + "x-ms-client-request-id" : "562d7f57-371f-4db2-bb26-fe3feb5d70a9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac008201ca8c26312021/javablobuploadpagefromurldestinationac22238266a58c51a?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "CDMgYbjzOuc=", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:38 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:38 GMT", + "ETag" : "\"0x8D72813CBBF4254\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77fa583-301e-0094-31fc-5950b8000000", + "x-ms-client-request-id" : "f1997498-63ff-4c7d-9f78-1fc4887a44e8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac008201ca8c26312021/javablobuploadpagefromurldestinationac102347d2897c733?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:38 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:38 GMT", + "Content-MD5" : "xN7IsfhKxHL5gDLuj4EIrg==", + "ETag" : "\"0x8D72813CBC81E18\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77fa5a1-301e-0094-4bfc-5950b8000000", + "x-ms-client-request-id" : "9ae6ae7f-40df-4713-bfe3-25d7002786fa" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadpagefromurldestinationac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fa5bc-301e-0094-64fc-5950b8000000", + "Body" : "jtcuploadpagefromurldestinationacjtcuploadpagefromurldestinationac008201ca8c26312021Fri, 23 Aug 2019 21:49:38 GMT\"0x8D72813CBB46263\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:38 GMT", + "x-ms-client-request-id" : "077d5433-5360-423a-ada4-214d5bd4844b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac008201ca8c26312021?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fa5c7-301e-0094-6ffc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:38 GMT", + "x-ms-client-request-id" : "04ba6925-04fd-4a1a-9bd3-864cdeea08b3" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadpagefromurldestinationac008201ca8c26312021", "javablobuploadpagefromurldestinationac102347d2897c733", "javablobuploadpagefromurldestinationac22238266a58c51a", "74a6c0f3-6547-4a11-87e0-0377a98f8788" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurldestinationac[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurldestinationac[1].json new file mode 100644 index 0000000000000..339c25474ecc1 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurldestinationac[1].json @@ -0,0 +1,172 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac023783fa28320842c6?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CBD8D417\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:38 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fa5dc-301e-0094-02fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:38 GMT", + "x-ms-client-request-id" : "359036a8-0cc4-4c60-b9c5-ff0e04433924" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac023783fa28320842c6/javablobuploadpagefromurldestinationac197872978693757", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CBDE4396\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:38 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fa5ed-301e-0094-10fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:38 GMT", + "x-ms-client-request-id" : "37289bd8-4f64-4227-996d-ff433b95e7c0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac023783fa28320842c6?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CBE2F798\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:38 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fa5f6-301e-0094-19fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:38 GMT", + "x-ms-client-request-id" : "fcb26990-b9b9-4872-a994-6c854a089482" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac023783fa28320842c6/javablobuploadpagefromurldestinationac280815555fcca72", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CBE809FC\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:38 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fa606-301e-0094-28fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:38 GMT", + "x-ms-client-request-id" : "2d3d6b1a-c3c3-4348-9738-ea4889e0e28e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac023783fa28320842c6/javablobuploadpagefromurldestinationac280815555fcca72?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "PlSCrm2nxyc=", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:38 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:38 GMT", + "ETag" : "\"0x8D72813CBED3B63\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77fa61a-301e-0094-3afc-5950b8000000", + "x-ms-client-request-id" : "e63f5759-9c82-4c2f-85f0-c87febf77255" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac023783fa28320842c6/javablobuploadpagefromurldestinationac197872978693757?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:38 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:38 GMT", + "Content-MD5" : "OsVzOLV4xkz2caz46q4vPA==", + "ETag" : "\"0x8D72813CBF33047\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77fa623-301e-0094-43fc-5950b8000000", + "x-ms-client-request-id" : "f8d0edcf-b1bd-4783-afd6-78bdba4cf627" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadpagefromurldestinationac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fa63c-301e-0094-57fc-5950b8000000", + "Body" : "jtcuploadpagefromurldestinationacjtcuploadpagefromurldestinationac023783fa28320842c6Fri, 23 Aug 2019 21:49:38 GMT\"0x8D72813CBE2F798\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:38 GMT", + "x-ms-client-request-id" : "cc52ac99-3c44-4062-8738-cf00ceab5f2f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac023783fa28320842c6?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fa649-301e-0094-62fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:38 GMT", + "x-ms-client-request-id" : "fabac030-cdbf-4618-8571-6741dcddea73" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadpagefromurldestinationac023783fa28320842c6", "javablobuploadpagefromurldestinationac197872978693757", "javablobuploadpagefromurldestinationac280815555fcca72", "bbaa43e5-84ed-455e-a1a7-b287b3d66a2c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurldestinationac[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurldestinationac[2].json new file mode 100644 index 0000000000000..acd74c884828a --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurldestinationac[2].json @@ -0,0 +1,172 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac09959294031342a490?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CC0285E8\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:38 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fa654-301e-0094-6bfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:38 GMT", + "x-ms-client-request-id" : "3542e9e2-915c-4cc7-a49b-da89ef4408fa" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac09959294031342a490/javablobuploadpagefromurldestinationac143225f3ad25d0a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CC07597F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:38 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fa667-301e-0094-7afc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:38 GMT", + "x-ms-client-request-id" : "704bd58f-5319-402b-a80d-0eb5d295e18e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac09959294031342a490?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CC0DE26D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:38 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fa683-301e-0094-11fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:38 GMT", + "x-ms-client-request-id" : "71b6d6ac-2e45-441b-8116-685d382f9754" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac09959294031342a490/javablobuploadpagefromurldestinationac2194144a76f2a54", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CC12F519\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:38 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fa68d-301e-0094-19fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:38 GMT", + "x-ms-client-request-id" : "e93cbf4c-8406-4cfc-b284-bc8f2cbfee80" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac09959294031342a490/javablobuploadpagefromurldestinationac2194144a76f2a54?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "lAfWHMm30BI=", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:39 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:38 GMT", + "ETag" : "\"0x8D72813CC1B5BA0\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77fa6a3-301e-0094-2dfc-5950b8000000", + "x-ms-client-request-id" : "6e120eba-4eda-42e7-9fc8-f111a7028bae" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac09959294031342a490/javablobuploadpagefromurldestinationac143225f3ad25d0a?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:39 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:38 GMT", + "Content-MD5" : "TD1ZYgjczm0dihlpWILCEA==", + "ETag" : "\"0x8D72813CC21C5CA\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77fa6b2-301e-0094-3bfc-5950b8000000", + "x-ms-client-request-id" : "eef7ff32-e29b-449c-b413-9ccf2238f9b1" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadpagefromurldestinationac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fa6c8-301e-0094-50fc-5950b8000000", + "Body" : "jtcuploadpagefromurldestinationacjtcuploadpagefromurldestinationac09959294031342a490Fri, 23 Aug 2019 21:49:38 GMT\"0x8D72813CC0DE26D\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:38 GMT", + "x-ms-client-request-id" : "f68afed6-ffe9-4581-a322-409c3ac79419", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac09959294031342a490?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fa6e1-301e-0094-65fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:38 GMT", + "x-ms-client-request-id" : "fb03590d-cbb0-4c45-a1f9-3433a5673ee4" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadpagefromurldestinationac09959294031342a490", "javablobuploadpagefromurldestinationac143225f3ad25d0a", "javablobuploadpagefromurldestinationac2194144a76f2a54", "9c45b27c-6481-4f97-8658-570173e845d5" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurldestinationac[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurldestinationac[3].json new file mode 100644 index 0000000000000..34441ecfdf159 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurldestinationac[3].json @@ -0,0 +1,203 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac048402f34db33b8c5d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CC311ADE\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fa6f1-301e-0094-74fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:38 GMT", + "x-ms-client-request-id" : "edcf53c0-0344-4aaa-ba54-c05cc38a7f82" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac048402f34db33b8c5d/javablobuploadpagefromurldestinationac1542710f2050e88", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CC361615\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fa712-301e-0094-10fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:38 GMT", + "x-ms-client-request-id" : "c25ff4cb-06e2-40bc-af55-c515a53acc9b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac048402f34db33b8c5d?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CC3AF0A0\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fa728-301e-0094-23fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:38 GMT", + "x-ms-client-request-id" : "c22fce1f-31b8-43ac-9e6e-1aa9fb078300" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac048402f34db33b8c5d/javablobuploadpagefromurldestinationac251343bb3eb2256", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CC40039C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fa73a-301e-0094-33fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:38 GMT", + "x-ms-client-request-id" : "317f13c0-7691-4c2c-87cd-62a6d89e7e0f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac048402f34db33b8c5d/javablobuploadpagefromurldestinationac251343bb3eb2256?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "Etxij5jHYVM=", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:39 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:38 GMT", + "ETag" : "\"0x8D72813CC455C15\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77fa756-301e-0094-49fc-5950b8000000", + "x-ms-client-request-id" : "d23a2051-30bf-4f63-83be-79355a5a0378" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac048402f34db33b8c5d/javablobuploadpagefromurldestinationac1542710f2050e88", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:39 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:49:38 GMT", + "x-ms-blob-type" : "PageBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72813CC361615\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:49:39 GMT", + "Content-Length" : "512", + "x-ms-request-id" : "f77fa76b-301e-0094-5afc-5950b8000000", + "x-ms-client-request-id" : "b18e65a3-5928-4269-8c80-c99c21f2b8f4", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac048402f34db33b8c5d/javablobuploadpagefromurldestinationac1542710f2050e88?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:39 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:39 GMT", + "Content-MD5" : "ieeDp51aFX/hZ4unncTOQw==", + "ETag" : "\"0x8D72813CC505B50\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77fa77d-301e-0094-6bfc-5950b8000000", + "x-ms-client-request-id" : "57b7735e-0f07-4ee9-aeac-1f9dd4a10c3b" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadpagefromurldestinationac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fa793-301e-0094-80fc-5950b8000000", + "Body" : "jtcuploadpagefromurldestinationacjtcuploadpagefromurldestinationac048402f34db33b8c5dFri, 23 Aug 2019 21:49:39 GMT\"0x8D72813CC3AF0A0\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:39 GMT", + "x-ms-client-request-id" : "59c70320-3ab1-43f1-9df9-7f8b897cd48f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac048402f34db33b8c5d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fa79b-301e-0094-07fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:39 GMT", + "x-ms-client-request-id" : "50866895-8423-4a9d-9c16-3d3abe4a5711" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadpagefromurldestinationac048402f34db33b8c5d", "javablobuploadpagefromurldestinationac1542710f2050e88", "javablobuploadpagefromurldestinationac251343bb3eb2256", "7e8187fe-c0b8-4839-bf17-645b0e1b2059" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurldestinationac[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurldestinationac[4].json new file mode 100644 index 0000000000000..f1d75a7abd444 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurldestinationac[4].json @@ -0,0 +1,172 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac09502129fc9e61f1a3?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CC60C18B\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fa7b4-301e-0094-1efc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:39 GMT", + "x-ms-client-request-id" : "e85f76d6-81ff-40cf-9a18-09113c4e3bea" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac09502129fc9e61f1a3/javablobuploadpagefromurldestinationac19566893153a042", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CC660B88\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fa7d0-301e-0094-33fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:39 GMT", + "x-ms-client-request-id" : "5397d01f-b16b-48c3-8bb7-5189003272dd" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac09502129fc9e61f1a3?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CC6AE5B6\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fa7e4-301e-0094-46fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:39 GMT", + "x-ms-client-request-id" : "ef0e49a9-7e69-4007-954b-b2bcf9c864f8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac09502129fc9e61f1a3/javablobuploadpagefromurldestinationac223242c06bf0c37", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CC6F83C4\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fa7f5-301e-0094-51fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:39 GMT", + "x-ms-client-request-id" : "6d5bf6e8-350c-45b8-a23c-d7aef0224cd5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac09502129fc9e61f1a3/javablobuploadpagefromurldestinationac223242c06bf0c37?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "gq+u7tnLDaQ=", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:39 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:39 GMT", + "ETag" : "\"0x8D72813CC748E11\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77fa804-301e-0094-5dfc-5950b8000000", + "x-ms-client-request-id" : "a899d5eb-0c03-4e8a-89b8-9407d9604078" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac09502129fc9e61f1a3/javablobuploadpagefromurldestinationac19566893153a042?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:39 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:39 GMT", + "Content-MD5" : "r1mgw0TtsjM/Ox1ILaHatQ==", + "ETag" : "\"0x8D72813CC889031\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77fa818-301e-0094-6efc-5950b8000000", + "x-ms-client-request-id" : "ea204ef4-90cf-4f7e-90c1-9e1dc380d15d" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadpagefromurldestinationac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fa85b-301e-0094-27fc-5950b8000000", + "Body" : "jtcuploadpagefromurldestinationacjtcuploadpagefromurldestinationac09502129fc9e61f1a3Fri, 23 Aug 2019 21:49:39 GMT\"0x8D72813CC6AE5B6\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:39 GMT", + "x-ms-client-request-id" : "02cedf6a-74f9-478c-a6ff-e1002bc3fa5d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac09502129fc9e61f1a3?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fa868-301e-0094-34fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:39 GMT", + "x-ms-client-request-id" : "f074c52e-edda-4d27-b496-6fa0ecde7a20" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadpagefromurldestinationac09502129fc9e61f1a3", "javablobuploadpagefromurldestinationac19566893153a042", "javablobuploadpagefromurldestinationac223242c06bf0c37", "55f23fa0-2b7f-4398-9abe-755645d52fe8" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurldestinationac[5].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurldestinationac[5].json new file mode 100644 index 0000000000000..293e767646aee --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurldestinationac[5].json @@ -0,0 +1,193 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac005677658b687dbdb0?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CC9F11A2\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fa897-301e-0094-59fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:39 GMT", + "x-ms-client-request-id" : "f5ceb353-cadd-4c77-b1cb-311ce6fd35a8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac005677658b687dbdb0/javablobuploadpagefromurldestinationac1777251466e195b", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CCA51FF3\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fa8a3-301e-0094-60fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:39 GMT", + "x-ms-client-request-id" : "8bb3c06a-5f03-421f-9941-c5f596faff88" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac005677658b687dbdb0?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CCAABD19\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fa8b8-301e-0094-72fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:39 GMT", + "x-ms-client-request-id" : "c4536fb9-2412-4fdd-8fba-8b3f024b75d6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac005677658b687dbdb0/javablobuploadpagefromurldestinationac245690ee955cc5c", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CCB1A635\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fa8d0-301e-0094-06fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:39 GMT", + "x-ms-client-request-id" : "cefc942c-f337-4bc7-8934-713f6f2584b6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac005677658b687dbdb0/javablobuploadpagefromurldestinationac245690ee955cc5c?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "hig3JMpoCmM=", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:40 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:39 GMT", + "ETag" : "\"0x8D72813CCB6FEB1\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77fa8e2-301e-0094-16fc-5950b8000000", + "x-ms-client-request-id" : "0b85f505-ef04-4487-843b-961ac198fff1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac005677658b687dbdb0/javablobuploadpagefromurldestinationac1777251466e195b?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CCA51FF3\"", + "x-ms-lease-id" : "53a4fdae-08ca-445d-b34c-e8cd5d5145be", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fa8ef-301e-0094-22fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:39 GMT", + "x-ms-client-request-id" : "d9a871e7-05b4-4ae9-9e19-232685d44698" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac005677658b687dbdb0/javablobuploadpagefromurldestinationac1777251466e195b?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:40 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:39 GMT", + "Content-MD5" : "1Mn3OxbzmAn9YGg8PZE9EA==", + "ETag" : "\"0x8D72813CCC29A4B\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77fa909-301e-0094-3bfc-5950b8000000", + "x-ms-client-request-id" : "9d858e4d-d58b-4f0f-b0f5-241ce04875e0" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadpagefromurldestinationac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fa925-301e-0094-51fc-5950b8000000", + "Body" : "jtcuploadpagefromurldestinationacjtcuploadpagefromurldestinationac005677658b687dbdb0Fri, 23 Aug 2019 21:49:39 GMT\"0x8D72813CCAABD19\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:39 GMT", + "x-ms-client-request-id" : "5173b387-412f-4d48-b167-a214181742ab", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac005677658b687dbdb0?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fa934-301e-0094-5ffc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:39 GMT", + "x-ms-client-request-id" : "1c275031-9804-4e3b-b40b-df803815ea8d" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadpagefromurldestinationac005677658b687dbdb0", "javablobuploadpagefromurldestinationac1777251466e195b", "javablobuploadpagefromurldestinationac245690ee955cc5c", "825a913a-7aa1-48a9-8434-4f5b2fc71f66" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurldestinationac[6].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurldestinationac[6].json new file mode 100644 index 0000000000000..6b1d34ce9234d --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurldestinationac[6].json @@ -0,0 +1,172 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac069638c2439791b99d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CCD3E99D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fa952-301e-0094-79fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:39 GMT", + "x-ms-client-request-id" : "9f311fe0-1636-490a-998c-36c235411d51" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac069638c2439791b99d/javablobuploadpagefromurldestinationac106137f7a713199", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CCD93522\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fa960-301e-0094-05fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:39 GMT", + "x-ms-client-request-id" : "b056a728-a2e9-46d6-a055-f195977bd96a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac069638c2439791b99d?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CCE14374\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fa971-301e-0094-13fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:39 GMT", + "x-ms-client-request-id" : "3f1d1470-1ea6-454c-8c8b-14a57cdcd705" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac069638c2439791b99d/javablobuploadpagefromurldestinationac24720205892cb3e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CCE630AD\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fa981-301e-0094-21fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:40 GMT", + "x-ms-client-request-id" : "85c60c68-0893-42e7-9323-5062106b8188" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac069638c2439791b99d/javablobuploadpagefromurldestinationac24720205892cb3e?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "ylVC0imiqig=", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:40 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:40 GMT", + "ETag" : "\"0x8D72813CCEB3AFC\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77fa98e-301e-0094-2dfc-5950b8000000", + "x-ms-client-request-id" : "72705b9b-c7d5-4ca5-b262-6b4a27bbc760" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac069638c2439791b99d/javablobuploadpagefromurldestinationac106137f7a713199?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:40 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:40 GMT", + "Content-MD5" : "gN3iSCdDy+9Y21g4LpouGg==", + "ETag" : "\"0x8D72813CCF7C12B\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77fa9a1-301e-0094-3ffc-5950b8000000", + "x-ms-client-request-id" : "f57b4b2f-4039-48e6-ae5e-15922720e786" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadpagefromurldestinationac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fa9c9-301e-0094-64fc-5950b8000000", + "Body" : "jtcuploadpagefromurldestinationacjtcuploadpagefromurldestinationac069638c2439791b99dFri, 23 Aug 2019 21:49:40 GMT\"0x8D72813CCE14374\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:40 GMT", + "x-ms-client-request-id" : "488e9cf0-b06c-417d-b8a0-708442fd46e2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac069638c2439791b99d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fa9d9-301e-0094-73fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:40 GMT", + "x-ms-client-request-id" : "2b80331b-85da-4dcb-b7ea-f231a4f61f7d" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadpagefromurldestinationac069638c2439791b99d", "javablobuploadpagefromurldestinationac106137f7a713199", "javablobuploadpagefromurldestinationac24720205892cb3e", "bab71ee8-f645-4807-a8e0-2631cb3c3ecc" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurldestinationac[7].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurldestinationac[7].json new file mode 100644 index 0000000000000..d3d09adb5f06d --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurldestinationac[7].json @@ -0,0 +1,172 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac0386916c19526d866b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CD07138F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fa9f3-301e-0094-0bfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:40 GMT", + "x-ms-client-request-id" : "17d18785-2a17-49ce-98d1-a4be8b9ffe72" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac0386916c19526d866b/javablobuploadpagefromurldestinationac179548444d3dbcf", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CD0C86CE\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77faa0c-301e-0094-20fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:40 GMT", + "x-ms-client-request-id" : "6dfa548d-bac0-47ac-b97a-06b0d46a35eb" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac0386916c19526d866b?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CD11ADD4\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77faa2e-301e-0094-3ffc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:40 GMT", + "x-ms-client-request-id" : "6a19dc43-af24-456e-b0cd-20de68f21b1f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac0386916c19526d866b/javablobuploadpagefromurldestinationac264416de94976c2", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CD167447\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77faa39-301e-0094-49fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:40 GMT", + "x-ms-client-request-id" : "0d84d2ab-eaeb-49ec-8e5f-6b71f6c420f3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac0386916c19526d866b/javablobuploadpagefromurldestinationac264416de94976c2?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "M9UVIX6Tx2g=", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:40 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:40 GMT", + "ETag" : "\"0x8D72813CD1B7E88\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77faa4b-301e-0094-59fc-5950b8000000", + "x-ms-client-request-id" : "0c107035-08e2-473e-91c8-5f07ecf5ed64" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac0386916c19526d866b/javablobuploadpagefromurldestinationac179548444d3dbcf?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:40 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:40 GMT", + "Content-MD5" : "a4cq1Ar2Dqnvq+f8wRwPPA==", + "ETag" : "\"0x8D72813CD28C843\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77faa5e-301e-0094-6cfc-5950b8000000", + "x-ms-client-request-id" : "c6fc2335-e083-4524-a164-9004e506ee67" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadpagefromurldestinationac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77faa89-301e-0094-12fc-5950b8000000", + "Body" : "jtcuploadpagefromurldestinationacjtcuploadpagefromurldestinationac0386916c19526d866bFri, 23 Aug 2019 21:49:40 GMT\"0x8D72813CD11ADD4\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:40 GMT", + "x-ms-client-request-id" : "bb4579b4-69c5-4f1d-ae57-6c097221eb94", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac0386916c19526d866b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77faa9e-301e-0094-22fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:40 GMT", + "x-ms-client-request-id" : "67f72fde-eb2b-4abb-ab7b-8859867662e0" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadpagefromurldestinationac0386916c19526d866b", "javablobuploadpagefromurldestinationac179548444d3dbcf", "javablobuploadpagefromurldestinationac264416de94976c2", "0b8a064d-eba8-40be-8258-c1adc6de399c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurldestinationac[8].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurldestinationac[8].json new file mode 100644 index 0000000000000..979a637bd0a8d --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurldestinationac[8].json @@ -0,0 +1,172 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac067403efc055fb00c2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CD3A1658\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77faab1-301e-0094-35fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:40 GMT", + "x-ms-client-request-id" : "d943c34d-ee5f-474c-817d-1e579ca9559b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac067403efc055fb00c2/javablobuploadpagefromurldestinationac1588201d8ea15f2", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CD3F14D8\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77faac1-301e-0094-42fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:40 GMT", + "x-ms-client-request-id" : "d9e35c57-4203-4f1f-a31b-abd3e3b5b1be" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac067403efc055fb00c2?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CD43ED65\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77faace-301e-0094-4ffc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:40 GMT", + "x-ms-client-request-id" : "1a6eef71-31f5-4075-9791-475083611ab4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac067403efc055fb00c2/javablobuploadpagefromurldestinationac204512101d95f0f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CD48B42C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77faadb-301e-0094-5afc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:40 GMT", + "x-ms-client-request-id" : "6997ce43-382f-4da7-aafd-b9adf23e2bc3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac067403efc055fb00c2/javablobuploadpagefromurldestinationac204512101d95f0f?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "3ioMaKnap+s=", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:41 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:40 GMT", + "ETag" : "\"0x8D72813CD4EF743\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77faae8-301e-0094-67fc-5950b8000000", + "x-ms-client-request-id" : "ac2e03fc-877f-4895-a995-d2c8fef6d7c8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac067403efc055fb00c2/javablobuploadpagefromurldestinationac1588201d8ea15f2?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:41 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:40 GMT", + "Content-MD5" : "usju/JojfTxpn2Kbdz78CQ==", + "ETag" : "\"0x8D72813CD59CF5B\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77faaf7-301e-0094-73fc-5950b8000000", + "x-ms-client-request-id" : "fa64330e-0f8d-4353-99d4-5800a8ccf8f5" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadpagefromurldestinationac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fab28-301e-0094-1efc-5950b8000000", + "Body" : "jtcuploadpagefromurldestinationacjtcuploadpagefromurldestinationac067403efc055fb00c2Fri, 23 Aug 2019 21:49:40 GMT\"0x8D72813CD43ED65\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:40 GMT", + "x-ms-client-request-id" : "2cc529b8-e92c-4bb2-81e7-0448e63fb5b6", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationac067403efc055fb00c2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fab30-301e-0094-25fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:40 GMT", + "x-ms-client-request-id" : "b748572c-5e38-4117-bfad-bf80c3c18cdd" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadpagefromurldestinationac067403efc055fb00c2", "javablobuploadpagefromurldestinationac1588201d8ea15f2", "javablobuploadpagefromurldestinationac204512101d95f0f", "11cb7981-18c4-4ef9-a97b-5dda19e75336" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurldestinationacfail[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurldestinationacfail[0].json new file mode 100644 index 0000000000000..2b6c6c8e1c7eb --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurldestinationacfail[0].json @@ -0,0 +1,170 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationacfail001683c5061d6869?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CD69209B\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:41 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fab44-301e-0094-34fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:40 GMT", + "x-ms-client-request-id" : "2da34812-e359-47e5-ab8f-c4fec3c37a99" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationacfail001683c5061d6869/javablobuploadpagefromurldestinationacfail1578615fdf975", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CD6FF4DD\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:41 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fab5d-301e-0094-48fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:40 GMT", + "x-ms-client-request-id" : "60f7dd85-06cf-426e-9e5a-a8df1c3728da" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationacfail001683c5061d6869?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CD75DEC7\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:41 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fab65-301e-0094-4efc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:40 GMT", + "x-ms-client-request-id" : "ef21150d-cc6a-4fd6-b5b7-8a47e7c275d9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationacfail001683c5061d6869/javablobuploadpagefromurldestinationacfail2691358577d6b", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CD7C05C2\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:41 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fab87-301e-0094-5efc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:40 GMT", + "x-ms-client-request-id" : "95b3c71d-96ff-49b2-b91c-a28a6015fd97" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationacfail001683c5061d6869/javablobuploadpagefromurldestinationacfail2691358577d6b?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "wNrjcWuuNW8=", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:41 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:41 GMT", + "ETag" : "\"0x8D72813CD80E8F9\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77faba0-301e-0094-6efc-5950b8000000", + "x-ms-client-request-id" : "370c58ae-c3cf-42ce-84b2-136bf0ed6e5f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationacfail001683c5061d6869/javablobuploadpagefromurldestinationacfail1578615fdf975?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "253", + "StatusCode" : "412", + "x-ms-request-id" : "f77fabaa-301e-0094-76fc-5950b8000000", + "Body" : "\nConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:f77fabaa-301e-0094-76fc-5950b8000000\nTime:2019-08-23T21:49:41.3914928Z", + "Date" : "Fri, 23 Aug 2019 21:49:41 GMT", + "x-ms-client-request-id" : "3d46e82e-f14f-4c9d-b587-d21bc0d6fd46", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadpagefromurldestinationacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fabbc-301e-0094-04fc-5950b8000000", + "Body" : "jtcuploadpagefromurldestinationacfailjtcuploadpagefromurldestinationacfail001683c5061d6869Fri, 23 Aug 2019 21:49:41 GMT\"0x8D72813CD75DEC7\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:41 GMT", + "x-ms-client-request-id" : "54f7f04d-84be-4633-b366-e5def60f8757", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationacfail001683c5061d6869?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fabde-301e-0094-19fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:41 GMT", + "x-ms-client-request-id" : "a12b6824-bed5-458e-a9be-87b7dddfdeeb" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadpagefromurldestinationacfail001683c5061d6869", "javablobuploadpagefromurldestinationacfail1578615fdf975", "javablobuploadpagefromurldestinationacfail2691358577d6b", "f9e6dce0-7159-4f60-ac53-68d9d25e2f1f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurldestinationacfail[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurldestinationacfail[1].json new file mode 100644 index 0000000000000..2ec54e1f30565 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurldestinationacfail[1].json @@ -0,0 +1,170 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationacfail074215770eed7982?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CDA4148E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:41 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fac31-301e-0094-53fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:41 GMT", + "x-ms-client-request-id" : "cc00c679-1c37-48e8-a299-61035f3bb6f8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationacfail074215770eed7982/javablobuploadpagefromurldestinationacfail15613578af441", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CDA96273\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:41 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fac47-301e-0094-66fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:41 GMT", + "x-ms-client-request-id" : "4aff231e-15f4-49ae-854f-1707a5bd7a4f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationacfail074215770eed7982?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CDAE133B\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:41 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fac5e-301e-0094-76fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:41 GMT", + "x-ms-client-request-id" : "bbb263c4-0a30-4061-941c-490779d170af" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationacfail074215770eed7982/javablobuploadpagefromurldestinationacfail2370183561246", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CDB328DE\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:41 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fac6d-301e-0094-04fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:41 GMT", + "x-ms-client-request-id" : "a9695a7a-ebe1-4140-bc08-141823d810cd" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationacfail074215770eed7982/javablobuploadpagefromurldestinationacfail2370183561246?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "89MQAaAzk1Y=", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:41 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:41 GMT", + "ETag" : "\"0x8D72813CDB88161\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77fac83-301e-0094-14fc-5950b8000000", + "x-ms-client-request-id" : "6fba7c26-0588-4483-93d3-08108a2ef541" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationacfail074215770eed7982/javablobuploadpagefromurldestinationacfail15613578af441?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "253", + "StatusCode" : "412", + "x-ms-request-id" : "f77fac9a-301e-0094-29fc-5950b8000000", + "Body" : "\nConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:f77fac9a-301e-0094-29fc-5950b8000000\nTime:2019-08-23T21:49:41.7558265Z", + "Date" : "Fri, 23 Aug 2019 21:49:41 GMT", + "x-ms-client-request-id" : "7a4360e5-73b8-43c1-b103-b065da0d5c14", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadpagefromurldestinationacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77faca9-301e-0094-36fc-5950b8000000", + "Body" : "jtcuploadpagefromurldestinationacfailjtcuploadpagefromurldestinationacfail074215770eed7982Fri, 23 Aug 2019 21:49:41 GMT\"0x8D72813CDAE133B\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:41 GMT", + "x-ms-client-request-id" : "8e4dccef-3e58-499a-8d72-0ba50d57a272", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationacfail074215770eed7982?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77facb5-301e-0094-40fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:41 GMT", + "x-ms-client-request-id" : "eaabae03-c9d7-4f3c-ba86-357856152d13" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadpagefromurldestinationacfail074215770eed7982", "javablobuploadpagefromurldestinationacfail15613578af441", "javablobuploadpagefromurldestinationacfail2370183561246", "97cfbb2c-fb2b-406c-8c1a-4c0a368defbc" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurldestinationacfail[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurldestinationacfail[2].json new file mode 100644 index 0000000000000..20ed89a8a7764 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurldestinationacfail[2].json @@ -0,0 +1,170 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationacfail03510915b865d408?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CDCDC65F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:41 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77facc4-301e-0094-4dfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:41 GMT", + "x-ms-client-request-id" : "8f5edadd-f10b-4373-8865-db87f7c7bed8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationacfail03510915b865d408/javablobuploadpagefromurldestinationacfail123888fe8bd8f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CDD314C3\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:41 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77facd5-301e-0094-5afc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:41 GMT", + "x-ms-client-request-id" : "5aab1e72-ad87-4606-9ab2-e16feb7c7fe1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationacfail03510915b865d408?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CDD83A8F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:41 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77face3-301e-0094-66fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:41 GMT", + "x-ms-client-request-id" : "2276f1e6-0a92-4826-9d43-149ed58e6e18" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationacfail03510915b865d408/javablobuploadpagefromurldestinationacfail2345961cf4f98", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CDE4F374\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:42 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fad14-301e-0094-10fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:41 GMT", + "x-ms-client-request-id" : "0793904b-571e-4052-85d2-03325acb9d35" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationacfail03510915b865d408/javablobuploadpagefromurldestinationacfail2345961cf4f98?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "C3/aaXK8nt0=", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:42 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:41 GMT", + "ETag" : "\"0x8D72813CDEA24DF\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77fad20-301e-0094-1bfc-5950b8000000", + "x-ms-client-request-id" : "5ab8e03d-4d6e-4085-91b4-4433b49cf01b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationacfail03510915b865d408/javablobuploadpagefromurldestinationacfail123888fe8bd8f?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "TargetConditionNotMet", + "retry-after" : "0", + "Content-Length" : "266", + "StatusCode" : "412", + "x-ms-request-id" : "f77fad3d-301e-0094-2efc-5950b8000000", + "Body" : "\nTargetConditionNotMetThe target condition specified using HTTP conditional header(s) is not met.\nRequestId:f77fad3d-301e-0094-2efc-5950b8000000\nTime:2019-08-23T21:49:42.0771192Z", + "Date" : "Fri, 23 Aug 2019 21:49:41 GMT", + "x-ms-client-request-id" : "82164385-43e0-45a2-b9b2-dfe83fa92801", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadpagefromurldestinationacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fad5a-301e-0094-43fc-5950b8000000", + "Body" : "jtcuploadpagefromurldestinationacfailjtcuploadpagefromurldestinationacfail03510915b865d408Fri, 23 Aug 2019 21:49:41 GMT\"0x8D72813CDD83A8F\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:41 GMT", + "x-ms-client-request-id" : "d74c6df9-3dd8-4c3f-a384-f0f9f9c0a211", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationacfail03510915b865d408?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fad70-301e-0094-50fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:41 GMT", + "x-ms-client-request-id" : "cdb64728-555a-4ae0-906e-1cd0c6389a76" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadpagefromurldestinationacfail03510915b865d408", "javablobuploadpagefromurldestinationacfail123888fe8bd8f", "javablobuploadpagefromurldestinationacfail2345961cf4f98", "2516cf30-6bcc-4f67-abef-38c60b939a2c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurldestinationacfail[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurldestinationacfail[3].json new file mode 100644 index 0000000000000..294f7709d9d10 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurldestinationacfail[3].json @@ -0,0 +1,201 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationacfail0798174f4916b111?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CE049AA3\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:42 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fad9f-301e-0094-79fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:41 GMT", + "x-ms-client-request-id" : "87156669-6040-475a-abcc-eaeba0de67bd" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationacfail0798174f4916b111/javablobuploadpagefromurldestinationacfail1085717c8ae96", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CE0A10CD\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:42 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fadb4-301e-0094-0afc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:41 GMT", + "x-ms-client-request-id" : "07da017c-28fa-4be0-aa55-06868717ced5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationacfail0798174f4916b111?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CE0F362A\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:42 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fadc0-301e-0094-13fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:41 GMT", + "x-ms-client-request-id" : "fb797602-81fc-4a83-9689-985c71a70780" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationacfail0798174f4916b111/javablobuploadpagefromurldestinationacfail252805be5d54b", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CE144C75\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:42 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fadcc-301e-0094-1efc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:41 GMT", + "x-ms-client-request-id" : "f1f90afa-88f2-42fb-919c-1bcaee80a073" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationacfail0798174f4916b111/javablobuploadpagefromurldestinationacfail252805be5d54b?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "oPASs/pS4Dw=", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:42 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:42 GMT", + "ETag" : "\"0x8D72813CE19CC0E\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77fade1-301e-0094-30fc-5950b8000000", + "x-ms-client-request-id" : "475484d9-06c3-4b1e-a85f-23c17f126e35" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationacfail0798174f4916b111/javablobuploadpagefromurldestinationacfail1085717c8ae96", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:42 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:49:42 GMT", + "x-ms-blob-type" : "PageBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72813CE0A10CD\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:49:42 GMT", + "Content-Length" : "512", + "x-ms-request-id" : "f77fadf0-301e-0094-3efc-5950b8000000", + "x-ms-client-request-id" : "03e5e90d-3792-401d-8057-978c8d55783e", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationacfail0798174f4916b111/javablobuploadpagefromurldestinationacfail1085717c8ae96?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "253", + "StatusCode" : "412", + "x-ms-request-id" : "f77fadff-301e-0094-4cfc-5950b8000000", + "Body" : "\nConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:f77fadff-301e-0094-4cfc-5950b8000000\nTime:2019-08-23T21:49:42.4224349Z", + "Date" : "Fri, 23 Aug 2019 21:49:42 GMT", + "x-ms-client-request-id" : "e7bddd19-e9d2-4c98-98e8-9f7934195f64", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadpagefromurldestinationacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fae13-301e-0094-5dfc-5950b8000000", + "Body" : "jtcuploadpagefromurldestinationacfailjtcuploadpagefromurldestinationacfail0798174f4916b111Fri, 23 Aug 2019 21:49:42 GMT\"0x8D72813CE0F362A\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:42 GMT", + "x-ms-client-request-id" : "418e1ceb-e765-4fe7-bd8d-93ce3211ecfc", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationacfail0798174f4916b111?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fae1c-301e-0094-65fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:42 GMT", + "x-ms-client-request-id" : "9f743940-3f8f-4589-90c1-dbf289326ce2" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadpagefromurldestinationacfail0798174f4916b111", "javablobuploadpagefromurldestinationacfail1085717c8ae96", "javablobuploadpagefromurldestinationacfail252805be5d54b", "b0de8bf8-8554-4469-a5e0-950eea2bdcd5" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurldestinationacfail[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurldestinationacfail[4].json new file mode 100644 index 0000000000000..0ca81db118782 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurldestinationacfail[4].json @@ -0,0 +1,170 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationacfail071049ff876f409b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CE348F83\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:42 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fae3d-301e-0094-7ffc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:42 GMT", + "x-ms-client-request-id" : "8b1b3a53-8a85-4fbb-b409-dab51900c13c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationacfail071049ff876f409b/javablobuploadpagefromurldestinationacfail119305e15c580", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CE39DF18\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:42 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fae5a-301e-0094-13fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:42 GMT", + "x-ms-client-request-id" : "0169f40a-a0f7-467a-b2cd-5f768d29ce84" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationacfail071049ff876f409b?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CE406415\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:42 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fae6f-301e-0094-22fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:42 GMT", + "x-ms-client-request-id" : "6ef83c4b-45a4-44e5-a49d-d06cd9a6586c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationacfail071049ff876f409b/javablobuploadpagefromurldestinationacfail238475b7e65ed", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CE45A1C5\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:42 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fae82-301e-0094-30fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:42 GMT", + "x-ms-client-request-id" : "6e7a3d52-22fc-4517-b921-3e05b56713f1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationacfail071049ff876f409b/javablobuploadpagefromurldestinationacfail238475b7e65ed?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "JMWH642KuVM=", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:42 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:42 GMT", + "ETag" : "\"0x8D72813CE4B215E\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77fae96-301e-0094-41fc-5950b8000000", + "x-ms-client-request-id" : "d0b07790-0926-4d42-822f-fc3c2f838077" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationacfail071049ff876f409b/javablobuploadpagefromurldestinationacfail119305e15c580?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "LeaseNotPresentWithBlobOperation", + "retry-after" : "0", + "Content-Length" : "242", + "StatusCode" : "412", + "x-ms-request-id" : "f77faea4-301e-0094-4afc-5950b8000000", + "Body" : "\nLeaseNotPresentWithBlobOperationThere is currently no lease on the blob.\nRequestId:f77faea4-301e-0094-4afc-5950b8000000\nTime:2019-08-23T21:49:42.7167049Z", + "Date" : "Fri, 23 Aug 2019 21:49:42 GMT", + "x-ms-client-request-id" : "fedb3ec3-02f6-44b1-b0ac-fe731e1a0ccc", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadpagefromurldestinationacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77faeb7-301e-0094-59fc-5950b8000000", + "Body" : "jtcuploadpagefromurldestinationacfailjtcuploadpagefromurldestinationacfail071049ff876f409bFri, 23 Aug 2019 21:49:42 GMT\"0x8D72813CE406415\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:42 GMT", + "x-ms-client-request-id" : "fc688371-ed77-496a-8afd-cbd6702f159b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationacfail071049ff876f409b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77faecc-301e-0094-68fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:42 GMT", + "x-ms-client-request-id" : "821a4c4f-d498-4c47-95e1-c97862be465f" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadpagefromurldestinationacfail071049ff876f409b", "javablobuploadpagefromurldestinationacfail119305e15c580", "javablobuploadpagefromurldestinationacfail238475b7e65ed", "e8322e73-d6af-4182-9eb1-6a7d2dcb0c98" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurldestinationacfail[5].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurldestinationacfail[5].json new file mode 100644 index 0000000000000..f871de4a9dc1c --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurldestinationacfail[5].json @@ -0,0 +1,170 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationacfail088847cc392c2fe2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CE603D9D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:42 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77faee3-301e-0094-7afc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:42 GMT", + "x-ms-client-request-id" : "6e89a6c0-87a4-492c-b9ac-a210863f7dd1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationacfail088847cc392c2fe2/javablobuploadpagefromurldestinationacfail1211889e2d58c", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CE65DBE1\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:42 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77faef6-301e-0094-09fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:42 GMT", + "x-ms-client-request-id" : "82958215-2f4a-4462-96bb-e5d016316b48" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationacfail088847cc392c2fe2?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CE6AB28C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:42 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77faf02-301e-0094-12fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:42 GMT", + "x-ms-client-request-id" : "7525c6b6-1077-44b2-9d91-0bae66c8db67" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationacfail088847cc392c2fe2/javablobuploadpagefromurldestinationacfail2225959affcc4", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CE6F7B2C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:42 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77faf0e-301e-0094-1dfc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:42 GMT", + "x-ms-client-request-id" : "2d5a7b89-8004-4841-9894-e7067e6268ff" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationacfail088847cc392c2fe2/javablobuploadpagefromurldestinationacfail2225959affcc4?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "k16hvceuPis=", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:42 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:42 GMT", + "ETag" : "\"0x8D72813CE74D3AE\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77faf1b-301e-0094-2afc-5950b8000000", + "x-ms-client-request-id" : "5719135a-4ab5-4604-9f27-6371f73d7451" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationacfail088847cc392c2fe2/javablobuploadpagefromurldestinationacfail1211889e2d58c?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "InvalidHeaderValue", + "retry-after" : "0", + "Content-Length" : "335", + "StatusCode" : "400", + "x-ms-request-id" : "f77faf24-301e-0094-33fc-5950b8000000", + "Body" : "\nInvalidHeaderValueThe value for one of the HTTP headers is not in the correct format.\nRequestId:f77faf24-301e-0094-33fc-5950b8000000\nTime:2019-08-23T21:49:42.9789443Zx-ms-if-sequence-number-lt-1", + "Date" : "Fri, 23 Aug 2019 21:49:42 GMT", + "x-ms-client-request-id" : "ecdc4845-ef23-4d6e-a84c-45deed94088a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadpagefromurldestinationacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77faf2b-301e-0094-39fc-5950b8000000", + "Body" : "jtcuploadpagefromurldestinationacfailjtcuploadpagefromurldestinationacfail088847cc392c2fe2Fri, 23 Aug 2019 21:49:42 GMT\"0x8D72813CE6AB28C\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:42 GMT", + "x-ms-client-request-id" : "d18b58f6-8b25-4be9-80a6-d4a39ff04d2b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationacfail088847cc392c2fe2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77faf42-301e-0094-4bfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:42 GMT", + "x-ms-client-request-id" : "b2a57935-0185-4b1c-8d04-37799fae470a" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadpagefromurldestinationacfail088847cc392c2fe2", "javablobuploadpagefromurldestinationacfail1211889e2d58c", "javablobuploadpagefromurldestinationacfail2225959affcc4", "be021f8a-cf83-4f21-8afe-dad267a715cc" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurldestinationacfail[6].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurldestinationacfail[6].json new file mode 100644 index 0000000000000..8acb96a5a766f --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurldestinationacfail[6].json @@ -0,0 +1,170 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationacfail039844d12fc1f768?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CE87F329\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:43 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77faf5d-301e-0094-61fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:42 GMT", + "x-ms-client-request-id" : "89111f03-37ee-41c3-8b14-dfea61faa509" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationacfail039844d12fc1f768/javablobuploadpagefromurldestinationacfail1465633beb8ab", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CE8D43BC\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:43 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77faf7c-301e-0094-78fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:42 GMT", + "x-ms-client-request-id" : "035da48c-bff4-4849-bf11-ab8bfc03db7d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationacfail039844d12fc1f768?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CE921A28\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:43 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77faf8f-301e-0094-0afc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:42 GMT", + "x-ms-client-request-id" : "8122e338-4a85-4d47-b8c0-ae463286964c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationacfail039844d12fc1f768/javablobuploadpagefromurldestinationacfail288063ac0f926", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CE96E2F9\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:43 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fafa7-301e-0094-1bfc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:42 GMT", + "x-ms-client-request-id" : "b2a4d8e9-c784-4cae-bb0c-a19212151e5d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationacfail039844d12fc1f768/javablobuploadpagefromurldestinationacfail288063ac0f926?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "f90Mvv41jqo=", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:43 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:42 GMT", + "ETag" : "\"0x8D72813CE9C6293\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77fafbf-301e-0094-31fc-5950b8000000", + "x-ms-client-request-id" : "b8738f82-b761-4636-b8f5-5bb8cbc6ffa0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationacfail039844d12fc1f768/javablobuploadpagefromurldestinationacfail1465633beb8ab?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "InvalidHeaderValue", + "retry-after" : "0", + "Content-Length" : "335", + "StatusCode" : "400", + "x-ms-request-id" : "f77fafd1-301e-0094-43fc-5950b8000000", + "Body" : "\nInvalidHeaderValueThe value for one of the HTTP headers is not in the correct format.\nRequestId:f77fafd1-301e-0094-43fc-5950b8000000\nTime:2019-08-23T21:49:43.2361803Zx-ms-if-sequence-number-le-1", + "Date" : "Fri, 23 Aug 2019 21:49:42 GMT", + "x-ms-client-request-id" : "66fe4038-6169-4a39-8eab-1fd8b51c3c74", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadpagefromurldestinationacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fafdb-301e-0094-4dfc-5950b8000000", + "Body" : "jtcuploadpagefromurldestinationacfailjtcuploadpagefromurldestinationacfail039844d12fc1f768Fri, 23 Aug 2019 21:49:43 GMT\"0x8D72813CE921A28\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:42 GMT", + "x-ms-client-request-id" : "a28e4415-ad34-4e2c-aaf4-f76630937284", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationacfail039844d12fc1f768?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77faff1-301e-0094-5cfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:42 GMT", + "x-ms-client-request-id" : "9818123d-9e7e-471d-a0a6-59bb3862aea8" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadpagefromurldestinationacfail039844d12fc1f768", "javablobuploadpagefromurldestinationacfail1465633beb8ab", "javablobuploadpagefromurldestinationacfail288063ac0f926", "c1af582c-e153-42da-a49f-65c9e0de78ba" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurldestinationacfail[7].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurldestinationacfail[7].json new file mode 100644 index 0000000000000..105197120b8b7 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurldestinationacfail[7].json @@ -0,0 +1,170 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationacfail09879499ed94ad04?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CEAFCFC8\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:43 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fb007-301e-0094-72fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:43 GMT", + "x-ms-client-request-id" : "31457eb5-ce83-4687-bc7b-1dc0198570e8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationacfail09879499ed94ad04/javablobuploadpagefromurldestinationacfail101824ff3bdab", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CEB5E444\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:43 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fb01b-301e-0094-80fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:43 GMT", + "x-ms-client-request-id" : "5444ae38-9bc7-4260-9432-177be24b71b6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationacfail09879499ed94ad04?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CEBA9379\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:43 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fb02b-301e-0094-0dfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:43 GMT", + "x-ms-client-request-id" : "844cb1ca-fcbe-40e4-98cb-c4fd1e52df61" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationacfail09879499ed94ad04/javablobuploadpagefromurldestinationacfail24358020438b8", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CEBF8393\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:43 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fb03d-301e-0094-1bfc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:43 GMT", + "x-ms-client-request-id" : "cd1562be-d700-4a2a-9eb9-ea7620258821" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationacfail09879499ed94ad04/javablobuploadpagefromurldestinationacfail24358020438b8?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "id4ARGUzCpk=", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:43 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:43 GMT", + "ETag" : "\"0x8D72813CEC4B4FA\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77fb048-301e-0094-26fc-5950b8000000", + "x-ms-client-request-id" : "e6f75f17-9c3e-47b2-a868-9db8c850cc80" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationacfail09879499ed94ad04/javablobuploadpagefromurldestinationacfail101824ff3bdab?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "SequenceNumberConditionNotMet", + "retry-after" : "0", + "Content-Length" : "251", + "StatusCode" : "412", + "x-ms-request-id" : "f77fb066-301e-0094-3ffc-5950b8000000", + "Body" : "\nSequenceNumberConditionNotMetThe sequence number condition specified was not met.\nRequestId:f77fb066-301e-0094-3ffc-5950b8000000\nTime:2019-08-23T21:49:43.5704861Z", + "Date" : "Fri, 23 Aug 2019 21:49:43 GMT", + "x-ms-client-request-id" : "2b9010c1-3be3-4a6a-a5cf-ac26aa4c8eb9", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadpagefromurldestinationacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fb08a-301e-0094-60fc-5950b8000000", + "Body" : "jtcuploadpagefromurldestinationacfailjtcuploadpagefromurldestinationacfail09879499ed94ad04Fri, 23 Aug 2019 21:49:43 GMT\"0x8D72813CEBA9379\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:43 GMT", + "x-ms-client-request-id" : "50793016-3daf-470a-a2fb-b962839f5eb8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurldestinationacfail09879499ed94ad04?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fb097-301e-0094-6dfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:43 GMT", + "x-ms-client-request-id" : "4636404a-9426-4dad-a0a7-5fd0b04a23cd" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadpagefromurldestinationacfail09879499ed94ad04", "javablobuploadpagefromurldestinationacfail101824ff3bdab", "javablobuploadpagefromurldestinationacfail24358020438b8", "a52d8485-7fa2-4705-a3d3-f2231b8cefbc" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurlia.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurlia.json new file mode 100644 index 0000000000000..e7e2acbee92e3 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurlia.json @@ -0,0 +1,83 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlia0661572a8387b4b7294383b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CB34CC8E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fa38e-301e-0094-7efc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:37 GMT", + "x-ms-client-request-id" : "41f0a607-7537-4524-9008-451a9da97436" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlia0661572a8387b4b7294383b/javablobuploadpagefromurlia155008d3cd98bb02d048c", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CB3A885C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fa3a7-301e-0094-15fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:37 GMT", + "x-ms-client-request-id" : "30e3b29a-f0d8-4fb6-8eee-484cbf5e683a" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadpagefromurlia&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fa3b6-301e-0094-24fc-5950b8000000", + "Body" : "jtcuploadpagefromurliajtcuploadpagefromurlia0661572a8387b4b7294383bFri, 23 Aug 2019 21:49:37 GMT\"0x8D72813CB34CC8E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:37 GMT", + "x-ms-client-request-id" : "ad4f5882-8387-4820-95f0-0cd4c6212bcc", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlia0661572a8387b4b7294383b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fa3d2-301e-0094-39fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:37 GMT", + "x-ms-client-request-id" : "3490f0d8-f162-432c-be4e-1ebc2a833785" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadpagefromurlia0661572a8387b4b7294383b", "javablobuploadpagefromurlia155008d3cd98bb02d048c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurlmd5.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurlmd5.json new file mode 100644 index 0000000000000..3adda17ff95db --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurlmd5.json @@ -0,0 +1,172 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlmd5048731732a5c2b5a0d4556a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CB4EEA5E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fa3f7-301e-0094-5bfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:37 GMT", + "x-ms-client-request-id" : "833fc934-a58b-4890-8213-6827913ab9a0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlmd5048731732a5c2b5a0d4556a/javablobuploadpagefromurlmd518392973fcdc1469414b", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CB53BBDA\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fa40d-301e-0094-6afc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:37 GMT", + "x-ms-client-request-id" : "d74d5cf5-032a-4c0c-b0bc-32bc51d54cae" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlmd5048731732a5c2b5a0d4556a?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CB5B7EC4\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fa41f-301e-0094-7cfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:37 GMT", + "x-ms-client-request-id" : "1c678e2b-b36f-49f3-bbe3-22f14e4ea455" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlmd5048731732a5c2b5a0d4556a/javablobuploadpagefromurlmd5285042cf97b89c331c46", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CB604212\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fa432-301e-0094-09fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:37 GMT", + "x-ms-client-request-id" : "8599d4de-1db2-491f-96ff-da9defdf3686" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlmd5048731732a5c2b5a0d4556a/javablobuploadpagefromurlmd518392973fcdc1469414b?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "9fp99wAuX7g=", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:37 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:37 GMT", + "ETag" : "\"0x8D72813CB65E8C3\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77fa441-301e-0094-17fc-5950b8000000", + "x-ms-client-request-id" : "e5961689-1d57-45fa-9e08-d852a91e57f9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlmd5048731732a5c2b5a0d4556a/javablobuploadpagefromurlmd5285042cf97b89c331c46?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:37 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:37 GMT", + "Content-MD5" : "QQW2oSlujuDWcnK9tCu26Q==", + "ETag" : "\"0x8D72813CB72961B\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77fa45d-301e-0094-2efc-5950b8000000", + "x-ms-client-request-id" : "627400ef-2096-4c17-adad-6f7f4fed83d5" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadpagefromurlmd5&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fa475-301e-0094-43fc-5950b8000000", + "Body" : "jtcuploadpagefromurlmd5jtcuploadpagefromurlmd5048731732a5c2b5a0d4556aFri, 23 Aug 2019 21:49:37 GMT\"0x8D72813CB5B7EC4\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:37 GMT", + "x-ms-client-request-id" : "7d7aabe0-8b08-4d3d-9bc7-6e4dda7422b1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlmd5048731732a5c2b5a0d4556a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fa488-301e-0094-54fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:37 GMT", + "x-ms-client-request-id" : "39820e80-5555-4762-ab8d-da7058250140" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadpagefromurlmd5048731732a5c2b5a0d4556a", "javablobuploadpagefromurlmd518392973fcdc1469414b", "javablobuploadpagefromurlmd5285042cf97b89c331c46", "827fdeae-f0c6-4d80-a686-730ffaf53e01" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurlmd5fail.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurlmd5fail.json new file mode 100644 index 0000000000000..50eb54aac0bcc --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurlmd5fail.json @@ -0,0 +1,170 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlmd5fail07879078104ec7f2e84f7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CB80B46B\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fa49f-301e-0094-67fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:37 GMT", + "x-ms-client-request-id" : "bd4857b2-9501-4b71-812c-6abcd14abfab" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlmd5fail07879078104ec7f2e84f7/javablobuploadpagefromurlmd5fail173688ee87512365f1", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CB85D4AC\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:38 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fa4ae-301e-0094-75fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:37 GMT", + "x-ms-client-request-id" : "889f6b27-ad66-4748-906d-999be8d47f0b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlmd5fail07879078104ec7f2e84f7?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CB8A6230\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:38 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fa4bf-301e-0094-02fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:37 GMT", + "x-ms-client-request-id" : "620f58ac-fd18-4fd9-b29d-f07c9760f47f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlmd5fail07879078104ec7f2e84f7/javablobuploadpagefromurlmd5fail28150913c6802161d3", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CB91BE79\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:38 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fa4df-301e-0094-20fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:37 GMT", + "x-ms-client-request-id" : "dfb056ed-9d13-4ba5-ba93-2060a190170f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlmd5fail07879078104ec7f2e84f7/javablobuploadpagefromurlmd5fail173688ee87512365f1?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "HE6jJbSz6Rw=", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:38 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:37 GMT", + "ETag" : "\"0x8D72813CB967A90\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77fa4f2-301e-0094-32fc-5950b8000000", + "x-ms-client-request-id" : "943e2e4d-bdc5-49b8-bbd1-a5ffdf25c0b6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlmd5fail07879078104ec7f2e84f7/javablobuploadpagefromurlmd5fail28150913c6802161d3?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "Md5Mismatch", + "retry-after" : "0", + "Content-Length" : "278", + "StatusCode" : "400", + "x-ms-request-id" : "f77fa4ff-301e-0094-3dfc-5950b8000000", + "Body" : "\nMd5MismatchThe MD5 value specified in the request did not match with the MD5 value calculated by the server.\nRequestId:f77fa4ff-301e-0094-3dfc-5950b8000000\nTime:2019-08-23T21:49:38.1715474Z", + "Date" : "Fri, 23 Aug 2019 21:49:37 GMT", + "x-ms-client-request-id" : "f87462a6-4c0b-4883-84c6-9d8c44b2b166", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadpagefromurlmd5fail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fa510-301e-0094-4dfc-5950b8000000", + "Body" : "jtcuploadpagefromurlmd5failjtcuploadpagefromurlmd5fail07879078104ec7f2e84f7Fri, 23 Aug 2019 21:49:38 GMT\"0x8D72813CB8A6230\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:37 GMT", + "x-ms-client-request-id" : "dc950782-7f3a-4a97-bb63-281f40d76755", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlmd5fail07879078104ec7f2e84f7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fa51d-301e-0094-58fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:37 GMT", + "x-ms-client-request-id" : "7dc935a8-107f-4f5d-b9d1-b050379cc292" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadpagefromurlmd5fail07879078104ec7f2e84f7", "javablobuploadpagefromurlmd5fail173688ee87512365f1", "javablobuploadpagefromurlmd5fail28150913c6802161d3", "7ba0ab91-cebf-4d36-97ba-577dd8a1387c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurlmin.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurlmin.json new file mode 100644 index 0000000000000..4abdaabdc9749 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurlmin.json @@ -0,0 +1,172 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlmin05414347c0dcd8b5bb4682b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CA8B6C8E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:36 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fa170-301e-0094-2ffc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:36 GMT", + "x-ms-client-request-id" : "c2a425fa-0fed-43fc-a8d5-49a3eca7c900" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlmin05414347c0dcd8b5bb4682b/javablobuploadpagefromurlmin123461a2c5ef7ddb8845", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CA903BE0\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:36 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fa17e-301e-0094-3cfc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:36 GMT", + "x-ms-client-request-id" : "27375374-ec44-48fa-823d-671b32b88b55" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlmin05414347c0dcd8b5bb4682b?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CA94CAF7\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:36 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fa185-301e-0094-43fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:36 GMT", + "x-ms-client-request-id" : "40810243-788d-4533-b768-a56de78bfa46" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlmin05414347c0dcd8b5bb4682b/javablobuploadpagefromurlmin2298870f6e471bd4c04f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CA99B413\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:36 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fa197-301e-0094-53fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:36 GMT", + "x-ms-client-request-id" : "405b86d1-da0a-4028-a480-383801a1d70f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlmin05414347c0dcd8b5bb4682b/javablobuploadpagefromurlmin2298870f6e471bd4c04f?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "zS1HXoguS/g=", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:36 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:36 GMT", + "ETag" : "\"0x8D72813CA9EBE5E\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77fa1a5-301e-0094-60fc-5950b8000000", + "x-ms-client-request-id" : "72258b40-b552-4377-a025-927e52b07f3d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlmin05414347c0dcd8b5bb4682b/javablobuploadpagefromurlmin123461a2c5ef7ddb8845?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:36 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:36 GMT", + "Content-MD5" : "kLc+qkShw1p54TUNAsyB5g==", + "ETag" : "\"0x8D72813CAD9168D\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77fa1b2-301e-0094-68fc-5950b8000000", + "x-ms-client-request-id" : "55b6bb31-41cb-425e-b7d8-2cf0d7a7932c" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadpagefromurlmin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fa265-301e-0094-02fc-5950b8000000", + "Body" : "jtcuploadpagefromurlminjtcuploadpagefromurlmin05414347c0dcd8b5bb4682bFri, 23 Aug 2019 21:49:36 GMT\"0x8D72813CA94CAF7\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:36 GMT", + "x-ms-client-request-id" : "7378c6af-1b44-461e-bd92-da0fa8fdef97", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlmin05414347c0dcd8b5bb4682b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fa274-301e-0094-0dfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:36 GMT", + "x-ms-client-request-id" : "9207852e-f977-484c-861b-9abc58effc2f" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadpagefromurlmin05414347c0dcd8b5bb4682b", "javablobuploadpagefromurlmin123461a2c5ef7ddb8845", "javablobuploadpagefromurlmin2298870f6e471bd4c04f", "dc5d6d9a-5818-4380-b8f2-d00f21d212ba" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurlrange.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurlrange.json new file mode 100644 index 0000000000000..f6dc1fff53672 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurlrange.json @@ -0,0 +1,223 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlrange0524383eff7910a9e74757?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CAF34764\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fa289-301e-0094-1ffc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:36 GMT", + "x-ms-client-request-id" : "9676beac-3131-46cf-b307-c26ee9a2408a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlrange0524383eff7910a9e74757/javablobuploadpagefromurlrange102713a1f06cd366bc4", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CAF8DB5F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fa2b4-301e-0094-42fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:36 GMT", + "x-ms-client-request-id" : "aa4bc6f2-b3cb-4f1b-bbcd-8f9ed6168738" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlrange0524383eff7910a9e74757?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CB01897A\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fa2d8-301e-0094-61fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:36 GMT", + "x-ms-client-request-id" : "57642ef0-f0a4-440f-9c8f-6505612adbae" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlrange0524383eff7910a9e74757/javablobuploadpagefromurlrange228561e60453311fac4", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CB067344\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fa2eb-301e-0094-72fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:36 GMT", + "x-ms-client-request-id" : "1e5858d2-1efd-4db2-902e-64bbeedb61d4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlrange0524383eff7910a9e74757/javablobuploadpagefromurlrange228561e60453311fac4?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "qjOn9fxQLWk=", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:37 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:36 GMT", + "ETag" : "\"0x8D72813CB0BF2E7\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77fa2fe-301e-0094-04fc-5950b8000000", + "x-ms-client-request-id" : "ee21543b-cebb-4d90-a4b8-108845fc8130" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlrange0524383eff7910a9e74757/javablobuploadpagefromurlrange341254165d6753de7c4", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CB11998E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fa30c-301e-0094-10fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:36 GMT", + "x-ms-client-request-id" : "efda67bf-665d-4a0f-a8fc-a8f37a0ae844" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlrange0524383eff7910a9e74757/javablobuploadpagefromurlrange341254165d6753de7c4?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:37 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:37 GMT", + "Content-MD5" : "IEtussILsMXOXaRTB5/zqg==", + "ETag" : "\"0x8D72813CB1F58A1\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77fa319-301e-0094-1dfc-5950b8000000", + "x-ms-client-request-id" : "be35653c-1a0c-4924-b05d-9dc3706d0702" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlrange0524383eff7910a9e74757/javablobuploadpagefromurlrange341254165d6753de7c4", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:37 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:49:37 GMT", + "x-ms-blob-type" : "PageBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "\"0x8D72813CB1F58A1\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:49:37 GMT", + "Content-Length" : "1024", + "x-ms-request-id" : "f77fa351-301e-0094-49fc-5950b8000000", + "Body" : "[-25, 119, 44, 28, -34, 106, 116, -86, -76, -4, 13, -26, -76, 49, -125, -123, 59, 26, -20, -2, -91, -97, -73, 122, -45, -122, -118, -120, 93, 14, 74, -106, -103, -37, 35, 108, 72, -70, 88, -114, 91, -1, -90, -60, 89, -57, 78, -106, 65, 22, -47, 127, 10, 50, 97, 109, -99, 110, 73, -103, -63, 96, 35, -71, -107, -35, -47, 87, 66, 23, -15, -15, 119, 34, -105, 19, -32, 124, -111, 24, -3, 69, 71, 20, 115, -121, -34, -68, -44, 18, -109, -109, 113, -64, 9, 92, 14, -57, -7, -83, -102, -50, -49, 95, 120, -118, -97, -60, 13, -58, 40, -110, -23, 27, -97, 13, -57, -55, -59, -95, -3, 23, 107, 89, -34, 84, -45, -68, -31, 69, -13, -110, -17, 94, 81, 36, 24, 11, -51, -68, -104, -50, 82, -86, 96, -107, -116, 5, 0, 30, 8, 88, 32, 2, -106, -58, -86, 8, -10, 62, 10, -35, 108, -59, 52, 95, 121, -5, -47, 75, -99, -48, -80, 4, 74, -118, 34, 51, -48, 108, -87, 114, 38, -62, 76, 33, -100, -3, 42, 60, 65, -36, 45, -27, -37, 1, 49, -75, 21, 126, 98, -4, -13, 28, 115, 115, -41, 112, -44, -127, -42, 75, 103, -98, -63, -105, 17, -114, -115, -44, -21, 71, 43, 79, 14, 29, -68, -10, 2, 28, -94, 114, 78, 25, -46, -32, 118, -19, -27, 50, 126, 50, -112, 103, 109, -50, -97, -47, 4, 54, -103, -110, 42, -49, 92, 7, 25, -54, 0, -98, -106, -6, -91, 123, 92, 64, 1, -56, 67, 7, 96, -38, 11, -61, 4, 67, 6, 69, -127, 110, 63, -8, -56, 127, 90, -30, 99, -92, -37, 104, 89, 58, 49, -118, -122, 90, 24, 21, 37, -85, -42, -31, -30, -77, -52, -74, 97, 68, 15, 104, 94, -3, -34, -47, 116, -32, -94, -15, -72, -123, -122, -19, 43, -87, -22, 76, 7, 35, 81, -75, -28, 37, 32, -59, 15, -29, -10, 94, -120, -102, 121, 31, -23, -110, -125, 26, 63, -42, 93, -113, 127, -6, 113, -108, 102, 52, 46, -44, -14, 72, -103, 61, 30, 8, -123, -118, -122, 4, 31, 51, 92, 94, -52, -125, 107, -15, -46, -48, -85, 72, -104, 2, -83, -66, -106, 66, -117, -111, 59, -41, -91, 102, -56, 93, 86, -109, 93, -41, -46, 123, -59, -71, 83, -47, -97, -36, 93, -77, -10, -10, -92, 103, -105, -87, 126, -66, 19, 118, -106, 69, -90, -103, 118, -8, 121, -3, -43, -87, 118, 39, -42, -54, -57, 0, 14, -119, 33, -17, 77, 58, 26, -1, 125, -110, 80, 44, 106, -116, -87, -58, -93, 55, -42, -95, 50, 14, -116, -16, 39, -111, -112, -89, 120, -73, -22, -91, -18, -51, -109, -100, -15, -4, -15, 71, 72, 110, -18, 126, -15, -112, 64, -10, 113, -42, -122, -65, 44, 33, -94, -69, -24, -83, -32, -33, -86, 19, 85, 111, 2, 113, -52, -48, 126, -112, 47, -87, -118, -66, 79, -76, 4, -65, 97, -111, 40, -41, 71, 98, -107, -46, -92, 104, 26, -85, -114, 46, 2, -77, 21, 116, -82, -29, -76, -64, -94, 114, 14, 16, -82, 35, -121, -96, -37, -126, -70, 31, 1, 62, -5, 63, 23, 83, 61, 107, 110, -45, 54, 18, 122, 120, -102, -44, -21, 105, -55, 120, -78, 42, -54, 43, -79, 58, 91, 75, 113, -76, -98, -28, -75, 19, 91, 75, -14, -103, 91, -107, 55, -1, 107, 68, 36, 110, 56, 3, 18, -42, -99, -69, -18, -47, 37, 42, -11, -71, -57, 50, 11, -110, -125, 47, -40, -28, 115, -6, 14, 95, -78, 27, -10, 93, 48, -92, -47, -121, -89, -100, 113, 91, 85, 48, -11, 115, -28, -125, 53, 15, 121, 93, 118, 42, -126, 60, 112, -22, 33, -35, -61, 0, 57, -86, -81, -114, 125, -16, -3, 8, -124, -48, 65, -85, 44, -31, -72, 1, 79, -39, -4, -78, 83, 61, -28, 41, -38, -92, -120, -123, -103, -125, 71, 27, -86, -120, -123, -18, -64, 82, -120, -123, -50, 89, -94, -67, -18, 9, -100, -62, -75, -34, 40, -34, -20, 97, -111, -81, 108, 95, -121, -119, -29, -76, 8, -99, 6, -49, 58, -63, 89, -71, 2, 28, 105, 7, -76, 94, 125, 54, -123, 72, -26, 88, 79, -114, 16, -5, -97, -83, 64, 81, 118, -85, 91, -11, 102, -112, 15, -86, -100, -37, 28, 2, -94, -41, -98, -44, 9, -42, 80, -79, 9, -19, -73, 41, 22, -50, 60, 43, -48, 87, 0, 110, -99, 78, 49, 93, -123, -88, -51, -81, -2, -61, -45, -12, 24, 31, -103, -111, -12, -60, -17, 65, 7, -57, -126, 108, -48, 6, 35, 42, 0, 81, 120, 104, 16, -47, -25, -66, 49, -36, 10, 68, 61, -47, -70, 13, -24, -76, -22, 27, 107, -90, 120, 59, 71, -39, -93, -94, -14, -72, 43, 55, -98, -102, 28, -13, 17, 109, -42, 29, 26, -1, -42, 12, -8, -84, 1, 24, -20, 20, 5, 39, -111, 49, 29, -37, 4, -12, -4, -17, 47, 89, -15, 91, 118, -60, -126, -112, 110, -66, -87, 116, -54, 86, 3, 119, -10, -63, 78, -104, 53, -22, -62, -108, 30, 62, -92, -10, 112, 100, 114, 103, 82, 56, -63, -2, -123, 126, -29, -13, 48, -3, -33, -53, 44, -98, -87, 74, -24, -117, 56, 7, 115, -17, -35, 93, 41, -80, -27, -6, -116, 22, 109, 103, 32, 76, 30, 69, -65, 121, -97, -15, 81, 9, 77, -96, -123, -57, -92, 79, -12, 113, -51, -37, 119, -53, 119, 10, 20, 95, 80, 58, -9, 62, 92, 6, -31, 103, 64, 70, -26, 119, -74, -1, 69, 117, -102, -103, 38, 18, 17, 2, -57, -47, 13, 102, -86, 98, -109, -70, -94, -31, 100, -117, -126, -5, 47, -113, 81, -13, -111, 13, -14, -123, 79, 70, -118, -41, -62, -112, 81, -74, -43, 86, 19, 37, 108, 121, 98, -91, -102, -66, 120, -89, 57, 55, -77, -102, -37, 13, 30, 119, 47, 109, -101, -97]", + "x-ms-client-request-id" : "55f995bf-be9d-474b-98b6-588c45322868", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadpagefromurlrange&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fa362-301e-0094-58fc-5950b8000000", + "Body" : "jtcuploadpagefromurlrangejtcuploadpagefromurlrange0524383eff7910a9e74757Fri, 23 Aug 2019 21:49:37 GMT\"0x8D72813CB01897A\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:37 GMT", + "x-ms-client-request-id" : "a64369ff-717d-47c2-ac2c-3993130b2e13", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlrange0524383eff7910a9e74757?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fa370-301e-0094-66fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:37 GMT", + "x-ms-client-request-id" : "47b8b16a-731f-4c15-ba5d-fdd86cd6a3c9" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadpagefromurlrange0524383eff7910a9e74757", "javablobuploadpagefromurlrange102713a1f06cd366bc4", "cfdbbc47-52b1-4092-9bd4-9566ded51940", "javablobuploadpagefromurlrange228561e60453311fac4", "javablobuploadpagefromurlrange341254165d6753de7c4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurlsourceac[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurlsourceac[0].json new file mode 100644 index 0000000000000..5addf679f2946 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurlsourceac[0].json @@ -0,0 +1,172 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceac083471eeab320b7b384d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CEE2F9BA\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:43 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fb0b4-301e-0094-03fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:43 GMT", + "x-ms-client-request-id" : "13862b6e-90dd-4f33-928d-3d32034d6690" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceac083471eeab320b7b384d/javablobuploadpagefromurlsourceac139957eb6e9c191990", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CEE87261\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:43 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fb0c7-301e-0094-12fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:43 GMT", + "x-ms-client-request-id" : "087e515c-84a2-4fbe-b3bb-579a30729109" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceac083471eeab320b7b384d?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CEED6F7C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:43 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fb0d4-301e-0094-1efc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:43 GMT", + "x-ms-client-request-id" : "4e05dade-2669-4d7e-91a7-0adac267a889" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceac083471eeab320b7b384d/javablobuploadpagefromurlsourceac29016432b211303656", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CEF7DF8F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:43 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fb0e8-301e-0094-30fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:43 GMT", + "x-ms-client-request-id" : "1c2da2bd-eb6e-45e9-8b2b-f67cb9e917a4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceac083471eeab320b7b384d/javablobuploadpagefromurlsourceac29016432b211303656?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "SGD0PwUaDv8=", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:43 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:43 GMT", + "ETag" : "\"0x8D72813CEFD10DF\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77fb0fd-301e-0094-41fc-5950b8000000", + "x-ms-client-request-id" : "44b2a104-84db-4730-8598-4496cf33c657" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceac083471eeab320b7b384d/javablobuploadpagefromurlsourceac139957eb6e9c191990?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:43 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:43 GMT", + "Content-MD5" : "Emj0Ay9RS0AB9ZQdbBAN6w==", + "ETag" : "\"0x8D72813CF072578\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77fb11b-301e-0094-5bfc-5950b8000000", + "x-ms-client-request-id" : "1aa7a4f4-6e49-41f4-9fcd-484c2df16818" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadpagefromurlsourceac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fb12c-301e-0094-68fc-5950b8000000", + "Body" : "jtcuploadpagefromurlsourceacjtcuploadpagefromurlsourceac083471eeab320b7b384dFri, 23 Aug 2019 21:49:43 GMT\"0x8D72813CEED6F7C\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:43 GMT", + "x-ms-client-request-id" : "7d4167a4-86fe-4023-8b4b-99f1a73411fd", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceac083471eeab320b7b384d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fb144-301e-0094-7afc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:43 GMT", + "x-ms-client-request-id" : "92f516fb-4d0b-4383-9ac0-4c8a22bc161e" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadpagefromurlsourceac083471eeab320b7b384d", "javablobuploadpagefromurlsourceac139957eb6e9c191990", "javablobuploadpagefromurlsourceac29016432b211303656", "e18ce199-c555-4bb8-9f57-2c1c4b26c892" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurlsourceac[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurlsourceac[1].json new file mode 100644 index 0000000000000..c1bfc096eb8cc --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurlsourceac[1].json @@ -0,0 +1,172 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceac04136697e7dd5587834e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CF1698F0\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fb158-301e-0094-0bfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:43 GMT", + "x-ms-client-request-id" : "b1109a96-b3d7-48e8-a628-13e8458d05a8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceac04136697e7dd5587834e/javablobuploadpagefromurlsourceac1245123b0e4fd6591c", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CF1BC400\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fb16a-301e-0094-19fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:43 GMT", + "x-ms-client-request-id" : "b6c37b11-8208-4884-a49c-466bf3d0b501" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceac04136697e7dd5587834e?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CF20728E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fb186-301e-0094-2dfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:43 GMT", + "x-ms-client-request-id" : "c1f59ff2-22f4-4469-947c-52cecf27fe5c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceac04136697e7dd5587834e/javablobuploadpagefromurlsourceac2250177bf28b557742", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CF340CF2\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fb1d5-301e-0094-69fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:43 GMT", + "x-ms-client-request-id" : "56e134cb-4ec1-46df-bc5a-8eb0e323776e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceac04136697e7dd5587834e/javablobuploadpagefromurlsourceac2250177bf28b557742?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "3bR+q9gz/ko=", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:44 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:43 GMT", + "ETag" : "\"0x8D72813CF391733\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77fb1ec-301e-0094-7ffc-5950b8000000", + "x-ms-client-request-id" : "944ff987-4094-4de9-8849-12ab6033f64e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceac04136697e7dd5587834e/javablobuploadpagefromurlsourceac1245123b0e4fd6591c?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:44 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:43 GMT", + "Content-MD5" : "nqAjnSAgrepnXxGBs96ktg==", + "ETag" : "\"0x8D72813CF3F332A\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77fb1f7-301e-0094-08fc-5950b8000000", + "x-ms-client-request-id" : "1f002f89-03ff-474d-bce3-609b8e90a72e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadpagefromurlsourceac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fb21f-301e-0094-28fc-5950b8000000", + "Body" : "jtcuploadpagefromurlsourceacjtcuploadpagefromurlsourceac04136697e7dd5587834eFri, 23 Aug 2019 21:49:44 GMT\"0x8D72813CF20728E\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:43 GMT", + "x-ms-client-request-id" : "2c66412a-8bf4-4882-99b2-b1eae5c7c920", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceac04136697e7dd5587834e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fb234-301e-0094-3afc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:44 GMT", + "x-ms-client-request-id" : "ca472aee-ebe6-4448-a1c7-27f5ec1f1537" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadpagefromurlsourceac04136697e7dd5587834e", "javablobuploadpagefromurlsourceac1245123b0e4fd6591c", "javablobuploadpagefromurlsourceac2250177bf28b557742", "3000a41e-28c2-44a0-8053-07384735d758" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurlsourceac[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurlsourceac[2].json new file mode 100644 index 0000000000000..a3dac778b6f61 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurlsourceac[2].json @@ -0,0 +1,172 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceac003536cfeff723966249?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CF50C967\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fb257-301e-0094-58fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:44 GMT", + "x-ms-client-request-id" : "90f70ece-f093-42c8-b1f5-cd4dee01f361" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceac003536cfeff723966249/javablobuploadpagefromurlsourceac14764426193015a8cc", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CF566A62\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fb270-301e-0094-70fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:44 GMT", + "x-ms-client-request-id" : "11e92ae8-9a13-487e-95e6-8be8aa61baa9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceac003536cfeff723966249?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CF5C032B\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fb287-301e-0094-04fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:44 GMT", + "x-ms-client-request-id" : "4e4060db-0bf6-41b7-9d38-fa0337edc153" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceac003536cfeff723966249/javablobuploadpagefromurlsourceac262376a24d90292b1c", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CF61699A\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fb2a5-301e-0094-1ffc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:44 GMT", + "x-ms-client-request-id" : "d8ad0a38-c728-48a9-9fc8-d5846338a48d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceac003536cfeff723966249/javablobuploadpagefromurlsourceac262376a24d90292b1c?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "wV0UJIXttYo=", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:44 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:44 GMT", + "ETag" : "\"0x8D72813CF6673E0\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77fb2b7-301e-0094-2ffc-5950b8000000", + "x-ms-client-request-id" : "46b25b3a-57e1-4ca1-85b6-d0307347bcbf" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceac003536cfeff723966249/javablobuploadpagefromurlsourceac14764426193015a8cc?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:44 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:44 GMT", + "Content-MD5" : "jnO6CRpRT7JfGgkYKSEoIw==", + "ETag" : "\"0x8D72813CF6C8FE0\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77fb2dd-301e-0094-50fc-5950b8000000", + "x-ms-client-request-id" : "a4cdf2a5-c0f1-4e59-aa70-153e0b829e20" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadpagefromurlsourceac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fb30d-301e-0094-79fc-5950b8000000", + "Body" : "jtcuploadpagefromurlsourceacjtcuploadpagefromurlsourceac003536cfeff723966249Fri, 23 Aug 2019 21:49:44 GMT\"0x8D72813CF5C032B\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:44 GMT", + "x-ms-client-request-id" : "8a2b90e9-8955-480d-b1da-ce9901e5f59f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceac003536cfeff723966249?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fb322-301e-0094-0efc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:44 GMT", + "x-ms-client-request-id" : "a197dd46-86e8-4e9a-a6e0-077b0d49e927" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadpagefromurlsourceac003536cfeff723966249", "javablobuploadpagefromurlsourceac14764426193015a8cc", "javablobuploadpagefromurlsourceac262376a24d90292b1c", "cec38362-b5da-4ab8-9752-d244df5e331d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurlsourceac[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurlsourceac[3].json new file mode 100644 index 0000000000000..966b3f351c80d --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurlsourceac[3].json @@ -0,0 +1,203 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceac0434832855f50d2de647?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CF80E554\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fb33e-301e-0094-28fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:44 GMT", + "x-ms-client-request-id" : "b25134f0-64be-45c1-b30d-b8dac3f900cb" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceac0434832855f50d2de647/javablobuploadpagefromurlsourceac134704b44a3d7e11a0", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CF90E9B2\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fb37e-301e-0094-61fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:44 GMT", + "x-ms-client-request-id" : "257c232a-28dc-4902-af83-bea949683622" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceac0434832855f50d2de647?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CF95706E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fb391-301e-0094-74fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:44 GMT", + "x-ms-client-request-id" : "1ae35c3f-06df-4f41-a792-711a62c8bf19" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceac0434832855f50d2de647/javablobuploadpagefromurlsourceac240695b96c16e7d037", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CF9A88FD\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fb39f-301e-0094-80fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:44 GMT", + "x-ms-client-request-id" : "b0ef0263-64fd-48ec-af1f-e1656379d8c0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceac0434832855f50d2de647/javablobuploadpagefromurlsourceac240695b96c16e7d037?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "Kg9joD4Js5s=", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:44 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:44 GMT", + "ETag" : "\"0x8D72813CF9FBA63\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77fb3b5-301e-0094-0efc-5950b8000000", + "x-ms-client-request-id" : "1861943b-1e6f-49da-b3b4-b9a7abab80d7" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceac0434832855f50d2de647/javablobuploadpagefromurlsourceac240695b96c16e7d037", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:44 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:49:44 GMT", + "x-ms-blob-type" : "PageBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72813CF9FBA63\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:49:44 GMT", + "Content-Length" : "512", + "x-ms-request-id" : "f77fb3cc-301e-0094-24fc-5950b8000000", + "x-ms-client-request-id" : "7d1fff92-86ae-41d8-b4d3-ddf0710a352a", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceac0434832855f50d2de647/javablobuploadpagefromurlsourceac134704b44a3d7e11a0?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:45 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:44 GMT", + "Content-MD5" : "QNqyuNU2+OuRtLvXCZS2OA==", + "ETag" : "\"0x8D72813CFAE8B15\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77fb3d9-301e-0094-2ffc-5950b8000000", + "x-ms-client-request-id" : "7b48dc0d-f104-48a9-b13c-a131113c33fb" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadpagefromurlsourceac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fb3e7-301e-0094-3dfc-5950b8000000", + "Body" : "jtcuploadpagefromurlsourceacjtcuploadpagefromurlsourceac0434832855f50d2de647Fri, 23 Aug 2019 21:49:44 GMT\"0x8D72813CF95706E\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:44 GMT", + "x-ms-client-request-id" : "99d7e4f9-39e6-4a10-838d-2fc956999d4e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceac0434832855f50d2de647?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fb3ff-301e-0094-4bfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:44 GMT", + "x-ms-client-request-id" : "e441877c-76e9-48db-adc1-6338c43a4370" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadpagefromurlsourceac0434832855f50d2de647", "javablobuploadpagefromurlsourceac134704b44a3d7e11a0", "javablobuploadpagefromurlsourceac240695b96c16e7d037", "8a2bfde4-78c7-42ee-9438-896bb34cda9e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurlsourceac[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurlsourceac[4].json new file mode 100644 index 0000000000000..7da8544c1de1e --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurlsourceac[4].json @@ -0,0 +1,172 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceac090935433cc4dc245c49?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CFBD8754\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fb41f-301e-0094-64fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:44 GMT", + "x-ms-client-request-id" : "292253a3-4bac-4f56-8866-b7b24f58f147" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceac090935433cc4dc245c49/javablobuploadpagefromurlsourceac1363286dae7c35963d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CFC30280\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fb436-301e-0094-77fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:44 GMT", + "x-ms-client-request-id" : "537a460c-d442-4c9d-a754-59f68e14b71e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceac090935433cc4dc245c49?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CFC7D716\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fb446-301e-0094-04fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:44 GMT", + "x-ms-client-request-id" : "d2b076d1-9cf4-4862-ad2c-7702edcad103" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceac090935433cc4dc245c49/javablobuploadpagefromurlsourceac28323298679a7c7a63", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CFCCF002\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fb450-301e-0094-0dfc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:44 GMT", + "x-ms-client-request-id" : "4177b900-f90c-4c5e-9c56-db46f1dda79c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceac090935433cc4dc245c49/javablobuploadpagefromurlsourceac28323298679a7c7a63?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "TWjRpgxn1xI=", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:45 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:44 GMT", + "ETag" : "\"0x8D72813CFD1FA4D\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77fb45e-301e-0094-18fc-5950b8000000", + "x-ms-client-request-id" : "3e853303-c186-4b94-b482-ba0ee882e50e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceac090935433cc4dc245c49/javablobuploadpagefromurlsourceac1363286dae7c35963d?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:45 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:44 GMT", + "Content-MD5" : "fbnGdLcZ+LyN94pU8sHHHQ==", + "ETag" : "\"0x8D72813CFD7EF31\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77fb468-301e-0094-20fc-5950b8000000", + "x-ms-client-request-id" : "79e3d415-f973-46dc-9ab8-f86ac9f071e7" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadpagefromurlsourceac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fb476-301e-0094-2efc-5950b8000000", + "Body" : "jtcuploadpagefromurlsourceacjtcuploadpagefromurlsourceac090935433cc4dc245c49Fri, 23 Aug 2019 21:49:45 GMT\"0x8D72813CFC7D716\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:44 GMT", + "x-ms-client-request-id" : "64563992-ba1e-4722-bbc4-2bcb4195e2d8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceac090935433cc4dc245c49?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fb480-301e-0094-36fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:45 GMT", + "x-ms-client-request-id" : "23ebe936-d2e1-4a40-9bbf-95997b3513d2" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadpagefromurlsourceac090935433cc4dc245c49", "javablobuploadpagefromurlsourceac1363286dae7c35963d", "javablobuploadpagefromurlsourceac28323298679a7c7a63", "9f741067-301a-4181-b30c-a0708b56b29d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurlsourceacfail[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurlsourceacfail[0].json new file mode 100644 index 0000000000000..bc63e44ad4c83 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurlsourceacfail[0].json @@ -0,0 +1,167 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceacfail011367ead38b78b074?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CFE6C3E1\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fb491-301e-0094-44fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:45 GMT", + "x-ms-client-request-id" : "2a9d6720-98a2-4362-a78b-627acb20c62e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceacfail011367ead38b78b074/javablobuploadpagefromurlsourceacfail11827717a9f6b948", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CFEC669D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fb4a1-301e-0094-50fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:45 GMT", + "x-ms-client-request-id" : "9e60d0b6-1ca3-4f7c-a700-a4195f253972" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceacfail011367ead38b78b074?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CFF13AE8\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fb4be-301e-0094-66fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:45 GMT", + "x-ms-client-request-id" : "0fe155e3-be7d-4e43-940f-3785d8f1402c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceacfail011367ead38b78b074/javablobuploadpagefromurlsourceacfail238544de1f6f57ed", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813CFF62D0C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fb4d0-301e-0094-75fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:45 GMT", + "x-ms-client-request-id" : "1aae9396-3124-4729-b535-29a3fc89f55d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceacfail011367ead38b78b074/javablobuploadpagefromurlsourceacfail238544de1f6f57ed?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "DgjCpAE193w=", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:45 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:45 GMT", + "ETag" : "\"0x8D72813CFFBACA1\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77fb4f1-301e-0094-0efc-5950b8000000", + "x-ms-client-request-id" : "28425b8e-167f-48af-8bad-a02c626051e4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceacfail011367ead38b78b074/javablobuploadpagefromurlsourceacfail11827717a9f6b948?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "CannotVerifyCopySource", + "retry-after" : "0", + "StatusCode" : "304", + "x-ms-request-id" : "f77fb501-301e-0094-1cfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:45 GMT", + "x-ms-client-request-id" : "b401ec7a-31cf-4d19-8418-ea9fb21541af" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadpagefromurlsourceacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fb515-301e-0094-2dfc-5950b8000000", + "Body" : "jtcuploadpagefromurlsourceacfailjtcuploadpagefromurlsourceacfail011367ead38b78b074Fri, 23 Aug 2019 21:49:45 GMT\"0x8D72813CFF13AE8\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:45 GMT", + "x-ms-client-request-id" : "34a44500-e574-4c7b-a32a-fde7f9167765", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceacfail011367ead38b78b074?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fb528-301e-0094-3cfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:45 GMT", + "x-ms-client-request-id" : "dd282255-fa53-44d7-b0a4-e6e37d1d25d0" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadpagefromurlsourceacfail011367ead38b78b074", "javablobuploadpagefromurlsourceacfail11827717a9f6b948", "javablobuploadpagefromurlsourceacfail238544de1f6f57ed", "318c7b1e-fb06-4393-8b15-582bfdb95774" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurlsourceacfail[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurlsourceacfail[1].json new file mode 100644 index 0000000000000..276e0e0383a93 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurlsourceacfail[1].json @@ -0,0 +1,170 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceacfail008119f7a09540615f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D0100064\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fb53d-301e-0094-4cfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:45 GMT", + "x-ms-client-request-id" : "b6180147-2625-49de-961a-d84668e3c584" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceacfail008119f7a09540615f/javablobuploadpagefromurlsourceacfail113327fa809e6e28", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D0155565\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fb552-301e-0094-5cfc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:45 GMT", + "x-ms-client-request-id" : "784df907-9344-4e40-bb40-390b3e158903" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceacfail008119f7a09540615f?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D01A025A\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fb571-301e-0094-75fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:45 GMT", + "x-ms-client-request-id" : "e334c863-0cfa-4266-8ba4-c9f767720546" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceacfail008119f7a09540615f/javablobuploadpagefromurlsourceacfail274355726974bfd9", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D0286CF6\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fb5a2-301e-0094-1ffc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:45 GMT", + "x-ms-client-request-id" : "8a290ac7-e8e6-4e04-8bc8-7c52e679b5ec" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceacfail008119f7a09540615f/javablobuploadpagefromurlsourceacfail274355726974bfd9?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "HDTtpLmaDkM=", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:45 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:45 GMT", + "ETag" : "\"0x8D72813D02DC561\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77fb5ae-301e-0094-29fc-5950b8000000", + "x-ms-client-request-id" : "5bdd9be9-413b-4a0a-9c75-65190d06a1b7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceacfail008119f7a09540615f/javablobuploadpagefromurlsourceacfail113327fa809e6e28?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "CannotVerifyCopySource", + "retry-after" : "0", + "Content-Length" : "251", + "StatusCode" : "412", + "x-ms-request-id" : "f77fb5c4-301e-0094-39fc-5950b8000000", + "Body" : "\nCannotVerifyCopySourceCould not verify the copy source within the specified time.\nRequestId:f77fb5c4-301e-0094-39fc-5950b8000000\nTime:2019-08-23T21:49:45.9046201Z", + "Date" : "Fri, 23 Aug 2019 21:49:45 GMT", + "x-ms-client-request-id" : "9c37eb5a-64d9-4fb3-b9e4-3899d32e4342", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadpagefromurlsourceacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fb5d3-301e-0094-45fc-5950b8000000", + "Body" : "jtcuploadpagefromurlsourceacfailjtcuploadpagefromurlsourceacfail008119f7a09540615fFri, 23 Aug 2019 21:49:45 GMT\"0x8D72813D01A025A\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:45 GMT", + "x-ms-client-request-id" : "6073d38b-2bda-410a-b9cc-6a84699ef42e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceacfail008119f7a09540615f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fb5dc-301e-0094-4dfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:45 GMT", + "x-ms-client-request-id" : "11f99999-7c22-402f-9a97-64e03118fd8b" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadpagefromurlsourceacfail008119f7a09540615f", "javablobuploadpagefromurlsourceacfail113327fa809e6e28", "javablobuploadpagefromurlsourceacfail274355726974bfd9", "1f8bfd8b-f417-4b95-92ed-f4490aaec705" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurlsourceacfail[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurlsourceacfail[2].json new file mode 100644 index 0000000000000..8dc430b5dc0a1 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurlsourceacfail[2].json @@ -0,0 +1,170 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceacfail078772ad68e850804c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D0480D76\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fb5ed-301e-0094-5afc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:45 GMT", + "x-ms-client-request-id" : "d176d10f-b00b-49b2-948d-316c7955be7a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceacfail078772ad68e850804c/javablobuploadpagefromurlsourceacfail1653426eca25a9a4", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D04D3C00\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fb606-301e-0094-6ffc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:45 GMT", + "x-ms-client-request-id" : "0c3e0c7e-9f6e-4a41-b62f-c2096c5f9bf5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceacfail078772ad68e850804c?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D051C17B\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fb625-301e-0094-0bfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:45 GMT", + "x-ms-client-request-id" : "918c0667-b244-4308-85b3-5d34fe762ac7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceacfail078772ad68e850804c/javablobuploadpagefromurlsourceacfail294663b8c474bd98", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D0570262\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fb63d-301e-0094-20fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:45 GMT", + "x-ms-client-request-id" : "487e8018-bc47-4c99-a184-a47806767608" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceacfail078772ad68e850804c/javablobuploadpagefromurlsourceacfail294663b8c474bd98?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "E6xqshffJRs=", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:46 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:45 GMT", + "ETag" : "\"0x8D72813D05C5AE4\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77fb653-301e-0094-31fc-5950b8000000", + "x-ms-client-request-id" : "c0fa57b9-33d1-45ad-9a0b-987914fb3b87" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceacfail078772ad68e850804c/javablobuploadpagefromurlsourceacfail1653426eca25a9a4?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "CannotVerifyCopySource", + "retry-after" : "0", + "Content-Length" : "251", + "StatusCode" : "412", + "x-ms-request-id" : "f77fb669-301e-0094-43fc-5950b8000000", + "Body" : "\nCannotVerifyCopySourceCould not verify the copy source within the specified time.\nRequestId:f77fb669-301e-0094-43fc-5950b8000000\nTime:2019-08-23T21:49:46.1768696Z", + "Date" : "Fri, 23 Aug 2019 21:49:45 GMT", + "x-ms-client-request-id" : "1eb2c955-7b99-4adf-b48b-26f3ddd51107", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadpagefromurlsourceacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fb677-301e-0094-51fc-5950b8000000", + "Body" : "jtcuploadpagefromurlsourceacfailjtcuploadpagefromurlsourceacfail078772ad68e850804cFri, 23 Aug 2019 21:49:46 GMT\"0x8D72813D051C17B\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:45 GMT", + "x-ms-client-request-id" : "9ebf4127-7d20-412f-81ee-ae6d6f4aab5b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceacfail078772ad68e850804c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fb684-301e-0094-5afc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:45 GMT", + "x-ms-client-request-id" : "06c685f2-af83-40a5-a664-15bbdc67002e" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadpagefromurlsourceacfail078772ad68e850804c", "javablobuploadpagefromurlsourceacfail1653426eca25a9a4", "javablobuploadpagefromurlsourceacfail294663b8c474bd98", "b97dc106-1156-4324-9071-097962704de0" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurlsourceacfail[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurlsourceacfail[3].json new file mode 100644 index 0000000000000..8eac5310c4c64 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagefromurlsourceacfail[3].json @@ -0,0 +1,198 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceacfail05384679d5a61d5863?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D0720D7A\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fb69c-301e-0094-71fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:45 GMT", + "x-ms-client-request-id" : "622aca2c-687b-40d3-96cd-9aaf08b2ef43" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceacfail05384679d5a61d5863/javablobuploadpagefromurlsourceacfail129529dd53360a67", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D0778AB6\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fb6b3-301e-0094-05fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:46 GMT", + "x-ms-client-request-id" : "bcce3375-7566-423c-8f86-e58926ecf94d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceacfail05384679d5a61d5863?restype=container&comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D07E8180\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fb6d0-301e-0094-1cfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:46 GMT", + "x-ms-client-request-id" : "6ba7204d-d872-49f3-8fa6-33b5e0c852a5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceacfail05384679d5a61d5863/javablobuploadpagefromurlsourceacfail2386839c36f1ab1b", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813D0834D7A\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77fb6de-301e-0094-27fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:46 GMT", + "x-ms-client-request-id" : "8068a0fe-360e-4d9e-b3c7-c4f546958021" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceacfail05384679d5a61d5863/javablobuploadpagefromurlsourceacfail2386839c36f1ab1b?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "y5SluIZFiGQ=", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:46 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:46 GMT", + "ETag" : "\"0x8D72813D08857B6\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77fb6f0-301e-0094-36fc-5950b8000000", + "x-ms-client-request-id" : "e2640a7e-6dc5-4e59-b839-451feba3dadb" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceacfail05384679d5a61d5863/javablobuploadpagefromurlsourceacfail2386839c36f1ab1b", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:46 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:49:46 GMT", + "x-ms-blob-type" : "PageBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "\"0x8D72813D08857B6\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:49:46 GMT", + "Content-Length" : "512", + "x-ms-request-id" : "f77fb700-301e-0094-43fc-5950b8000000", + "x-ms-client-request-id" : "13f23bfe-0c4f-4923-9b5d-f5af939a5bea", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceacfail05384679d5a61d5863/javablobuploadpagefromurlsourceacfail129529dd53360a67?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "CannotVerifyCopySource", + "retry-after" : "0", + "StatusCode" : "304", + "x-ms-request-id" : "f77fb70f-301e-0094-52fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:46 GMT", + "x-ms-client-request-id" : "72012394-2434-47a3-b853-9f0c82c3011e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadpagefromurlsourceacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77fb722-301e-0094-62fc-5950b8000000", + "Body" : "jtcuploadpagefromurlsourceacfailjtcuploadpagefromurlsourceacfail05384679d5a61d5863Fri, 23 Aug 2019 21:49:46 GMT\"0x8D72813D07E8180\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:46 GMT", + "x-ms-client-request-id" : "ec33da2a-3b7e-402b-9de7-18d41aa85b36", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagefromurlsourceacfail05384679d5a61d5863?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77fb730-301e-0094-6dfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:46 GMT", + "x-ms-client-request-id" : "c9ccd839-6474-45eb-b0a4-6a955eb8be3e" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadpagefromurlsourceacfail05384679d5a61d5863", "javablobuploadpagefromurlsourceacfail129529dd53360a67", "javablobuploadpagefromurlsourceacfail2386839c36f1ab1b", "b3ca6f45-d585-4168-a8b0-0b214c797985" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageia[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageia[0].json new file mode 100644 index 0000000000000..88c48d1e6b4a1 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageia[0].json @@ -0,0 +1,564 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageia0pageblobapitestuploadpageia2bb2563922e494?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C7B3DD10\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d06c1c-501e-00c0-1bfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:30 GMT", + "x-ms-client-request-id" : "9e2f139c-1428-4379-960d-eb3a9da2573c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageia0pageblobapitestuploadpageia2bb2563922e494/javablobuploadpageia1pageblobapitestuploadpageia2bb852232a3", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C7B98608\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d06c47-501e-00c0-43fc-59ba32000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:30 GMT", + "x-ms-client-request-id" : "432c96b5-6435-44c3-8c62-5022b791e5f5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageia0pageblobapitestuploadpageia2bb2563922e494/javablobuploadpageia1pageblobapitestuploadpageia2bb852232a3?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : null, + "Exception" : { + "Throwable" : { + "cause" : null, + "stackTrace" : [ { + "methodName" : "lambda$null$1", + "fileName" : "PageBlobClient.java", + "lineNumber" : 183, + "className" : "com.azure.storage.blob.PageBlobClient", + "nativeMethod" : false + }, { + "methodName" : "call", + "fileName" : "MonoCallable.java", + "lineNumber" : 91, + "className" : "reactor.core.publisher.MonoCallable", + "nativeMethod" : false + }, { + "methodName" : "drain", + "fileName" : "FluxConcatMap.java", + "lineNumber" : 402, + "className" : "reactor.core.publisher.FluxConcatMap$ConcatMapImmediate", + "nativeMethod" : false + }, { + "methodName" : "onNext", + "fileName" : "FluxConcatMap.java", + "lineNumber" : 244, + "className" : "reactor.core.publisher.FluxConcatMap$ConcatMapImmediate", + "nativeMethod" : false + }, { + "methodName" : "onNext", + "fileName" : "FluxMapFuseable.java", + "lineNumber" : 121, + "className" : "reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber", + "nativeMethod" : false + }, { + "methodName" : "slowPath", + "fileName" : "FluxRange.java", + "lineNumber" : 154, + "className" : "reactor.core.publisher.FluxRange$RangeSubscription", + "nativeMethod" : false + }, { + "methodName" : "request", + "fileName" : "FluxRange.java", + "lineNumber" : 109, + "className" : "reactor.core.publisher.FluxRange$RangeSubscription", + "nativeMethod" : false + }, { + "methodName" : "request", + "fileName" : "FluxMapFuseable.java", + "lineNumber" : 162, + "className" : "reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber", + "nativeMethod" : false + }, { + "methodName" : "onSubscribe", + "fileName" : "FluxConcatMap.java", + "lineNumber" : 229, + "className" : "reactor.core.publisher.FluxConcatMap$ConcatMapImmediate", + "nativeMethod" : false + }, { + "methodName" : "onSubscribe", + "fileName" : "FluxMapFuseable.java", + "lineNumber" : 90, + "className" : "reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber", + "nativeMethod" : false + }, { + "methodName" : "subscribe", + "fileName" : "FluxRange.java", + "lineNumber" : 68, + "className" : "reactor.core.publisher.FluxRange", + "nativeMethod" : false + }, { + "methodName" : "subscribe", + "fileName" : "FluxMapFuseable.java", + "lineNumber" : 63, + "className" : "reactor.core.publisher.FluxMapFuseable", + "nativeMethod" : false + }, { + "methodName" : "subscribe", + "fileName" : "FluxConcatMap.java", + "lineNumber" : 121, + "className" : "reactor.core.publisher.FluxConcatMap", + "nativeMethod" : false + }, { + "methodName" : "subscribe", + "fileName" : "Flux.java", + "lineNumber" : 7921, + "className" : "reactor.core.publisher.Flux", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "FluxSubscribeOn.java", + "lineNumber" : 194, + "className" : "reactor.core.publisher.FluxSubscribeOn$SubscribeOnSubscriber", + "nativeMethod" : false + }, { + "methodName" : "call", + "fileName" : "WorkerTask.java", + "lineNumber" : 84, + "className" : "reactor.core.scheduler.WorkerTask", + "nativeMethod" : false + }, { + "methodName" : "call", + "fileName" : "WorkerTask.java", + "lineNumber" : 37, + "className" : "reactor.core.scheduler.WorkerTask", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "FutureTask.java", + "lineNumber" : 266, + "className" : "java.util.concurrent.FutureTask", + "nativeMethod" : false + }, { + "methodName" : "access$201", + "fileName" : "ScheduledThreadPoolExecutor.java", + "lineNumber" : 180, + "className" : "java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "ScheduledThreadPoolExecutor.java", + "lineNumber" : 293, + "className" : "java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask", + "nativeMethod" : false + }, { + "methodName" : "runWorker", + "fileName" : "ThreadPoolExecutor.java", + "lineNumber" : 1149, + "className" : "java.util.concurrent.ThreadPoolExecutor", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "ThreadPoolExecutor.java", + "lineNumber" : 624, + "className" : "java.util.concurrent.ThreadPoolExecutor$Worker", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "Thread.java", + "lineNumber" : 748, + "className" : "java.lang.Thread", + "nativeMethod" : false + } ], + "message" : null, + "localizedMessage" : null, + "suppressed" : [ { + "cause" : null, + "stackTrace" : [ { + "methodName" : "blockingGet", + "fileName" : "BlockingSingleSubscriber.java", + "lineNumber" : 93, + "className" : "reactor.core.publisher.BlockingSingleSubscriber", + "nativeMethod" : false + }, { + "methodName" : "block", + "fileName" : "Mono.java", + "lineNumber" : 1494, + "className" : "reactor.core.publisher.Mono", + "nativeMethod" : false + }, { + "methodName" : "blockWithOptionalTimeout", + "fileName" : "Utility.java", + "lineNumber" : 235, + "className" : "com.azure.storage.common.Utility", + "nativeMethod" : false + }, { + "methodName" : "uploadPagesWithResponse", + "fileName" : "PageBlobClient.java", + "lineNumber" : 192, + "className" : "com.azure.storage.blob.PageBlobClient", + "nativeMethod" : false + }, { + "methodName" : "uploadPages", + "fileName" : "PageBlobClient.java", + "lineNumber" : 153, + "className" : "com.azure.storage.blob.PageBlobClient", + "nativeMethod" : false + }, { + "methodName" : "call", + "fileName" : null, + "lineNumber" : -1, + "className" : "com.azure.storage.blob.PageBlobClient$uploadPages$0", + "nativeMethod" : false + }, { + "methodName" : "defaultCall", + "fileName" : "CallSiteArray.java", + "lineNumber" : 48, + "className" : "org.codehaus.groovy.runtime.callsite.CallSiteArray", + "nativeMethod" : false + }, { + "methodName" : "call", + "fileName" : "AbstractCallSite.java", + "lineNumber" : 113, + "className" : "org.codehaus.groovy.runtime.callsite.AbstractCallSite", + "nativeMethod" : false + }, { + "methodName" : "call", + "fileName" : "AbstractCallSite.java", + "lineNumber" : 133, + "className" : "org.codehaus.groovy.runtime.callsite.AbstractCallSite", + "nativeMethod" : false + }, { + "methodName" : "$spock_feature_1_10", + "fileName" : "PageBlobAPITest.groovy", + "lineNumber" : 201, + "className" : "com.azure.storage.blob.PageBlobAPITest", + "nativeMethod" : false + }, { + "methodName" : "invoke0", + "fileName" : "NativeMethodAccessorImpl.java", + "lineNumber" : -2, + "className" : "sun.reflect.NativeMethodAccessorImpl", + "nativeMethod" : true + }, { + "methodName" : "invoke", + "fileName" : "NativeMethodAccessorImpl.java", + "lineNumber" : 62, + "className" : "sun.reflect.NativeMethodAccessorImpl", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "DelegatingMethodAccessorImpl.java", + "lineNumber" : 43, + "className" : "sun.reflect.DelegatingMethodAccessorImpl", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "Method.java", + "lineNumber" : 498, + "className" : "java.lang.reflect.Method", + "nativeMethod" : false + }, { + "methodName" : "invokeMethod", + "fileName" : "ReflectionUtil.java", + "lineNumber" : 188, + "className" : "org.spockframework.util.ReflectionUtil", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "MethodInfo.java", + "lineNumber" : 84, + "className" : "org.spockframework.runtime.model.MethodInfo", + "nativeMethod" : false + }, { + "methodName" : "invokeRaw", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 481, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 464, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "runFeatureMethod", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 406, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "doRunIteration", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 324, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 309, + "className" : "org.spockframework.runtime.BaseSpecRunner$6", + "nativeMethod" : false + }, { + "methodName" : "invokeRaw", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 481, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 464, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "runIteration", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 288, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "initializeAndRunIteration", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 278, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "runIterations", + "fileName" : "ParameterizedSpecRunner.java", + "lineNumber" : 139, + "className" : "org.spockframework.runtime.ParameterizedSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "runParameterizedFeature", + "fileName" : "ParameterizedSpecRunner.java", + "lineNumber" : 41, + "className" : "org.spockframework.runtime.ParameterizedSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "doRunFeature", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 262, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 246, + "className" : "org.spockframework.runtime.BaseSpecRunner$5", + "nativeMethod" : false + }, { + "methodName" : "invokeRaw", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 481, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 464, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "runFeature", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 238, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "runFeatures", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 188, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "doRunSpec", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 98, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 84, + "className" : "org.spockframework.runtime.BaseSpecRunner$1", + "nativeMethod" : false + }, { + "methodName" : "invokeRaw", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 481, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 464, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "runSpec", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 76, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 67, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "Sputnik.java", + "lineNumber" : 63, + "className" : "org.spockframework.runtime.Sputnik", + "nativeMethod" : false + }, { + "methodName" : "runChild", + "fileName" : "Suite.java", + "lineNumber" : 128, + "className" : "org.junit.runners.Suite", + "nativeMethod" : false + }, { + "methodName" : "runChild", + "fileName" : "Suite.java", + "lineNumber" : 27, + "className" : "org.junit.runners.Suite", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "ParentRunner.java", + "lineNumber" : 290, + "className" : "org.junit.runners.ParentRunner$3", + "nativeMethod" : false + }, { + "methodName" : "schedule", + "fileName" : "ParentRunner.java", + "lineNumber" : 71, + "className" : "org.junit.runners.ParentRunner$1", + "nativeMethod" : false + }, { + "methodName" : "runChildren", + "fileName" : "ParentRunner.java", + "lineNumber" : 288, + "className" : "org.junit.runners.ParentRunner", + "nativeMethod" : false + }, { + "methodName" : "access$000", + "fileName" : "ParentRunner.java", + "lineNumber" : 58, + "className" : "org.junit.runners.ParentRunner", + "nativeMethod" : false + }, { + "methodName" : "evaluate", + "fileName" : "ParentRunner.java", + "lineNumber" : 268, + "className" : "org.junit.runners.ParentRunner$2", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "ParentRunner.java", + "lineNumber" : 363, + "className" : "org.junit.runners.ParentRunner", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "JUnitCore.java", + "lineNumber" : 137, + "className" : "org.junit.runner.JUnitCore", + "nativeMethod" : false + }, { + "methodName" : "startRunnerWithArgs", + "fileName" : "JUnit4IdeaTestRunner.java", + "lineNumber" : 68, + "className" : "com.intellij.junit4.JUnit4IdeaTestRunner", + "nativeMethod" : false + }, { + "methodName" : "startRunnerWithArgs", + "fileName" : "IdeaTestRunner.java", + "lineNumber" : 47, + "className" : "com.intellij.rt.execution.junit.IdeaTestRunner$Repeater", + "nativeMethod" : false + }, { + "methodName" : "prepareStreamsAndStart", + "fileName" : "JUnitStarter.java", + "lineNumber" : 242, + "className" : "com.intellij.rt.execution.junit.JUnitStarter", + "nativeMethod" : false + }, { + "methodName" : "main", + "fileName" : "JUnitStarter.java", + "lineNumber" : 70, + "className" : "com.intellij.rt.execution.junit.JUnitStarter", + "nativeMethod" : false + } ], + "message" : "#block terminated with an error", + "localizedMessage" : "#block terminated with an error", + "suppressed" : [ ] + } ] + }, + "ClassName" : "java.lang.NullPointerException" + } + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadpageia&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b1e4d9f4-001e-00f1-03fc-59e1e5000000", + "Body" : "jtcuploadpageiajtcuploadpageia0pageblobapitestuploadpageia2bb2563922e494Fri, 23 Aug 2019 21:49:31 GMT\"0x8D72813C7B3DD10\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:30 GMT", + "x-ms-client-request-id" : "a6cc3972-6811-4c0f-8685-7106a6844309", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageia0pageblobapitestuploadpageia2bb2563922e494?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b1e4da22-001e-00f1-2dfc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:49:30 GMT", + "x-ms-client-request-id" : "edbda0a7-882f-4068-8227-b86cbe6ea51a" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadpageia0pageblobapitestuploadpageia2bb2563922e494", "javablobuploadpageia1pageblobapitestuploadpageia2bb852232a3" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageia[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageia[1].json new file mode 100644 index 0000000000000..82fb07f48eb88 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageia[1].json @@ -0,0 +1,564 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageia0pageblobapitestuploadpageia06695663f10aaa?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C7C99950\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e4da60-001e-00f1-68fc-59e1e5000000", + "Date" : "Fri, 23 Aug 2019 21:49:30 GMT", + "x-ms-client-request-id" : "02599998-2045-4a98-963a-44cee00346ba" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageia0pageblobapitestuploadpageia06695663f10aaa/javablobuploadpageia1pageblobapitestuploadpageia06655213525", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C7CEC0E3\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b1e4da9e-001e-00f1-22fc-59e1e5000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:30 GMT", + "x-ms-client-request-id" : "1deb9c47-5942-4576-b139-ebdd438a34a9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageia0pageblobapitestuploadpageia06695663f10aaa/javablobuploadpageia1pageblobapitestuploadpageia06655213525?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : null, + "Exception" : { + "Throwable" : { + "cause" : null, + "stackTrace" : [ { + "methodName" : "read", + "fileName" : "ByteArrayInputStream.java", + "lineNumber" : 180, + "className" : "java.io.ByteArrayInputStream", + "nativeMethod" : false + }, { + "methodName" : "lambda$null$1", + "fileName" : "PageBlobClient.java", + "lineNumber" : 183, + "className" : "com.azure.storage.blob.PageBlobClient", + "nativeMethod" : false + }, { + "methodName" : "call", + "fileName" : "MonoCallable.java", + "lineNumber" : 91, + "className" : "reactor.core.publisher.MonoCallable", + "nativeMethod" : false + }, { + "methodName" : "drain", + "fileName" : "FluxConcatMap.java", + "lineNumber" : 402, + "className" : "reactor.core.publisher.FluxConcatMap$ConcatMapImmediate", + "nativeMethod" : false + }, { + "methodName" : "onNext", + "fileName" : "FluxConcatMap.java", + "lineNumber" : 244, + "className" : "reactor.core.publisher.FluxConcatMap$ConcatMapImmediate", + "nativeMethod" : false + }, { + "methodName" : "onNext", + "fileName" : "FluxMapFuseable.java", + "lineNumber" : 121, + "className" : "reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber", + "nativeMethod" : false + }, { + "methodName" : "slowPath", + "fileName" : "FluxRange.java", + "lineNumber" : 154, + "className" : "reactor.core.publisher.FluxRange$RangeSubscription", + "nativeMethod" : false + }, { + "methodName" : "request", + "fileName" : "FluxRange.java", + "lineNumber" : 109, + "className" : "reactor.core.publisher.FluxRange$RangeSubscription", + "nativeMethod" : false + }, { + "methodName" : "request", + "fileName" : "FluxMapFuseable.java", + "lineNumber" : 162, + "className" : "reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber", + "nativeMethod" : false + }, { + "methodName" : "onSubscribe", + "fileName" : "FluxConcatMap.java", + "lineNumber" : 229, + "className" : "reactor.core.publisher.FluxConcatMap$ConcatMapImmediate", + "nativeMethod" : false + }, { + "methodName" : "onSubscribe", + "fileName" : "FluxMapFuseable.java", + "lineNumber" : 90, + "className" : "reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber", + "nativeMethod" : false + }, { + "methodName" : "subscribe", + "fileName" : "FluxRange.java", + "lineNumber" : 68, + "className" : "reactor.core.publisher.FluxRange", + "nativeMethod" : false + }, { + "methodName" : "subscribe", + "fileName" : "FluxMapFuseable.java", + "lineNumber" : 63, + "className" : "reactor.core.publisher.FluxMapFuseable", + "nativeMethod" : false + }, { + "methodName" : "subscribe", + "fileName" : "FluxConcatMap.java", + "lineNumber" : 121, + "className" : "reactor.core.publisher.FluxConcatMap", + "nativeMethod" : false + }, { + "methodName" : "subscribe", + "fileName" : "Flux.java", + "lineNumber" : 7921, + "className" : "reactor.core.publisher.Flux", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "FluxSubscribeOn.java", + "lineNumber" : 194, + "className" : "reactor.core.publisher.FluxSubscribeOn$SubscribeOnSubscriber", + "nativeMethod" : false + }, { + "methodName" : "call", + "fileName" : "WorkerTask.java", + "lineNumber" : 84, + "className" : "reactor.core.scheduler.WorkerTask", + "nativeMethod" : false + }, { + "methodName" : "call", + "fileName" : "WorkerTask.java", + "lineNumber" : 37, + "className" : "reactor.core.scheduler.WorkerTask", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "FutureTask.java", + "lineNumber" : 266, + "className" : "java.util.concurrent.FutureTask", + "nativeMethod" : false + }, { + "methodName" : "access$201", + "fileName" : "ScheduledThreadPoolExecutor.java", + "lineNumber" : 180, + "className" : "java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "ScheduledThreadPoolExecutor.java", + "lineNumber" : 293, + "className" : "java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask", + "nativeMethod" : false + }, { + "methodName" : "runWorker", + "fileName" : "ThreadPoolExecutor.java", + "lineNumber" : 1149, + "className" : "java.util.concurrent.ThreadPoolExecutor", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "ThreadPoolExecutor.java", + "lineNumber" : 624, + "className" : "java.util.concurrent.ThreadPoolExecutor$Worker", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "Thread.java", + "lineNumber" : 748, + "className" : "java.lang.Thread", + "nativeMethod" : false + } ], + "message" : null, + "localizedMessage" : null, + "suppressed" : [ { + "cause" : null, + "stackTrace" : [ { + "methodName" : "blockingGet", + "fileName" : "BlockingSingleSubscriber.java", + "lineNumber" : 93, + "className" : "reactor.core.publisher.BlockingSingleSubscriber", + "nativeMethod" : false + }, { + "methodName" : "block", + "fileName" : "Mono.java", + "lineNumber" : 1494, + "className" : "reactor.core.publisher.Mono", + "nativeMethod" : false + }, { + "methodName" : "blockWithOptionalTimeout", + "fileName" : "Utility.java", + "lineNumber" : 235, + "className" : "com.azure.storage.common.Utility", + "nativeMethod" : false + }, { + "methodName" : "uploadPagesWithResponse", + "fileName" : "PageBlobClient.java", + "lineNumber" : 192, + "className" : "com.azure.storage.blob.PageBlobClient", + "nativeMethod" : false + }, { + "methodName" : "uploadPages", + "fileName" : "PageBlobClient.java", + "lineNumber" : 153, + "className" : "com.azure.storage.blob.PageBlobClient", + "nativeMethod" : false + }, { + "methodName" : "call", + "fileName" : null, + "lineNumber" : -1, + "className" : "com.azure.storage.blob.PageBlobClient$uploadPages$0", + "nativeMethod" : false + }, { + "methodName" : "defaultCall", + "fileName" : "CallSiteArray.java", + "lineNumber" : 48, + "className" : "org.codehaus.groovy.runtime.callsite.CallSiteArray", + "nativeMethod" : false + }, { + "methodName" : "call", + "fileName" : null, + "lineNumber" : -1, + "className" : "com.azure.storage.blob.PageBlobClient$uploadPages$0", + "nativeMethod" : false + }, { + "methodName" : "$spock_feature_1_10", + "fileName" : "PageBlobAPITest.groovy", + "lineNumber" : 201, + "className" : "com.azure.storage.blob.PageBlobAPITest", + "nativeMethod" : false + }, { + "methodName" : "invoke0", + "fileName" : "NativeMethodAccessorImpl.java", + "lineNumber" : -2, + "className" : "sun.reflect.NativeMethodAccessorImpl", + "nativeMethod" : true + }, { + "methodName" : "invoke", + "fileName" : "NativeMethodAccessorImpl.java", + "lineNumber" : 62, + "className" : "sun.reflect.NativeMethodAccessorImpl", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "DelegatingMethodAccessorImpl.java", + "lineNumber" : 43, + "className" : "sun.reflect.DelegatingMethodAccessorImpl", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "Method.java", + "lineNumber" : 498, + "className" : "java.lang.reflect.Method", + "nativeMethod" : false + }, { + "methodName" : "invokeMethod", + "fileName" : "ReflectionUtil.java", + "lineNumber" : 188, + "className" : "org.spockframework.util.ReflectionUtil", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "MethodInfo.java", + "lineNumber" : 84, + "className" : "org.spockframework.runtime.model.MethodInfo", + "nativeMethod" : false + }, { + "methodName" : "invokeRaw", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 481, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 464, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "runFeatureMethod", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 406, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "doRunIteration", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 324, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 309, + "className" : "org.spockframework.runtime.BaseSpecRunner$6", + "nativeMethod" : false + }, { + "methodName" : "invokeRaw", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 481, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 464, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "runIteration", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 288, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "initializeAndRunIteration", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 278, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "runIterations", + "fileName" : "ParameterizedSpecRunner.java", + "lineNumber" : 139, + "className" : "org.spockframework.runtime.ParameterizedSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "runParameterizedFeature", + "fileName" : "ParameterizedSpecRunner.java", + "lineNumber" : 41, + "className" : "org.spockframework.runtime.ParameterizedSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "doRunFeature", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 262, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 246, + "className" : "org.spockframework.runtime.BaseSpecRunner$5", + "nativeMethod" : false + }, { + "methodName" : "invokeRaw", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 481, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 464, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "runFeature", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 238, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "runFeatures", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 188, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "doRunSpec", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 98, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 84, + "className" : "org.spockframework.runtime.BaseSpecRunner$1", + "nativeMethod" : false + }, { + "methodName" : "invokeRaw", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 481, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "invoke", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 464, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "runSpec", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 76, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "BaseSpecRunner.java", + "lineNumber" : 67, + "className" : "org.spockframework.runtime.BaseSpecRunner", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "Sputnik.java", + "lineNumber" : 63, + "className" : "org.spockframework.runtime.Sputnik", + "nativeMethod" : false + }, { + "methodName" : "runChild", + "fileName" : "Suite.java", + "lineNumber" : 128, + "className" : "org.junit.runners.Suite", + "nativeMethod" : false + }, { + "methodName" : "runChild", + "fileName" : "Suite.java", + "lineNumber" : 27, + "className" : "org.junit.runners.Suite", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "ParentRunner.java", + "lineNumber" : 290, + "className" : "org.junit.runners.ParentRunner$3", + "nativeMethod" : false + }, { + "methodName" : "schedule", + "fileName" : "ParentRunner.java", + "lineNumber" : 71, + "className" : "org.junit.runners.ParentRunner$1", + "nativeMethod" : false + }, { + "methodName" : "runChildren", + "fileName" : "ParentRunner.java", + "lineNumber" : 288, + "className" : "org.junit.runners.ParentRunner", + "nativeMethod" : false + }, { + "methodName" : "access$000", + "fileName" : "ParentRunner.java", + "lineNumber" : 58, + "className" : "org.junit.runners.ParentRunner", + "nativeMethod" : false + }, { + "methodName" : "evaluate", + "fileName" : "ParentRunner.java", + "lineNumber" : 268, + "className" : "org.junit.runners.ParentRunner$2", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "ParentRunner.java", + "lineNumber" : 363, + "className" : "org.junit.runners.ParentRunner", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "JUnitCore.java", + "lineNumber" : 137, + "className" : "org.junit.runner.JUnitCore", + "nativeMethod" : false + }, { + "methodName" : "startRunnerWithArgs", + "fileName" : "JUnit4IdeaTestRunner.java", + "lineNumber" : 68, + "className" : "com.intellij.junit4.JUnit4IdeaTestRunner", + "nativeMethod" : false + }, { + "methodName" : "startRunnerWithArgs", + "fileName" : "IdeaTestRunner.java", + "lineNumber" : 47, + "className" : "com.intellij.rt.execution.junit.IdeaTestRunner$Repeater", + "nativeMethod" : false + }, { + "methodName" : "prepareStreamsAndStart", + "fileName" : "JUnitStarter.java", + "lineNumber" : 242, + "className" : "com.intellij.rt.execution.junit.JUnitStarter", + "nativeMethod" : false + }, { + "methodName" : "main", + "fileName" : "JUnitStarter.java", + "lineNumber" : 70, + "className" : "com.intellij.rt.execution.junit.JUnitStarter", + "nativeMethod" : false + } ], + "message" : "#block terminated with an error", + "localizedMessage" : "#block terminated with an error", + "suppressed" : [ ] + } ] + }, + "ClassName" : "java.lang.IndexOutOfBoundsException" + } + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadpageia&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77f9839-301e-0094-20fc-5950b8000000", + "Body" : "jtcuploadpageiajtcuploadpageia0pageblobapitestuploadpageia06695663f10aaaFri, 23 Aug 2019 21:49:31 GMT\"0x8D72813C7C99950\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:31 GMT", + "x-ms-client-request-id" : "22a0fdd4-5f8d-418b-a1aa-54e4f7bd4500", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageia0pageblobapitestuploadpageia06695663f10aaa?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77f9847-301e-0094-2dfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:31 GMT", + "x-ms-client-request-id" : "415193a4-cb4e-4dc3-b0d8-9bf2de22ce59" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadpageia0pageblobapitestuploadpageia06695663f10aaa", "javablobuploadpageia1pageblobapitestuploadpageia06655213525", "21da381f-4380-49b1-9fb1-e09e5ade7198" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageia[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageia[2].json new file mode 100644 index 0000000000000..76def1f1f20b2 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpageia[2].json @@ -0,0 +1,105 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageia0pageblobapitestuploadpageia55342897de5359?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C7EB1E0B\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77f985c-301e-0094-40fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:31 GMT", + "x-ms-client-request-id" : "c52f0484-f671-4a3d-8a44-dab9a87ad9d2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageia0pageblobapitestuploadpageia55342897de5359/javablobuploadpageia1pageblobapitestuploadpageia55374230cb8", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C7F1BAD6\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:32 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77f987c-301e-0094-58fc-5950b8000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:31 GMT", + "x-ms-client-request-id" : "7e16769e-f513-4151-9d51-ad1b22140db8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageia0pageblobapitestuploadpageia55342897de5359/javablobuploadpageia1pageblobapitestuploadpageia55374230cb8?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "InvalidPageRange", + "retry-after" : "0", + "Content-Length" : "221", + "StatusCode" : "416", + "x-ms-request-id" : "f77f9898-301e-0094-71fc-5950b8000000", + "Body" : "InvalidPageRangeThe page range specified is invalid.\nRequestId:f77f9898-301e-0094-71fc-5950b8000000\nTime:2019-08-23T21:49:32.0609580Z", + "Date" : "Fri, 23 Aug 2019 21:49:31 GMT", + "x-ms-client-request-id" : "6ec4334c-266c-4a8c-9771-f51c32e3e12d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadpageia&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77f98af-301e-0094-07fc-5950b8000000", + "Body" : "jtcuploadpageiajtcuploadpageia0pageblobapitestuploadpageia55342897de5359Fri, 23 Aug 2019 21:49:31 GMT\"0x8D72813C7EB1E0B\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:31 GMT", + "x-ms-client-request-id" : "2049b854-16cb-4ee0-b175-f1ae481572fd", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpageia0pageblobapitestuploadpageia55342897de5359?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77f98c4-301e-0094-16fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:49:31 GMT", + "x-ms-client-request-id" : "ee5d1337-2d54-493b-a462-a538d9162e02" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadpageia0pageblobapitestuploadpageia55342897de5359", "javablobuploadpageia1pageblobapitestuploadpageia55374230cb8", "35bdf439-28b6-46dc-b3a8-c41d452c439a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagemin.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagemin.json new file mode 100644 index 0000000000000..c2836e3f6e6e1 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/PageBlobAPITestuploadpagemin.json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagemin0pageblobapitestuploadpagemind766607786d2a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C79B1EE2\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d06b81-501e-00c0-10fc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:30 GMT", + "x-ms-client-request-id" : "2cedd004-51e3-4320-9942-95cba96fb235" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagemin0pageblobapitestuploadpagemind766607786d2a/javablobuploadpagemin1pageblobapitestuploadpagemind7690817ea", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813C79FDD32\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "77d06ba9-501e-00c0-34fc-59ba32000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:30 GMT", + "x-ms-client-request-id" : "57859da3-5726-4eff-95f6-2fe8ca5e5182" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagemin0pageblobapitestuploadpagemind766607786d2a/javablobuploadpagemin1pageblobapitestuploadpagemind7690817ea?comp=page", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "XCXZzDaDf+k=", + "x-ms-blob-sequence-number" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:49:31 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:49:30 GMT", + "ETag" : "\"0x8D72813C7A49952\"", + "Content-Length" : "0", + "x-ms-request-id" : "77d06bc2-501e-00c0-4afc-59ba32000000", + "x-ms-client-request-id" : "07c1f4a2-f729-4cc9-a280-3c26f4ab7fdc" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcuploadpagemin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "77d06bdc-501e-00c0-63fc-59ba32000000", + "Body" : "jtcuploadpageminjtcuploadpagemin0pageblobapitestuploadpagemind766607786d2aFri, 23 Aug 2019 21:49:31 GMT\"0x8D72813C79B1EE2\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:49:30 GMT", + "x-ms-client-request-id" : "451d0d92-b21c-4f03-9c7b-7d99699d1e51", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcuploadpagemin0pageblobapitestuploadpagemind766607786d2a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "77d06bf9-501e-00c0-7bfc-59ba32000000", + "Date" : "Fri, 23 Aug 2019 21:49:30 GMT", + "x-ms-client-request-id" : "bf31949c-b466-428c-ba2a-d6d1a021fa4e" + }, + "Exception" : null + } ], + "variables" : [ "jtcuploadpagemin0pageblobapitestuploadpagemind766607786d2a", "javablobuploadpagemin1pageblobapitestuploadpagemind7690817ea", "251c27de-89eb-4a0f-893f-c97dd30fcffe" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ProgressReporterTestreportprogressparallel.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ProgressReporterTestreportprogressparallel.json new file mode 100644 index 0000000000000..1838dc415ea1f --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ProgressReporterTestreportprogressparallel.json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreportprogressparallel028073462110df6ca64fc6?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813E3B37D04\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77ffad5-301e-0094-11fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:18 GMT", + "x-ms-client-request-id" : "7bf24824-ced7-449f-8b21-65d76ca4b851" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcreportprogressparallel&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f78001ea-301e-0094-50fc-5950b8000000", + "Body" : "jtcreportprogressparalleljtcreportprogressparallel028073462110df6ca64fc6Fri, 23 Aug 2019 21:50:18 GMT\"0x8D72813E3B37D04\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:50:21 GMT", + "x-ms-client-request-id" : "58b5cfb5-c09b-407c-a49d-b7aa80b73d65", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreportprogressparallel028073462110df6ca64fc6?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7800200-301e-0094-61fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:21 GMT", + "x-ms-client-request-id" : "70662f81-e20b-4f74-8cc3-40f72c71a0a1" + }, + "Exception" : null + } ], + "variables" : [ "jtcreportprogressparallel028073462110df6ca64fc6", "d483aa21-ff84-473d-ac9e-9c28d19c6a07", "73f5c3c0-510f-49aa-87ae-6134ddd7ff36", "9bccac4b-f898-4826-9f76-1fe5bd2fab30" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ProgressReporterTestreportprogresssequential.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ProgressReporterTestreportprogresssequential.json new file mode 100644 index 0000000000000..0454e7f24c9de --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ProgressReporterTestreportprogresssequential.json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreportprogresssequential063585826d7b5fed3a434?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813E36C5135\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77ff9f4-301e-0094-4afc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:17 GMT", + "x-ms-client-request-id" : "1a52a194-ac6f-46ab-8a03-72adf80ead33" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcreportprogresssequential&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77ffa36-301e-0094-05fc-5950b8000000", + "Body" : "jtcreportprogresssequentialjtcreportprogresssequential063585826d7b5fed3a434Fri, 23 Aug 2019 21:50:18 GMT\"0x8D72813E36C5135\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:50:17 GMT", + "x-ms-client-request-id" : "43f951f0-2952-4082-8834-fdc7bc97c827", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreportprogresssequential063585826d7b5fed3a434?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77ffa3b-301e-0094-0afc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:17 GMT", + "x-ms-client-request-id" : "9a4569b8-72ad-429d-a8cc-feca707c9ac9" + }, + "Exception" : null + } ], + "variables" : [ "jtcreportprogresssequential063585826d7b5fed3a434", "3041d0cb-2539-4764-9088-f50dd6ea8401", "9584253a-e8d6-4915-b7c1-7eb601c9940e", "de42eb87-8090-418e-a4ff-e3d414b5bda4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ProgressReporterTestreportprogresssequentialnetworktest.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ProgressReporterTestreportprogresssequentialnetworktest.json new file mode 100644 index 0000000000000..f0a6794ca9ad7 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ProgressReporterTestreportprogresssequentialnetworktest.json @@ -0,0 +1,86 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreportprogresssequentialnetworktest0666662df218c6e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813E388E093\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f77ffa4c-301e-0094-1afc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:17 GMT", + "x-ms-client-request-id" : "c162f443-739c-4b58-a468-d4e023e7dffc" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreportprogresssequentialnetworktest0666662df218c6e/javablobreportprogresssequentialnetworktest109770a69d292", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "XCuSfj7xjr0=", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:18 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:50:18 GMT", + "Content-MD5" : "hDmlCXyc0xGEQJGQaNCbFg==", + "ETag" : "\"0x8D72813E39F6371\"", + "Content-Length" : "0", + "x-ms-request-id" : "f77ffa62-301e-0094-2afc-5950b8000000", + "x-ms-client-request-id" : "4d9de0f1-236c-46b9-8a7c-bd99d88ab366" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcreportprogresssequentialnetworktest&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f77ffaac-301e-0094-6efc-5950b8000000", + "Body" : "jtcreportprogresssequentialnetworktestjtcreportprogresssequentialnetworktest0666662df218c6eFri, 23 Aug 2019 21:50:18 GMT\"0x8D72813E388E093\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:50:18 GMT", + "x-ms-client-request-id" : "ea7c420a-042d-4e12-b972-f016269f816b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcreportprogresssequentialnetworktest0666662df218c6e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f77ffabb-301e-0094-7bfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:18 GMT", + "x-ms-client-request-id" : "d4a99771-efb2-45b8-8d45-227718a80401" + }, + "Exception" : null + } ], + "variables" : [ "jtcreportprogresssequentialnetworktest0666662df218c6e", "7f3f93c6-0c7e-466e-a854-ac2aad16513b", "javablobreportprogresssequentialnetworktest109770a69d292" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/RetryTestretriesexponentialdelay.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/RetryTestretriesexponentialdelay.json new file mode 100644 index 0000000000000..0311ed60eab8f --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/RetryTestretriesexponentialdelay.json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcretriesexponentialdelay085903814ae7a528a3440?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813F5F4F3CD\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:49 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7803f60-301e-0094-69fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:48 GMT", + "x-ms-client-request-id" : "0ed4c4f9-5c1c-4691-85a3-570ecc0684de" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcretriesexponentialdelay&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7805f7c-301e-0094-12fc-5950b8000000", + "Body" : "jtcretriesexponentialdelayjtcretriesexponentialdelay085903814ae7a528a3440Fri, 23 Aug 2019 21:50:49 GMT\"0x8D72813F5F4F3CD\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:02 GMT", + "x-ms-client-request-id" : "3ffb4490-2d49-44fd-a792-0dbe4f44bde5", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcretriesexponentialdelay085903814ae7a528a3440?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7805f8f-301e-0094-24fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:02 GMT", + "x-ms-client-request-id" : "580709b0-d196-47b8-b434-51b70aa48ce5" + }, + "Exception" : null + } ], + "variables" : [ "jtcretriesexponentialdelay085903814ae7a528a3440" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/RetryTestretriesfixeddelay.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/RetryTestretriesfixeddelay.json new file mode 100644 index 0000000000000..02ad751e65a86 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/RetryTestretriesfixeddelay.json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcretriesfixeddelay0retrytestretriesfixeddelay9bf5826460ff?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813FDF15D27\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7805fbd-301e-0094-51fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:02 GMT", + "x-ms-client-request-id" : "efbda475-2b90-4565-9ddc-8f96566c3cb1" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcretriesfixeddelay&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7806a88-301e-0094-26fc-5950b8000000", + "Body" : "jtcretriesfixeddelayjtcretriesfixeddelay0retrytestretriesfixeddelay9bf5826460ffFri, 23 Aug 2019 21:51:02 GMT\"0x8D72813FDF15D27\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:05 GMT", + "x-ms-client-request-id" : "b791a59b-1fd3-49b7-ae20-f856968d91fb", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcretriesfixeddelay0retrytestretriesfixeddelay9bf5826460ff?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7806a9a-301e-0094-37fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:05 GMT", + "x-ms-client-request-id" : "c9b15fb8-f371-4000-831a-dbf3b1c4a44e" + }, + "Exception" : null + } ], + "variables" : [ "jtcretriesfixeddelay0retrytestretriesfixeddelay9bf5826460ff" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/RetryTestretriesnetworkerror.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/RetryTestretriesnetworkerror.json new file mode 100644 index 0000000000000..9c55254cfd32c --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/RetryTestretriesnetworkerror.json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcretriesnetworkerror0retrytestretriesnetworkerrorb0b32285e4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813F0AFC1C1\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7802e09-301e-0094-0dfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:39 GMT", + "x-ms-client-request-id" : "8aec0669-9249-4e5a-bc00-1d58556feef4" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcretriesnetworkerror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7803198-301e-0094-6dfc-5950b8000000", + "Body" : "jtcretriesnetworkerrorjtcretriesnetworkerror0retrytestretriesnetworkerrorb0b32285e4Fri, 23 Aug 2019 21:50:40 GMT\"0x8D72813F0AFC1C1\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:50:41 GMT", + "x-ms-client-request-id" : "c1ccb45b-2163-41e7-860f-63ca8ebf33b6", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcretriesnetworkerror0retrytestretriesnetworkerrorb0b32285e4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f78031ac-301e-0094-79fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:41 GMT", + "x-ms-client-request-id" : "3feb583e-3000-4760-914f-df80cee39dd7" + }, + "Exception" : null + } ], + "variables" : [ "jtcretriesnetworkerror0retrytestretriesnetworkerrorb0b32285e4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/RetryTestretriesnonreplyableflux.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/RetryTestretriesnonreplyableflux.json new file mode 100644 index 0000000000000..cd7fbd331be10 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/RetryTestretriesnonreplyableflux.json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcretriesnonreplyableflux0625999221f7600e5e4b5?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281400032D04\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7806ab3-301e-0094-4ffc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:05 GMT", + "x-ms-client-request-id" : "cffded6e-abeb-44dd-bfbd-d1620262c7ce" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcretriesnonreplyableflux&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7806e17-301e-0094-60fc-5950b8000000", + "Body" : "jtcretriesnonreplyablefluxjtcretriesnonreplyableflux0625999221f7600e5e4b5Fri, 23 Aug 2019 21:51:06 GMT\"0x8D7281400032D04\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:06 GMT", + "x-ms-client-request-id" : "20638adb-39d5-4b10-a3a1-8ed6fccadbe1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcretriesnonreplyableflux0625999221f7600e5e4b5?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7806e24-301e-0094-6cfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:06 GMT", + "x-ms-client-request-id" : "3793cdcf-2075-4940-ba24-3c53117da4ab" + }, + "Exception" : null + } ], + "variables" : [ "jtcretriesnonreplyableflux0625999221f7600e5e4b5" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/RetryTestretriesnonretryable.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/RetryTestretriesnonretryable.json new file mode 100644 index 0000000000000..503515c549c97 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/RetryTestretriesnonretryable.json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcretriesnonretryable0retrytestretriesnonretryable0f51911100?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813F0037AEA\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7802be5-301e-0094-2ffc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:38 GMT", + "x-ms-client-request-id" : "709b8ddd-d631-4c8f-bcb2-75e301e08bf2" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcretriesnonretryable&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7802bf2-301e-0094-3afc-5950b8000000", + "Body" : "jtcretriesnonretryablejtcretriesnonretryable0retrytestretriesnonretryable0f51911100Fri, 23 Aug 2019 21:50:39 GMT\"0x8D72813F0037AEA\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:50:38 GMT", + "x-ms-client-request-id" : "2b32aa35-b50f-4f9c-8e15-5e88b8218cd8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcretriesnonretryable0retrytestretriesnonretryable0f51911100?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7802c0b-301e-0094-50fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:38 GMT", + "x-ms-client-request-id" : "481ce40d-1526-4112-9752-54e095a30c11" + }, + "Exception" : null + } ], + "variables" : [ "jtcretriesnonretryable0retrytestretriesnonretryable0f51911100" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/RetryTestretriesnonretryablesecondary.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/RetryTestretriesnonretryablesecondary.json new file mode 100644 index 0000000000000..6b7407e116a66 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/RetryTestretriesnonretryablesecondary.json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcretriesnonretryablesecondary005045c10c06961e3a4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813F019EE67\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7802c31-301e-0094-73fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:39 GMT", + "x-ms-client-request-id" : "cbecc5ef-8780-4872-992c-687720059b08" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcretriesnonretryablesecondary&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7802de1-301e-0094-6dfc-5950b8000000", + "Body" : "jtcretriesnonretryablesecondaryjtcretriesnonretryablesecondary005045c10c06961e3a4Fri, 23 Aug 2019 21:50:39 GMT\"0x8D72813F019EE67\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:50:39 GMT", + "x-ms-client-request-id" : "8753c283-b8db-45d2-9ae3-220d1ae28d79", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcretriesnonretryablesecondary005045c10c06961e3a4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7802df2-301e-0094-7cfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:39 GMT", + "x-ms-client-request-id" : "ba45768a-2941-433d-9242-9c089b8b1873" + }, + "Exception" : null + } ], + "variables" : [ "jtcretriesnonretryablesecondary005045c10c06961e3a4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/RetryTestretriesoptionsinvalid[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/RetryTestretriesoptionsinvalid[0].json new file mode 100644 index 0000000000000..20212bd7b701e --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/RetryTestretriesoptionsinvalid[0].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcretriesoptionsinvalid0325412e3c497f51e14bd2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281400CB8E07\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7806e34-301e-0094-7afc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:06 GMT", + "x-ms-client-request-id" : "848596ad-0ebe-4f6c-a3b6-b8f1bde6326d" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcretriesoptionsinvalid&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7806e4d-301e-0094-12fc-5950b8000000", + "Body" : "jtcretriesoptionsinvalidjtcretriesoptionsinvalid0325412e3c497f51e14bd2Fri, 23 Aug 2019 21:51:07 GMT\"0x8D7281400CB8E07\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:07 GMT", + "x-ms-client-request-id" : "82dc6504-44ce-4f29-b25b-b3609a8169eb", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcretriesoptionsinvalid0325412e3c497f51e14bd2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7806e62-301e-0094-21fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:07 GMT", + "x-ms-client-request-id" : "1635fbcf-1e91-4a5b-be15-c304c139b821" + }, + "Exception" : null + } ], + "variables" : [ "jtcretriesoptionsinvalid0325412e3c497f51e14bd2" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/RetryTestretriesoptionsinvalid[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/RetryTestretriesoptionsinvalid[1].json new file mode 100644 index 0000000000000..e6b3b21f74394 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/RetryTestretriesoptionsinvalid[1].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcretriesoptionsinvalid050397a2242981b3e64b41?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281400DA3768\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7806e86-301e-0094-41fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:07 GMT", + "x-ms-client-request-id" : "3eb2735a-bd41-44fb-9c6d-fc43c7ed6242" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcretriesoptionsinvalid&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7806e9d-301e-0094-56fc-5950b8000000", + "Body" : "jtcretriesoptionsinvalidjtcretriesoptionsinvalid050397a2242981b3e64b41Fri, 23 Aug 2019 21:51:07 GMT\"0x8D7281400DA3768\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:07 GMT", + "x-ms-client-request-id" : "ac904cac-6eb8-420d-beb6-a42cdaecadc9", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcretriesoptionsinvalid050397a2242981b3e64b41?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7806eab-301e-0094-64fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:07 GMT", + "x-ms-client-request-id" : "ae22a975-01ea-4403-a6cd-1ea70f410137" + }, + "Exception" : null + } ], + "variables" : [ "jtcretriesoptionsinvalid050397a2242981b3e64b41" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/RetryTestretriesoptionsinvalid[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/RetryTestretriesoptionsinvalid[2].json new file mode 100644 index 0000000000000..f3cb78f8d465c --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/RetryTestretriesoptionsinvalid[2].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcretriesoptionsinvalid08356950a966f1554d4571?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281400EB7976\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7806ec1-301e-0094-78fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:07 GMT", + "x-ms-client-request-id" : "252e136a-12f1-43b9-9365-aa95d20558b8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcretriesoptionsinvalid&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7806ee7-301e-0094-17fc-5950b8000000", + "Body" : "jtcretriesoptionsinvalidjtcretriesoptionsinvalid08356950a966f1554d4571Fri, 23 Aug 2019 21:51:07 GMT\"0x8D7281400EB7976\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:07 GMT", + "x-ms-client-request-id" : "1c5289b6-a01a-4f19-a522-28d72afc4a0f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcretriesoptionsinvalid08356950a966f1554d4571?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7806ef3-301e-0094-23fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:07 GMT", + "x-ms-client-request-id" : "f8dfcb69-58df-436b-b0ad-866bbf897878" + }, + "Exception" : null + } ], + "variables" : [ "jtcretriesoptionsinvalid08356950a966f1554d4571" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/RetryTestretriesoptionsinvalid[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/RetryTestretriesoptionsinvalid[3].json new file mode 100644 index 0000000000000..5a0450ce455f8 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/RetryTestretriesoptionsinvalid[3].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcretriesoptionsinvalid02396408ae872d2e8b4752?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281400FBF818\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7806f0a-301e-0094-38fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:07 GMT", + "x-ms-client-request-id" : "2d7b6803-e753-4e7d-bde2-59eddc940bbb" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcretriesoptionsinvalid&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7806f1e-301e-0094-47fc-5950b8000000", + "Body" : "jtcretriesoptionsinvalidjtcretriesoptionsinvalid02396408ae872d2e8b4752Fri, 23 Aug 2019 21:51:07 GMT\"0x8D7281400FBF818\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:07 GMT", + "x-ms-client-request-id" : "58b7f54c-98a0-4ac0-a275-3ca96ca5f533", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcretriesoptionsinvalid02396408ae872d2e8b4752?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7806f34-301e-0094-5bfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:07 GMT", + "x-ms-client-request-id" : "dc2967e0-c9ce-42ae-bb70-f69a3ffb24a7" + }, + "Exception" : null + } ], + "variables" : [ "jtcretriesoptionsinvalid02396408ae872d2e8b4752" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/RetryTestretriesoptionsinvalid[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/RetryTestretriesoptionsinvalid[4].json new file mode 100644 index 0000000000000..793d239532363 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/RetryTestretriesoptionsinvalid[4].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcretriesoptionsinvalid0634869784d1cc837848ab?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72814010A7A75\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7806f50-301e-0094-76fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:07 GMT", + "x-ms-client-request-id" : "feef024b-2ab1-481f-be71-b658913bdd7a" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcretriesoptionsinvalid&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7806f74-301e-0094-14fc-5950b8000000", + "Body" : "jtcretriesoptionsinvalidjtcretriesoptionsinvalid0634869784d1cc837848abFri, 23 Aug 2019 21:51:07 GMT\"0x8D72814010A7A75\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:07 GMT", + "x-ms-client-request-id" : "6704c304-a2e3-4dc8-b2b9-8beb9e54c31b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcretriesoptionsinvalid0634869784d1cc837848ab?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7806f90-301e-0094-2ffc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:07 GMT", + "x-ms-client-request-id" : "e968b12f-4e9c-4e96-b906-1185b3e75ede" + }, + "Exception" : null + } ], + "variables" : [ "jtcretriesoptionsinvalid0634869784d1cc837848ab" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/RetryTestretriesoptionsinvalid[5].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/RetryTestretriesoptionsinvalid[5].json new file mode 100644 index 0000000000000..9e1db951af791 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/RetryTestretriesoptionsinvalid[5].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcretriesoptionsinvalid08602096fd8b6a70a24a32?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72814011923E3\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7806fab-301e-0094-46fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:07 GMT", + "x-ms-client-request-id" : "4a3a25f6-299e-4f58-ac15-4658562cdb91" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcretriesoptionsinvalid&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7806fc6-301e-0094-5cfc-5950b8000000", + "Body" : "jtcretriesoptionsinvalidjtcretriesoptionsinvalid08602096fd8b6a70a24a32Fri, 23 Aug 2019 21:51:07 GMT\"0x8D72814011923E3\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:07 GMT", + "x-ms-client-request-id" : "435b3d71-6b05-4fb7-96af-88bcbad983ea", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcretriesoptionsinvalid08602096fd8b6a70a24a32?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7806fdb-301e-0094-6dfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:07 GMT", + "x-ms-client-request-id" : "aa3dab25-fe15-4362-b009-c4f9cea6ea9e" + }, + "Exception" : null + } ], + "variables" : [ "jtcretriesoptionsinvalid08602096fd8b6a70a24a32" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/RetryTestretriesoptionsinvalid[6].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/RetryTestretriesoptionsinvalid[6].json new file mode 100644 index 0000000000000..df67a08b2d683 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/RetryTestretriesoptionsinvalid[6].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcretriesoptionsinvalid0447897c06817ac84b44b4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72814012890CF\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7806fea-301e-0094-7bfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:07 GMT", + "x-ms-client-request-id" : "42cbde0b-d032-47c1-b76c-bb176b10c67c" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcretriesoptionsinvalid&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7807003-301e-0094-10fc-5950b8000000", + "Body" : "jtcretriesoptionsinvalidjtcretriesoptionsinvalid0447897c06817ac84b44b4Fri, 23 Aug 2019 21:51:08 GMT\"0x8D72814012890CF\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:07 GMT", + "x-ms-client-request-id" : "ce4959c3-1a2e-4c86-ab14-5e1a86d946ac", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcretriesoptionsinvalid0447897c06817ac84b44b4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7807013-301e-0094-20fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:07 GMT", + "x-ms-client-request-id" : "c9c7d7e9-3a91-4d93-9d9f-dc99143eeaaf" + }, + "Exception" : null + } ], + "variables" : [ "jtcretriesoptionsinvalid0447897c06817ac84b44b4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/RetryTestretriestrytimeout.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/RetryTestretriestrytimeout.json new file mode 100644 index 0000000000000..c670f3b26b659 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/RetryTestretriestrytimeout.json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcretriestrytimeout0retrytestretriestrytimeout1fb46449ae42?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813F1D6856F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:42 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f78031c3-301e-0094-0dfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:41 GMT", + "x-ms-client-request-id" : "c3fe61a4-617e-406a-bf7a-f0c203226034" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcretriestrytimeout&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7803f48-301e-0094-55fc-5950b8000000", + "Body" : "jtcretriestrytimeoutjtcretriestrytimeout0retrytestretriestrytimeout1fb46449ae42Fri, 23 Aug 2019 21:50:42 GMT\"0x8D72813F1D6856F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:50:48 GMT", + "x-ms-client-request-id" : "18b827f3-8a76-4366-8bf7-98c15599ef51", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcretriestrytimeout0retrytestretriestrytimeout1fb46449ae42?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7803f54-301e-0094-5ffc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:48 GMT", + "x-ms-client-request-id" : "d6f4ba53-cf2b-41f0-bb32-ade0c05a2fce" + }, + "Exception" : null + } ], + "variables" : [ "jtcretriestrytimeout0retrytestretriestrytimeout1fb46449ae42" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/RetryTestretriesuntilmaxretries.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/RetryTestretriesuntilmaxretries.json new file mode 100644 index 0000000000000..82c2b64564669 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/RetryTestretriesuntilmaxretries.json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcretriesuntilmaxretries051705df2d01e14eb84469?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813EB921E2F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7801b5c-301e-0094-18fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:31 GMT", + "x-ms-client-request-id" : "67837b5a-4220-4146-b210-d54d3d1e515e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcretriesuntilmaxretries&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7802baf-301e-0094-80fc-5950b8000000", + "Body" : "jtcretriesuntilmaxretriesjtcretriesuntilmaxretries051705df2d01e14eb84469Fri, 23 Aug 2019 21:50:31 GMT\"0x8D72813EB921E2F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:50:38 GMT", + "x-ms-client-request-id" : "90a752f8-9812-4d02-8eb1-f196b52432be", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcretriesuntilmaxretries051705df2d01e14eb84469?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7802bc2-301e-0094-0ffc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:38 GMT", + "x-ms-client-request-id" : "520ae37e-7fd4-4d77-b058-722295beb554" + }, + "Exception" : null + } ], + "variables" : [ "jtcretriesuntilmaxretries051705df2d01e14eb84469" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/RetryTestretriesuntilsuccess.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/RetryTestretriesuntilsuccess.json new file mode 100644 index 0000000000000..807b237110a24 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/RetryTestretriesuntilsuccess.json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcretriesuntilsuccess0retrytestretriesuntilsuccess410660516e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72813E5930D8B\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:50:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7800233-301e-0094-0efc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:21 GMT", + "x-ms-client-request-id" : "99881d18-b5ad-4493-98af-dfa3dbfe8e7c" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcretriesuntilsuccess&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7801b3b-301e-0094-7cfc-5950b8000000", + "Body" : "jtcretriesuntilsuccessjtcretriesuntilsuccess0retrytestretriesuntilsuccess410660516eFri, 23 Aug 2019 21:50:21 GMT\"0x8D72813E5930D8B\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:50:31 GMT", + "x-ms-client-request-id" : "e8481a79-13eb-4818-b916-4bebc5fe4e7e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcretriesuntilsuccess0retrytestretriesuntilsuccess410660516e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7801b49-301e-0094-08fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:50:31 GMT", + "x-ms-client-request-id" : "6eec244f-d5d7-4ee9-bf87-69770587b587" + }, + "Exception" : null + } ], + "variables" : [ "jtcretriesuntilsuccess0retrytestretriesuntilsuccess410660516e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsasnetworkcreatecontainerfails.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsasnetworkcreatecontainerfails.json new file mode 100644 index 0000000000000..f8278f579382d --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsasnetworkcreatecontainerfails.json @@ -0,0 +1,83 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsasnetworkcreatecontainerfails0630650503df00?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72814025F5DFF\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f780761a-301e-0094-22fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:09 GMT", + "x-ms-client-request-id" : "c8f20226-5ab6-4166-b7a6-698930aefd56" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsasnetworkcreatecontainerfails16933248908924?restype=container&sv=2018-11-09&ss=b&srt=sco&se=2019-08-24T21%3A51%3A10Z&sp=r&sig=REDACTED", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "AuthorizationPermissionMismatch", + "retry-after" : "0", + "Content-Length" : "279", + "StatusCode" : "403", + "x-ms-request-id" : "f7807641-301e-0094-46fc-5950b8000000", + "Body" : "AuthorizationPermissionMismatchThis request is not authorized to perform this operation using this permission.\nRequestId:f7807641-301e-0094-46fc-5950b8000000\nTime:2019-08-23T21:51:10.0786189Z", + "Date" : "Fri, 23 Aug 2019 21:51:09 GMT", + "x-ms-client-request-id" : "dccf112d-111c-4e14-b0df-cfda337014fd", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsasnetworkcreatecontainerfails&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7807656-301e-0094-59fc-5950b8000000", + "Body" : "jtcaccountsasnetworkcreatecontainerfailsjtcaccountsasnetworkcreatecontainerfails0630650503df00Fri, 23 Aug 2019 21:51:10 GMT\"0x8D72814025F5DFF\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:09 GMT", + "x-ms-client-request-id" : "9504bd55-15a7-4e92-b5e3-fe097f6459c1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsasnetworkcreatecontainerfails0630650503df00?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f780766c-301e-0094-6dfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:09 GMT", + "x-ms-client-request-id" : "ea492607-93cb-4dc2-ae27-54c24ab754ed" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsasnetworkcreatecontainerfails0630650503df00", "2019-08-23T21:51:10.092Z", "jtcaccountsasnetworkcreatecontainerfails16933248908924" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsasnetworkcreatecontainersucceeds.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsasnetworkcreatecontainersucceeds.json new file mode 100644 index 0000000000000..f9a257978d301 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsasnetworkcreatecontainersucceeds.json @@ -0,0 +1,100 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsasnetworkcreatecontainersucceeds021286083779d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281402720000\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7807684-301e-0094-04fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:09 GMT", + "x-ms-client-request-id" : "ae8217b0-397c-44b5-b259-7712236dd614" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsasnetworkcreatecontainersucceeds143322adf3343?restype=container&sv=2018-11-09&ss=b&srt=sco&se=2019-08-24T21%3A51%3A10Z&sp=rc&sig=REDACTED", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728140277CDB7\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f78076a5-301e-0094-23fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:09 GMT", + "x-ms-client-request-id" : "0d8e8782-f31b-46de-aebd-63084c83f7e3" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsasnetworkcreatecontainersucceeds&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f78076c6-301e-0094-3ffc-5950b8000000", + "Body" : "jtcaccountsasnetworkcreatecontainersucceedsjtcaccountsasnetworkcreatecontainersucceeds021286083779dFri, 23 Aug 2019 21:51:10 GMT\"0x8D7281402720000\"unlockedavailable$account-encryption-keyfalsefalsefalsejtcaccountsasnetworkcreatecontainersucceeds143322adf3343Fri, 23 Aug 2019 21:51:10 GMT\"0x8D728140277CDB7\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:09 GMT", + "x-ms-client-request-id" : "bf8613ec-c126-4cc0-8cb7-47b80221b7fd", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsasnetworkcreatecontainersucceeds021286083779d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f78076da-301e-0094-51fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:09 GMT", + "x-ms-client-request-id" : "3daf880f-4ba7-429f-aac6-d2455657ba0c" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsasnetworkcreatecontainersucceeds143322adf3343?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f78076e9-301e-0094-60fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:09 GMT", + "x-ms-client-request-id" : "00fa4ae3-8b72-4fe2-acae-5773e0d213b7" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsasnetworkcreatecontainersucceeds021286083779d", "2019-08-23T21:51:10.221Z", "jtcaccountsasnetworkcreatecontainersucceeds143322adf3343" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsasnetworktestblobdeletefails.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsasnetworktestblobdeletefails.json new file mode 100644 index 0000000000000..8597c064e16b0 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsasnetworktestblobdeletefails.json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsasnetworktestblobdeletefails096792221e2dc41?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728140237CF92\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7807545-301e-0094-59fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:09 GMT", + "x-ms-client-request-id" : "b1e58b10-1f4b-42bf-8a64-63341e4e7706" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsasnetworktestblobdeletefails096792221e2dc41/javablobaccountsasnetworktestblobdeletefails151563edb44f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "Q7G6/s6+u/k=", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:09 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:51:09 GMT", + "Content-MD5" : "CY9rzUYh03PK3k6DJie09g==", + "ETag" : "\"0x8D72814024C53B6\"", + "Content-Length" : "0", + "x-ms-request-id" : "f78075ac-301e-0094-3bfc-5950b8000000", + "x-ms-client-request-id" : "cae5a703-8e13-4b31-9ef5-23392c813dac" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsasnetworktestblobdeletefails096792221e2dc41/javablobaccountsasnetworktestblobdeletefails151563edb44f?sv=2018-11-09&ss=b&srt=sco&se=2019-08-24T21%3A51%3A09Z&sp=r&sig=REDACTED", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "AuthorizationPermissionMismatch", + "retry-after" : "0", + "Content-Length" : "279", + "StatusCode" : "403", + "x-ms-request-id" : "f78075ca-301e-0094-57fc-5950b8000000", + "Body" : "AuthorizationPermissionMismatchThis request is not authorized to perform this operation using this permission.\nRequestId:f78075ca-301e-0094-57fc-5950b8000000\nTime:2019-08-23T21:51:09.9525031Z", + "Date" : "Fri, 23 Aug 2019 21:51:09 GMT", + "x-ms-client-request-id" : "5d19910c-208d-4f66-94b3-e2ed33e93aa1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsasnetworktestblobdeletefails&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f78075eb-301e-0094-74fc-5950b8000000", + "Body" : "jtcaccountsasnetworktestblobdeletefailsjtcaccountsasnetworktestblobdeletefails096792221e2dc41Fri, 23 Aug 2019 21:51:09 GMT\"0x8D728140237CF92\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:09 GMT", + "x-ms-client-request-id" : "f7ea63c9-a7ea-4ef0-9242-905e8e9c8a54", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsasnetworktestblobdeletefails096792221e2dc41?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7807600-301e-0094-08fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:09 GMT", + "x-ms-client-request-id" : "535236d4-dfb3-4bdf-b932-f46a20440c09" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsasnetworktestblobdeletefails096792221e2dc41", "javablobaccountsasnetworktestblobdeletefails151563edb44f", "2019-08-23T21:51:09.968Z" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsasnetworktestblobread.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsasnetworktestblobread.json new file mode 100644 index 0000000000000..a4497c7898449 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsasnetworktestblobread.json @@ -0,0 +1,116 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsasnetworktestblobread00792775a37eb58def?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72814021B8E59\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f780748c-301e-0094-36fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:09 GMT", + "x-ms-client-request-id" : "4b2bcdd0-3106-482c-9976-cc482b8b7691" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsasnetworktestblobread00792775a37eb58def/javablobaccountsasnetworktestblobread194514cee5ca1796", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "Q7G6/s6+u/k=", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:09 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:51:09 GMT", + "Content-MD5" : "CY9rzUYh03PK3k6DJie09g==", + "ETag" : "\"0x8D728140220A521\"", + "Content-Length" : "0", + "x-ms-request-id" : "f78074b8-301e-0094-5cfc-5950b8000000", + "x-ms-client-request-id" : "ba009d21-c8ad-4ebc-bb7b-c12fb615270b" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsasnetworktestblobread00792775a37eb58def/javablobaccountsasnetworktestblobread194514cee5ca1796?sv=2018-11-09&ss=b&srt=sco&se=2019-08-24T21%3A51%3A09Z&sp=r&sig=REDACTED", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:09 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:51:09 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "CY9rzUYh03PK3k6DJie09g==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "\"0x8D728140220A521\"", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:51:09 GMT", + "Content-Length" : "4", + "x-ms-request-id" : "f78074e5-301e-0094-02fc-5950b8000000", + "Body" : "[116, 101, 115, 116]", + "x-ms-client-request-id" : "d77549ff-4f42-4292-8b8b-63535cc2e01b", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsasnetworktestblobread&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7807506-301e-0094-20fc-5950b8000000", + "Body" : "jtcaccountsasnetworktestblobreadjtcaccountsasnetworktestblobread00792775a37eb58defFri, 23 Aug 2019 21:51:09 GMT\"0x8D72814021B8E59\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:09 GMT", + "x-ms-client-request-id" : "d7adefc1-451b-41e9-93be-a440a847805a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsasnetworktestblobread00792775a37eb58def?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f780751a-301e-0094-34fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:09 GMT", + "x-ms-client-request-id" : "31e9e25a-0916-41e3-ad93-1b1c33db7761" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsasnetworktestblobread00792775a37eb58def", "javablobaccountsasnetworktestblobread194514cee5ca1796", "2019-08-23T21:51:09.693Z" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsaspermissionsparse[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsaspermissionsparse[0].json new file mode 100644 index 0000000000000..ff1c6a6127ea0 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsaspermissionsparse[0].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionsparse0682850d20771ae12941?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728140867989B\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f78094bd-301e-0094-26fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:19 GMT", + "x-ms-client-request-id" : "c8c26650-9faa-41c1-808b-8b2ea7dd9b49" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsaspermissionsparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f78094d0-301e-0094-34fc-5950b8000000", + "Body" : "jtcaccountsaspermissionsparsejtcaccountsaspermissionsparse0682850d20771ae12941Fri, 23 Aug 2019 21:51:20 GMT\"0x8D728140867989B\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:19 GMT", + "x-ms-client-request-id" : "161472ea-5daa-4657-9ad9-fd33fbc59b1f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionsparse0682850d20771ae12941?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f78094dc-301e-0094-3efc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:19 GMT", + "x-ms-client-request-id" : "66be1d8d-7959-4148-bf0e-367fa67d5e92" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsaspermissionsparse0682850d20771ae12941" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsaspermissionsparse[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsaspermissionsparse[1].json new file mode 100644 index 0000000000000..5a334becda536 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsaspermissionsparse[1].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionsparse0558069e57addb85684b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281408772C8E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f78094fd-301e-0094-5bfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:19 GMT", + "x-ms-client-request-id" : "e134e3ac-c431-457e-af7c-14628b12047c" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsaspermissionsparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7809521-301e-0094-7cfc-5950b8000000", + "Body" : "jtcaccountsaspermissionsparsejtcaccountsaspermissionsparse0558069e57addb85684bFri, 23 Aug 2019 21:51:20 GMT\"0x8D7281408772C8E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:19 GMT", + "x-ms-client-request-id" : "d5cd650d-a1b3-44ab-9ade-72d501727c01", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionsparse0558069e57addb85684b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7809530-301e-0094-09fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:19 GMT", + "x-ms-client-request-id" : "cb97b15d-a526-44ce-a2f6-81f401753270" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsaspermissionsparse0558069e57addb85684b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsaspermissionsparse[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsaspermissionsparse[2].json new file mode 100644 index 0000000000000..48ed592b40529 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsaspermissionsparse[2].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionsparse082136900c69b58e8945?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728140886242A\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f780954e-301e-0094-24fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:19 GMT", + "x-ms-client-request-id" : "9aa667fe-8acd-4e23-baba-af3fdd10d0bd" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsaspermissionsparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f780956d-301e-0094-3dfc-5950b8000000", + "Body" : "jtcaccountsaspermissionsparsejtcaccountsaspermissionsparse082136900c69b58e8945Fri, 23 Aug 2019 21:51:20 GMT\"0x8D728140886242A\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:19 GMT", + "x-ms-client-request-id" : "424fed5d-eac8-494c-ae4e-6d45f0c41dc3", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionsparse082136900c69b58e8945?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f780957c-301e-0094-4bfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:19 GMT", + "x-ms-client-request-id" : "ef0c469c-f1bd-4c43-8c30-a6feffb0fd55" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsaspermissionsparse082136900c69b58e8945" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsaspermissionsparse[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsaspermissionsparse[3].json new file mode 100644 index 0000000000000..eb18d8a565f82 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsaspermissionsparse[3].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionsparse0740818b007a5ed01547?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728140894CD99\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f780959a-301e-0094-67fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:20 GMT", + "x-ms-client-request-id" : "511af8b1-aedf-410c-9397-7e5316d3c3b0" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsaspermissionsparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f78095b1-301e-0094-7cfc-5950b8000000", + "Body" : "jtcaccountsaspermissionsparsejtcaccountsaspermissionsparse0740818b007a5ed01547Fri, 23 Aug 2019 21:51:20 GMT\"0x8D728140894CD99\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:20 GMT", + "x-ms-client-request-id" : "d3b26ef2-9fb2-474b-af20-4768da603419", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionsparse0740818b007a5ed01547?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f78095ca-301e-0094-12fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:20 GMT", + "x-ms-client-request-id" : "0449a82d-993d-4c74-a199-2eea89fd371a" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsaspermissionsparse0740818b007a5ed01547" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsaspermissionsparse[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsaspermissionsparse[4].json new file mode 100644 index 0000000000000..34deef4e01c61 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsaspermissionsparse[4].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionsparse04196795954f2969c243?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281408A328DA\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f78095e8-301e-0094-2efc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:20 GMT", + "x-ms-client-request-id" : "8ec29c54-aace-4065-90be-1e43aa40c991" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsaspermissionsparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f78095fd-301e-0094-41fc-5950b8000000", + "Body" : "jtcaccountsaspermissionsparsejtcaccountsaspermissionsparse04196795954f2969c243Fri, 23 Aug 2019 21:51:20 GMT\"0x8D7281408A328DA\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:20 GMT", + "x-ms-client-request-id" : "e9e069de-ba57-4f4d-b349-967a8c0a6d3f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionsparse04196795954f2969c243?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7809607-301e-0094-4afc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:20 GMT", + "x-ms-client-request-id" : "e4a0f2f1-06bb-42dc-a868-609bafb7451d" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsaspermissionsparse04196795954f2969c243" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsaspermissionsparse[5].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsaspermissionsparse[5].json new file mode 100644 index 0000000000000..513a456772be0 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsaspermissionsparse[5].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionsparse0271823161bb8ced3449?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281408B10EC9\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7809620-301e-0094-61fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:20 GMT", + "x-ms-client-request-id" : "510fb844-a6ae-44bb-815e-d9c4c7c74b3f" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsaspermissionsparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7809636-301e-0094-75fc-5950b8000000", + "Body" : "jtcaccountsaspermissionsparsejtcaccountsaspermissionsparse0271823161bb8ced3449Fri, 23 Aug 2019 21:51:20 GMT\"0x8D7281408B10EC9\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:20 GMT", + "x-ms-client-request-id" : "fb1ba688-01b6-4035-a6ea-6f0b0b61a640", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionsparse0271823161bb8ced3449?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f780964e-301e-0094-0afc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:20 GMT", + "x-ms-client-request-id" : "72ff7949-b5e9-4580-aff2-b4d8a238ae60" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsaspermissionsparse0271823161bb8ced3449" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsaspermissionsparse[6].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsaspermissionsparse[6].json new file mode 100644 index 0000000000000..a0b08e1c510a0 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsaspermissionsparse[6].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionsparse029453b44787f35dc444?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281408C277FD\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7809683-301e-0094-36fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:20 GMT", + "x-ms-client-request-id" : "ff47c613-1123-47d2-9453-51ce63e8ed7e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsaspermissionsparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f780969f-301e-0094-50fc-5950b8000000", + "Body" : "jtcaccountsaspermissionsparsejtcaccountsaspermissionsparse029453b44787f35dc444Fri, 23 Aug 2019 21:51:20 GMT\"0x8D7281408C277FD\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:20 GMT", + "x-ms-client-request-id" : "ccce8616-a64e-40f1-bd9d-872f155638d9", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionsparse029453b44787f35dc444?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f78096af-301e-0094-5ffc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:20 GMT", + "x-ms-client-request-id" : "d290d499-0839-49d4-9290-277b71e8e541" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsaspermissionsparse029453b44787f35dc444" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsaspermissionsparse[7].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsaspermissionsparse[7].json new file mode 100644 index 0000000000000..a9d7f66077b3b --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsaspermissionsparse[7].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionsparse074455f541c3df76c94c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281408D14887\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f78096c5-301e-0094-74fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:20 GMT", + "x-ms-client-request-id" : "4d55893e-9eaf-4694-b0f8-e19fd481e7dc" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsaspermissionsparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f78096d8-301e-0094-05fc-5950b8000000", + "Body" : "jtcaccountsaspermissionsparsejtcaccountsaspermissionsparse074455f541c3df76c94cFri, 23 Aug 2019 21:51:20 GMT\"0x8D7281408D14887\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:20 GMT", + "x-ms-client-request-id" : "309521fc-1a47-4514-84e8-3080ecd7b522", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionsparse074455f541c3df76c94c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f78096e7-301e-0094-12fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:20 GMT", + "x-ms-client-request-id" : "cee7b2ec-7364-4ff4-b90a-5f4a815f498f" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsaspermissionsparse074455f541c3df76c94c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsaspermissionsparse[8].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsaspermissionsparse[8].json new file mode 100644 index 0000000000000..8a0e003b567d8 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsaspermissionsparse[8].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionsparse0052843971eccbf0d547?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281408E0190D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7809704-301e-0094-2ffc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:20 GMT", + "x-ms-client-request-id" : "8699ff3c-5513-4f23-ae97-6fb21252f7de" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsaspermissionsparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f780971e-301e-0094-45fc-5950b8000000", + "Body" : "jtcaccountsaspermissionsparsejtcaccountsaspermissionsparse0052843971eccbf0d547Fri, 23 Aug 2019 21:51:20 GMT\"0x8D7281408E0190D\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:20 GMT", + "x-ms-client-request-id" : "c933fe63-9920-4227-9890-c259af07e7b1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionsparse0052843971eccbf0d547?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f780972f-301e-0094-53fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:20 GMT", + "x-ms-client-request-id" : "93683b04-7436-4ab8-be16-1be83f81d7a1" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsaspermissionsparse0052843971eccbf0d547" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsaspermissionsparse[9].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsaspermissionsparse[9].json new file mode 100644 index 0000000000000..0aef1fb2a5096 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsaspermissionsparse[9].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionsparse0698138bb469839cbf43?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281409092E79\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f78097bf-301e-0094-52fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:20 GMT", + "x-ms-client-request-id" : "a1aeb100-c919-4ad9-8cae-9148c546dfb2" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsaspermissionsparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f78097dd-301e-0094-6efc-5950b8000000", + "Body" : "jtcaccountsaspermissionsparsejtcaccountsaspermissionsparse0698138bb469839cbf43Fri, 23 Aug 2019 21:51:21 GMT\"0x8D7281409092E79\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:20 GMT", + "x-ms-client-request-id" : "4f670773-d92d-4aac-bad7-3638706fce9a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionsparse0698138bb469839cbf43?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f78097ea-301e-0094-7bfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:20 GMT", + "x-ms-client-request-id" : "d8ca9f6a-db87-4749-a38f-40b4aafcdc87" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsaspermissionsparse0698138bb469839cbf43" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsaspermissionsparseia.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsaspermissionsparseia.json new file mode 100644 index 0000000000000..954b3a2301118 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsaspermissionsparseia.json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionsparseia0047537c3e66b488f14?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72814091A7092\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7809813-301e-0094-22fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:20 GMT", + "x-ms-client-request-id" : "93a6d1ae-f6b3-405c-8f17-d08283cfc4e0" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsaspermissionsparseia&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7809828-301e-0094-35fc-5950b8000000", + "Body" : "jtcaccountsaspermissionsparseiajtcaccountsaspermissionsparseia0047537c3e66b488f14Fri, 23 Aug 2019 21:51:21 GMT\"0x8D72814091A7092\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:20 GMT", + "x-ms-client-request-id" : "21874ff1-5bef-4729-b4c3-635f92b8c7b6", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionsparseia0047537c3e66b488f14?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f780983a-301e-0094-47fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:20 GMT", + "x-ms-client-request-id" : "f6cde3db-4ca9-43d3-a201-1e4ee1d31a17" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsaspermissionsparseia0047537c3e66b488f14" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsaspermissionstostring[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsaspermissionstostring[0].json new file mode 100644 index 0000000000000..d60f314e192da --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsaspermissionstostring[0].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionstostring0492946389ca4c9615?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281407DCC434\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:19 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f780926b-301e-0094-10fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:18 GMT", + "x-ms-client-request-id" : "5d33f9da-e1a2-425e-86e5-08d7ff46a001" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsaspermissionstostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7809285-301e-0094-29fc-5950b8000000", + "Body" : "jtcaccountsaspermissionstostringjtcaccountsaspermissionstostring0492946389ca4c9615Fri, 23 Aug 2019 21:51:19 GMT\"0x8D7281407DCC434\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:18 GMT", + "x-ms-client-request-id" : "4753b253-4ffe-427c-a661-83cad1e53880", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionstostring0492946389ca4c9615?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f780929a-301e-0094-3bfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:18 GMT", + "x-ms-client-request-id" : "b1fe63ce-3bda-4bc9-8c5a-79b43f173768" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsaspermissionstostring0492946389ca4c9615" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsaspermissionstostring[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsaspermissionstostring[1].json new file mode 100644 index 0000000000000..f165a20897d6f --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsaspermissionstostring[1].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionstostring012745879f4394fe07?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281407EB4682\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:19 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f78092bb-301e-0094-54fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:18 GMT", + "x-ms-client-request-id" : "08669129-a71f-45c2-97ae-4c9b396c578b" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsaspermissionstostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f78092d2-301e-0094-69fc-5950b8000000", + "Body" : "jtcaccountsaspermissionstostringjtcaccountsaspermissionstostring012745879f4394fe07Fri, 23 Aug 2019 21:51:19 GMT\"0x8D7281407EB4682\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:18 GMT", + "x-ms-client-request-id" : "bd299dea-581c-4952-a05c-99b3da7ff2d8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionstostring012745879f4394fe07?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f78092dd-301e-0094-73fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:18 GMT", + "x-ms-client-request-id" : "e8cbd647-fddd-436b-8ec8-8d4da41fb1bd" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsaspermissionstostring012745879f4394fe07" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsaspermissionstostring[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsaspermissionstostring[2].json new file mode 100644 index 0000000000000..9bf9f1276d183 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsaspermissionstostring[2].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionstostring0506403309f2b1e30f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281407FB01A4\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:19 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f78092f8-301e-0094-0dfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:19 GMT", + "x-ms-client-request-id" : "0ec721c2-69f4-4e3a-8c51-c542016bd639" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsaspermissionstostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7809313-301e-0094-21fc-5950b8000000", + "Body" : "jtcaccountsaspermissionstostringjtcaccountsaspermissionstostring0506403309f2b1e30fFri, 23 Aug 2019 21:51:19 GMT\"0x8D7281407FB01A4\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:19 GMT", + "x-ms-client-request-id" : "9f2107cc-cf64-4270-befa-e22adde0465d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionstostring0506403309f2b1e30f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f780932b-301e-0094-34fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:19 GMT", + "x-ms-client-request-id" : "70e0e432-a4ab-42f5-9e6a-0ed01d36e63d" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsaspermissionstostring0506403309f2b1e30f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsaspermissionstostring[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsaspermissionstostring[3].json new file mode 100644 index 0000000000000..8b51ac23de99a --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsaspermissionstostring[3].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionstostring0450371fc4c0441551?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728140809AB17\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:19 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7809345-301e-0094-4afc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:19 GMT", + "x-ms-client-request-id" : "390a81cd-8acc-4c91-a053-4b111b3beff5" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsaspermissionstostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7809358-301e-0094-5bfc-5950b8000000", + "Body" : "jtcaccountsaspermissionstostringjtcaccountsaspermissionstostring0450371fc4c0441551Fri, 23 Aug 2019 21:51:19 GMT\"0x8D728140809AB17\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:19 GMT", + "x-ms-client-request-id" : "d0582b46-9f9f-49e0-9663-1f8db4a3536e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionstostring0450371fc4c0441551?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7809364-301e-0094-67fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:19 GMT", + "x-ms-client-request-id" : "fa7a8098-c345-42fc-8d07-d70dd0da9080" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsaspermissionstostring0450371fc4c0441551" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsaspermissionstostring[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsaspermissionstostring[4].json new file mode 100644 index 0000000000000..b84727415b6a3 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsaspermissionstostring[4].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionstostring06464578f8b2fa9295?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281408182D6B\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:19 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f780937e-301e-0094-7efc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:19 GMT", + "x-ms-client-request-id" : "d4ae13f6-c4e0-4afc-b6d2-98378cf651ae" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsaspermissionstostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7809394-301e-0094-13fc-5950b8000000", + "Body" : "jtcaccountsaspermissionstostringjtcaccountsaspermissionstostring06464578f8b2fa9295Fri, 23 Aug 2019 21:51:19 GMT\"0x8D7281408182D6B\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:19 GMT", + "x-ms-client-request-id" : "c242de72-91f2-4c9b-9f24-e63dd6ff84f0", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionstostring06464578f8b2fa9295?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f78093aa-301e-0094-27fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:19 GMT", + "x-ms-client-request-id" : "dc104f0d-6899-4a9d-8894-df56c5ef1b86" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsaspermissionstostring06464578f8b2fa9295" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsaspermissionstostring[5].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsaspermissionstostring[5].json new file mode 100644 index 0000000000000..d4159ade278dd --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsaspermissionstostring[5].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionstostring002835ff76077f7b95?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281408296F88\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:19 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f78093c2-301e-0094-3efc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:19 GMT", + "x-ms-client-request-id" : "6075ee34-c37a-4910-a9b2-9f2b1accb43e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsaspermissionstostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f78093da-301e-0094-54fc-5950b8000000", + "Body" : "jtcaccountsaspermissionstostringjtcaccountsaspermissionstostring002835ff76077f7b95Fri, 23 Aug 2019 21:51:19 GMT\"0x8D7281408296F88\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:19 GMT", + "x-ms-client-request-id" : "61f88501-21db-4e86-8fb7-ff1568243ae7", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionstostring002835ff76077f7b95?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f78093f5-301e-0094-6bfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:19 GMT", + "x-ms-client-request-id" : "1653f976-c1a6-4432-85aa-a3367620e21b" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsaspermissionstostring002835ff76077f7b95" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsaspermissionstostring[6].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsaspermissionstostring[6].json new file mode 100644 index 0000000000000..953d87b965de1 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsaspermissionstostring[6].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionstostring039825ac7c9a94ca71?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281408399FF2\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:19 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f780940d-301e-0094-02fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:19 GMT", + "x-ms-client-request-id" : "37185c8b-688b-458e-b08d-1e4afd09b7de" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsaspermissionstostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7809424-301e-0094-15fc-5950b8000000", + "Body" : "jtcaccountsaspermissionstostringjtcaccountsaspermissionstostring039825ac7c9a94ca71Fri, 23 Aug 2019 21:51:19 GMT\"0x8D7281408399FF2\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:19 GMT", + "x-ms-client-request-id" : "a9bae751-96b7-4c52-af6b-14b0da806b97", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionstostring039825ac7c9a94ca71?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7809431-301e-0094-22fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:19 GMT", + "x-ms-client-request-id" : "6cb8b0e8-54f5-479b-859f-e08b5b414ec0" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsaspermissionstostring039825ac7c9a94ca71" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsaspermissionstostring[7].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsaspermissionstostring[7].json new file mode 100644 index 0000000000000..052fdc6c83529 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsaspermissionstostring[7].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionstostring07410442e72c603a92?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281408482241\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:19 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7809449-301e-0094-39fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:19 GMT", + "x-ms-client-request-id" : "f92edda8-eede-4b27-8a70-00668ae1c356" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsaspermissionstostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7809459-301e-0094-47fc-5950b8000000", + "Body" : "jtcaccountsaspermissionstostringjtcaccountsaspermissionstostring07410442e72c603a92Fri, 23 Aug 2019 21:51:19 GMT\"0x8D7281408482241\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:19 GMT", + "x-ms-client-request-id" : "ef206a2a-21e6-40af-a076-3c4a10475b98", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionstostring07410442e72c603a92?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f780946f-301e-0094-5cfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:19 GMT", + "x-ms-client-request-id" : "419c4b2e-ab77-42fa-bdce-e0822d83ccef" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsaspermissionstostring07410442e72c603a92" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsaspermissionstostring[8].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsaspermissionstostring[8].json new file mode 100644 index 0000000000000..9dc5758419d04 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsaspermissionstostring[8].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionstostring0714178ec2c5d2469f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728140858A0E2\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f780948b-301e-0094-77fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:19 GMT", + "x-ms-client-request-id" : "125df98a-584e-44ab-bf62-90b096655a50" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsaspermissionstostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f78094a5-301e-0094-0efc-5950b8000000", + "Body" : "jtcaccountsaspermissionstostringjtcaccountsaspermissionstostring0714178ec2c5d2469fFri, 23 Aug 2019 21:51:20 GMT\"0x8D728140858A0E2\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:19 GMT", + "x-ms-client-request-id" : "3333071f-664d-41b3-a7b8-2996107f2025", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsaspermissionstostring0714178ec2c5d2469f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f78094ac-301e-0094-15fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:19 GMT", + "x-ms-client-request-id" : "3a06b7be-8bcb-4c7e-9070-28a7a5495069" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsaspermissionstostring0714178ec2c5d2469f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsasresourcetypeia.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsasresourcetypeia.json new file mode 100644 index 0000000000000..61e24ea9a597e --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsasresourcetypeia.json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsasresourcetypeia062800bb1cc0e011e342d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281409B65FEC\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7809adf-301e-0094-25fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:21 GMT", + "x-ms-client-request-id" : "413082e0-0677-436e-bb64-14ad8dce6e13" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsasresourcetypeia&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7809af7-301e-0094-3afc-5950b8000000", + "Body" : "jtcaccountsasresourcetypeiajtcaccountsasresourcetypeia062800bb1cc0e011e342dFri, 23 Aug 2019 21:51:22 GMT\"0x8D7281409B65FEC\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:21 GMT", + "x-ms-client-request-id" : "94554056-1312-4c6f-9608-d2f837c24359", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsasresourcetypeia062800bb1cc0e011e342d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7809b0a-301e-0094-4bfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:21 GMT", + "x-ms-client-request-id" : "564aea1e-dc6c-43dd-a7fc-ac9857369c25" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsasresourcetypeia062800bb1cc0e011e342d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsasresourcetypeparse[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsasresourcetypeparse[0].json new file mode 100644 index 0000000000000..329c0a0a7e1c7 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsasresourcetypeparse[0].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsasresourcetypeparse00323296e6de02bdf94?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728140968F118\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7809973-301e-0094-5bfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:21 GMT", + "x-ms-client-request-id" : "206b26e9-60b7-4f65-87db-20fac9e5d5a8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsasresourcetypeparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f780997f-301e-0094-66fc-5950b8000000", + "Body" : "jtcaccountsasresourcetypeparsejtcaccountsasresourcetypeparse00323296e6de02bdf94Fri, 23 Aug 2019 21:51:21 GMT\"0x8D728140968F118\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:21 GMT", + "x-ms-client-request-id" : "438f1b9f-c951-4ca8-b12e-590d587bccbc", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsasresourcetypeparse00323296e6de02bdf94?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7809991-301e-0094-74fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:21 GMT", + "x-ms-client-request-id" : "035fbb8f-cc3d-4dd4-ab88-bfec6aec5970" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsasresourcetypeparse00323296e6de02bdf94" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsasresourcetypeparse[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsasresourcetypeparse[1].json new file mode 100644 index 0000000000000..bdf3bf034ac9a --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsasresourcetypeparse[1].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsasresourcetypeparse09155296d45e579e9a4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728140978FA70\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f78099a7-301e-0094-0afc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:21 GMT", + "x-ms-client-request-id" : "a982f6c2-3a27-462c-8df7-63fd8955138f" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsasresourcetypeparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f78099f6-301e-0094-51fc-5950b8000000", + "Body" : "jtcaccountsasresourcetypeparsejtcaccountsasresourcetypeparse09155296d45e579e9a4Fri, 23 Aug 2019 21:51:21 GMT\"0x8D728140978FA70\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:21 GMT", + "x-ms-client-request-id" : "956150c9-0261-4bc1-9ad8-a9d70373cdfb", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsasresourcetypeparse09155296d45e579e9a4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7809a09-301e-0094-62fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:21 GMT", + "x-ms-client-request-id" : "5b72a408-c086-4bc8-bbbc-f7446e49b1ab" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsasresourcetypeparse09155296d45e579e9a4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsasresourcetypeparse[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsasresourcetypeparse[2].json new file mode 100644 index 0000000000000..3def0df4a8e39 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsasresourcetypeparse[2].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsasresourcetypeparse044972982d678aa9ee4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728140995FF0E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7809a2b-301e-0094-02fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:21 GMT", + "x-ms-client-request-id" : "0e50e826-d556-4931-bc54-a67bf31c9d19" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsasresourcetypeparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7809a44-301e-0094-19fc-5950b8000000", + "Body" : "jtcaccountsasresourcetypeparsejtcaccountsasresourcetypeparse044972982d678aa9ee4Fri, 23 Aug 2019 21:51:22 GMT\"0x8D728140995FF0E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:21 GMT", + "x-ms-client-request-id" : "7893d5e7-afe7-43db-8a81-155121d6414a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsasresourcetypeparse044972982d678aa9ee4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7809a61-301e-0094-34fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:21 GMT", + "x-ms-client-request-id" : "883528ad-edde-41e0-97d0-f5cc813414a7" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsasresourcetypeparse044972982d678aa9ee4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsasresourcetypeparse[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsasresourcetypeparse[3].json new file mode 100644 index 0000000000000..8e43ebe64c3a3 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsasresourcetypeparse[3].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsasresourcetypeparse0237517860d32e242b4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281409A6F2F8\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7809a8c-301e-0094-5bfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:21 GMT", + "x-ms-client-request-id" : "b134287f-b4a9-430f-8f23-0782c58f9cd5" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsasresourcetypeparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7809aa4-301e-0094-6dfc-5950b8000000", + "Body" : "jtcaccountsasresourcetypeparsejtcaccountsasresourcetypeparse0237517860d32e242b4Fri, 23 Aug 2019 21:51:22 GMT\"0x8D7281409A6F2F8\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:21 GMT", + "x-ms-client-request-id" : "2a8ce4d8-8ed9-464f-883d-a07fbaa2e607", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsasresourcetypeparse0237517860d32e242b4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7809ab7-301e-0094-7ffc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:21 GMT", + "x-ms-client-request-id" : "338b66cf-1da8-4e59-8035-872d2e5dd6d8" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsasresourcetypeparse0237517860d32e242b4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsasresourcetypetostring[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsasresourcetypetostring[0].json new file mode 100644 index 0000000000000..e2de6563a9520 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsasresourcetypetostring[0].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsasresourcetypetostring046499f0ba2d428cd2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72814092BB2B8\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f780985a-301e-0094-62fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:21 GMT", + "x-ms-client-request-id" : "fad3b426-d33b-4fa3-8f9f-3592085fec42" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsasresourcetypetostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7809877-301e-0094-7bfc-5950b8000000", + "Body" : "jtcaccountsasresourcetypetostringjtcaccountsasresourcetypetostring046499f0ba2d428cd2Fri, 23 Aug 2019 21:51:21 GMT\"0x8D72814092BB2B8\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:21 GMT", + "x-ms-client-request-id" : "7e3cfbc4-2884-42a1-84b9-6e134997e77c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsasresourcetypetostring046499f0ba2d428cd2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7809887-301e-0094-0afc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:21 GMT", + "x-ms-client-request-id" : "34b52c9d-a61d-438a-a676-767888d0520d" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsasresourcetypetostring046499f0ba2d428cd2" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsasresourcetypetostring[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsasresourcetypetostring[1].json new file mode 100644 index 0000000000000..e5618ebf3ddb4 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsasresourcetypetostring[1].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsasresourcetypetostring0382631f443a977336?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72814093BBC02\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f780989e-301e-0094-1ffc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:21 GMT", + "x-ms-client-request-id" : "68119d1d-2a12-4fa8-86eb-dfa702c3e06d" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsasresourcetypetostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f78098bd-301e-0094-38fc-5950b8000000", + "Body" : "jtcaccountsasresourcetypetostringjtcaccountsasresourcetypetostring0382631f443a977336Fri, 23 Aug 2019 21:51:21 GMT\"0x8D72814093BBC02\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:21 GMT", + "x-ms-client-request-id" : "dcf25780-3483-4538-a765-e2fc3b8aa053", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsasresourcetypetostring0382631f443a977336?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f78098d2-301e-0094-4afc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:21 GMT", + "x-ms-client-request-id" : "76f2f26b-e669-4861-bc4f-7f60ab633d75" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsasresourcetypetostring0382631f443a977336" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsasresourcetypetostring[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsasresourcetypetostring[2].json new file mode 100644 index 0000000000000..5b6c6a41f6c0f --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsasresourcetypetostring[2].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsasresourcetypetostring014707d7bd93c2281c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72814094B28EC\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f78098ea-301e-0094-5ffc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:21 GMT", + "x-ms-client-request-id" : "220a559a-82b3-40cc-b32d-503131c63569" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsasresourcetypetostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7809903-301e-0094-73fc-5950b8000000", + "Body" : "jtcaccountsasresourcetypetostringjtcaccountsasresourcetypetostring014707d7bd93c2281cFri, 23 Aug 2019 21:51:21 GMT\"0x8D72814094B28EC\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:21 GMT", + "x-ms-client-request-id" : "fca0aab1-c4f4-448d-985e-c63905eddf6f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsasresourcetypetostring014707d7bd93c2281c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f780991b-301e-0094-0afc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:21 GMT", + "x-ms-client-request-id" : "77ecd7f3-7ba9-4f42-8ab1-ea8fdc2d782b" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsasresourcetypetostring014707d7bd93c2281c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsasresourcetypetostring[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsasresourcetypetostring[3].json new file mode 100644 index 0000000000000..4fe4cedf0abff --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsasresourcetypetostring[3].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsasresourcetypetostring056037a13bc2bb0750?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728140959D257\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7809930-301e-0094-1ffc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:21 GMT", + "x-ms-client-request-id" : "95c6d7d4-7c25-44b9-9c5f-abf89338f49d" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsasresourcetypetostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f780994c-301e-0094-36fc-5950b8000000", + "Body" : "jtcaccountsasresourcetypetostringjtcaccountsasresourcetypetostring056037a13bc2bb0750Fri, 23 Aug 2019 21:51:21 GMT\"0x8D728140959D257\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:21 GMT", + "x-ms-client-request-id" : "390791e0-17b7-46d0-9d69-7dbde6d04964", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsasresourcetypetostring056037a13bc2bb0750?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f780995e-301e-0094-47fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:21 GMT", + "x-ms-client-request-id" : "5b069d51-5218-4936-8fd6-d1e6f1786392" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsasresourcetypetostring056037a13bc2bb0750" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsassignaturesstringtosign[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsassignaturesstringtosign[0].json new file mode 100644 index 0000000000000..1fced804793bc --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsassignaturesstringtosign[0].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsassignaturesstringtosign08059874509b5ef70?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728140754616D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7808f65-301e-0094-45fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:17 GMT", + "x-ms-client-request-id" : "9db2c006-9bfb-461d-b05e-c58903e0ce80" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsassignaturesstringtosign&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7808f84-301e-0094-62fc-5950b8000000", + "Body" : "jtcaccountsassignaturesstringtosignjtcaccountsassignaturesstringtosign08059874509b5ef70Fri, 23 Aug 2019 21:51:18 GMT\"0x8D728140754616D\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:17 GMT", + "x-ms-client-request-id" : "57f3ade8-1537-4030-886d-09eb9d072c12", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsassignaturesstringtosign08059874509b5ef70?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7808f93-301e-0094-71fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:17 GMT", + "x-ms-client-request-id" : "f489b307-c5a3-4a86-b4ab-74e01ad2b160" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsassignaturesstringtosign08059874509b5ef70" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsassignaturesstringtosign[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsassignaturesstringtosign[1].json new file mode 100644 index 0000000000000..8b7a08991603b --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsassignaturesstringtosign[1].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsassignaturesstringtosign059127d6e9f6f4393?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728140762959C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7808fa8-301e-0094-04fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:18 GMT", + "x-ms-client-request-id" : "fb57600b-1e32-4442-a7f2-ad527a8c5db2" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsassignaturesstringtosign&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7808fc5-301e-0094-20fc-5950b8000000", + "Body" : "jtcaccountsassignaturesstringtosignjtcaccountsassignaturesstringtosign059127d6e9f6f4393Fri, 23 Aug 2019 21:51:18 GMT\"0x8D728140762959C\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:18 GMT", + "x-ms-client-request-id" : "c23c4dc4-8a1f-43fc-88c0-a91e28400104", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsassignaturesstringtosign059127d6e9f6f4393?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7808fe4-301e-0094-3cfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:18 GMT", + "x-ms-client-request-id" : "a21938c7-fac2-4e40-a67a-df5105664d6f" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsassignaturesstringtosign059127d6e9f6f4393" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsassignaturesstringtosign[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsassignaturesstringtosign[2].json new file mode 100644 index 0000000000000..b317bad9d3f62 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsassignaturesstringtosign[2].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsassignaturesstringtosign05802095c4f16a961?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728140770C9B9\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f780900e-301e-0094-65fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:18 GMT", + "x-ms-client-request-id" : "e43390dc-f231-4f11-8570-459cd70447f7" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsassignaturesstringtosign&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7809032-301e-0094-06fc-5950b8000000", + "Body" : "jtcaccountsassignaturesstringtosignjtcaccountsassignaturesstringtosign05802095c4f16a961Fri, 23 Aug 2019 21:51:18 GMT\"0x8D728140770C9B9\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:18 GMT", + "x-ms-client-request-id" : "a952746d-af5a-4e1d-a4a1-f7731de3c879", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsassignaturesstringtosign05802095c4f16a961?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f780904f-301e-0094-21fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:18 GMT", + "x-ms-client-request-id" : "b89f719a-5a8a-4780-a5ea-b3585889945e" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsassignaturesstringtosign05802095c4f16a961" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsassignaturevaluesia[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsassignaturevaluesia[0].json new file mode 100644 index 0000000000000..20d2bfa454f1d --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsassignaturevaluesia[0].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsassignaturevaluesia0391040f345580fd794?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72814077F9A43\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7809076-301e-0094-47fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:18 GMT", + "x-ms-client-request-id" : "7656927f-27f1-43ed-b026-81f6b313502b" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsassignaturevaluesia&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7809099-301e-0094-68fc-5950b8000000", + "Body" : "jtcaccountsassignaturevaluesiajtcaccountsassignaturevaluesia0391040f345580fd794Fri, 23 Aug 2019 21:51:18 GMT\"0x8D72814077F9A43\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:18 GMT", + "x-ms-client-request-id" : "c1516463-89e2-4104-9148-d0c3b88c273b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsassignaturevaluesia0391040f345580fd794?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f78090ad-301e-0094-7afc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:18 GMT", + "x-ms-client-request-id" : "8e63e61e-76ff-48a1-8bf0-2a7b8f87dbfd" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsassignaturevaluesia0391040f345580fd794" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsassignaturevaluesia[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsassignaturevaluesia[1].json new file mode 100644 index 0000000000000..20603a66e4ea9 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsassignaturevaluesia[1].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsassignaturevaluesia0630513b3ad130c0af4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72814079018E4\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f78090de-301e-0094-2afc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:18 GMT", + "x-ms-client-request-id" : "46036262-ef97-448e-80a2-879c0ba01a80" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsassignaturevaluesia&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f78090fa-301e-0094-44fc-5950b8000000", + "Body" : "jtcaccountsassignaturevaluesiajtcaccountsassignaturevaluesia0630513b3ad130c0af4Fri, 23 Aug 2019 21:51:18 GMT\"0x8D72814079018E4\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:18 GMT", + "x-ms-client-request-id" : "443220a2-bc7d-4702-b0eb-3e2168aff26a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsassignaturevaluesia0630513b3ad130c0af4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7809112-301e-0094-59fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:18 GMT", + "x-ms-client-request-id" : "cd08b0f5-cf15-4c19-8eb7-69ef9bc8c90e" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsassignaturevaluesia0630513b3ad130c0af4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsassignaturevaluesia[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsassignaturevaluesia[2].json new file mode 100644 index 0000000000000..c1ac768e424c6 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsassignaturevaluesia[2].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsassignaturevaluesia0055560bd9047b2bb64?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72814079F107C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7809134-301e-0094-78fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:18 GMT", + "x-ms-client-request-id" : "5d9c5f30-a283-4adf-b864-555b998e1b64" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsassignaturevaluesia&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7809154-301e-0094-13fc-5950b8000000", + "Body" : "jtcaccountsassignaturevaluesiajtcaccountsassignaturevaluesia0055560bd9047b2bb64Fri, 23 Aug 2019 21:51:18 GMT\"0x8D72814079F107C\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:18 GMT", + "x-ms-client-request-id" : "b2b6d3f2-7856-47f7-8bcb-ac210eb2d4d3", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsassignaturevaluesia0055560bd9047b2bb64?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7809168-301e-0094-25fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:18 GMT", + "x-ms-client-request-id" : "22cb6242-88a5-47bf-9ffc-250ec1f9f91f" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsassignaturevaluesia0055560bd9047b2bb64" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsassignaturevaluesia[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsassignaturevaluesia[3].json new file mode 100644 index 0000000000000..f0984e791aef9 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsassignaturevaluesia[3].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsassignaturevaluesia04268835ada20a9d244?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281407AFB635\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7809181-301e-0094-3cfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:18 GMT", + "x-ms-client-request-id" : "1182d585-c3ed-412e-b349-d20eae60e16d" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsassignaturevaluesia&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7809198-301e-0094-50fc-5950b8000000", + "Body" : "jtcaccountsassignaturevaluesiajtcaccountsassignaturevaluesia04268835ada20a9d244Fri, 23 Aug 2019 21:51:18 GMT\"0x8D7281407AFB635\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:18 GMT", + "x-ms-client-request-id" : "4817aef2-4870-4be9-935d-f2ca832a334e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsassignaturevaluesia04268835ada20a9d244?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f78091ad-301e-0094-63fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:18 GMT", + "x-ms-client-request-id" : "00d64f80-c726-4fc4-a950-cb0015af5c1c" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsassignaturevaluesia04268835ada20a9d244" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsassignaturevaluesia[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsassignaturevaluesia[4].json new file mode 100644 index 0000000000000..605d3726fcd79 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsassignaturevaluesia[4].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsassignaturevaluesia03108372863e318bcd4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281407BED4ED\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:19 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f78091cf-301e-0094-04fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:18 GMT", + "x-ms-client-request-id" : "22a2ec01-8dcb-49d5-8a02-a9713265a382" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsassignaturevaluesia&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f78091f2-301e-0094-21fc-5950b8000000", + "Body" : "jtcaccountsassignaturevaluesiajtcaccountsassignaturevaluesia03108372863e318bcd4Fri, 23 Aug 2019 21:51:19 GMT\"0x8D7281407BED4ED\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:18 GMT", + "x-ms-client-request-id" : "d4e750a8-f800-4461-a361-adcd3f7797a0", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsassignaturevaluesia03108372863e318bcd4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f780920f-301e-0094-3afc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:18 GMT", + "x-ms-client-request-id" : "f43e6ac4-a93c-45f7-8c5e-10f6e8aaff0a" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsassignaturevaluesia03108372863e318bcd4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsassignaturevaluesia[5].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsassignaturevaluesia[5].json new file mode 100644 index 0000000000000..47725dad3810a --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestaccountsassignaturevaluesia[5].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsassignaturevaluesia093039aa888f024ea84?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281407CE68F7\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:19 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f780922a-301e-0094-54fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:18 GMT", + "x-ms-client-request-id" : "7c5777af-f310-42ed-acdb-856699d3993d" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcaccountsassignaturevaluesia&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7809244-301e-0094-6bfc-5950b8000000", + "Body" : "jtcaccountsassignaturevaluesiajtcaccountsassignaturevaluesia093039aa888f024ea84Fri, 23 Aug 2019 21:51:19 GMT\"0x8D7281407CE68F7\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:18 GMT", + "x-ms-client-request-id" : "3900c07b-7527-477d-9f43-f5d91ae7cf20", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcaccountsassignaturevaluesia093039aa888f024ea84?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7809251-301e-0094-77fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:18 GMT", + "x-ms-client-request-id" : "048bb7af-a1f1-4e3f-b0ad-ee40772e8bab" + }, + "Exception" : null + } ], + "variables" : [ "jtcaccountsassignaturevaluesia093039aa888f024ea84" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobclientgetsnapshot.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobclientgetsnapshot.json new file mode 100644 index 0000000000000..9abe0141cbce8 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobclientgetsnapshot.json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobclientgetsnapshot0sastestblobclientgetsnapshot3ab58849a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72814019240F7\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f78071ca-301e-0094-24fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:08 GMT", + "x-ms-client-request-id" : "ece2b51e-8ae5-4b96-bf69-94680c544e31" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobclientgetsnapshot0sastestblobclientgetsnapshot3ab58849a/javablobblobclientgetsnapshot1780087ec5bc24cd7141", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "Q7G6/s6+u/k=", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:08 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:51:08 GMT", + "Content-MD5" : "CY9rzUYh03PK3k6DJie09g==", + "ETag" : "\"0x8D7281401977D49\"", + "Content-Length" : "0", + "x-ms-request-id" : "f78071ea-301e-0094-42fc-5950b8000000", + "x-ms-client-request-id" : "c0c2e843-3276-48c1-a139-450735d47d1f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobclientgetsnapshot0sastestblobclientgetsnapshot3ab58849a/javablobblobclientgetsnapshot1780087ec5bc24cd7141?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-snapshot" : "2019-08-23T21:51:08.7717044Z", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281401977D49\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7807208-301e-0094-5ffc-5950b8000000", + "x-ms-request-server-encrypted" : "false", + "Date" : "Fri, 23 Aug 2019 21:51:08 GMT", + "x-ms-client-request-id" : "ea97077b-0c51-4c1e-91b3-d6656d85854c" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcblobclientgetsnapshot&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7807245-301e-0094-16fc-5950b8000000", + "Body" : "jtcblobclientgetsnapshotjtcblobclientgetsnapshot0sastestblobclientgetsnapshot3ab58849aFri, 23 Aug 2019 21:51:08 GMT\"0x8D72814019240F7\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:08 GMT", + "x-ms-client-request-id" : "3a4709e6-3ab5-4698-88db-f4a5621260a9", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobclientgetsnapshot0sastestblobclientgetsnapshot3ab58849a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f780725a-301e-0094-2afc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:08 GMT", + "x-ms-client-request-id" : "468ac7c2-416f-4bf0-af07-2d38d9e66749" + }, + "Exception" : null + } ], + "variables" : [ "jtcblobclientgetsnapshot0sastestblobclientgetsnapshot3ab58849a", "javablobblobclientgetsnapshot1780087ec5bc24cd7141" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobclientissnapshot.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobclientissnapshot.json new file mode 100644 index 0000000000000..68009dbdcf140 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobclientissnapshot.json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobclientissnapshot0sastestblobclientissnapshot47d38411a3?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281401B07E79\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7807281-301e-0094-4ffc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:08 GMT", + "x-ms-client-request-id" : "4e940087-7df9-47ac-a104-253322cb658b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobclientissnapshot0sastestblobclientissnapshot47d38411a3/javablobblobclientissnapshot144837b522f02b6c114a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "Q7G6/s6+u/k=", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:08 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:51:08 GMT", + "Content-MD5" : "CY9rzUYh03PK3k6DJie09g==", + "ETag" : "\"0x8D7281401B5BB1A\"", + "Content-Length" : "0", + "x-ms-request-id" : "f78072a3-301e-0094-6efc-5950b8000000", + "x-ms-client-request-id" : "75cd3946-bc53-438c-9424-e75258907dcb" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobclientissnapshot0sastestblobclientissnapshot47d38411a3/javablobblobclientissnapshot144837b522f02b6c114a?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-snapshot" : "2019-08-23T21:51:08.9698950Z", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281401B5BB1A\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f78072be-301e-0094-06fc-5950b8000000", + "x-ms-request-server-encrypted" : "false", + "Date" : "Fri, 23 Aug 2019 21:51:08 GMT", + "x-ms-client-request-id" : "9b956318-5910-4c58-87c5-1e4050d53b2d" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcblobclientissnapshot&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f78072d1-301e-0094-18fc-5950b8000000", + "Body" : "jtcblobclientissnapshotjtcblobclientissnapshot0sastestblobclientissnapshot47d38411a3Fri, 23 Aug 2019 21:51:08 GMT\"0x8D7281401B07E79\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:08 GMT", + "x-ms-client-request-id" : "4c015b10-4858-4998-aa31-4563199d14f9", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobclientissnapshot0sastestblobclientissnapshot47d38411a3?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f78072e3-301e-0094-2afc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:08 GMT", + "x-ms-client-request-id" : "41e37760-af1f-4332-afb1-4e614a6c8273" + }, + "Exception" : null + } ], + "variables" : [ "jtcblobclientissnapshot0sastestblobclientissnapshot47d38411a3", "javablobblobclientissnapshot144837b522f02b6c114a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobrange[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobrange[0].json new file mode 100644 index 0000000000000..26f86be1f7b53 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobrange[0].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobrange0sastestblobrangefc143659ce1dd2ceef294?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728140147439A\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7807071-301e-0094-74fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:07 GMT", + "x-ms-client-request-id" : "daa6860c-ff68-45f9-8a67-c57a097beea0" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcblobrange&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7807083-301e-0094-80fc-5950b8000000", + "Body" : "jtcblobrangejtcblobrange0sastestblobrangefc143659ce1dd2ceef294Fri, 23 Aug 2019 21:51:08 GMT\"0x8D728140147439A\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:07 GMT", + "x-ms-client-request-id" : "50dd0134-bab4-4d62-9882-c5644baa8dd4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobrange0sastestblobrangefc143659ce1dd2ceef294?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7807095-301e-0094-10fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:07 GMT", + "x-ms-client-request-id" : "5ce3fad9-5a06-48cf-9f75-bde756c58822" + }, + "Exception" : null + } ], + "variables" : [ "jtcblobrange0sastestblobrangefc143659ce1dd2ceef294" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobrange[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobrange[1].json new file mode 100644 index 0000000000000..43887827240bd --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobrange[1].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobrange0sastestblobrange92600703f18c5f9cc9b24?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728140155C5EF\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f78070ac-301e-0094-27fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:07 GMT", + "x-ms-client-request-id" : "0fcf48e3-329f-4365-af98-cf110a8e4da0" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcblobrange&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f78070c4-301e-0094-3cfc-5950b8000000", + "Body" : "jtcblobrangejtcblobrange0sastestblobrange92600703f18c5f9cc9b24Fri, 23 Aug 2019 21:51:08 GMT\"0x8D728140155C5EF\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:07 GMT", + "x-ms-client-request-id" : "05eff2d6-7d7b-4054-b588-14d737bd401a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobrange0sastestblobrange92600703f18c5f9cc9b24?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f78070d2-301e-0094-49fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:07 GMT", + "x-ms-client-request-id" : "17695633-a731-4e41-9900-cd6c11c66dd9" + }, + "Exception" : null + } ], + "variables" : [ "jtcblobrange0sastestblobrange92600703f18c5f9cc9b24" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobrange[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobrange[2].json new file mode 100644 index 0000000000000..8fa297dd94ddc --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobrange[2].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobrange0sastestblobrange0de7066812b51e5e4e1d4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72814016532F3\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f78070ec-301e-0094-62fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:07 GMT", + "x-ms-client-request-id" : "c10918d9-6d79-4cf1-9663-d38f3c785e35" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcblobrange&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7807104-301e-0094-77fc-5950b8000000", + "Body" : "jtcblobrangejtcblobrange0sastestblobrange0de7066812b51e5e4e1d4Fri, 23 Aug 2019 21:51:08 GMT\"0x8D72814016532F3\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:08 GMT", + "x-ms-client-request-id" : "8552f842-6308-47ee-88d9-6019c54091af", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobrange0sastestblobrange0de7066812b51e5e4e1d4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7807116-301e-0094-05fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:08 GMT", + "x-ms-client-request-id" : "79181170-1ebd-4d58-8531-8dfd33808f36" + }, + "Exception" : null + } ], + "variables" : [ "jtcblobrange0sastestblobrange0de7066812b51e5e4e1d4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobrangeia[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobrangeia[0].json new file mode 100644 index 0000000000000..8477b6898d751 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobrangeia[0].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobrangeia0sastestblobrangeiab730514680a61f500d2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281401749FE4\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f780712d-301e-0094-18fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:08 GMT", + "x-ms-client-request-id" : "6e142199-d563-4ffd-bde3-2e1df50cf4e7" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcblobrangeia&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f780713c-301e-0094-26fc-5950b8000000", + "Body" : "jtcblobrangeiajtcblobrangeia0sastestblobrangeiab730514680a61f500d2Fri, 23 Aug 2019 21:51:08 GMT\"0x8D7281401749FE4\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:08 GMT", + "x-ms-client-request-id" : "812e6114-48ab-4103-bfd7-9c5b7628c43b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobrangeia0sastestblobrangeiab730514680a61f500d2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7807151-301e-0094-35fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:08 GMT", + "x-ms-client-request-id" : "55b448f3-20f0-4eab-8ce9-85a1b9d29b90" + }, + "Exception" : null + } ], + "variables" : [ "jtcblobrangeia0sastestblobrangeiab730514680a61f500d2" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobrangeia[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobrangeia[1].json new file mode 100644 index 0000000000000..4a42527d2c4ec --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobrangeia[1].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobrangeia0sastestblobrangeiac50474630f98c4a16b1?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281401834954\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7807173-301e-0094-54fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:08 GMT", + "x-ms-client-request-id" : "d289f41b-c5bb-43c3-88ea-c78563b1a5e3" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcblobrangeia&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7807188-301e-0094-67fc-5950b8000000", + "Body" : "jtcblobrangeiajtcblobrangeia0sastestblobrangeiac50474630f98c4a16b1Fri, 23 Aug 2019 21:51:08 GMT\"0x8D7281401834954\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:08 GMT", + "x-ms-client-request-id" : "031b3eaa-2592-41ed-ab38-3aad348cf4e9", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobrangeia0sastestblobrangeiac50474630f98c4a16b1?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f78071a3-301e-0094-80fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:08 GMT", + "x-ms-client-request-id" : "a83064ef-14aa-4c21-a4d8-a9a9ab08c06f" + }, + "Exception" : null + } ], + "variables" : [ "jtcblobrangeia0sastestblobrangeiac50474630f98c4a16b1" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobsaspermissionsparse[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobsaspermissionsparse[0].json new file mode 100644 index 0000000000000..19f4bf5395ff9 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobsaspermissionsparse[0].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobsaspermissionsparse08733477fc71be605045f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281404BA55F4\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f78082ba-301e-0094-12fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:13 GMT", + "x-ms-client-request-id" : "484e46f7-70e4-4ef8-bfcc-32114b0121ac" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcblobsaspermissionsparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f78082d4-301e-0094-29fc-5950b8000000", + "Body" : "jtcblobsaspermissionsparsejtcblobsaspermissionsparse08733477fc71be605045fFri, 23 Aug 2019 21:51:13 GMT\"0x8D7281404BA55F4\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:13 GMT", + "x-ms-client-request-id" : "9f61d18c-ed0e-4bf1-89e4-68f0033ef220", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobsaspermissionsparse08733477fc71be605045f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f78082f5-301e-0094-48fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:13 GMT", + "x-ms-client-request-id" : "3a446550-27de-4a8d-bbd2-38c08e886dce" + }, + "Exception" : null + } ], + "variables" : [ "jtcblobsaspermissionsparse08733477fc71be605045f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobsaspermissionsparse[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobsaspermissionsparse[1].json new file mode 100644 index 0000000000000..55a850a668493 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobsaspermissionsparse[1].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobsaspermissionsparse0938627dbb05178e0943d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281404CAD48C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f780831a-301e-0094-63fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:13 GMT", + "x-ms-client-request-id" : "6322df5f-c3ba-4a68-be7e-2b42103d1531" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcblobsaspermissionsparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7808390-301e-0094-42fc-5950b8000000", + "Body" : "jtcblobsaspermissionsparsejtcblobsaspermissionsparse0938627dbb05178e0943dFri, 23 Aug 2019 21:51:14 GMT\"0x8D7281404CAD48C\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:13 GMT", + "x-ms-client-request-id" : "f6f0f80e-3599-4ff3-8555-ac1ab29293fc", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobsaspermissionsparse0938627dbb05178e0943d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f78083a6-301e-0094-56fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:13 GMT", + "x-ms-client-request-id" : "95d7e3ed-a512-49af-9083-58e3095feb10" + }, + "Exception" : null + } ], + "variables" : [ "jtcblobsaspermissionsparse0938627dbb05178e0943d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobsaspermissionsparse[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobsaspermissionsparse[2].json new file mode 100644 index 0000000000000..fa92268e345cf --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobsaspermissionsparse[2].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobsaspermissionsparse02576651259c277314467?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281404ED0A8E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f78083bd-301e-0094-6dfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:13 GMT", + "x-ms-client-request-id" : "6f987a51-77a4-47c3-8b45-304b81b50b8e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcblobsaspermissionsparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f78083cf-301e-0094-7efc-5950b8000000", + "Body" : "jtcblobsaspermissionsparsejtcblobsaspermissionsparse02576651259c277314467Fri, 23 Aug 2019 21:51:14 GMT\"0x8D7281404ED0A8E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:13 GMT", + "x-ms-client-request-id" : "ee2ea0fe-7b21-4058-a368-ff6bc1a98867", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobsaspermissionsparse02576651259c277314467?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f78083e2-301e-0094-11fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:14 GMT", + "x-ms-client-request-id" : "edfe137b-5caa-4a1c-8c73-cbf0b1f3a617" + }, + "Exception" : null + } ], + "variables" : [ "jtcblobsaspermissionsparse02576651259c277314467" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobsaspermissionsparse[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobsaspermissionsparse[3].json new file mode 100644 index 0000000000000..79d26734f1e74 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobsaspermissionsparse[3].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobsaspermissionsparse02176877e03c7258a6458?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72814050A0F3A\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7808428-301e-0094-4efc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:14 GMT", + "x-ms-client-request-id" : "ed69de98-1fcd-4eae-ab05-8d55e17bc2b0" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcblobsaspermissionsparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f780845f-301e-0094-78fc-5950b8000000", + "Body" : "jtcblobsaspermissionsparsejtcblobsaspermissionsparse02176877e03c7258a6458Fri, 23 Aug 2019 21:51:14 GMT\"0x8D72814050A0F3A\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:14 GMT", + "x-ms-client-request-id" : "a037acd4-6b02-45a1-ae95-9978a7d5e6b8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobsaspermissionsparse02176877e03c7258a6458?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7808473-301e-0094-0bfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:14 GMT", + "x-ms-client-request-id" : "ea0b8601-5f5a-4dca-8f90-d4aba787457f" + }, + "Exception" : null + } ], + "variables" : [ "jtcblobsaspermissionsparse02176877e03c7258a6458" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobsaspermissionsparse[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobsaspermissionsparse[4].json new file mode 100644 index 0000000000000..f2e44f5e01558 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobsaspermissionsparse[4].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobsaspermissionsparse003080f6dacb7263364b0?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728140528C1F8\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f78084d5-301e-0094-63fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:14 GMT", + "x-ms-client-request-id" : "253f73d5-18bd-4243-8ac7-2204b0b6b991" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcblobsaspermissionsparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f78084ed-301e-0094-77fc-5950b8000000", + "Body" : "jtcblobsaspermissionsparsejtcblobsaspermissionsparse003080f6dacb7263364b0Fri, 23 Aug 2019 21:51:14 GMT\"0x8D728140528C1F8\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:14 GMT", + "x-ms-client-request-id" : "bf3a4e06-8bed-40f8-a1f6-cb487cdcf21b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobsaspermissionsparse003080f6dacb7263364b0?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f78084fe-301e-0094-06fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:14 GMT", + "x-ms-client-request-id" : "61060476-1c62-442e-a3a1-8d22f8f1789a" + }, + "Exception" : null + } ], + "variables" : [ "jtcblobsaspermissionsparse003080f6dacb7263364b0" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobsaspermissionsparse[5].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobsaspermissionsparse[5].json new file mode 100644 index 0000000000000..5fbaa6a91c530 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobsaspermissionsparse[5].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobsaspermissionsparse0233871cc49a83641f447?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728140537444B\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7808513-301e-0094-17fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:14 GMT", + "x-ms-client-request-id" : "fbc34666-0e69-405b-bb8c-f18bf5da5240" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcblobsaspermissionsparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7808529-301e-0094-2afc-5950b8000000", + "Body" : "jtcblobsaspermissionsparsejtcblobsaspermissionsparse0233871cc49a83641f447Fri, 23 Aug 2019 21:51:14 GMT\"0x8D728140537444B\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:14 GMT", + "x-ms-client-request-id" : "4d756185-b698-48da-9488-59958f62865a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobsaspermissionsparse0233871cc49a83641f447?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7808538-301e-0094-35fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:14 GMT", + "x-ms-client-request-id" : "ccb1758a-6bc1-49b2-a2ad-27ebdb624bef" + }, + "Exception" : null + } ], + "variables" : [ "jtcblobsaspermissionsparse0233871cc49a83641f447" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobsaspermissionsparse[6].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobsaspermissionsparse[6].json new file mode 100644 index 0000000000000..f741d3cc802db --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobsaspermissionsparse[6].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobsaspermissionsparse0686899d074a0cfeda433?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281405474DA3\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7808548-301e-0094-44fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:14 GMT", + "x-ms-client-request-id" : "259c804d-1c5a-4480-bc53-fff1328af68a" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcblobsaspermissionsparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7808564-301e-0094-5efc-5950b8000000", + "Body" : "jtcblobsaspermissionsparsejtcblobsaspermissionsparse0686899d074a0cfeda433Fri, 23 Aug 2019 21:51:14 GMT\"0x8D7281405474DA3\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:14 GMT", + "x-ms-client-request-id" : "d17bede9-65b4-45d3-b0d3-fd749081ad6d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobsaspermissionsparse0686899d074a0cfeda433?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7808579-301e-0094-71fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:14 GMT", + "x-ms-client-request-id" : "ff4268e0-9de8-47b5-84f2-fca7415389f9" + }, + "Exception" : null + } ], + "variables" : [ "jtcblobsaspermissionsparse0686899d074a0cfeda433" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobsaspermissionsparseia.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobsaspermissionsparseia.json new file mode 100644 index 0000000000000..90ceef25e3703 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobsaspermissionsparseia.json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobsaspermissionsparseia095152344c801f10ad44?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72814055756EE\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f78085a1-301e-0094-13fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:14 GMT", + "x-ms-client-request-id" : "e6012fdd-7fbe-4150-88a9-c3e15295f607" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcblobsaspermissionsparseia&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f78085f9-301e-0094-64fc-5950b8000000", + "Body" : "jtcblobsaspermissionsparseiajtcblobsaspermissionsparseia095152344c801f10ad44Fri, 23 Aug 2019 21:51:15 GMT\"0x8D72814055756EE\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:14 GMT", + "x-ms-client-request-id" : "5a50408e-54e7-4b34-b948-73c276cd38e8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobsaspermissionsparseia095152344c801f10ad44?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7808602-301e-0094-6dfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:14 GMT", + "x-ms-client-request-id" : "3fce7a03-ad73-4cf3-aa90-b64ca490eeb8" + }, + "Exception" : null + } ], + "variables" : [ "jtcblobsaspermissionsparseia095152344c801f10ad44" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobsaspermissionstostring[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobsaspermissionstostring[0].json new file mode 100644 index 0000000000000..38d1560d58921 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobsaspermissionstostring[0].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobsaspermissionstostring0802828bc23ad7af2440?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72814045E64C8\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f78080eb-301e-0094-80fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:12 GMT", + "x-ms-client-request-id" : "e289497c-9eb3-41fe-b8f3-3f8f09aa0e0e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcblobsaspermissionstostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f78080fa-301e-0094-0dfc-5950b8000000", + "Body" : "jtcblobsaspermissionstostringjtcblobsaspermissionstostring0802828bc23ad7af2440Fri, 23 Aug 2019 21:51:13 GMT\"0x8D72814045E64C8\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:12 GMT", + "x-ms-client-request-id" : "c743ce59-c11d-4092-a776-da0ae80f883c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobsaspermissionstostring0802828bc23ad7af2440?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f780810c-301e-0094-1efc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:13 GMT", + "x-ms-client-request-id" : "a4383762-f4de-47ea-a286-92eca1f89c0b" + }, + "Exception" : null + } ], + "variables" : [ "jtcblobsaspermissionstostring0802828bc23ad7af2440" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobsaspermissionstostring[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobsaspermissionstostring[1].json new file mode 100644 index 0000000000000..97aa22b6b1f9a --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobsaspermissionstostring[1].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobsaspermissionstostring066105c10f2a6c425646?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72814046F7FC4\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7808134-301e-0094-45fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:13 GMT", + "x-ms-client-request-id" : "7163a804-674a-4610-b012-b15dc0a47629" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcblobsaspermissionstostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f780814b-301e-0094-56fc-5950b8000000", + "Body" : "jtcblobsaspermissionstostringjtcblobsaspermissionstostring066105c10f2a6c425646Fri, 23 Aug 2019 21:51:13 GMT\"0x8D72814046F7FC4\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:13 GMT", + "x-ms-client-request-id" : "e105c1f2-ded7-4466-8fe4-5ced58548ab3", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobsaspermissionstostring066105c10f2a6c425646?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7808165-301e-0094-6bfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:13 GMT", + "x-ms-client-request-id" : "69efbf4f-d4e9-42da-8dfa-c1378e8b4fd8" + }, + "Exception" : null + } ], + "variables" : [ "jtcblobsaspermissionstostring066105c10f2a6c425646" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobsaspermissionstostring[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobsaspermissionstostring[2].json new file mode 100644 index 0000000000000..90f3d68e9bdea --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobsaspermissionstostring[2].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobsaspermissionstostring097336591a04e3c17640?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72814047DDB0A\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f780817f-301e-0094-80fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:13 GMT", + "x-ms-client-request-id" : "d480d999-d3fa-45cb-88b4-bb131808f885" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcblobsaspermissionstostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7808192-301e-0094-10fc-5950b8000000", + "Body" : "jtcblobsaspermissionstostringjtcblobsaspermissionstostring097336591a04e3c17640Fri, 23 Aug 2019 21:51:13 GMT\"0x8D72814047DDB0A\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:13 GMT", + "x-ms-client-request-id" : "f5b5d8cf-c85f-4030-ba0b-2f066219d931", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobsaspermissionstostring097336591a04e3c17640?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f78081a4-301e-0094-1ffc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:13 GMT", + "x-ms-client-request-id" : "57167c0e-f6ba-477f-92bd-74518b808223" + }, + "Exception" : null + } ], + "variables" : [ "jtcblobsaspermissionstostring097336591a04e3c17640" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobsaspermissionstostring[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobsaspermissionstostring[3].json new file mode 100644 index 0000000000000..dfb7d438c6e99 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobsaspermissionstostring[3].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobsaspermissionstostring0119800809cf22eabe41?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72814048C8479\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f78081cd-301e-0094-41fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:13 GMT", + "x-ms-client-request-id" : "79b13a6d-1a0e-4ccc-ba5e-b7900f89a727" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcblobsaspermissionstostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f78081f7-301e-0094-63fc-5950b8000000", + "Body" : "jtcblobsaspermissionstostringjtcblobsaspermissionstostring0119800809cf22eabe41Fri, 23 Aug 2019 21:51:13 GMT\"0x8D72814048C8479\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:13 GMT", + "x-ms-client-request-id" : "d3452752-3070-4d31-8677-ee3132f541bd", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobsaspermissionstostring0119800809cf22eabe41?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7808206-301e-0094-72fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:13 GMT", + "x-ms-client-request-id" : "f8525207-2c7a-4f41-9178-1010e8d8a356" + }, + "Exception" : null + } ], + "variables" : [ "jtcblobsaspermissionstostring0119800809cf22eabe41" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobsaspermissionstostring[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobsaspermissionstostring[4].json new file mode 100644 index 0000000000000..11048af6073c2 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobsaspermissionstostring[4].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobsaspermissionstostring00268038853e9eeac740?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72814049B2DDF\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7808222-301e-0094-0cfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:13 GMT", + "x-ms-client-request-id" : "e000bacc-45b7-4361-b5db-dad45dc27d8b" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcblobsaspermissionstostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7808237-301e-0094-1cfc-5950b8000000", + "Body" : "jtcblobsaspermissionstostringjtcblobsaspermissionstostring00268038853e9eeac740Fri, 23 Aug 2019 21:51:13 GMT\"0x8D72814049B2DDF\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:13 GMT", + "x-ms-client-request-id" : "7b705fbe-df93-4bf8-8986-e9a35142f0c3", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobsaspermissionstostring00268038853e9eeac740?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7808243-301e-0094-28fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:13 GMT", + "x-ms-client-request-id" : "364c5a58-89d1-453c-8090-8a46fa326b8d" + }, + "Exception" : null + } ], + "variables" : [ "jtcblobsaspermissionstostring00268038853e9eeac740" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobsaspermissionstostring[5].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobsaspermissionstostring[5].json new file mode 100644 index 0000000000000..667d3a7b0ed50 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestblobsaspermissionstostring[5].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobsaspermissionstostring032967c3ae5e03afc142?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281404AA2580\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7808261-301e-0094-43fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:13 GMT", + "x-ms-client-request-id" : "76f0e4cc-9599-498b-b87d-2fe550aa2ab7" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcblobsaspermissionstostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f780827f-301e-0094-5efc-5950b8000000", + "Body" : "jtcblobsaspermissionstostringjtcblobsaspermissionstostring032967c3ae5e03afc142Fri, 23 Aug 2019 21:51:13 GMT\"0x8D7281404AA2580\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:13 GMT", + "x-ms-client-request-id" : "e0668a87-09b7-401a-be23-52eae8ac2570", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcblobsaspermissionstostring032967c3ae5e03afc142?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7808291-301e-0094-6ffc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:13 GMT", + "x-ms-client-request-id" : "58da562c-cca9-4e75-ba4c-42417f2003c2" + }, + "Exception" : null + } ], + "variables" : [ "jtcblobsaspermissionstostring032967c3ae5e03afc142" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestbloburlparts.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestbloburlparts.json new file mode 100644 index 0000000000000..3932f5fdcda3b --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestbloburlparts.json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbloburlparts0sastestbloburlpartsb511862717896a28bf?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281409C50951\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7809b28-301e-0094-65fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:22 GMT", + "x-ms-client-request-id" : "315271fc-2b4d-4a7e-9bdc-c8278f8e6ddf" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcbloburlparts&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7809b43-301e-0094-7efc-5950b8000000", + "Body" : "jtcbloburlpartsjtcbloburlparts0sastestbloburlpartsb511862717896a28bfFri, 23 Aug 2019 21:51:22 GMT\"0x8D7281409C50951\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:22 GMT", + "x-ms-client-request-id" : "0f56a486-2e15-4998-a6da-83c6c14deafc", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcbloburlparts0sastestbloburlpartsb511862717896a28bf?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7809b53-301e-0094-0bfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:22 GMT", + "x-ms-client-request-id" : "85145e7f-b9fe-4993-b810-717a1fb0fb99" + }, + "Exception" : null + } ], + "variables" : [ "jtcbloburlparts0sastestbloburlpartsb511862717896a28bf" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestcontainersaspermissionsparse[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestcontainersaspermissionsparse[0].json new file mode 100644 index 0000000000000..93e5121778d93 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestcontainersaspermissionsparse[0].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionsparse076067fd28c5e0d0fe4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281405DF4462\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f780884c-301e-0094-76fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:15 GMT", + "x-ms-client-request-id" : "75231733-4ea3-4021-9c9b-30cdcd4b7b43" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccontainersaspermissionsparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f780885b-301e-0094-04fc-5950b8000000", + "Body" : "jtccontainersaspermissionsparsejtccontainersaspermissionsparse076067fd28c5e0d0fe4Fri, 23 Aug 2019 21:51:15 GMT\"0x8D7281405DF4462\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:15 GMT", + "x-ms-client-request-id" : "4fd40059-3ac0-41fc-8487-ac26f1a7b84c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionsparse076067fd28c5e0d0fe4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f780886f-301e-0094-14fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:15 GMT", + "x-ms-client-request-id" : "1d274daf-5844-419f-8d7b-baecb58c1495" + }, + "Exception" : null + } ], + "variables" : [ "jtccontainersaspermissionsparse076067fd28c5e0d0fe4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestcontainersaspermissionsparse[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestcontainersaspermissionsparse[1].json new file mode 100644 index 0000000000000..802fe8a83a095 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestcontainersaspermissionsparse[1].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionsparse042429606f945a73b74?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281405EEB155\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7808888-301e-0094-2bfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:15 GMT", + "x-ms-client-request-id" : "6410d35a-1ec2-49d3-a6ac-c35d9f892121" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccontainersaspermissionsparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f780889c-301e-0094-3bfc-5950b8000000", + "Body" : "jtccontainersaspermissionsparsejtccontainersaspermissionsparse042429606f945a73b74Fri, 23 Aug 2019 21:51:16 GMT\"0x8D7281405EEB155\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:15 GMT", + "x-ms-client-request-id" : "6d3ab3ad-3b42-46c2-b23e-b024344c9bac", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionsparse042429606f945a73b74?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f78088b1-301e-0094-4ffc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:15 GMT", + "x-ms-client-request-id" : "7609f0b4-244d-430e-b7dc-2e9b8afcb217" + }, + "Exception" : null + } ], + "variables" : [ "jtccontainersaspermissionsparse042429606f945a73b74" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestcontainersaspermissionsparse[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestcontainersaspermissionsparse[2].json new file mode 100644 index 0000000000000..8902fc866c2ef --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestcontainersaspermissionsparse[2].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionsparse075769464fd43cf9dd4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728140600DE04\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f78088d7-301e-0094-6cfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:15 GMT", + "x-ms-client-request-id" : "de205560-f37f-4d11-be15-8424c704aefb" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccontainersaspermissionsparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f78088f2-301e-0094-03fc-5950b8000000", + "Body" : "jtccontainersaspermissionsparsejtccontainersaspermissionsparse075769464fd43cf9dd4Fri, 23 Aug 2019 21:51:16 GMT\"0x8D728140600DE04\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:15 GMT", + "x-ms-client-request-id" : "33a29f29-fb45-43a7-975b-982baad6ade7", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionsparse075769464fd43cf9dd4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7808903-301e-0094-14fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:15 GMT", + "x-ms-client-request-id" : "9c3c3df1-077d-4022-8a9a-2e27ad08ab22" + }, + "Exception" : null + } ], + "variables" : [ "jtccontainersaspermissionsparse075769464fd43cf9dd4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestcontainersaspermissionsparse[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestcontainersaspermissionsparse[3].json new file mode 100644 index 0000000000000..4ac71666ce002 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestcontainersaspermissionsparse[3].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionsparse0146326160880ec60a4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72814060FFCB8\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7808927-301e-0094-34fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:15 GMT", + "x-ms-client-request-id" : "11ba8711-4990-438f-a9b0-ba3a77bd0ee8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccontainersaspermissionsparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7808941-301e-0094-49fc-5950b8000000", + "Body" : "jtccontainersaspermissionsparsejtccontainersaspermissionsparse0146326160880ec60a4Fri, 23 Aug 2019 21:51:16 GMT\"0x8D72814060FFCB8\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:15 GMT", + "x-ms-client-request-id" : "9fe79f1d-d821-4856-b320-a7a34837137e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionsparse0146326160880ec60a4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7808950-301e-0094-56fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:15 GMT", + "x-ms-client-request-id" : "7f8233d1-9aa3-4a39-bd39-d875e4939489" + }, + "Exception" : null + } ], + "variables" : [ "jtccontainersaspermissionsparse0146326160880ec60a4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestcontainersaspermissionsparse[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestcontainersaspermissionsparse[4].json new file mode 100644 index 0000000000000..32953e2af03bf --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestcontainersaspermissionsparse[4].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionsparse076527041260e7b7e64?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72814061E30E7\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f780896c-301e-0094-70fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:15 GMT", + "x-ms-client-request-id" : "36eb8edf-2ba3-49ae-8f70-ef80853f49b6" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccontainersaspermissionsparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7808981-301e-0094-02fc-5950b8000000", + "Body" : "jtccontainersaspermissionsparsejtccontainersaspermissionsparse076527041260e7b7e64Fri, 23 Aug 2019 21:51:16 GMT\"0x8D72814061E30E7\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:15 GMT", + "x-ms-client-request-id" : "9eb9e861-a6bd-4bd1-aa0f-d74cf0e3dacd", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionsparse076527041260e7b7e64?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7808995-301e-0094-14fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:15 GMT", + "x-ms-client-request-id" : "08703703-79d2-45ff-8761-9a0d3f25e54b" + }, + "Exception" : null + } ], + "variables" : [ "jtccontainersaspermissionsparse076527041260e7b7e64" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestcontainersaspermissionsparse[5].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestcontainersaspermissionsparse[5].json new file mode 100644 index 0000000000000..2729c2b76613f --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestcontainersaspermissionsparse[5].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionsparse084853615246dee1884?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72814062C8C1F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f78089b0-301e-0094-2efc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:15 GMT", + "x-ms-client-request-id" : "68a94911-05f9-48ec-ab5e-901361cd9e12" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccontainersaspermissionsparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f78089c9-301e-0094-41fc-5950b8000000", + "Body" : "jtccontainersaspermissionsparsejtccontainersaspermissionsparse084853615246dee1884Fri, 23 Aug 2019 21:51:16 GMT\"0x8D72814062C8C1F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:16 GMT", + "x-ms-client-request-id" : "43dda32a-171a-4103-a162-b60d0066fb2c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionsparse084853615246dee1884?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f78089e2-301e-0094-59fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:16 GMT", + "x-ms-client-request-id" : "12e1ddb8-8dca-41d8-8777-d2d1e1258de9" + }, + "Exception" : null + } ], + "variables" : [ "jtccontainersaspermissionsparse084853615246dee1884" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestcontainersaspermissionsparse[6].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestcontainersaspermissionsparse[6].json new file mode 100644 index 0000000000000..8adc2f5446fad --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestcontainersaspermissionsparse[6].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionsparse080797fe8fb4e517f44?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72814063D31DC\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7808a01-301e-0094-74fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:16 GMT", + "x-ms-client-request-id" : "488ec6f9-13d6-414b-aa2a-b49a0e393dcc" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccontainersaspermissionsparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7808a1f-301e-0094-0efc-5950b8000000", + "Body" : "jtccontainersaspermissionsparsejtccontainersaspermissionsparse080797fe8fb4e517f44Fri, 23 Aug 2019 21:51:16 GMT\"0x8D72814063D31DC\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:16 GMT", + "x-ms-client-request-id" : "bd0d245d-d5b4-4fbe-b189-3cd4323a6f98", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionsparse080797fe8fb4e517f44?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7808a37-301e-0094-25fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:16 GMT", + "x-ms-client-request-id" : "df5da507-92b8-4ea6-b40f-55ec73725bc5" + }, + "Exception" : null + } ], + "variables" : [ "jtccontainersaspermissionsparse080797fe8fb4e517f44" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestcontainersaspermissionsparse[7].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestcontainersaspermissionsparse[7].json new file mode 100644 index 0000000000000..bee202d2ac08d --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestcontainersaspermissionsparse[7].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionsparse0636345efd68ee12184?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281406588875\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7808a95-301e-0094-7afc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:16 GMT", + "x-ms-client-request-id" : "c0fd0843-04e8-4830-8b84-303e9192afe4" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccontainersaspermissionsparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7808ab2-301e-0094-12fc-5950b8000000", + "Body" : "jtccontainersaspermissionsparsejtccontainersaspermissionsparse0636345efd68ee12184Fri, 23 Aug 2019 21:51:16 GMT\"0x8D7281406588875\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:16 GMT", + "x-ms-client-request-id" : "cfb14822-6cec-4b00-b57b-495ed2ab077d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionsparse0636345efd68ee12184?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7808ac3-301e-0094-21fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:16 GMT", + "x-ms-client-request-id" : "7e575e8c-8422-421e-91b4-48644a93d561" + }, + "Exception" : null + } ], + "variables" : [ "jtccontainersaspermissionsparse0636345efd68ee12184" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestcontainersaspermissionsparseia.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestcontainersaspermissionsparseia.json new file mode 100644 index 0000000000000..8799826997590 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestcontainersaspermissionsparseia.json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionsparseia08137495ee314d8d91?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728140666E3A8\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7808adb-301e-0094-38fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:16 GMT", + "x-ms-client-request-id" : "960502d2-51f5-40b8-8998-f4d614d17c4a" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccontainersaspermissionsparseia&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7808aef-301e-0094-49fc-5950b8000000", + "Body" : "jtccontainersaspermissionsparseiajtccontainersaspermissionsparseia08137495ee314d8d91Fri, 23 Aug 2019 21:51:16 GMT\"0x8D728140666E3A8\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:16 GMT", + "x-ms-client-request-id" : "81ee7dd2-38f5-401f-a319-ba7e98569821", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionsparseia08137495ee314d8d91?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7808b06-301e-0094-60fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:16 GMT", + "x-ms-client-request-id" : "c233b1de-c0fc-47ef-9e1d-ff92aa971200" + }, + "Exception" : null + } ], + "variables" : [ "jtccontainersaspermissionsparseia08137495ee314d8d91" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestcontainersaspermissionstostring[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestcontainersaspermissionstostring[0].json new file mode 100644 index 0000000000000..90e676ade35fa --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestcontainersaspermissionstostring[0].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionstostring06429765a4d83be54?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728140572AD95\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7808622-301e-0094-0bfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:14 GMT", + "x-ms-client-request-id" : "45df0fe0-e74a-4873-8792-0bd9827c23d2" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccontainersaspermissionstostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f780863a-301e-0094-22fc-5950b8000000", + "Body" : "jtccontainersaspermissionstostringjtccontainersaspermissionstostring06429765a4d83be54Fri, 23 Aug 2019 21:51:15 GMT\"0x8D728140572AD95\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:14 GMT", + "x-ms-client-request-id" : "5594ae9b-a1f2-40a6-b276-4ef8580ff890", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionstostring06429765a4d83be54?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f780864c-301e-0094-34fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:14 GMT", + "x-ms-client-request-id" : "64d45dca-c69a-4d6a-952e-30335278dfea" + }, + "Exception" : null + } ], + "variables" : [ "jtccontainersaspermissionstostring06429765a4d83be54" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestcontainersaspermissionstostring[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestcontainersaspermissionstostring[1].json new file mode 100644 index 0000000000000..2dc17e6c1d13c --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestcontainersaspermissionstostring[1].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionstostring03631064ce5479cd8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72814058108C3\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7808660-301e-0094-48fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:14 GMT", + "x-ms-client-request-id" : "ddd66734-f7e8-4e35-a5c9-51fe49705977" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccontainersaspermissionstostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7808679-301e-0094-5cfc-5950b8000000", + "Body" : "jtccontainersaspermissionstostringjtccontainersaspermissionstostring03631064ce5479cd8Fri, 23 Aug 2019 21:51:15 GMT\"0x8D72814058108C3\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:14 GMT", + "x-ms-client-request-id" : "0e2954d3-511b-4caf-9463-43d57fada449", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionstostring03631064ce5479cd8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7808696-301e-0094-78fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:14 GMT", + "x-ms-client-request-id" : "6c129ed3-094a-4a91-819c-5030e5906a5f" + }, + "Exception" : null + } ], + "variables" : [ "jtccontainersaspermissionstostring03631064ce5479cd8" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestcontainersaspermissionstostring[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestcontainersaspermissionstostring[2].json new file mode 100644 index 0000000000000..618d91e2e6a7b --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestcontainersaspermissionstostring[2].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionstostring0499635d3d76ca082?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281405900069\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f78086b3-301e-0094-13fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:14 GMT", + "x-ms-client-request-id" : "7a95e783-a41a-4712-9ff3-292b63fbb936" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccontainersaspermissionstostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f78086d0-301e-0094-2dfc-5950b8000000", + "Body" : "jtccontainersaspermissionstostringjtccontainersaspermissionstostring0499635d3d76ca082Fri, 23 Aug 2019 21:51:15 GMT\"0x8D7281405900069\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:14 GMT", + "x-ms-client-request-id" : "50ee00e8-7c00-4fa4-a055-01f29c43720c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionstostring0499635d3d76ca082?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f78086ed-301e-0094-45fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:15 GMT", + "x-ms-client-request-id" : "f8be6a85-192a-40cf-8715-b3f0c841fc3b" + }, + "Exception" : null + } ], + "variables" : [ "jtccontainersaspermissionstostring0499635d3d76ca082" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestcontainersaspermissionstostring[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestcontainersaspermissionstostring[3].json new file mode 100644 index 0000000000000..85c375d8d3470 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestcontainersaspermissionstostring[3].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionstostring0678103d4a1a1914a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72814059FE29D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f780870f-301e-0094-62fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:15 GMT", + "x-ms-client-request-id" : "02d3fe8d-8713-4020-8e0f-0f061f6ff8cf" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccontainersaspermissionstostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7808725-301e-0094-75fc-5950b8000000", + "Body" : "jtccontainersaspermissionstostringjtccontainersaspermissionstostring0678103d4a1a1914aFri, 23 Aug 2019 21:51:15 GMT\"0x8D72814059FE29D\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:15 GMT", + "x-ms-client-request-id" : "547dced0-c3b3-496e-b5a1-ec78a1790c7f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionstostring0678103d4a1a1914a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7808732-301e-0094-02fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:15 GMT", + "x-ms-client-request-id" : "e8f5cc2f-855e-463b-9dda-86af56afc0e1" + }, + "Exception" : null + } ], + "variables" : [ "jtccontainersaspermissionstostring0678103d4a1a1914a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestcontainersaspermissionstostring[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestcontainersaspermissionstostring[4].json new file mode 100644 index 0000000000000..23a6be118436c --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestcontainersaspermissionstostring[4].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionstostring096078f6109b468dd?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281405AE16C2\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f780874e-301e-0094-19fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:15 GMT", + "x-ms-client-request-id" : "2d8d31d6-480e-464f-9f1c-dc342c61a590" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccontainersaspermissionstostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7808766-301e-0094-2efc-5950b8000000", + "Body" : "jtccontainersaspermissionstostringjtccontainersaspermissionstostring096078f6109b468ddFri, 23 Aug 2019 21:51:15 GMT\"0x8D7281405AE16C2\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:15 GMT", + "x-ms-client-request-id" : "5010eec8-1c37-43e0-af31-9d68e3d24c6d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionstostring096078f6109b468dd?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7808771-301e-0094-39fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:15 GMT", + "x-ms-client-request-id" : "3839972c-936d-4b1c-9b21-194ce28eb615" + }, + "Exception" : null + } ], + "variables" : [ "jtccontainersaspermissionstostring096078f6109b468dd" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestcontainersaspermissionstostring[5].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestcontainersaspermissionstostring[5].json new file mode 100644 index 0000000000000..905b18ca89868 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestcontainersaspermissionstostring[5].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionstostring0403295a4a707ebc7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281405BC4AED\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7808790-301e-0094-55fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:15 GMT", + "x-ms-client-request-id" : "f5aed9c0-d190-47e9-8bf3-c420e885b7a4" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccontainersaspermissionstostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f78087ad-301e-0094-6ffc-5950b8000000", + "Body" : "jtccontainersaspermissionstostringjtccontainersaspermissionstostring0403295a4a707ebc7Fri, 23 Aug 2019 21:51:15 GMT\"0x8D7281405BC4AED\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:15 GMT", + "x-ms-client-request-id" : "3a2550bd-685c-430a-a7c7-c1909de7799f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionstostring0403295a4a707ebc7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f78087c0-301e-0094-7ffc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:15 GMT", + "x-ms-client-request-id" : "e6772f8b-e8c0-4ecc-9ab8-9daaf985d194" + }, + "Exception" : null + } ], + "variables" : [ "jtccontainersaspermissionstostring0403295a4a707ebc7" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestcontainersaspermissionstostring[6].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestcontainersaspermissionstostring[6].json new file mode 100644 index 0000000000000..95df3c99beda9 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestcontainersaspermissionstostring[6].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionstostring04833370feebbdc70?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281405CEECEA\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f78087f9-301e-0094-2ffc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:15 GMT", + "x-ms-client-request-id" : "f6841d98-af20-48e5-a516-d0bfbe597734" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtccontainersaspermissionstostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f780881a-301e-0094-4cfc-5950b8000000", + "Body" : "jtccontainersaspermissionstostringjtccontainersaspermissionstostring04833370feebbdc70Fri, 23 Aug 2019 21:51:15 GMT\"0x8D7281405CEECEA\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:15 GMT", + "x-ms-client-request-id" : "da3929c1-1c53-40f3-a4e8-91d90c8f38fe", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtccontainersaspermissionstostring04833370feebbdc70?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f780882f-301e-0094-5dfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:15 GMT", + "x-ms-client-request-id" : "76c1f62a-930b-4f1c-82ea-64bc795e48cc" + }, + "Exception" : null + } ], + "variables" : [ "jtccontainersaspermissionstostring04833370feebbdc70" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestiprangeparse[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestiprangeparse[0].json new file mode 100644 index 0000000000000..a67ab1cec4d62 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestiprangeparse[0].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtciprangeparse0sastestiprangeparse93901923103fb7667f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281406A3FAFF\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7808c14-301e-0094-4afc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:16 GMT", + "x-ms-client-request-id" : "376c38d7-6f0f-4cea-9d8c-101718507a44" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtciprangeparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7808c2e-301e-0094-61fc-5950b8000000", + "Body" : "jtciprangeparsejtciprangeparse0sastestiprangeparse93901923103fb7667fFri, 23 Aug 2019 21:51:17 GMT\"0x8D7281406A3FAFF\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:16 GMT", + "x-ms-client-request-id" : "f287603a-ae21-46d6-85bd-9684a362d12c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtciprangeparse0sastestiprangeparse93901923103fb7667f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7808c37-301e-0094-69fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:16 GMT", + "x-ms-client-request-id" : "97b0359a-e1ac-4d35-b2e2-2042757d0442" + }, + "Exception" : null + } ], + "variables" : [ "jtciprangeparse0sastestiprangeparse93901923103fb7667f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestiprangeparse[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestiprangeparse[1].json new file mode 100644 index 0000000000000..01d13bf41b88f --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestiprangeparse[1].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtciprangeparse0sastestiprangeparseb613467552082c76fd?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281406B38EFC\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7808c4a-301e-0094-7afc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:16 GMT", + "x-ms-client-request-id" : "fa44569c-9daa-4860-8b19-e03b49958ae5" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtciprangeparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7808c6b-301e-0094-17fc-5950b8000000", + "Body" : "jtciprangeparsejtciprangeparse0sastestiprangeparseb613467552082c76fdFri, 23 Aug 2019 21:51:17 GMT\"0x8D7281406B38EFC\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:16 GMT", + "x-ms-client-request-id" : "089a68fe-7f0f-4159-918d-1be93617c0db", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtciprangeparse0sastestiprangeparseb613467552082c76fd?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7808c80-301e-0094-2cfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:16 GMT", + "x-ms-client-request-id" : "3fb5e126-f665-429f-bb7e-714db1826a96" + }, + "Exception" : null + } ], + "variables" : [ "jtciprangeparse0sastestiprangeparseb613467552082c76fd" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestiprangeparse[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestiprangeparse[2].json new file mode 100644 index 0000000000000..36b9d81e26c48 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestiprangeparse[2].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtciprangeparse0sastestiprangeparsec4109122476d043c0e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281406C23866\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7808c9a-301e-0094-43fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:16 GMT", + "x-ms-client-request-id" : "a8234175-5613-46d4-8288-010187c5fa79" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtciprangeparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7808cb1-301e-0094-54fc-5950b8000000", + "Body" : "jtciprangeparsejtciprangeparse0sastestiprangeparsec4109122476d043c0eFri, 23 Aug 2019 21:51:17 GMT\"0x8D7281406C23866\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:17 GMT", + "x-ms-client-request-id" : "6405fc92-d54e-493c-aaba-79ac0ac2bdb9", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtciprangeparse0sastestiprangeparsec4109122476d043c0e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7808cbe-301e-0094-61fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:17 GMT", + "x-ms-client-request-id" : "d029d001-be1e-4dc1-aa14-158fd8f54216" + }, + "Exception" : null + } ], + "variables" : [ "jtciprangeparse0sastestiprangeparsec4109122476d043c0e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestiprangetostring[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestiprangetostring[0].json new file mode 100644 index 0000000000000..456b94eda671b --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestiprangetostring[0].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtciprangetostring0sastestiprangetostringece871124860922?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72814067873F7\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7808b39-301e-0094-09fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:16 GMT", + "x-ms-client-request-id" : "b9910643-67f8-47f7-acab-cf68edb50384" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtciprangetostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7808b52-301e-0094-1dfc-5950b8000000", + "Body" : "jtciprangetostringjtciprangetostring0sastestiprangetostringece871124860922Fri, 23 Aug 2019 21:51:16 GMT\"0x8D72814067873F7\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:16 GMT", + "x-ms-client-request-id" : "b18bef59-3015-40d6-9ce9-81879519d15a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtciprangetostring0sastestiprangetostringece871124860922?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7808b70-301e-0094-39fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:16 GMT", + "x-ms-client-request-id" : "b9fd5ce0-13b2-48d4-815c-d4787f191df0" + }, + "Exception" : null + } ], + "variables" : [ "jtciprangetostring0sastestiprangetostringece871124860922" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestiprangetostring[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestiprangetostring[1].json new file mode 100644 index 0000000000000..e18ad9c300960 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestiprangetostring[1].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtciprangetostring0sastestiprangetostring5c215188a918de1?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728140686CF3D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7808b97-301e-0094-58fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:16 GMT", + "x-ms-client-request-id" : "33ff7bfc-c4de-476c-8aad-4780b58890e2" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtciprangetostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7808bb0-301e-0094-6ffc-5950b8000000", + "Body" : "jtciprangetostringjtciprangetostring0sastestiprangetostring5c215188a918de1Fri, 23 Aug 2019 21:51:17 GMT\"0x8D728140686CF3D\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:16 GMT", + "x-ms-client-request-id" : "8daa9dc5-b329-4015-bf72-8428d6160af5", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtciprangetostring0sastestiprangetostring5c215188a918de1?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7808bc4-301e-0094-01fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:16 GMT", + "x-ms-client-request-id" : "ede0e7cc-6032-46f0-9dec-a3523e616a71" + }, + "Exception" : null + } ], + "variables" : [ "jtciprangetostring0sastestiprangetostring5c215188a918de1" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestiprangetostring[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestiprangetostring[2].json new file mode 100644 index 0000000000000..132cf11b30dba --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestiprangetostring[2].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtciprangetostring0sastestiprangetostring40f987541fbdddf?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281406959FB9\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7808be2-301e-0094-1cfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:16 GMT", + "x-ms-client-request-id" : "15659d4d-acfd-4035-b2b1-f303980c7f6a" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtciprangetostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7808bfb-301e-0094-33fc-5950b8000000", + "Body" : "jtciprangetostringjtciprangetostring0sastestiprangetostring40f987541fbdddfFri, 23 Aug 2019 21:51:17 GMT\"0x8D7281406959FB9\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:16 GMT", + "x-ms-client-request-id" : "30828354-0e7a-4a74-81fd-da895c638ad3", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtciprangetostring0sastestiprangetostring40f987541fbdddf?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7808c08-301e-0094-40fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:16 GMT", + "x-ms-client-request-id" : "7e18bcdd-1c79-4a52-9737-dfeced1f6f31" + }, + "Exception" : null + } ], + "variables" : [ "jtciprangetostring0sastestiprangetostring40f987541fbdddf" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestrequestproperty.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestrequestproperty.json new file mode 100644 index 0000000000000..f42c8268a46c3 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestrequestproperty.json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrequestproperty0sastestrequestpropertyabb887312b53de4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281401384BF3\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7807039-301e-0094-41fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:07 GMT", + "x-ms-client-request-id" : "498d1629-2e40-40a2-8586-4ffb45af4564" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcrequestproperty0sastestrequestpropertyabb887312b53de4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7807050-301e-0094-56fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:07 GMT", + "x-ms-client-request-id" : "bd8b681b-905d-4613-b593-362d0fecd913" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcrequestproperty&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7807060-301e-0094-64fc-5950b8000000", + "Body" : "jtcrequestproperty", + "Date" : "Fri, 23 Aug 2019 21:51:07 GMT", + "x-ms-client-request-id" : "99a64c4d-076e-4ef7-aba2-68e8da22c249", + "Content-Type" : "application/xml" + }, + "Exception" : null + } ], + "variables" : [ "jtcrequestproperty0sastestrequestpropertyabb887312b53de4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestsasprotocolparse[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestsasprotocolparse[0].json new file mode 100644 index 0000000000000..5e8de0e20e2a0 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestsasprotocolparse[0].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsasprotocolparse0sastestsasprotocolparse1de11852779ee9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281406D48C3A\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7808ce5-301e-0094-04fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:17 GMT", + "x-ms-client-request-id" : "84333cc7-3fe9-46b4-a3c7-826195ca21fe" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsasprotocolparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7808cf6-301e-0094-13fc-5950b8000000", + "Body" : "jtcsasprotocolparsejtcsasprotocolparse0sastestsasprotocolparse1de11852779ee9Fri, 23 Aug 2019 21:51:17 GMT\"0x8D7281406D48C3A\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:17 GMT", + "x-ms-client-request-id" : "5b3a3e6f-e1ac-4b0f-8a75-eebba0af52ed", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsasprotocolparse0sastestsasprotocolparse1de11852779ee9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7808d05-301e-0094-1ffc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:17 GMT", + "x-ms-client-request-id" : "ed76a97c-7d58-4831-b89e-248f564fe955" + }, + "Exception" : null + } ], + "variables" : [ "jtcsasprotocolparse0sastestsasprotocolparse1de11852779ee9" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestsasprotocolparse[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestsasprotocolparse[1].json new file mode 100644 index 0000000000000..343d3fbe2bd18 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestsasprotocolparse[1].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsasprotocolparse0sastestsasprotocolparse01a9386116631e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281406E70717\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7808d0e-301e-0094-28fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:17 GMT", + "x-ms-client-request-id" : "8db4ba0a-3280-4f3c-904a-4926b39989a1" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsasprotocolparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7808d30-301e-0094-40fc-5950b8000000", + "Body" : "jtcsasprotocolparsejtcsasprotocolparse0sastestsasprotocolparse01a9386116631eFri, 23 Aug 2019 21:51:17 GMT\"0x8D7281406E70717\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:17 GMT", + "x-ms-client-request-id" : "fb58e988-a740-4d58-bdc1-2ed8e4deaaed", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsasprotocolparse0sastestsasprotocolparse01a9386116631e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7808d3e-301e-0094-4dfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:17 GMT", + "x-ms-client-request-id" : "8d83a951-96e6-49ec-989d-c30c87165ca3" + }, + "Exception" : null + } ], + "variables" : [ "jtcsasprotocolparse0sastestsasprotocolparse01a9386116631e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosign[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosign[0].json new file mode 100644 index 0000000000000..c9ebc395773f7 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosign[0].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosign010347a233e14f1d4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72814028B3342\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7807702-301e-0094-77fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:09 GMT", + "x-ms-client-request-id" : "68a4bc2f-a158-4f11-9bc8-900d50b16f37" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturesstringtosign&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f780771b-301e-0094-0efc-5950b8000000", + "Body" : "jtcservicesassignaturesstringtosignjtcservicesassignaturesstringtosign010347a233e14f1d4Fri, 23 Aug 2019 21:51:10 GMT\"0x8D72814028B3342\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:09 GMT", + "x-ms-client-request-id" : "2d4fdd0a-af16-49c8-a4dc-e84188db6f75", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosign010347a233e14f1d4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f780772e-301e-0094-1ffc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:09 GMT", + "x-ms-client-request-id" : "625300bf-2499-4918-8a58-de2690f323d4" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturesstringtosign010347a233e14f1d4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosign[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosign[1].json new file mode 100644 index 0000000000000..5ebaeccc0193c --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosign[1].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosign065337a9202e29755?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72814029A790D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7807748-301e-0094-35fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:10 GMT", + "x-ms-client-request-id" : "5ed48358-cbd4-45d9-b48c-f29a790863a9" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturesstringtosign&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f780775c-301e-0094-46fc-5950b8000000", + "Body" : "jtcservicesassignaturesstringtosignjtcservicesassignaturesstringtosign065337a9202e29755Fri, 23 Aug 2019 21:51:10 GMT\"0x8D72814029A790D\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:10 GMT", + "x-ms-client-request-id" : "90c43a37-d548-45f0-9fbb-c35cff938e50", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosign065337a9202e29755?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7807771-301e-0094-5afc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:10 GMT", + "x-ms-client-request-id" : "a905706d-48b5-4e60-a973-ca4ff2fd0aa8" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturesstringtosign065337a9202e29755" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosign[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosign[2].json new file mode 100644 index 0000000000000..2df58cf778c38 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosign[2].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosign034354955c070cab6?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281402AB45E0\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f78077a7-301e-0094-0bfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:10 GMT", + "x-ms-client-request-id" : "c15a269f-ac34-4782-8b9f-9530686a3832" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturesstringtosign&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f78077c4-301e-0094-23fc-5950b8000000", + "Body" : "jtcservicesassignaturesstringtosignjtcservicesassignaturesstringtosign034354955c070cab6Fri, 23 Aug 2019 21:51:10 GMT\"0x8D7281402AB45E0\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:10 GMT", + "x-ms-client-request-id" : "589e8c61-3e3a-425d-a590-30e41f92a1bf", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosign034354955c070cab6?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f78077d9-301e-0094-37fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:10 GMT", + "x-ms-client-request-id" : "94824516-e8c1-4046-8b4f-4f284e780a6d" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturesstringtosign034354955c070cab6" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosign[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosign[3].json new file mode 100644 index 0000000000000..de221d762795e --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosign[3].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosign065499d4073aa252d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281402B9EF46\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f78077fb-301e-0094-55fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:10 GMT", + "x-ms-client-request-id" : "c4127a3d-ddb6-4f75-b707-1b355bdd71d1" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturesstringtosign&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f780780a-301e-0094-61fc-5950b8000000", + "Body" : "jtcservicesassignaturesstringtosignjtcservicesassignaturesstringtosign065499d4073aa252dFri, 23 Aug 2019 21:51:10 GMT\"0x8D7281402B9EF46\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:10 GMT", + "x-ms-client-request-id" : "59516b19-bc31-40b2-afe4-7874f202d819", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosign065499d4073aa252d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7807821-301e-0094-73fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:10 GMT", + "x-ms-client-request-id" : "818bf333-6bdb-4d38-9435-2f54a5014a59" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturesstringtosign065499d4073aa252d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosign[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosign[4].json new file mode 100644 index 0000000000000..a2601946326b5 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosign[4].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosign020493d8cb2626eff?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281402C8BFCC\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7807838-301e-0094-0afc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:10 GMT", + "x-ms-client-request-id" : "317ae28d-c355-4b40-ac6f-1fa727f3a31b" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturesstringtosign&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f780785d-301e-0094-28fc-5950b8000000", + "Body" : "jtcservicesassignaturesstringtosignjtcservicesassignaturesstringtosign020493d8cb2626effFri, 23 Aug 2019 21:51:10 GMT\"0x8D7281402C8BFCC\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:10 GMT", + "x-ms-client-request-id" : "91cf849e-b9b9-461c-a018-6fa8cd12a75d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosign020493d8cb2626eff?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7807877-301e-0094-3dfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:10 GMT", + "x-ms-client-request-id" : "7a7b623b-b60f-4e57-b796-dfd9a6e1d205" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturesstringtosign020493d8cb2626eff" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosign[5].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosign[5].json new file mode 100644 index 0000000000000..8a50268f8bbf7 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosign[5].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosign0356082593da4c445?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281402D7B76D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f78078a1-301e-0094-64fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:10 GMT", + "x-ms-client-request-id" : "2509a287-054d-4768-8f48-01ac4aa335d3" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturesstringtosign&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f78078c1-301e-0094-03fc-5950b8000000", + "Body" : "jtcservicesassignaturesstringtosignjtcservicesassignaturesstringtosign0356082593da4c445Fri, 23 Aug 2019 21:51:10 GMT\"0x8D7281402D7B76D\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:10 GMT", + "x-ms-client-request-id" : "9f1ac7d6-7521-463c-9a99-f405d0876049", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosign0356082593da4c445?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f78078d3-301e-0094-14fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:10 GMT", + "x-ms-client-request-id" : "1ad68f0c-e847-4633-8a74-437d0b230662" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturesstringtosign0356082593da4c445" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosign[6].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosign[6].json new file mode 100644 index 0000000000000..6ca709c1558e4 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosign[6].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosign098352bc7a552699f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281402E660DC\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f78078e9-301e-0094-27fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:10 GMT", + "x-ms-client-request-id" : "5bd7d679-fad1-4118-aa42-0d8619b8c82a" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturesstringtosign&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7807906-301e-0094-3ffc-5950b8000000", + "Body" : "jtcservicesassignaturesstringtosignjtcservicesassignaturesstringtosign098352bc7a552699fFri, 23 Aug 2019 21:51:10 GMT\"0x8D7281402E660DC\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:10 GMT", + "x-ms-client-request-id" : "05bed39d-a74b-4894-b79a-76a4da5c3210", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosign098352bc7a552699f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7807923-301e-0094-59fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:10 GMT", + "x-ms-client-request-id" : "597ef734-a662-4eef-a602-673ae1e75188" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturesstringtosign098352bc7a552699f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosign[7].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosign[7].json new file mode 100644 index 0000000000000..00e57ba176198 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosign[7].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosign00825251250801a57?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281402F49501\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f780793d-301e-0094-71fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:10 GMT", + "x-ms-client-request-id" : "3de77da0-533d-4896-a080-6bf2dcfd773b" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturesstringtosign&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7807952-301e-0094-04fc-5950b8000000", + "Body" : "jtcservicesassignaturesstringtosignjtcservicesassignaturesstringtosign00825251250801a57Fri, 23 Aug 2019 21:51:11 GMT\"0x8D7281402F49501\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:10 GMT", + "x-ms-client-request-id" : "2d576d3a-c5e5-4aee-8250-9440debcaea8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosign00825251250801a57?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f780796f-301e-0094-1ffc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:10 GMT", + "x-ms-client-request-id" : "2ad261da-0b35-4f94-b4dd-106da90a9d70" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturesstringtosign00825251250801a57" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosign[8].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosign[8].json new file mode 100644 index 0000000000000..ce281fbce5ba0 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosign[8].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosign020477bf91312b51b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281403049E55\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7807994-301e-0094-42fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:10 GMT", + "x-ms-client-request-id" : "b219ee69-4261-4a7a-bb94-cfc5a18da65e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturesstringtosign&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7807a06-301e-0094-2bfc-5950b8000000", + "Body" : "jtcservicesassignaturesstringtosignjtcservicesassignaturesstringtosign020477bf91312b51bFri, 23 Aug 2019 21:51:11 GMT\"0x8D7281403049E55\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:10 GMT", + "x-ms-client-request-id" : "610c71f1-d426-44e1-a0ea-1ab422892d8d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosign020477bf91312b51b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7807a20-301e-0094-43fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:10 GMT", + "x-ms-client-request-id" : "9efe5880-3708-4cb0-a627-7036db718844" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturesstringtosign020477bf91312b51b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosign[9].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosign[9].json new file mode 100644 index 0000000000000..8705fd316695e --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosign[9].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosign0899539991fdea6d4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72814031E46D2\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7807a40-301e-0094-5efc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:10 GMT", + "x-ms-client-request-id" : "ba4671aa-3142-4a11-bd4c-e9495900192e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturesstringtosign&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7807a5f-301e-0094-70fc-5950b8000000", + "Body" : "jtcservicesassignaturesstringtosignjtcservicesassignaturesstringtosign0899539991fdea6d4Fri, 23 Aug 2019 21:51:11 GMT\"0x8D72814031E46D2\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:10 GMT", + "x-ms-client-request-id" : "27234407-ea44-4141-9c31-9ea201ed7d13", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosign0899539991fdea6d4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7807a77-301e-0094-03fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:10 GMT", + "x-ms-client-request-id" : "e38e7172-3bae-42dd-a7eb-6a17cb54a6a6" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturesstringtosign0899539991fdea6d4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[0].json new file mode 100644 index 0000000000000..b2dfc0c777595 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[0].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey0625585a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72814032E290F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7807a98-301e-0094-1bfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:10 GMT", + "x-ms-client-request-id" : "3daa1841-c7d1-45de-ae49-a0d23721574c" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturesstringtosignuserdelegationkey&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7807aad-301e-0094-29fc-5950b8000000", + "Body" : "jtcservicesassignaturesstringtosignuserdelegationkeyjtcservicesassignaturesstringtosignuserdelegationkey0625585aFri, 23 Aug 2019 21:51:11 GMT\"0x8D72814032E290F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:11 GMT", + "x-ms-client-request-id" : "6a54f0ae-5b81-4e4b-b27f-0697324af00f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey0625585a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7807ac6-301e-0094-3efc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:11 GMT", + "x-ms-client-request-id" : "7eeb13b7-1e71-4024-aaba-cc53b1bdfbc7" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturesstringtosignuserdelegationkey0625585a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[10].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[10].json new file mode 100644 index 0000000000000..c3768e7591cbe --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[10].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey033174d2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281403E064BE\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7807e71-301e-0094-59fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:12 GMT", + "x-ms-client-request-id" : "060d2c05-13dd-4f62-8bb7-037caffb461f" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturesstringtosignuserdelegationkey&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7807e93-301e-0094-77fc-5950b8000000", + "Body" : "jtcservicesassignaturesstringtosignuserdelegationkeyjtcservicesassignaturesstringtosignuserdelegationkey033174d2Fri, 23 Aug 2019 21:51:12 GMT\"0x8D7281403E064BE\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:12 GMT", + "x-ms-client-request-id" : "c5553b0c-2786-4898-a832-fb49e8db26c9", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey033174d2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7807eaa-301e-0094-0efc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:12 GMT", + "x-ms-client-request-id" : "ee1da366-695d-49c9-bdc0-c8b025ce879d" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturesstringtosignuserdelegationkey033174d2" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[11].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[11].json new file mode 100644 index 0000000000000..2c779f9110780 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[11].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey04544550?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281403EF5C55\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7807eca-301e-0094-2bfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:12 GMT", + "x-ms-client-request-id" : "f9934dd9-4987-419e-abdc-98c9cc587038" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturesstringtosignuserdelegationkey&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7807ee7-301e-0094-43fc-5950b8000000", + "Body" : "jtcservicesassignaturesstringtosignuserdelegationkeyjtcservicesassignaturesstringtosignuserdelegationkey04544550Fri, 23 Aug 2019 21:51:12 GMT\"0x8D7281403EF5C55\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:12 GMT", + "x-ms-client-request-id" : "e3a008be-8944-472d-b3ab-cee38a9fb359", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey04544550?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7807efa-301e-0094-53fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:12 GMT", + "x-ms-client-request-id" : "967ec1cf-8814-4d90-a6e5-62e9ffc762ea" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturesstringtosignuserdelegationkey04544550" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[12].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[12].json new file mode 100644 index 0000000000000..58f3bb0bd64a1 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[12].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey0967824e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728140400020E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7807f1b-301e-0094-6ffc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:12 GMT", + "x-ms-client-request-id" : "7c86fde7-12ad-47e3-a0ff-1da24868dfd1" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturesstringtosignuserdelegationkey&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7807f31-301e-0094-7ffc-5950b8000000", + "Body" : "jtcservicesassignaturesstringtosignuserdelegationkeyjtcservicesassignaturesstringtosignuserdelegationkey0967824eFri, 23 Aug 2019 21:51:12 GMT\"0x8D728140400020E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:12 GMT", + "x-ms-client-request-id" : "bc5a0736-7921-446a-960c-6ed8c36ed350", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey0967824e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7807f45-301e-0094-11fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:12 GMT", + "x-ms-client-request-id" : "23f03733-fbbb-4b04-9f85-b7a75187f2fd" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturesstringtosignuserdelegationkey0967824e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[13].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[13].json new file mode 100644 index 0000000000000..9d4be0dbf0077 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[13].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey066377bc?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72814041080AA\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7807f58-301e-0094-24fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:12 GMT", + "x-ms-client-request-id" : "4a1b6bfc-1e1d-4d04-82f8-c7c020157303" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturesstringtosignuserdelegationkey&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7807f66-301e-0094-31fc-5950b8000000", + "Body" : "jtcservicesassignaturesstringtosignuserdelegationkeyjtcservicesassignaturesstringtosignuserdelegationkey066377bcFri, 23 Aug 2019 21:51:12 GMT\"0x8D72814041080AA\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:12 GMT", + "x-ms-client-request-id" : "131f9c61-e8a1-4d3f-ba50-a850c6316ffa", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey066377bc?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7807f70-301e-0094-3bfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:12 GMT", + "x-ms-client-request-id" : "1f0a1a2b-35f0-402a-acef-498f3b7b1b96" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturesstringtosignuserdelegationkey066377bc" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[14].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[14].json new file mode 100644 index 0000000000000..16c117904da1f --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[14].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey05401474?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72814041FED90\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7807f90-301e-0094-56fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:12 GMT", + "x-ms-client-request-id" : "581e75ed-eff3-44e5-ad73-8e30b46979d2" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturesstringtosignuserdelegationkey&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7807fa0-301e-0094-64fc-5950b8000000", + "Body" : "jtcservicesassignaturesstringtosignuserdelegationkeyjtcservicesassignaturesstringtosignuserdelegationkey05401474Fri, 23 Aug 2019 21:51:12 GMT\"0x8D72814041FED90\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:12 GMT", + "x-ms-client-request-id" : "4849c670-79ac-4879-9ded-483611c89b4a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey05401474?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7807fb9-301e-0094-77fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:12 GMT", + "x-ms-client-request-id" : "b34fabaf-46c3-463c-832c-82bf412873ca" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturesstringtosignuserdelegationkey05401474" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[1].json new file mode 100644 index 0000000000000..109804b31d3b4 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[1].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey05819493?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72814033D95FA\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7807aee-301e-0094-62fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:11 GMT", + "x-ms-client-request-id" : "6da60493-9d6e-4958-8b17-1fe2ac6b51a0" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturesstringtosignuserdelegationkey&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7807b55-301e-0094-40fc-5950b8000000", + "Body" : "jtcservicesassignaturesstringtosignuserdelegationkeyjtcservicesassignaturesstringtosignuserdelegationkey05819493Fri, 23 Aug 2019 21:51:11 GMT\"0x8D72814033D95FA\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:11 GMT", + "x-ms-client-request-id" : "ea95b774-4c6c-4fbc-96cd-0da88d4743fe", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey05819493?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7807b6c-301e-0094-51fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:11 GMT", + "x-ms-client-request-id" : "f9c51e1b-069a-44fc-9e29-04bd542a5ecf" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturesstringtosignuserdelegationkey05819493" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[2].json new file mode 100644 index 0000000000000..9e87d77342fc1 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[2].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey065901cd?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72814035CE51C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7807b8d-301e-0094-6dfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:11 GMT", + "x-ms-client-request-id" : "b573381c-7a88-4293-86f7-4fc5e065a010" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturesstringtosignuserdelegationkey&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7807ba1-301e-0094-7cfc-5950b8000000", + "Body" : "jtcservicesassignaturesstringtosignuserdelegationkeyjtcservicesassignaturesstringtosignuserdelegationkey065901cdFri, 23 Aug 2019 21:51:11 GMT\"0x8D72814035CE51C\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:11 GMT", + "x-ms-client-request-id" : "45a63be7-21be-42c4-af09-79843f2a40e5", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey065901cd?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7807bbd-301e-0094-13fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:11 GMT", + "x-ms-client-request-id" : "87570da9-0a8d-43d5-b9c0-6871d0971f05" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturesstringtosignuserdelegationkey065901cd" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[3].json new file mode 100644 index 0000000000000..81e5afa1beaf4 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[3].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey010417a5?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72814036C7922\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7807bd6-301e-0094-2bfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:11 GMT", + "x-ms-client-request-id" : "347e850c-e3d6-4a1b-9dc6-db7ad5fb2546" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturesstringtosignuserdelegationkey&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7807beb-301e-0094-3dfc-5950b8000000", + "Body" : "jtcservicesassignaturesstringtosignuserdelegationkeyjtcservicesassignaturesstringtosignuserdelegationkey010417a5Fri, 23 Aug 2019 21:51:11 GMT\"0x8D72814036C7922\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:11 GMT", + "x-ms-client-request-id" : "d84d0a47-e5a4-43d0-99a6-4c8b7d0282ef", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey010417a5?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7807c06-301e-0094-51fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:11 GMT", + "x-ms-client-request-id" : "8e1bf1aa-8f01-466b-8f44-7f784a6dea77" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturesstringtosignuserdelegationkey010417a5" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[4].json new file mode 100644 index 0000000000000..ec0705ce477ac --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[4].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey05061761?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72814037B49B6\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7807c29-301e-0094-6dfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:11 GMT", + "x-ms-client-request-id" : "2d6340f1-f316-4b58-b5e1-37db4a17cc2a" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturesstringtosignuserdelegationkey&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7807c47-301e-0094-05fc-5950b8000000", + "Body" : "jtcservicesassignaturesstringtosignuserdelegationkeyjtcservicesassignaturesstringtosignuserdelegationkey05061761Fri, 23 Aug 2019 21:51:11 GMT\"0x8D72814037B49B6\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:11 GMT", + "x-ms-client-request-id" : "ec2b124f-e200-4405-b584-7002b95f9102", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey05061761?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7807c63-301e-0094-1bfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:11 GMT", + "x-ms-client-request-id" : "0c0e1839-fe85-4c55-834c-6bfc191ae2ef" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturesstringtosignuserdelegationkey05061761" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[5].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[5].json new file mode 100644 index 0000000000000..2c354f71db0b1 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[5].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey057085e8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728140396A041\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7807cce-301e-0094-7afc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:11 GMT", + "x-ms-client-request-id" : "8d4968ab-abbf-4c29-b041-54c20363b393" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturesstringtosignuserdelegationkey&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7807cee-301e-0094-13fc-5950b8000000", + "Body" : "jtcservicesassignaturesstringtosignuserdelegationkeyjtcservicesassignaturesstringtosignuserdelegationkey057085e8Fri, 23 Aug 2019 21:51:12 GMT\"0x8D728140396A041\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:11 GMT", + "x-ms-client-request-id" : "023b9601-cce3-42f6-8511-5b20ba7b7ff5", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey057085e8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7807d00-301e-0094-21fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:11 GMT", + "x-ms-client-request-id" : "79c24935-8b03-431a-9bc5-4d9695ecefae" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturesstringtosignuserdelegationkey057085e8" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[6].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[6].json new file mode 100644 index 0000000000000..c8b3763befcd0 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[6].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey00687250?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281403A5E61D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7807d14-301e-0094-34fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:11 GMT", + "x-ms-client-request-id" : "1af39547-b282-439d-be03-1e8ec76283a1" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturesstringtosignuserdelegationkey&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7807d31-301e-0094-4efc-5950b8000000", + "Body" : "jtcservicesassignaturesstringtosignuserdelegationkeyjtcservicesassignaturesstringtosignuserdelegationkey00687250Fri, 23 Aug 2019 21:51:12 GMT\"0x8D7281403A5E61D\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:11 GMT", + "x-ms-client-request-id" : "b95c1eb3-17d6-4f7a-b8a4-6d2ce421f4d7", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey00687250?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7807d4f-301e-0094-67fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:11 GMT", + "x-ms-client-request-id" : "5cbc3112-00ea-47b6-b0d9-f8dafdb8d08e" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturesstringtosignuserdelegationkey00687250" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[7].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[7].json new file mode 100644 index 0000000000000..ab87332bd5efa --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[7].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey0449192b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281403B4B6A3\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7807d6a-301e-0094-80fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:11 GMT", + "x-ms-client-request-id" : "dad6eb2c-39a8-4404-9fa4-4a5e7ffcdf8b" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturesstringtosignuserdelegationkey&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7807d91-301e-0094-21fc-5950b8000000", + "Body" : "jtcservicesassignaturesstringtosignuserdelegationkeyjtcservicesassignaturesstringtosignuserdelegationkey0449192bFri, 23 Aug 2019 21:51:12 GMT\"0x8D7281403B4B6A3\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:11 GMT", + "x-ms-client-request-id" : "c073b2a0-9a80-4751-9dbb-10850469ba7a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey0449192b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7807db8-301e-0094-3dfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:11 GMT", + "x-ms-client-request-id" : "03427359-4a6a-4ac8-918f-f450d7f75f3b" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturesstringtosignuserdelegationkey0449192b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[8].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[8].json new file mode 100644 index 0000000000000..5f4e665e5a804 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[8].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey015074bf?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281403C338ED\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7807dd7-301e-0094-59fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:11 GMT", + "x-ms-client-request-id" : "351a8299-5e23-41b6-8a7e-f89051476073" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturesstringtosignuserdelegationkey&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7807df4-301e-0094-72fc-5950b8000000", + "Body" : "jtcservicesassignaturesstringtosignuserdelegationkeyjtcservicesassignaturesstringtosignuserdelegationkey015074bfFri, 23 Aug 2019 21:51:12 GMT\"0x8D7281403C338ED\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:11 GMT", + "x-ms-client-request-id" : "ee1fd8f0-d8b4-4bfb-b305-61c49a7c5b82", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey015074bf?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7807e0f-301e-0094-09fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:12 GMT", + "x-ms-client-request-id" : "d89a9cb5-80d8-45f5-acac-b9313bb66eb7" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturesstringtosignuserdelegationkey015074bf" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[9].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[9].json new file mode 100644 index 0000000000000..fd822b936cf78 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[9].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey07184901?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281403D1BB45\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7807e2e-301e-0094-27fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:12 GMT", + "x-ms-client-request-id" : "6dc5f6cd-2e29-4048-990d-c877b55995a9" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturesstringtosignuserdelegationkey&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7807e46-301e-0094-37fc-5950b8000000", + "Body" : "jtcservicesassignaturesstringtosignuserdelegationkeyjtcservicesassignaturesstringtosignuserdelegationkey07184901Fri, 23 Aug 2019 21:51:12 GMT\"0x8D7281403D1BB45\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:12 GMT", + "x-ms-client-request-id" : "14bc0c82-fd1c-4d3e-9369-76c5a089f6ff", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturesstringtosignuserdelegationkey07184901?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7807e5c-301e-0094-48fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:12 GMT", + "x-ms-client-request-id" : "f358873b-3a62-49e2-896c-6ad4f335a392" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturesstringtosignuserdelegationkey07184901" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturevaluesassertgenerateok[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturevaluesassertgenerateok[0].json new file mode 100644 index 0000000000000..ff0d01bc22b56 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturevaluesassertgenerateok[0].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturevaluesassertgenerateok084199fd4f4b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281406F64CEA\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7808d52-301e-0094-5efc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:17 GMT", + "x-ms-client-request-id" : "42d5aa22-5f7f-4f37-bac1-83343bd4acc5" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturevaluesassertgenerateok&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7808d6c-301e-0094-73fc-5950b8000000", + "Body" : "jtcservicesassignaturevaluesassertgenerateokjtcservicesassignaturevaluesassertgenerateok084199fd4f4bFri, 23 Aug 2019 21:51:17 GMT\"0x8D7281406F64CEA\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:17 GMT", + "x-ms-client-request-id" : "a7ad1b45-84bf-418d-9682-9216b167ed22", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturevaluesassertgenerateok084199fd4f4b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7808d87-301e-0094-0bfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:17 GMT", + "x-ms-client-request-id" : "aae29639-e516-4b64-bec2-2114b0641f3c" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturevaluesassertgenerateok084199fd4f4b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturevaluesassertgenerateok[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturevaluesassertgenerateok[1].json new file mode 100644 index 0000000000000..eda298e48dfdd --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturevaluesassertgenerateok[1].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturevaluesassertgenerateok030167ad4b74?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281407056BB0\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7808da1-301e-0094-22fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:17 GMT", + "x-ms-client-request-id" : "a89299b2-6db9-40fd-8719-9c4a0534fae9" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturevaluesassertgenerateok&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7808dbc-301e-0094-3bfc-5950b8000000", + "Body" : "jtcservicesassignaturevaluesassertgenerateokjtcservicesassignaturevaluesassertgenerateok030167ad4b74Fri, 23 Aug 2019 21:51:17 GMT\"0x8D7281407056BB0\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:17 GMT", + "x-ms-client-request-id" : "ca984c61-387d-4556-9853-6910c52afaa2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturevaluesassertgenerateok030167ad4b74?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7808dcf-301e-0094-4efc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:17 GMT", + "x-ms-client-request-id" : "5e2becf9-8097-4868-bb03-85dd2076021c" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturevaluesassertgenerateok030167ad4b74" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturevaluesassertgenerateok[2].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturevaluesassertgenerateok[2].json new file mode 100644 index 0000000000000..c0d633c60c824 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturevaluesassertgenerateok[2].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturevaluesassertgenerateok037808ba8634?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281407143C2D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7808dec-301e-0094-6afc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:17 GMT", + "x-ms-client-request-id" : "185c108e-29f3-4009-a523-9cf8eebd342e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturevaluesassertgenerateok&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7808e04-301e-0094-7ffc-5950b8000000", + "Body" : "jtcservicesassignaturevaluesassertgenerateokjtcservicesassignaturevaluesassertgenerateok037808ba8634Fri, 23 Aug 2019 21:51:17 GMT\"0x8D7281407143C2D\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:17 GMT", + "x-ms-client-request-id" : "0f392f2f-5d95-46d0-b934-3f8a267bb0a7", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturevaluesassertgenerateok037808ba8634?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7808e18-301e-0094-10fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:17 GMT", + "x-ms-client-request-id" : "543acf7c-e76a-4812-acda-9ff154bc223c" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturevaluesassertgenerateok037808ba8634" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturevaluesassertgenerateok[3].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturevaluesassertgenerateok[3].json new file mode 100644 index 0000000000000..909850ef58ca6 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturevaluesassertgenerateok[3].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturevaluesassertgenerateok058523f3143d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281407277A93\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7808e5d-301e-0094-52fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:17 GMT", + "x-ms-client-request-id" : "ed8e7d0f-1529-4c63-91b3-d57c0abd1e59" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturevaluesassertgenerateok&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7808e8c-301e-0094-78fc-5950b8000000", + "Body" : "jtcservicesassignaturevaluesassertgenerateokjtcservicesassignaturevaluesassertgenerateok058523f3143dFri, 23 Aug 2019 21:51:18 GMT\"0x8D7281407277A93\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:17 GMT", + "x-ms-client-request-id" : "0598639c-877b-405f-a451-1ffc46c08524", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturevaluesassertgenerateok058523f3143d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7808ea5-301e-0094-11fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:17 GMT", + "x-ms-client-request-id" : "8852496a-c8da-4728-ac65-2e460ee0a272" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturevaluesassertgenerateok058523f3143d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturevaluesassertgenerateok[4].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturevaluesassertgenerateok[4].json new file mode 100644 index 0000000000000..9c7eba3f51e3e --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturevaluesassertgenerateok[4].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturevaluesassertgenerateok017175139125?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728140736E782\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7808ebc-301e-0094-26fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:17 GMT", + "x-ms-client-request-id" : "a08c8ab0-10f9-4a3c-b4a7-16b8f5885ef1" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturevaluesassertgenerateok&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7808ede-301e-0094-46fc-5950b8000000", + "Body" : "jtcservicesassignaturevaluesassertgenerateokjtcservicesassignaturevaluesassertgenerateok017175139125Fri, 23 Aug 2019 21:51:18 GMT\"0x8D728140736E782\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:17 GMT", + "x-ms-client-request-id" : "0ae96aa5-aa7a-4507-9884-6842132989f4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturevaluesassertgenerateok017175139125?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7808ee9-301e-0094-51fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:17 GMT", + "x-ms-client-request-id" : "2dafcdfe-0338-4ae2-87e9-fb5bd181e1df" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturevaluesassertgenerateok017175139125" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturevaluesassertgenerateok[5].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturevaluesassertgenerateok[5].json new file mode 100644 index 0000000000000..66262cd0efc98 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturevaluesassertgenerateok[5].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturevaluesassertgenerateok092290d842c9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281407462D51\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7808f07-301e-0094-6ffc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:17 GMT", + "x-ms-client-request-id" : "686b8d7f-6b86-4845-93ba-1ade7d61a57e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturevaluesassertgenerateok&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7808f25-301e-0094-0cfc-5950b8000000", + "Body" : "jtcservicesassignaturevaluesassertgenerateokjtcservicesassignaturevaluesassertgenerateok092290d842c9Fri, 23 Aug 2019 21:51:18 GMT\"0x8D7281407462D51\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:17 GMT", + "x-ms-client-request-id" : "68dce1d7-2622-4c84-968c-8b2386c1f9da", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturevaluesassertgenerateok092290d842c9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7808f3f-301e-0094-25fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:17 GMT", + "x-ms-client-request-id" : "2b945728-bfc6-4786-869c-b1ef625dd438" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturevaluesassertgenerateok092290d842c9" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturevaluescanonicalizedresource.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturevaluescanonicalizedresource.json new file mode 100644 index 0000000000000..4e77cab35299b --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturevaluescanonicalizedresource.json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturevaluescanonicalizedresource010254841c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72814042FA8B6\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7807fef-301e-0094-26fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:12 GMT", + "x-ms-client-request-id" : "3c49b8b2-f14c-4005-90cf-c0f9bd07b201" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturevaluescanonicalizedresource&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f780800d-301e-0094-3bfc-5950b8000000", + "Body" : "jtcservicesassignaturevaluescanonicalizedresourcejtcservicesassignaturevaluescanonicalizedresource010254841cFri, 23 Aug 2019 21:51:13 GMT\"0x8D72814042FA8B6\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:12 GMT", + "x-ms-client-request-id" : "3b171647-39bf-465d-8a63-7a4523b49a44", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturevaluescanonicalizedresource010254841c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f780801f-301e-0094-4cfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:12 GMT", + "x-ms-client-request-id" : "a2f4bcb1-6116-4471-9090-89d497a5c5ab" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturevaluescanonicalizedresource010254841c", "javablobservicesassignaturevaluescanonicalizedresource148688b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturevaluesia[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturevaluesia[0].json new file mode 100644 index 0000000000000..ba4bad4c84c55 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturevaluesia[0].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturevaluesia055400013d97242e664?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72814043FB200\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7808053-301e-0094-76fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:12 GMT", + "x-ms-client-request-id" : "3359e2d3-6c1e-4e63-b271-1c0911a90e5c" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturevaluesia&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7808078-301e-0094-19fc-5950b8000000", + "Body" : "jtcservicesassignaturevaluesiajtcservicesassignaturevaluesia055400013d97242e664Fri, 23 Aug 2019 21:51:13 GMT\"0x8D72814043FB200\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:12 GMT", + "x-ms-client-request-id" : "cbc32f5d-3d3e-4d5f-8e99-ce5cb51adfa2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturevaluesia055400013d97242e664?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f780808d-301e-0094-2cfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:12 GMT", + "x-ms-client-request-id" : "670fb046-92ca-4348-afd0-f9bb83e69048" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturevaluesia055400013d97242e664" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturevaluesia[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturevaluesia[1].json new file mode 100644 index 0000000000000..8ddc9586a08ba --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturevaluesia[1].json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturevaluesia0742729d7eea04bcc24?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72814045030A2\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f78080a4-301e-0094-3ffc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:12 GMT", + "x-ms-client-request-id" : "687b9a79-8f7b-4f39-991d-aefcf528be3c" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturevaluesia&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f78080c1-301e-0094-56fc-5950b8000000", + "Body" : "jtcservicesassignaturevaluesiajtcservicesassignaturevaluesia0742729d7eea04bcc24Fri, 23 Aug 2019 21:51:13 GMT\"0x8D72814045030A2\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:12 GMT", + "x-ms-client-request-id" : "e6b80aee-3a45-4021-af35-0ffeeae0941e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturevaluesia0742729d7eea04bcc24?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f78080d6-301e-0094-6bfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:12 GMT", + "x-ms-client-request-id" : "826ababf-7d73-44d1-acc4-b2767f04bb30" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturevaluesia0742729d7eea04bcc24" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturevaluesnetworktestblob.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturevaluesnetworktestblob.json new file mode 100644 index 0000000000000..47299c809d9f1 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturevaluesnetworktestblob.json @@ -0,0 +1,154 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturevaluesnetworktestblob0215515b3b7fa?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281401CB5FCA\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7807307-301e-0094-4efc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:08 GMT", + "x-ms-client-request-id" : "db575b68-d83b-4fb2-af41-e40572f1c5a1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturevaluesnetworktestblob0215515b3b7fa/javablobservicesassignaturevaluesnetworktestblob1961305b0f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "Q7G6/s6+u/k=", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:09 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:51:08 GMT", + "Content-MD5" : "CY9rzUYh03PK3k6DJie09g==", + "ETag" : "\"0x8D7281401D0EAEC\"", + "Content-Length" : "0", + "x-ms-request-id" : "f780732b-301e-0094-6cfc-5950b8000000", + "x-ms-client-request-id" : "96fb7080-d9e8-4fe7-b428-499a7d390840" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturevaluesnetworktestblob0215515b3b7fa/javablobservicesassignaturevaluesnetworktestblob1961305b0f?sv=2018-11-09&spr=https%2Chttp&st=2019-08-22T21%3A51%3A09Z&se=2019-08-24T21%3A51%3A09Z&sip=0.0.0.0-255.255.255.255&sr=b&sp=racwd&sig=REDACTED&rscc=cache&rscd=disposition&rsce=encoding&rscl=language&rsct=type", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:09 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:51:08 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "CY9rzUYh03PK3k6DJie09g==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "Cache-Control" : "cache", + "ETag" : "\"0x8D7281401D0EAEC\"", + "Content-Disposition" : "disposition", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:51:09 GMT", + "Content-Length" : "4", + "x-ms-request-id" : "f7807361-301e-0094-1ffc-5950b8000000", + "Body" : "test", + "x-ms-client-request-id" : "de7f2905-e684-462d-b22e-4829edebb8b0", + "Content-Language" : "language", + "Content-Type" : "type" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturevaluesnetworktestblob0215515b3b7fa/javablobservicesassignaturevaluesnetworktestblob1961305b0f?sv=2018-11-09&spr=https%2Chttp&st=2019-08-22T21%3A51%3A09Z&se=2019-08-24T21%3A51%3A09Z&sip=0.0.0.0-255.255.255.255&sr=b&sp=racwd&sig=REDACTED&rscc=cache&rscd=disposition&rsce=encoding&rscl=language&rsct=type", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:09 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-blob-type" : "BlockBlob", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "Content-Encoding" : "encoding", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:51:09 GMT", + "Content-Length" : "4", + "x-ms-request-id" : "f78073b6-301e-0094-70fc-5950b8000000", + "Content-Type" : "type", + "x-ms-version" : "2019-02-02", + "Date" : "Fri, 23 Aug 2019 21:51:08 GMT", + "Content-MD5" : "CY9rzUYh03PK3k6DJie09g==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "Cache-Control" : "cache", + "ETag" : "\"0x8D7281401D0EAEC\"", + "Content-Disposition" : "disposition", + "x-ms-client-request-id" : "223774ef-611e-43d2-b781-b959c73ba374", + "Content-Language" : "language" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturevaluesnetworktestblob&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f78073d0-301e-0094-07fc-5950b8000000", + "Body" : "jtcservicesassignaturevaluesnetworktestblobjtcservicesassignaturevaluesnetworktestblob0215515b3b7faFri, 23 Aug 2019 21:51:09 GMT\"0x8D7281401CB5FCA\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:08 GMT", + "x-ms-client-request-id" : "7a5c4560-8e8d-4de5-aa73-c9e4b2d6eaeb", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturevaluesnetworktestblob0215515b3b7fa?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f78073e1-301e-0094-15fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:08 GMT", + "x-ms-client-request-id" : "9db486df-1623-4494-a489-457c04c4377e" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturevaluesnetworktestblob0215515b3b7fa", "javablobservicesassignaturevaluesnetworktestblob1961305b0f", "2019-08-23T21:51:09.178Z", "2019-08-23T21:51:09.178Z" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturevaluesnetworktestblobsnapshot.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturevaluesnetworktestblobsnapshot.json new file mode 100644 index 0000000000000..35045a9f30c30 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTestservicesassignaturevaluesnetworktestblobsnapshot.json @@ -0,0 +1,174 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturevaluesnetworktestblobsnapshot039931a93?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281401F86DC9\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f78073fd-301e-0094-2dfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:08 GMT", + "x-ms-client-request-id" : "35273797-395f-41c6-a087-8dc4275cd08a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturevaluesnetworktestblobsnapshot039931a93/javablobservicesassignaturevaluesnetworktestblobsnapshot195124", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "Q7G6/s6+u/k=", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:09 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 23 Aug 2019 21:51:08 GMT", + "Content-MD5" : "CY9rzUYh03PK3k6DJie09g==", + "ETag" : "\"0x8D7281401FDD253\"", + "Content-Length" : "0", + "x-ms-request-id" : "f7807415-301e-0094-44fc-5950b8000000", + "x-ms-client-request-id" : "eaadfca2-ee7c-4608-87f5-a7ce4cb2c67d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturevaluesnetworktestblobsnapshot039931a93/javablobservicesassignaturevaluesnetworktestblobsnapshot195124?comp=snapshot", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-snapshot" : "2019-08-23T21:51:09.4423482Z", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281401FDD253\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7807423-301e-0094-52fc-5950b8000000", + "x-ms-request-server-encrypted" : "false", + "Date" : "Fri, 23 Aug 2019 21:51:09 GMT", + "x-ms-client-request-id" : "cb8b7aba-cd4b-4f8d-8262-8f5ad48a07ad" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturevaluesnetworktestblobsnapshot039931a93/javablobservicesassignaturevaluesnetworktestblobsnapshot195124?snapshot=2019-08-23T21%3a51%3a09.4423482Z&sv=2018-11-09&spr=https%2Chttp&st=2019-08-22T21%3A51%3A09Z&se=2019-08-24T21%3A51%3A09Z&sip=0.0.0.0-255.255.255.255&sr=bs&sp=racwd&sig=REDACTED&rscc=cache&rscd=disposition&rsce=encoding&rscl=language&rsct=type", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:09 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:51:09 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "CY9rzUYh03PK3k6DJie09g==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-snapshot" : "2019-08-23T21:51:09.4423482Z", + "Cache-Control" : "cache", + "ETag" : "\"0x8D7281401FDD253\"", + "Content-Disposition" : "disposition", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:51:09 GMT", + "Content-Length" : "4", + "x-ms-request-id" : "f7807438-301e-0094-67fc-5950b8000000", + "Body" : "test", + "x-ms-client-request-id" : "825b59b0-9708-4da4-ac9d-eb6b0dcf1e22", + "Content-Language" : "language", + "Content-Type" : "type" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturevaluesnetworktestblobsnapshot039931a93/javablobservicesassignaturevaluesnetworktestblobsnapshot195124?snapshot=2019-08-23T21%3a51%3a09.4423482Z&sv=2018-11-09&spr=https%2Chttp&st=2019-08-22T21%3A51%3A09Z&se=2019-08-24T21%3A51%3A09Z&sip=0.0.0.0-255.255.255.255&sr=bs&sp=racwd&sig=REDACTED&rscc=cache&rscd=disposition&rsce=encoding&rscl=language&rsct=type", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-tag-count" : "0", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:09 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 23 Aug 2019 21:51:09 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "CY9rzUYh03PK3k6DJie09g==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-snapshot" : "2019-08-23T21:51:09.4423482Z", + "x-ms-access-tier" : "Hot", + "Cache-Control" : "cache", + "ETag" : "\"0x8D7281401FDD253\"", + "Content-Disposition" : "disposition", + "Content-Encoding" : "encoding", + "x-ms-creation-time" : "Fri, 23 Aug 2019 21:51:09 GMT", + "Content-Length" : "4", + "x-ms-request-id" : "f7807458-301e-0094-04fc-5950b8000000", + "x-ms-client-request-id" : "bf418097-aab5-48f8-980b-aae8aef991cc", + "Content-Language" : "language", + "Content-Type" : "type" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcservicesassignaturevaluesnetworktestblobsnapshot&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7807469-301e-0094-14fc-5950b8000000", + "Body" : "jtcservicesassignaturevaluesnetworktestblobsnapshotjtcservicesassignaturevaluesnetworktestblobsnapshot039931a93Fri, 23 Aug 2019 21:51:09 GMT\"0x8D7281401F86DC9\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:09 GMT", + "x-ms-client-request-id" : "4ecb7856-3049-4727-9692-10f1bdb4f31d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcservicesassignaturevaluesnetworktestblobsnapshot039931a93?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7807477-301e-0094-22fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:09 GMT", + "x-ms-client-request-id" : "3a136e88-1795-49b9-b60c-a70a022afabd" + }, + "Exception" : null + } ], + "variables" : [ "jtcservicesassignaturevaluesnetworktestblobsnapshot039931a93", "javablobservicesassignaturevaluesnetworktestblobsnapshot195124", "2019-08-23T21:51:09.489Z", "2019-08-23T21:51:09.489Z" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTesturlparser.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTesturlparser.json new file mode 100644 index 0000000000000..0a5c9b928387c --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/SASTesturlparser.json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcurlparser0sastesturlparserd5b18550ed2295d002734?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281409D49D5C\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7809b74-301e-0094-29fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:22 GMT", + "x-ms-client-request-id" : "74bf5fbd-d3fd-40c8-ada5-dfcb4520fac1" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcurlparser&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7809b93-301e-0094-44fc-5950b8000000", + "Body" : "jtcurlparserjtcurlparser0sastesturlparserd5b18550ed2295d002734Fri, 23 Aug 2019 21:51:22 GMT\"0x8D7281409D49D5C\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:22 GMT", + "x-ms-client-request-id" : "e3732363-25f8-499a-b0d5-ddf99a75c520", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcurlparser0sastesturlparserd5b18550ed2295d002734?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7809bac-301e-0094-59fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:22 GMT", + "x-ms-client-request-id" : "60e3089a-1f0f-4237-b641-73aa870a7d21" + }, + "Exception" : null + } ], + "variables" : [ "jtcurlparser0sastesturlparserd5b18550ed2295d002734" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestgetaccountinfo.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestgetaccountinfo.json new file mode 100644 index 0000000000000..3aec28cf8b17c --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestgetaccountinfo.json @@ -0,0 +1,124 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetaccountinfo0serviceapitestgetaccountinfofd924157069c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728142086D21A\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:52:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "cfe00fb4-201e-004c-43fc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:59 GMT", + "x-ms-client-request-id" : "6576cca3-4199-4cd7-877c-89928f17df6e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfe00fc2-201e-004c-4efc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:52:00 GMT", + "x-ms-client-request-id" : "bc3bad95-9d07-4280-9b25-9fda1c99c384" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=account&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "x-ms-account-kind" : "StorageV2", + "retry-after" : "0", + "Content-Length" : "0", + "x-ms-sku-name" : "Standard_RAGRS", + "StatusCode" : "200", + "x-ms-request-id" : "cfe00fe0-201e-004c-68fc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:52:00 GMT", + "x-ms-client-request-id" : "cb12df60-bcad-46b1-9d76-60a6f35e3fb9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfe00feb-201e-004c-73fc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:52:00 GMT", + "x-ms-client-request-id" : "6f5314e4-d7b1-4d82-9b94-59750d3af035" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetaccountinfo&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "cfe01046-201e-004c-3bfc-59f769000000", + "Body" : "jtcgetaccountinfojtcgetaccountinfo0serviceapitestgetaccountinfofd924157069cFri, 23 Aug 2019 21:52:00 GMT\"0x8D728142086D21A\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:52:00 GMT", + "x-ms-client-request-id" : "0c82a600-3ded-42d5-a46d-c44a54c17f53", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetaccountinfo0serviceapitestgetaccountinfofd924157069c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfe0104e-201e-004c-42fc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:52:00 GMT", + "x-ms-client-request-id" : "dafa8341-ebf7-490a-8c46-4463b453ece0" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetaccountinfo0serviceapitestgetaccountinfofd924157069c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestgetaccountinfoerror.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestgetaccountinfoerror.json new file mode 100644 index 0000000000000..0113de3d3fcca --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestgetaccountinfoerror.json @@ -0,0 +1,125 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetaccountinfoerror041083e6b55007f0ee402a9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72814210B3E00\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:52:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "cfe0111b-201e-004c-6afc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:52:00 GMT", + "x-ms-client-request-id" : "29c37b45-3918-45ad-a098-09a73b7098f9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfe0112c-201e-004c-77fc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:52:00 GMT", + "x-ms-client-request-id" : "7f987842-6ed0-4aaf-9c30-55920c5b66bb" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=account&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "retry-after" : "0", + "StatusCode" : "404", + "Date" : "Fri, 23 Aug 2019 21:52:00 GMT", + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-error-code" : "ResourceNotFound", + "Content-Length" : "223", + "x-ms-request-id" : "cfe0113e-201e-004c-04fc-59f769000000", + "Body" : "ResourceNotFoundThe specified resource does not exist.\nRequestId:cfe0113e-201e-004c-04fc-59f769000000\nTime:2019-08-23T21:52:01.5707008Z", + "x-ms-client-request-id" : "83bfc1ea-20b4-4a53-973e-d467b710e555", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfe0114a-201e-004c-0cfc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:52:00 GMT", + "x-ms-client-request-id" : "7473b619-a62b-4dba-942a-79aacb1739cb" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetaccountinfoerror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "cfe0115b-201e-004c-1bfc-59f769000000", + "Body" : "jtcgetaccountinfoerrorjtcgetaccountinfoerror041083e6b55007f0ee402a9Fri, 23 Aug 2019 21:52:01 GMT\"0x8D72814210B3E00\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:52:00 GMT", + "x-ms-client-request-id" : "163361f3-3f59-44ea-a231-a752c2eda36c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetaccountinfoerror041083e6b55007f0ee402a9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfe0115f-201e-004c-1ffc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:52:00 GMT", + "x-ms-client-request-id" : "dcc09ffa-b3e9-419e-9051-58353af8f4f1" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetaccountinfoerror041083e6b55007f0ee402a9" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestgetaccountinfomin.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestgetaccountinfomin.json new file mode 100644 index 0000000000000..bb2036aef9e11 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestgetaccountinfomin.json @@ -0,0 +1,124 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetaccountinfomin0serviceapitestgetaccountinfomine6d605227?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281420CAF0CF\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:52:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "cfe01068-201e-004c-57fc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:52:00 GMT", + "x-ms-client-request-id" : "a15a1eb4-39a2-48b8-b337-e384b4eae40a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfe01075-201e-004c-61fc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:52:00 GMT", + "x-ms-client-request-id" : "6102ed2e-71b8-4568-b473-ed5c657da01d" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=account&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "x-ms-account-kind" : "StorageV2", + "retry-after" : "0", + "Content-Length" : "0", + "x-ms-sku-name" : "Standard_RAGRS", + "StatusCode" : "200", + "x-ms-request-id" : "cfe0107f-201e-004c-68fc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:52:00 GMT", + "x-ms-client-request-id" : "58b17ea3-d8e8-4645-87cb-8f7bf0df639e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfe01087-201e-004c-70fc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:52:00 GMT", + "x-ms-client-request-id" : "6fe604ac-7114-448c-8bfb-f32d9ebbcaaf" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetaccountinfomin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "cfe0109a-201e-004c-80fc-59f769000000", + "Body" : "jtcgetaccountinfominjtcgetaccountinfomin0serviceapitestgetaccountinfomine6d605227Fri, 23 Aug 2019 21:52:01 GMT\"0x8D7281420CAF0CF\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:52:00 GMT", + "x-ms-client-request-id" : "93ec218a-e4f1-46ef-b073-bf4fbe0f3099", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetaccountinfomin0serviceapitestgetaccountinfomine6d605227?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfe010a5-201e-004c-09fc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:52:00 GMT", + "x-ms-client-request-id" : "27d413d1-84ac-4566-b481-455c415c6508" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetaccountinfomin0serviceapitestgetaccountinfomine6d605227" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestgetpropserror.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestgetpropserror.json new file mode 100644 index 0000000000000..188d27546ab98 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestgetpropserror.json @@ -0,0 +1,121 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropserror0serviceapitestgetpropserrorff190235d11bf?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728141E8B47B5\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "cfe009b2-201e-004c-56fc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:56 GMT", + "x-ms-client-request-id" : "e336ad7a-2b9d-4e24-83b8-b06643014f8f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfe009c2-201e-004c-60fc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:56 GMT", + "x-ms-client-request-id" : "6adade90-f486-427a-90a1-04fcbe1a973e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://error.blob.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Server" : "Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "AuthenticationFailed", + "retry-after" : "0", + "Content-Length" : "472", + "StatusCode" : "403", + "x-ms-request-id" : "af83baeb-c01e-00fe-5efc-596566000000", + "Body" : "AuthenticationFailedServer failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.\nRequestId:af83baeb-c01e-00fe-5efc-596566000000\nTime:2019-08-23T21:51:57.4430745ZCannot find the claimed account when trying to GetProperties for the account azstoragesdkaccount.", + "Date" : "Fri, 23 Aug 2019 21:51:57 GMT", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfe00a0e-201e-004c-1cfc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:56 GMT", + "x-ms-client-request-id" : "f9299f6e-d21a-4cc7-a817-6891434c7462" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetpropserror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "cfe00a20-201e-004c-2bfc-59f769000000", + "Body" : "jtcgetpropserrorjtcgetpropserror0serviceapitestgetpropserrorff190235d11bfFri, 23 Aug 2019 21:51:57 GMT\"0x8D728141E8B47B5\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:56 GMT", + "x-ms-client-request-id" : "5eadaa9c-b255-45e6-9661-a559908c7524", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropserror0serviceapitestgetpropserrorff190235d11bf?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfe00a32-201e-004c-36fc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:56 GMT", + "x-ms-client-request-id" : "84e495e9-84ae-4f58-9a63-54c3deea6aef" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetpropserror0serviceapitestgetpropserrorff190235d11bf" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestgetpropsmin.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestgetpropsmin.json new file mode 100644 index 0000000000000..dccf73ac2f26b --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestgetpropsmin.json @@ -0,0 +1,124 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropsmin0serviceapitestgetpropsmin21c575065209173?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728141E6BF81D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "cfe00962-201e-004c-1cfc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:56 GMT", + "x-ms-client-request-id" : "be796875-69e2-4159-9222-be43a62e0b22" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfe00972-201e-004c-27fc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:56 GMT", + "x-ms-client-request-id" : "094f85d0-16fd-4e23-80a4-a9b62dbeffd7" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "cfe0097d-201e-004c-30fc-59f769000000", + "Body" : "1.0falsefalsefalsefalse1.0falsefalse1.0falsefalsefalsefalse2018-03-28", + "Date" : "Fri, 23 Aug 2019 21:51:56 GMT", + "x-ms-client-request-id" : "b40b78d9-fa4f-4290-a6d4-43bdbe0d98e1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfe00981-201e-004c-34fc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:56 GMT", + "x-ms-client-request-id" : "fb98c5f8-e659-478a-bb6f-2b457c7707e2" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetpropsmin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "cfe0098e-201e-004c-3cfc-59f769000000", + "Body" : "jtcgetpropsminjtcgetpropsmin0serviceapitestgetpropsmin21c575065209173Fri, 23 Aug 2019 21:51:57 GMT\"0x8D728141E6BF81D\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:56 GMT", + "x-ms-client-request-id" : "710cfb90-4eac-4b9b-82ec-cbcdf6f979e1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetpropsmin0serviceapitestgetpropsmin21c575065209173?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfe0099d-201e-004c-48fc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:56 GMT", + "x-ms-client-request-id" : "9dca94f1-5d79-43ed-abc0-eeae39a9bbf9" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetpropsmin0serviceapitestgetpropsmin21c575065209173" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestgetstats.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestgetstats.json new file mode 100644 index 0000000000000..6a4215a446088 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestgetstats.json @@ -0,0 +1,124 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetstats0serviceapitestgetstats7808229705e612cd9f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728141FD33405\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "cfe00dbb-201e-004c-1cfc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:58 GMT", + "x-ms-client-request-id" : "dcd620af-c18a-4025-98af-e5187a2792d0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfe00dcf-201e-004c-2dfc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:58 GMT", + "x-ms-client-request-id" : "d3f52d2a-d044-4455-bd7e-890a5a0bdfd6" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount-secondary.blob.core.windows.net?restype=service&comp=stats", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a04d331-501e-008c-02fc-59e84f000000", + "Body" : "liveFri, 23 Aug 2019 21:50:12 GMT", + "Date" : "Fri, 23 Aug 2019 21:51:59 GMT", + "x-ms-client-request-id" : "6fb6f0a5-6d1c-43e1-aa18-3796b2007863", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfe00ec6-201e-004c-04fc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:59 GMT", + "x-ms-client-request-id" : "8a1709d3-9007-43e0-b797-ba1f69f292aa" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetstats&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "cfe00edd-201e-004c-18fc-59f769000000", + "Body" : "jtcgetstatsjtcgetstats0serviceapitestgetstats7808229705e612cd9fFri, 23 Aug 2019 21:51:59 GMT\"0x8D728141FD33405\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:59 GMT", + "x-ms-client-request-id" : "1211b22f-96a1-43e4-ae75-5075cc830920", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetstats0serviceapitestgetstats7808229705e612cd9f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfe00eea-201e-004c-22fc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:59 GMT", + "x-ms-client-request-id" : "d2e8c181-37d9-4279-9534-6e0d4c202dd9" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetstats0serviceapitestgetstats7808229705e612cd9f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestgetstatserror.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestgetstatserror.json new file mode 100644 index 0000000000000..27e8073925ae8 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestgetstatserror.json @@ -0,0 +1,125 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetstatserror0serviceapitestgetstatserror2e572516b9a5c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728142067F7D2\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:52:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "cfe00f6d-201e-004c-0dfc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:59 GMT", + "x-ms-client-request-id" : "2a78db88-26eb-4f83-9b74-90717dce3de4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfe00f82-201e-004c-1bfc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:59 GMT", + "x-ms-client-request-id" : "16ea4848-7551-4ecb-a25c-d7a9c7049b74" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=service&comp=stats", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "retry-after" : "0", + "StatusCode" : "400", + "Date" : "Fri, 23 Aug 2019 21:51:59 GMT", + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-error-code" : "InvalidQueryParameterValue", + "Content-Length" : "376", + "x-ms-request-id" : "cfe00f8b-201e-004c-23fc-59f769000000", + "Body" : "InvalidQueryParameterValueValue for one of the query parameters specified in the request URI is invalid.\nRequestId:cfe00f8b-201e-004c-23fc-59f769000000\nTime:2019-08-23T21:52:00.5066741Zcompstats", + "x-ms-client-request-id" : "3798ff49-239a-4ad7-80d6-de571c11b06e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfe00f94-201e-004c-2afc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:59 GMT", + "x-ms-client-request-id" : "f56c5391-20ae-4049-8bdd-204d34a9ac3f" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetstatserror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "cfe00f9f-201e-004c-31fc-59f769000000", + "Body" : "jtcgetstatserrorjtcgetstatserror0serviceapitestgetstatserror2e572516b9a5cFri, 23 Aug 2019 21:52:00 GMT\"0x8D728142067F7D2\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:59 GMT", + "x-ms-client-request-id" : "a6c2b1ac-5a34-46c9-bec1-4c3eae4b4239", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetstatserror0serviceapitestgetstatserror2e572516b9a5c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfe00fa8-201e-004c-39fc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:59 GMT", + "x-ms-client-request-id" : "2139b3da-fb45-47f4-b2ec-ecfe8754237d" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetstatserror0serviceapitestgetstatserror2e572516b9a5c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestgetstatsmin.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestgetstatsmin.json new file mode 100644 index 0000000000000..f25b986f37446 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestgetstatsmin.json @@ -0,0 +1,124 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetstatsmin0serviceapitestgetstatsmin61511723a0eb255?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D72814203D33B5\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:52:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "cfe00efa-201e-004c-30fc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:59 GMT", + "x-ms-client-request-id" : "d8f93967-9d13-4987-b2d6-ef5d066fd017" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfe00f0e-201e-004c-3efc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:59 GMT", + "x-ms-client-request-id" : "a41ffd2d-53db-48cb-9a20-9aa5bb59a3b0" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount-secondary.blob.core.windows.net?restype=service&comp=stats", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a04d333-501e-008c-03fc-59e84f000000", + "Body" : "liveFri, 23 Aug 2019 21:50:12 GMT", + "Date" : "Fri, 23 Aug 2019 21:51:59 GMT", + "x-ms-client-request-id" : "5de71e74-d33f-4151-9323-96be55cdebb5", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfe00f3b-201e-004c-64fc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:59 GMT", + "x-ms-client-request-id" : "0e7c292f-1d55-466f-bcd0-f68faab5d576" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetstatsmin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "cfe00f4e-201e-004c-75fc-59f769000000", + "Body" : "jtcgetstatsminjtcgetstatsmin0serviceapitestgetstatsmin61511723a0eb255Fri, 23 Aug 2019 21:52:00 GMT\"0x8D72814203D33B5\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:59 GMT", + "x-ms-client-request-id" : "a7108e13-be27-4cd3-b4f8-6eb06fbfdd03", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetstatsmin0serviceapitestgetstatsmin61511723a0eb255?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfe00f5e-201e-004c-01fc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:59 GMT", + "x-ms-client-request-id" : "14fdfb06-d847-41f2-ad1e-66d30b678f34" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetstatsmin0serviceapitestgetstatsmin61511723a0eb255" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestgetuserdelegationkey.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestgetuserdelegationkey.json new file mode 100644 index 0000000000000..d642374cc8ad6 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestgetuserdelegationkey.json @@ -0,0 +1,123 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetuserdelegationkey046028eb05fabae2c1406ab?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728141EB5BD9A\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "cfe00a4e-201e-004c-51fc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:56 GMT", + "x-ms-client-request-id" : "01283b64-a48e-4a88-9b6a-7129a4573c57" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfe00a61-201e-004c-5ffc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:56 GMT", + "x-ms-client-request-id" : "b1ef2c13-3b7d-4fda-b4b9-a68d0273921e" + }, + "Exception" : null + }, { + "Method" : "POST", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=service&comp=userdelegationkey", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "cfe00bd7-201e-004c-06fc-59f769000000", + "Body" : "d9f78ed3-049b-45dd-acb6-b9bfc8d987b173cc7e6b-b65e-49f1-b907-01947e3044b12019-08-23T21:51:57Z2019-08-24T21:51:57Zb2019-02-02UkVEQUNURUQ=", + "Date" : "Fri, 23 Aug 2019 21:51:57 GMT", + "x-ms-client-request-id" : "dffa821e-b8a3-44d5-9d75-c63dc93a2658", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfe00bf5-201e-004c-1ffc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:57 GMT", + "x-ms-client-request-id" : "cbd6cf95-74a7-4984-8bbd-a90cf25d65cc" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetuserdelegationkey&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "cfe00c02-201e-004c-2afc-59f769000000", + "Body" : "jtcgetuserdelegationkeyjtcgetuserdelegationkey046028eb05fabae2c1406abFri, 23 Aug 2019 21:51:57 GMT\"0x8D728141EB5BD9A\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:57 GMT", + "x-ms-client-request-id" : "03243474-475d-435a-974e-43c6a5892292", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetuserdelegationkey046028eb05fabae2c1406ab?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfe00c13-201e-004c-35fc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:57 GMT", + "x-ms-client-request-id" : "4066a1c6-7846-4900-b62b-8251d4939ea6" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetuserdelegationkey046028eb05fabae2c1406ab" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestgetuserdelegationkeyerror.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestgetuserdelegationkeyerror.json new file mode 100644 index 0000000000000..3215c4b48628c --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestgetuserdelegationkeyerror.json @@ -0,0 +1,102 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetuserdelegationkeyerror0113900a4d1ec4cbb440?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728141FB96410\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "cfe00d6a-201e-004c-56fc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:58 GMT", + "x-ms-client-request-id" : "92d085f2-c930-468a-bd77-75cd893bd61d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfe00d82-201e-004c-6afc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:58 GMT", + "x-ms-client-request-id" : "3c138333-6066-48b8-8586-556d66e622c7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfe00d91-201e-004c-79fc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:58 GMT", + "x-ms-client-request-id" : "c81504c8-1e67-4180-9f84-c754d1ad1747" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetuserdelegationkeyerror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "cfe00da1-201e-004c-05fc-59f769000000", + "Body" : "jtcgetuserdelegationkeyerrorjtcgetuserdelegationkeyerror0113900a4d1ec4cbb440Fri, 23 Aug 2019 21:51:59 GMT\"0x8D728141FB96410\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:58 GMT", + "x-ms-client-request-id" : "60da8097-0206-450a-bbeb-3c0a749b2d67", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetuserdelegationkeyerror0113900a4d1ec4cbb440?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfe00da6-201e-004c-0afc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:58 GMT", + "x-ms-client-request-id" : "4f9e4e8c-a853-4e11-9ff6-924fb726c1f9" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetuserdelegationkeyerror0113900a4d1ec4cbb440" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestgetuserdelegationkeyerror[0].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestgetuserdelegationkeyerror[0].json new file mode 100644 index 0000000000000..bf1dd1b118f23 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestgetuserdelegationkeyerror[0].json @@ -0,0 +1,97 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetuserdelegationkeyerror0708881dee1597095b42?restype=container", + "Headers" : { + "x-ms-version" : "2018-11-09", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2018-11-09", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D720E3498385E1\"", + "Last-Modified" : "Wed, 14 Aug 2019 18:14:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "8ef12d14-901e-0099-33cc-52bfb4000000", + "Date" : "Wed, 14 Aug 2019 18:14:45 GMT" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2018-11-09", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2018-11-09", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "8ef12d21-901e-0099-3ecc-52bfb4000000", + "Date" : "Wed, 14 Aug 2019 18:14:45 GMT" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2018-11-09", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2018-11-09", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "8ef12d2a-901e-0099-46cc-52bfb4000000", + "Date" : "Wed, 14 Aug 2019 18:14:45 GMT" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetuserdelegationkeyerror&comp=list", + "Headers" : { + "x-ms-version" : "2018-11-09", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-version" : "2018-11-09", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "8ef12d38-901e-0099-52cc-52bfb4000000", + "Body" : "jtcgetuserdelegationkeyerrorjtcgetuserdelegationkeyerror0708881dee1597095b42Wed, 14 Aug 2019 18:14:45 GMT\"0x8D720E3498385E1\"unlockedavailablefalsefalse", + "Date" : "Wed, 14 Aug 2019 18:14:45 GMT", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetuserdelegationkeyerror0708881dee1597095b42?restype=container", + "Headers" : { + "x-ms-version" : "2018-11-09", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2018-11-09", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "8ef12d4d-901e-0099-66cc-52bfb4000000", + "Date" : "Wed, 14 Aug 2019 18:14:45 GMT" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetuserdelegationkeyerror0708881dee1597095b42" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestgetuserdelegationkeyerror[1].json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestgetuserdelegationkeyerror[1].json new file mode 100644 index 0000000000000..2fe304e751c47 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestgetuserdelegationkeyerror[1].json @@ -0,0 +1,97 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetuserdelegationkeyerror065100e4ad1d52ef4944?restype=container", + "Headers" : { + "x-ms-version" : "2018-11-09", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2018-11-09", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D720E349A25FD8\"", + "Last-Modified" : "Wed, 14 Aug 2019 18:14:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "8ef12d61-901e-0099-78cc-52bfb4000000", + "Date" : "Wed, 14 Aug 2019 18:14:45 GMT" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2018-11-09", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2018-11-09", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "8ef12d67-901e-0099-7ccc-52bfb4000000", + "Date" : "Wed, 14 Aug 2019 18:14:45 GMT" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2018-11-09", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2018-11-09", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "8ef12d71-901e-0099-06cc-52bfb4000000", + "Date" : "Wed, 14 Aug 2019 18:14:45 GMT" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetuserdelegationkeyerror&comp=list", + "Headers" : { + "x-ms-version" : "2018-11-09", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-version" : "2018-11-09", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "8ef12d7e-901e-0099-10cc-52bfb4000000", + "Body" : "jtcgetuserdelegationkeyerrorjtcgetuserdelegationkeyerror065100e4ad1d52ef4944Wed, 14 Aug 2019 18:14:46 GMT\"0x8D720E349A25FD8\"unlockedavailablefalsefalse", + "Date" : "Wed, 14 Aug 2019 18:14:45 GMT", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetuserdelegationkeyerror065100e4ad1d52ef4944?restype=container", + "Headers" : { + "x-ms-version" : "2018-11-09", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2018-11-09", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "8ef12d8c-901e-0099-1acc-52bfb4000000", + "Date" : "Wed, 14 Aug 2019 18:14:45 GMT" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetuserdelegationkeyerror065100e4ad1d52ef4944" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestgetuserdelegationkeymin.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestgetuserdelegationkeymin.json new file mode 100644 index 0000000000000..bea87ff0f5500 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestgetuserdelegationkeymin.json @@ -0,0 +1,123 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetuserdelegationkeymin088960aa24eaaa424d415?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728141F529984\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "cfe00c25-201e-004c-43fc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:57 GMT", + "x-ms-client-request-id" : "2e4b28c0-4601-41e8-9bba-3ba339f6e42b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfe00c2f-201e-004c-49fc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:57 GMT", + "x-ms-client-request-id" : "9024d299-e63b-42f2-b8bc-d55bfbf4ebad" + }, + "Exception" : null + }, { + "Method" : "POST", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=service&comp=userdelegationkey", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "cfe00ca8-201e-004c-33fc-59f769000000", + "Body" : "9ab219b8-bea4-41b2-acba-155a6c2d7f7cac2a9a66-b410-4a93-b4f8-80deb3b7e4ab2019-08-23T21:51:58Z2019-08-24T21:51:58Zb2019-02-02UkVEQUNURUQ=", + "Date" : "Fri, 23 Aug 2019 21:51:58 GMT", + "x-ms-client-request-id" : "7f70f5e5-21f0-427e-bfa6-8dce215db13e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfe00cb6-201e-004c-3efc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:58 GMT", + "x-ms-client-request-id" : "5f9a5fbd-df03-489f-b4e6-d290553e1e5f" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcgetuserdelegationkeymin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "cfe00cc3-201e-004c-4bfc-59f769000000", + "Body" : "jtcgetuserdelegationkeyminjtcgetuserdelegationkeymin088960aa24eaaa424d415Fri, 23 Aug 2019 21:51:58 GMT\"0x8D728141F529984\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:58 GMT", + "x-ms-client-request-id" : "a6d95259-095e-43e7-ab3a-8131e2e0647f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcgetuserdelegationkeymin088960aa24eaaa424d415?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfe00cda-201e-004c-60fc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:58 GMT", + "x-ms-client-request-id" : "e80f55cb-dc99-4446-83ec-6cbfc3b797a2" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetuserdelegationkeymin088960aa24eaaa424d415" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestinvalidaccountname.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestinvalidaccountname.json new file mode 100644 index 0000000000000..8fbaa6d0eb7b4 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestinvalidaccountname.json @@ -0,0 +1,1852 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcinvalidaccountname0serviceapitestinvalidaccountname4dd87860?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728142128B84E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:52:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "cfe0116d-201e-004c-29fc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:52:00 GMT", + "x-ms-client-request-id" : "8802edd9-92be-4366-93c2-5a3fb9e177a3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfe0117b-201e-004c-31fc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:52:01 GMT", + "x-ms-client-request-id" : "c07e44ae-3fe4-4225-abc4-15c204aea9cb" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "http://fake.blobfake.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : null, + "Exception" : { + "Throwable" : { + "cause" : null, + "stackTrace" : [ { + "methodName" : "lookupAllHostAddr", + "fileName" : "Inet6AddressImpl.java", + "lineNumber" : -2, + "className" : "java.net.Inet6AddressImpl", + "nativeMethod" : true + }, { + "methodName" : "lookupAllHostAddr", + "fileName" : "InetAddress.java", + "lineNumber" : 929, + "className" : "java.net.InetAddress$2", + "nativeMethod" : false + }, { + "methodName" : "getAddressesFromNameService", + "fileName" : "InetAddress.java", + "lineNumber" : 1324, + "className" : "java.net.InetAddress", + "nativeMethod" : false + }, { + "methodName" : "getAllByName0", + "fileName" : "InetAddress.java", + "lineNumber" : 1277, + "className" : "java.net.InetAddress", + "nativeMethod" : false + }, { + "methodName" : "getAllByName", + "fileName" : "InetAddress.java", + "lineNumber" : 1193, + "className" : "java.net.InetAddress", + "nativeMethod" : false + }, { + "methodName" : "getAllByName", + "fileName" : "InetAddress.java", + "lineNumber" : 1127, + "className" : "java.net.InetAddress", + "nativeMethod" : false + }, { + "methodName" : "getByName", + "fileName" : "InetAddress.java", + "lineNumber" : 1077, + "className" : "java.net.InetAddress", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "SocketUtils.java", + "lineNumber" : 146, + "className" : "io.netty.util.internal.SocketUtils$8", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "SocketUtils.java", + "lineNumber" : 143, + "className" : "io.netty.util.internal.SocketUtils$8", + "nativeMethod" : false + }, { + "methodName" : "doPrivileged", + "fileName" : "AccessController.java", + "lineNumber" : -2, + "className" : "java.security.AccessController", + "nativeMethod" : true + }, { + "methodName" : "addressByName", + "fileName" : "SocketUtils.java", + "lineNumber" : 143, + "className" : "io.netty.util.internal.SocketUtils", + "nativeMethod" : false + }, { + "methodName" : "doResolve", + "fileName" : "DefaultNameResolver.java", + "lineNumber" : 43, + "className" : "io.netty.resolver.DefaultNameResolver", + "nativeMethod" : false + }, { + "methodName" : "resolve", + "fileName" : "SimpleNameResolver.java", + "lineNumber" : 63, + "className" : "io.netty.resolver.SimpleNameResolver", + "nativeMethod" : false + }, { + "methodName" : "resolve", + "fileName" : "SimpleNameResolver.java", + "lineNumber" : 55, + "className" : "io.netty.resolver.SimpleNameResolver", + "nativeMethod" : false + }, { + "methodName" : "doResolve", + "fileName" : "InetSocketAddressResolver.java", + "lineNumber" : 57, + "className" : "io.netty.resolver.InetSocketAddressResolver", + "nativeMethod" : false + }, { + "methodName" : "doResolve", + "fileName" : "InetSocketAddressResolver.java", + "lineNumber" : 32, + "className" : "io.netty.resolver.InetSocketAddressResolver", + "nativeMethod" : false + }, { + "methodName" : "resolve", + "fileName" : "AbstractAddressResolver.java", + "lineNumber" : 108, + "className" : "io.netty.resolver.AbstractAddressResolver", + "nativeMethod" : false + }, { + "methodName" : "doResolveAndConnect0", + "fileName" : "Bootstrap.java", + "lineNumber" : 208, + "className" : "io.netty.bootstrap.Bootstrap", + "nativeMethod" : false + }, { + "methodName" : "access$000", + "fileName" : "Bootstrap.java", + "lineNumber" : 49, + "className" : "io.netty.bootstrap.Bootstrap", + "nativeMethod" : false + }, { + "methodName" : "operationComplete", + "fileName" : "Bootstrap.java", + "lineNumber" : 188, + "className" : "io.netty.bootstrap.Bootstrap$1", + "nativeMethod" : false + }, { + "methodName" : "operationComplete", + "fileName" : "Bootstrap.java", + "lineNumber" : 174, + "className" : "io.netty.bootstrap.Bootstrap$1", + "nativeMethod" : false + }, { + "methodName" : "notifyListener0", + "fileName" : "DefaultPromise.java", + "lineNumber" : 511, + "className" : "io.netty.util.concurrent.DefaultPromise", + "nativeMethod" : false + }, { + "methodName" : "notifyListenersNow", + "fileName" : "DefaultPromise.java", + "lineNumber" : 485, + "className" : "io.netty.util.concurrent.DefaultPromise", + "nativeMethod" : false + }, { + "methodName" : "notifyListeners", + "fileName" : "DefaultPromise.java", + "lineNumber" : 424, + "className" : "io.netty.util.concurrent.DefaultPromise", + "nativeMethod" : false + }, { + "methodName" : "trySuccess", + "fileName" : "DefaultPromise.java", + "lineNumber" : 103, + "className" : "io.netty.util.concurrent.DefaultPromise", + "nativeMethod" : false + }, { + "methodName" : "trySuccess", + "fileName" : "DefaultChannelPromise.java", + "lineNumber" : 84, + "className" : "io.netty.channel.DefaultChannelPromise", + "nativeMethod" : false + }, { + "methodName" : "safeSetSuccess", + "fileName" : "AbstractChannel.java", + "lineNumber" : 982, + "className" : "io.netty.channel.AbstractChannel$AbstractUnsafe", + "nativeMethod" : false + }, { + "methodName" : "register0", + "fileName" : "AbstractChannel.java", + "lineNumber" : 516, + "className" : "io.netty.channel.AbstractChannel$AbstractUnsafe", + "nativeMethod" : false + }, { + "methodName" : "access$200", + "fileName" : "AbstractChannel.java", + "lineNumber" : 427, + "className" : "io.netty.channel.AbstractChannel$AbstractUnsafe", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "AbstractChannel.java", + "lineNumber" : 486, + "className" : "io.netty.channel.AbstractChannel$AbstractUnsafe$1", + "nativeMethod" : false + }, { + "methodName" : "safeExecute", + "fileName" : "AbstractEventExecutor.java", + "lineNumber" : 163, + "className" : "io.netty.util.concurrent.AbstractEventExecutor", + "nativeMethod" : false + }, { + "methodName" : "runAllTasks", + "fileName" : "SingleThreadEventExecutor.java", + "lineNumber" : 404, + "className" : "io.netty.util.concurrent.SingleThreadEventExecutor", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "NioEventLoop.java", + "lineNumber" : 495, + "className" : "io.netty.channel.nio.NioEventLoop", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "SingleThreadEventExecutor.java", + "lineNumber" : 905, + "className" : "io.netty.util.concurrent.SingleThreadEventExecutor$5", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "Thread.java", + "lineNumber" : 748, + "className" : "java.lang.Thread", + "nativeMethod" : false + } ], + "message" : "fake.blobfake.core.windows.net", + "localizedMessage" : "fake.blobfake.core.windows.net", + "suppressed" : [ ] + }, + "ClassName" : "java.net.UnknownHostException" + } + }, { + "Method" : "GET", + "Uri" : "http://fake.blobfake.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : null, + "Exception" : { + "Throwable" : { + "cause" : null, + "stackTrace" : [ { + "methodName" : "getAllByName0", + "fileName" : "InetAddress.java", + "lineNumber" : 1281, + "className" : "java.net.InetAddress", + "nativeMethod" : false + }, { + "methodName" : "getAllByName", + "fileName" : "InetAddress.java", + "lineNumber" : 1193, + "className" : "java.net.InetAddress", + "nativeMethod" : false + }, { + "methodName" : "getAllByName", + "fileName" : "InetAddress.java", + "lineNumber" : 1127, + "className" : "java.net.InetAddress", + "nativeMethod" : false + }, { + "methodName" : "getByName", + "fileName" : "InetAddress.java", + "lineNumber" : 1077, + "className" : "java.net.InetAddress", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "SocketUtils.java", + "lineNumber" : 146, + "className" : "io.netty.util.internal.SocketUtils$8", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "SocketUtils.java", + "lineNumber" : 143, + "className" : "io.netty.util.internal.SocketUtils$8", + "nativeMethod" : false + }, { + "methodName" : "doPrivileged", + "fileName" : "AccessController.java", + "lineNumber" : -2, + "className" : "java.security.AccessController", + "nativeMethod" : true + }, { + "methodName" : "addressByName", + "fileName" : "SocketUtils.java", + "lineNumber" : 143, + "className" : "io.netty.util.internal.SocketUtils", + "nativeMethod" : false + }, { + "methodName" : "doResolve", + "fileName" : "DefaultNameResolver.java", + "lineNumber" : 43, + "className" : "io.netty.resolver.DefaultNameResolver", + "nativeMethod" : false + }, { + "methodName" : "resolve", + "fileName" : "SimpleNameResolver.java", + "lineNumber" : 63, + "className" : "io.netty.resolver.SimpleNameResolver", + "nativeMethod" : false + }, { + "methodName" : "resolve", + "fileName" : "SimpleNameResolver.java", + "lineNumber" : 55, + "className" : "io.netty.resolver.SimpleNameResolver", + "nativeMethod" : false + }, { + "methodName" : "doResolve", + "fileName" : "InetSocketAddressResolver.java", + "lineNumber" : 57, + "className" : "io.netty.resolver.InetSocketAddressResolver", + "nativeMethod" : false + }, { + "methodName" : "doResolve", + "fileName" : "InetSocketAddressResolver.java", + "lineNumber" : 32, + "className" : "io.netty.resolver.InetSocketAddressResolver", + "nativeMethod" : false + }, { + "methodName" : "resolve", + "fileName" : "AbstractAddressResolver.java", + "lineNumber" : 108, + "className" : "io.netty.resolver.AbstractAddressResolver", + "nativeMethod" : false + }, { + "methodName" : "doResolveAndConnect0", + "fileName" : "Bootstrap.java", + "lineNumber" : 208, + "className" : "io.netty.bootstrap.Bootstrap", + "nativeMethod" : false + }, { + "methodName" : "access$000", + "fileName" : "Bootstrap.java", + "lineNumber" : 49, + "className" : "io.netty.bootstrap.Bootstrap", + "nativeMethod" : false + }, { + "methodName" : "operationComplete", + "fileName" : "Bootstrap.java", + "lineNumber" : 188, + "className" : "io.netty.bootstrap.Bootstrap$1", + "nativeMethod" : false + }, { + "methodName" : "operationComplete", + "fileName" : "Bootstrap.java", + "lineNumber" : 174, + "className" : "io.netty.bootstrap.Bootstrap$1", + "nativeMethod" : false + }, { + "methodName" : "notifyListener0", + "fileName" : "DefaultPromise.java", + "lineNumber" : 511, + "className" : "io.netty.util.concurrent.DefaultPromise", + "nativeMethod" : false + }, { + "methodName" : "notifyListenersNow", + "fileName" : "DefaultPromise.java", + "lineNumber" : 485, + "className" : "io.netty.util.concurrent.DefaultPromise", + "nativeMethod" : false + }, { + "methodName" : "notifyListeners", + "fileName" : "DefaultPromise.java", + "lineNumber" : 424, + "className" : "io.netty.util.concurrent.DefaultPromise", + "nativeMethod" : false + }, { + "methodName" : "trySuccess", + "fileName" : "DefaultPromise.java", + "lineNumber" : 103, + "className" : "io.netty.util.concurrent.DefaultPromise", + "nativeMethod" : false + }, { + "methodName" : "trySuccess", + "fileName" : "DefaultChannelPromise.java", + "lineNumber" : 84, + "className" : "io.netty.channel.DefaultChannelPromise", + "nativeMethod" : false + }, { + "methodName" : "safeSetSuccess", + "fileName" : "AbstractChannel.java", + "lineNumber" : 982, + "className" : "io.netty.channel.AbstractChannel$AbstractUnsafe", + "nativeMethod" : false + }, { + "methodName" : "register0", + "fileName" : "AbstractChannel.java", + "lineNumber" : 516, + "className" : "io.netty.channel.AbstractChannel$AbstractUnsafe", + "nativeMethod" : false + }, { + "methodName" : "access$200", + "fileName" : "AbstractChannel.java", + "lineNumber" : 427, + "className" : "io.netty.channel.AbstractChannel$AbstractUnsafe", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "AbstractChannel.java", + "lineNumber" : 486, + "className" : "io.netty.channel.AbstractChannel$AbstractUnsafe$1", + "nativeMethod" : false + }, { + "methodName" : "safeExecute", + "fileName" : "AbstractEventExecutor.java", + "lineNumber" : 163, + "className" : "io.netty.util.concurrent.AbstractEventExecutor", + "nativeMethod" : false + }, { + "methodName" : "runAllTasks", + "fileName" : "SingleThreadEventExecutor.java", + "lineNumber" : 404, + "className" : "io.netty.util.concurrent.SingleThreadEventExecutor", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "NioEventLoop.java", + "lineNumber" : 495, + "className" : "io.netty.channel.nio.NioEventLoop", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "SingleThreadEventExecutor.java", + "lineNumber" : 905, + "className" : "io.netty.util.concurrent.SingleThreadEventExecutor$5", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "Thread.java", + "lineNumber" : 748, + "className" : "java.lang.Thread", + "nativeMethod" : false + } ], + "message" : "fake.blobfake.core.windows.net", + "localizedMessage" : "fake.blobfake.core.windows.net", + "suppressed" : [ ] + }, + "ClassName" : "java.net.UnknownHostException" + } + }, { + "Method" : "GET", + "Uri" : "http://fake.blobfake.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : null, + "Exception" : { + "Throwable" : { + "cause" : null, + "stackTrace" : [ { + "methodName" : "getAllByName0", + "fileName" : "InetAddress.java", + "lineNumber" : 1281, + "className" : "java.net.InetAddress", + "nativeMethod" : false + }, { + "methodName" : "getAllByName", + "fileName" : "InetAddress.java", + "lineNumber" : 1193, + "className" : "java.net.InetAddress", + "nativeMethod" : false + }, { + "methodName" : "getAllByName", + "fileName" : "InetAddress.java", + "lineNumber" : 1127, + "className" : "java.net.InetAddress", + "nativeMethod" : false + }, { + "methodName" : "getByName", + "fileName" : "InetAddress.java", + "lineNumber" : 1077, + "className" : "java.net.InetAddress", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "SocketUtils.java", + "lineNumber" : 146, + "className" : "io.netty.util.internal.SocketUtils$8", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "SocketUtils.java", + "lineNumber" : 143, + "className" : "io.netty.util.internal.SocketUtils$8", + "nativeMethod" : false + }, { + "methodName" : "doPrivileged", + "fileName" : "AccessController.java", + "lineNumber" : -2, + "className" : "java.security.AccessController", + "nativeMethod" : true + }, { + "methodName" : "addressByName", + "fileName" : "SocketUtils.java", + "lineNumber" : 143, + "className" : "io.netty.util.internal.SocketUtils", + "nativeMethod" : false + }, { + "methodName" : "doResolve", + "fileName" : "DefaultNameResolver.java", + "lineNumber" : 43, + "className" : "io.netty.resolver.DefaultNameResolver", + "nativeMethod" : false + }, { + "methodName" : "resolve", + "fileName" : "SimpleNameResolver.java", + "lineNumber" : 63, + "className" : "io.netty.resolver.SimpleNameResolver", + "nativeMethod" : false + }, { + "methodName" : "resolve", + "fileName" : "SimpleNameResolver.java", + "lineNumber" : 55, + "className" : "io.netty.resolver.SimpleNameResolver", + "nativeMethod" : false + }, { + "methodName" : "doResolve", + "fileName" : "InetSocketAddressResolver.java", + "lineNumber" : 57, + "className" : "io.netty.resolver.InetSocketAddressResolver", + "nativeMethod" : false + }, { + "methodName" : "doResolve", + "fileName" : "InetSocketAddressResolver.java", + "lineNumber" : 32, + "className" : "io.netty.resolver.InetSocketAddressResolver", + "nativeMethod" : false + }, { + "methodName" : "resolve", + "fileName" : "AbstractAddressResolver.java", + "lineNumber" : 108, + "className" : "io.netty.resolver.AbstractAddressResolver", + "nativeMethod" : false + }, { + "methodName" : "doResolveAndConnect0", + "fileName" : "Bootstrap.java", + "lineNumber" : 208, + "className" : "io.netty.bootstrap.Bootstrap", + "nativeMethod" : false + }, { + "methodName" : "access$000", + "fileName" : "Bootstrap.java", + "lineNumber" : 49, + "className" : "io.netty.bootstrap.Bootstrap", + "nativeMethod" : false + }, { + "methodName" : "operationComplete", + "fileName" : "Bootstrap.java", + "lineNumber" : 188, + "className" : "io.netty.bootstrap.Bootstrap$1", + "nativeMethod" : false + }, { + "methodName" : "operationComplete", + "fileName" : "Bootstrap.java", + "lineNumber" : 174, + "className" : "io.netty.bootstrap.Bootstrap$1", + "nativeMethod" : false + }, { + "methodName" : "notifyListener0", + "fileName" : "DefaultPromise.java", + "lineNumber" : 511, + "className" : "io.netty.util.concurrent.DefaultPromise", + "nativeMethod" : false + }, { + "methodName" : "notifyListenersNow", + "fileName" : "DefaultPromise.java", + "lineNumber" : 485, + "className" : "io.netty.util.concurrent.DefaultPromise", + "nativeMethod" : false + }, { + "methodName" : "notifyListeners", + "fileName" : "DefaultPromise.java", + "lineNumber" : 424, + "className" : "io.netty.util.concurrent.DefaultPromise", + "nativeMethod" : false + }, { + "methodName" : "trySuccess", + "fileName" : "DefaultPromise.java", + "lineNumber" : 103, + "className" : "io.netty.util.concurrent.DefaultPromise", + "nativeMethod" : false + }, { + "methodName" : "trySuccess", + "fileName" : "DefaultChannelPromise.java", + "lineNumber" : 84, + "className" : "io.netty.channel.DefaultChannelPromise", + "nativeMethod" : false + }, { + "methodName" : "safeSetSuccess", + "fileName" : "AbstractChannel.java", + "lineNumber" : 982, + "className" : "io.netty.channel.AbstractChannel$AbstractUnsafe", + "nativeMethod" : false + }, { + "methodName" : "register0", + "fileName" : "AbstractChannel.java", + "lineNumber" : 516, + "className" : "io.netty.channel.AbstractChannel$AbstractUnsafe", + "nativeMethod" : false + }, { + "methodName" : "access$200", + "fileName" : "AbstractChannel.java", + "lineNumber" : 427, + "className" : "io.netty.channel.AbstractChannel$AbstractUnsafe", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "AbstractChannel.java", + "lineNumber" : 486, + "className" : "io.netty.channel.AbstractChannel$AbstractUnsafe$1", + "nativeMethod" : false + }, { + "methodName" : "safeExecute", + "fileName" : "AbstractEventExecutor.java", + "lineNumber" : 163, + "className" : "io.netty.util.concurrent.AbstractEventExecutor", + "nativeMethod" : false + }, { + "methodName" : "runAllTasks", + "fileName" : "SingleThreadEventExecutor.java", + "lineNumber" : 404, + "className" : "io.netty.util.concurrent.SingleThreadEventExecutor", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "NioEventLoop.java", + "lineNumber" : 495, + "className" : "io.netty.channel.nio.NioEventLoop", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "SingleThreadEventExecutor.java", + "lineNumber" : 905, + "className" : "io.netty.util.concurrent.SingleThreadEventExecutor$5", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "Thread.java", + "lineNumber" : 748, + "className" : "java.lang.Thread", + "nativeMethod" : false + } ], + "message" : "fake.blobfake.core.windows.net", + "localizedMessage" : "fake.blobfake.core.windows.net", + "suppressed" : [ ] + }, + "ClassName" : "java.net.UnknownHostException" + } + }, { + "Method" : "GET", + "Uri" : "http://fake.blobfake.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : null, + "Exception" : { + "Throwable" : { + "cause" : null, + "stackTrace" : [ { + "methodName" : "lookupAllHostAddr", + "fileName" : "Inet6AddressImpl.java", + "lineNumber" : -2, + "className" : "java.net.Inet6AddressImpl", + "nativeMethod" : true + }, { + "methodName" : "lookupAllHostAddr", + "fileName" : "InetAddress.java", + "lineNumber" : 929, + "className" : "java.net.InetAddress$2", + "nativeMethod" : false + }, { + "methodName" : "getAddressesFromNameService", + "fileName" : "InetAddress.java", + "lineNumber" : 1324, + "className" : "java.net.InetAddress", + "nativeMethod" : false + }, { + "methodName" : "getAllByName0", + "fileName" : "InetAddress.java", + "lineNumber" : 1277, + "className" : "java.net.InetAddress", + "nativeMethod" : false + }, { + "methodName" : "getAllByName", + "fileName" : "InetAddress.java", + "lineNumber" : 1193, + "className" : "java.net.InetAddress", + "nativeMethod" : false + }, { + "methodName" : "getAllByName", + "fileName" : "InetAddress.java", + "lineNumber" : 1127, + "className" : "java.net.InetAddress", + "nativeMethod" : false + }, { + "methodName" : "getByName", + "fileName" : "InetAddress.java", + "lineNumber" : 1077, + "className" : "java.net.InetAddress", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "SocketUtils.java", + "lineNumber" : 146, + "className" : "io.netty.util.internal.SocketUtils$8", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "SocketUtils.java", + "lineNumber" : 143, + "className" : "io.netty.util.internal.SocketUtils$8", + "nativeMethod" : false + }, { + "methodName" : "doPrivileged", + "fileName" : "AccessController.java", + "lineNumber" : -2, + "className" : "java.security.AccessController", + "nativeMethod" : true + }, { + "methodName" : "addressByName", + "fileName" : "SocketUtils.java", + "lineNumber" : 143, + "className" : "io.netty.util.internal.SocketUtils", + "nativeMethod" : false + }, { + "methodName" : "doResolve", + "fileName" : "DefaultNameResolver.java", + "lineNumber" : 43, + "className" : "io.netty.resolver.DefaultNameResolver", + "nativeMethod" : false + }, { + "methodName" : "resolve", + "fileName" : "SimpleNameResolver.java", + "lineNumber" : 63, + "className" : "io.netty.resolver.SimpleNameResolver", + "nativeMethod" : false + }, { + "methodName" : "resolve", + "fileName" : "SimpleNameResolver.java", + "lineNumber" : 55, + "className" : "io.netty.resolver.SimpleNameResolver", + "nativeMethod" : false + }, { + "methodName" : "doResolve", + "fileName" : "InetSocketAddressResolver.java", + "lineNumber" : 57, + "className" : "io.netty.resolver.InetSocketAddressResolver", + "nativeMethod" : false + }, { + "methodName" : "doResolve", + "fileName" : "InetSocketAddressResolver.java", + "lineNumber" : 32, + "className" : "io.netty.resolver.InetSocketAddressResolver", + "nativeMethod" : false + }, { + "methodName" : "resolve", + "fileName" : "AbstractAddressResolver.java", + "lineNumber" : 108, + "className" : "io.netty.resolver.AbstractAddressResolver", + "nativeMethod" : false + }, { + "methodName" : "doResolveAndConnect0", + "fileName" : "Bootstrap.java", + "lineNumber" : 208, + "className" : "io.netty.bootstrap.Bootstrap", + "nativeMethod" : false + }, { + "methodName" : "access$000", + "fileName" : "Bootstrap.java", + "lineNumber" : 49, + "className" : "io.netty.bootstrap.Bootstrap", + "nativeMethod" : false + }, { + "methodName" : "operationComplete", + "fileName" : "Bootstrap.java", + "lineNumber" : 188, + "className" : "io.netty.bootstrap.Bootstrap$1", + "nativeMethod" : false + }, { + "methodName" : "operationComplete", + "fileName" : "Bootstrap.java", + "lineNumber" : 174, + "className" : "io.netty.bootstrap.Bootstrap$1", + "nativeMethod" : false + }, { + "methodName" : "notifyListener0", + "fileName" : "DefaultPromise.java", + "lineNumber" : 511, + "className" : "io.netty.util.concurrent.DefaultPromise", + "nativeMethod" : false + }, { + "methodName" : "notifyListenersNow", + "fileName" : "DefaultPromise.java", + "lineNumber" : 485, + "className" : "io.netty.util.concurrent.DefaultPromise", + "nativeMethod" : false + }, { + "methodName" : "notifyListeners", + "fileName" : "DefaultPromise.java", + "lineNumber" : 424, + "className" : "io.netty.util.concurrent.DefaultPromise", + "nativeMethod" : false + }, { + "methodName" : "trySuccess", + "fileName" : "DefaultPromise.java", + "lineNumber" : 103, + "className" : "io.netty.util.concurrent.DefaultPromise", + "nativeMethod" : false + }, { + "methodName" : "trySuccess", + "fileName" : "DefaultChannelPromise.java", + "lineNumber" : 84, + "className" : "io.netty.channel.DefaultChannelPromise", + "nativeMethod" : false + }, { + "methodName" : "safeSetSuccess", + "fileName" : "AbstractChannel.java", + "lineNumber" : 982, + "className" : "io.netty.channel.AbstractChannel$AbstractUnsafe", + "nativeMethod" : false + }, { + "methodName" : "register0", + "fileName" : "AbstractChannel.java", + "lineNumber" : 516, + "className" : "io.netty.channel.AbstractChannel$AbstractUnsafe", + "nativeMethod" : false + }, { + "methodName" : "access$200", + "fileName" : "AbstractChannel.java", + "lineNumber" : 427, + "className" : "io.netty.channel.AbstractChannel$AbstractUnsafe", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "AbstractChannel.java", + "lineNumber" : 486, + "className" : "io.netty.channel.AbstractChannel$AbstractUnsafe$1", + "nativeMethod" : false + }, { + "methodName" : "safeExecute", + "fileName" : "AbstractEventExecutor.java", + "lineNumber" : 163, + "className" : "io.netty.util.concurrent.AbstractEventExecutor", + "nativeMethod" : false + }, { + "methodName" : "runAllTasks", + "fileName" : "SingleThreadEventExecutor.java", + "lineNumber" : 404, + "className" : "io.netty.util.concurrent.SingleThreadEventExecutor", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "NioEventLoop.java", + "lineNumber" : 495, + "className" : "io.netty.channel.nio.NioEventLoop", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "SingleThreadEventExecutor.java", + "lineNumber" : 905, + "className" : "io.netty.util.concurrent.SingleThreadEventExecutor$5", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "Thread.java", + "lineNumber" : 748, + "className" : "java.lang.Thread", + "nativeMethod" : false + } ], + "message" : "fake.blobfake.core.windows.net", + "localizedMessage" : "fake.blobfake.core.windows.net", + "suppressed" : [ ] + }, + "ClassName" : "java.net.UnknownHostException" + } + }, { + "Method" : "GET", + "Uri" : "http://fake.blobfake.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : null, + "Exception" : { + "Throwable" : { + "cause" : null, + "stackTrace" : [ { + "methodName" : "lookupAllHostAddr", + "fileName" : "Inet6AddressImpl.java", + "lineNumber" : -2, + "className" : "java.net.Inet6AddressImpl", + "nativeMethod" : true + }, { + "methodName" : "lookupAllHostAddr", + "fileName" : "InetAddress.java", + "lineNumber" : 929, + "className" : "java.net.InetAddress$2", + "nativeMethod" : false + }, { + "methodName" : "getAddressesFromNameService", + "fileName" : "InetAddress.java", + "lineNumber" : 1324, + "className" : "java.net.InetAddress", + "nativeMethod" : false + }, { + "methodName" : "getAllByName0", + "fileName" : "InetAddress.java", + "lineNumber" : 1277, + "className" : "java.net.InetAddress", + "nativeMethod" : false + }, { + "methodName" : "getAllByName", + "fileName" : "InetAddress.java", + "lineNumber" : 1193, + "className" : "java.net.InetAddress", + "nativeMethod" : false + }, { + "methodName" : "getAllByName", + "fileName" : "InetAddress.java", + "lineNumber" : 1127, + "className" : "java.net.InetAddress", + "nativeMethod" : false + }, { + "methodName" : "getByName", + "fileName" : "InetAddress.java", + "lineNumber" : 1077, + "className" : "java.net.InetAddress", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "SocketUtils.java", + "lineNumber" : 146, + "className" : "io.netty.util.internal.SocketUtils$8", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "SocketUtils.java", + "lineNumber" : 143, + "className" : "io.netty.util.internal.SocketUtils$8", + "nativeMethod" : false + }, { + "methodName" : "doPrivileged", + "fileName" : "AccessController.java", + "lineNumber" : -2, + "className" : "java.security.AccessController", + "nativeMethod" : true + }, { + "methodName" : "addressByName", + "fileName" : "SocketUtils.java", + "lineNumber" : 143, + "className" : "io.netty.util.internal.SocketUtils", + "nativeMethod" : false + }, { + "methodName" : "doResolve", + "fileName" : "DefaultNameResolver.java", + "lineNumber" : 43, + "className" : "io.netty.resolver.DefaultNameResolver", + "nativeMethod" : false + }, { + "methodName" : "resolve", + "fileName" : "SimpleNameResolver.java", + "lineNumber" : 63, + "className" : "io.netty.resolver.SimpleNameResolver", + "nativeMethod" : false + }, { + "methodName" : "resolve", + "fileName" : "SimpleNameResolver.java", + "lineNumber" : 55, + "className" : "io.netty.resolver.SimpleNameResolver", + "nativeMethod" : false + }, { + "methodName" : "doResolve", + "fileName" : "InetSocketAddressResolver.java", + "lineNumber" : 57, + "className" : "io.netty.resolver.InetSocketAddressResolver", + "nativeMethod" : false + }, { + "methodName" : "doResolve", + "fileName" : "InetSocketAddressResolver.java", + "lineNumber" : 32, + "className" : "io.netty.resolver.InetSocketAddressResolver", + "nativeMethod" : false + }, { + "methodName" : "resolve", + "fileName" : "AbstractAddressResolver.java", + "lineNumber" : 108, + "className" : "io.netty.resolver.AbstractAddressResolver", + "nativeMethod" : false + }, { + "methodName" : "doResolveAndConnect0", + "fileName" : "Bootstrap.java", + "lineNumber" : 208, + "className" : "io.netty.bootstrap.Bootstrap", + "nativeMethod" : false + }, { + "methodName" : "access$000", + "fileName" : "Bootstrap.java", + "lineNumber" : 49, + "className" : "io.netty.bootstrap.Bootstrap", + "nativeMethod" : false + }, { + "methodName" : "operationComplete", + "fileName" : "Bootstrap.java", + "lineNumber" : 188, + "className" : "io.netty.bootstrap.Bootstrap$1", + "nativeMethod" : false + }, { + "methodName" : "operationComplete", + "fileName" : "Bootstrap.java", + "lineNumber" : 174, + "className" : "io.netty.bootstrap.Bootstrap$1", + "nativeMethod" : false + }, { + "methodName" : "notifyListener0", + "fileName" : "DefaultPromise.java", + "lineNumber" : 511, + "className" : "io.netty.util.concurrent.DefaultPromise", + "nativeMethod" : false + }, { + "methodName" : "notifyListenersNow", + "fileName" : "DefaultPromise.java", + "lineNumber" : 485, + "className" : "io.netty.util.concurrent.DefaultPromise", + "nativeMethod" : false + }, { + "methodName" : "notifyListeners", + "fileName" : "DefaultPromise.java", + "lineNumber" : 424, + "className" : "io.netty.util.concurrent.DefaultPromise", + "nativeMethod" : false + }, { + "methodName" : "trySuccess", + "fileName" : "DefaultPromise.java", + "lineNumber" : 103, + "className" : "io.netty.util.concurrent.DefaultPromise", + "nativeMethod" : false + }, { + "methodName" : "trySuccess", + "fileName" : "DefaultChannelPromise.java", + "lineNumber" : 84, + "className" : "io.netty.channel.DefaultChannelPromise", + "nativeMethod" : false + }, { + "methodName" : "safeSetSuccess", + "fileName" : "AbstractChannel.java", + "lineNumber" : 982, + "className" : "io.netty.channel.AbstractChannel$AbstractUnsafe", + "nativeMethod" : false + }, { + "methodName" : "register0", + "fileName" : "AbstractChannel.java", + "lineNumber" : 516, + "className" : "io.netty.channel.AbstractChannel$AbstractUnsafe", + "nativeMethod" : false + }, { + "methodName" : "access$200", + "fileName" : "AbstractChannel.java", + "lineNumber" : 427, + "className" : "io.netty.channel.AbstractChannel$AbstractUnsafe", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "AbstractChannel.java", + "lineNumber" : 486, + "className" : "io.netty.channel.AbstractChannel$AbstractUnsafe$1", + "nativeMethod" : false + }, { + "methodName" : "safeExecute", + "fileName" : "AbstractEventExecutor.java", + "lineNumber" : 163, + "className" : "io.netty.util.concurrent.AbstractEventExecutor", + "nativeMethod" : false + }, { + "methodName" : "runAllTasks", + "fileName" : "SingleThreadEventExecutor.java", + "lineNumber" : 404, + "className" : "io.netty.util.concurrent.SingleThreadEventExecutor", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "NioEventLoop.java", + "lineNumber" : 495, + "className" : "io.netty.channel.nio.NioEventLoop", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "SingleThreadEventExecutor.java", + "lineNumber" : 905, + "className" : "io.netty.util.concurrent.SingleThreadEventExecutor$5", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "Thread.java", + "lineNumber" : 748, + "className" : "java.lang.Thread", + "nativeMethod" : false + } ], + "message" : "fake.blobfake.core.windows.net", + "localizedMessage" : "fake.blobfake.core.windows.net", + "suppressed" : [ ] + }, + "ClassName" : "java.net.UnknownHostException" + } + }, { + "Method" : "GET", + "Uri" : "http://fake.blobfake.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : null, + "Exception" : { + "Throwable" : { + "cause" : null, + "stackTrace" : [ { + "methodName" : "getAllByName0", + "fileName" : "InetAddress.java", + "lineNumber" : 1281, + "className" : "java.net.InetAddress", + "nativeMethod" : false + }, { + "methodName" : "getAllByName", + "fileName" : "InetAddress.java", + "lineNumber" : 1193, + "className" : "java.net.InetAddress", + "nativeMethod" : false + }, { + "methodName" : "getAllByName", + "fileName" : "InetAddress.java", + "lineNumber" : 1127, + "className" : "java.net.InetAddress", + "nativeMethod" : false + }, { + "methodName" : "getByName", + "fileName" : "InetAddress.java", + "lineNumber" : 1077, + "className" : "java.net.InetAddress", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "SocketUtils.java", + "lineNumber" : 146, + "className" : "io.netty.util.internal.SocketUtils$8", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "SocketUtils.java", + "lineNumber" : 143, + "className" : "io.netty.util.internal.SocketUtils$8", + "nativeMethod" : false + }, { + "methodName" : "doPrivileged", + "fileName" : "AccessController.java", + "lineNumber" : -2, + "className" : "java.security.AccessController", + "nativeMethod" : true + }, { + "methodName" : "addressByName", + "fileName" : "SocketUtils.java", + "lineNumber" : 143, + "className" : "io.netty.util.internal.SocketUtils", + "nativeMethod" : false + }, { + "methodName" : "doResolve", + "fileName" : "DefaultNameResolver.java", + "lineNumber" : 43, + "className" : "io.netty.resolver.DefaultNameResolver", + "nativeMethod" : false + }, { + "methodName" : "resolve", + "fileName" : "SimpleNameResolver.java", + "lineNumber" : 63, + "className" : "io.netty.resolver.SimpleNameResolver", + "nativeMethod" : false + }, { + "methodName" : "resolve", + "fileName" : "SimpleNameResolver.java", + "lineNumber" : 55, + "className" : "io.netty.resolver.SimpleNameResolver", + "nativeMethod" : false + }, { + "methodName" : "doResolve", + "fileName" : "InetSocketAddressResolver.java", + "lineNumber" : 57, + "className" : "io.netty.resolver.InetSocketAddressResolver", + "nativeMethod" : false + }, { + "methodName" : "doResolve", + "fileName" : "InetSocketAddressResolver.java", + "lineNumber" : 32, + "className" : "io.netty.resolver.InetSocketAddressResolver", + "nativeMethod" : false + }, { + "methodName" : "resolve", + "fileName" : "AbstractAddressResolver.java", + "lineNumber" : 108, + "className" : "io.netty.resolver.AbstractAddressResolver", + "nativeMethod" : false + }, { + "methodName" : "doResolveAndConnect0", + "fileName" : "Bootstrap.java", + "lineNumber" : 208, + "className" : "io.netty.bootstrap.Bootstrap", + "nativeMethod" : false + }, { + "methodName" : "access$000", + "fileName" : "Bootstrap.java", + "lineNumber" : 49, + "className" : "io.netty.bootstrap.Bootstrap", + "nativeMethod" : false + }, { + "methodName" : "operationComplete", + "fileName" : "Bootstrap.java", + "lineNumber" : 188, + "className" : "io.netty.bootstrap.Bootstrap$1", + "nativeMethod" : false + }, { + "methodName" : "operationComplete", + "fileName" : "Bootstrap.java", + "lineNumber" : 174, + "className" : "io.netty.bootstrap.Bootstrap$1", + "nativeMethod" : false + }, { + "methodName" : "notifyListener0", + "fileName" : "DefaultPromise.java", + "lineNumber" : 511, + "className" : "io.netty.util.concurrent.DefaultPromise", + "nativeMethod" : false + }, { + "methodName" : "notifyListenersNow", + "fileName" : "DefaultPromise.java", + "lineNumber" : 485, + "className" : "io.netty.util.concurrent.DefaultPromise", + "nativeMethod" : false + }, { + "methodName" : "notifyListeners", + "fileName" : "DefaultPromise.java", + "lineNumber" : 424, + "className" : "io.netty.util.concurrent.DefaultPromise", + "nativeMethod" : false + }, { + "methodName" : "trySuccess", + "fileName" : "DefaultPromise.java", + "lineNumber" : 103, + "className" : "io.netty.util.concurrent.DefaultPromise", + "nativeMethod" : false + }, { + "methodName" : "trySuccess", + "fileName" : "DefaultChannelPromise.java", + "lineNumber" : 84, + "className" : "io.netty.channel.DefaultChannelPromise", + "nativeMethod" : false + }, { + "methodName" : "safeSetSuccess", + "fileName" : "AbstractChannel.java", + "lineNumber" : 982, + "className" : "io.netty.channel.AbstractChannel$AbstractUnsafe", + "nativeMethod" : false + }, { + "methodName" : "register0", + "fileName" : "AbstractChannel.java", + "lineNumber" : 516, + "className" : "io.netty.channel.AbstractChannel$AbstractUnsafe", + "nativeMethod" : false + }, { + "methodName" : "access$200", + "fileName" : "AbstractChannel.java", + "lineNumber" : 427, + "className" : "io.netty.channel.AbstractChannel$AbstractUnsafe", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "AbstractChannel.java", + "lineNumber" : 486, + "className" : "io.netty.channel.AbstractChannel$AbstractUnsafe$1", + "nativeMethod" : false + }, { + "methodName" : "safeExecute", + "fileName" : "AbstractEventExecutor.java", + "lineNumber" : 163, + "className" : "io.netty.util.concurrent.AbstractEventExecutor", + "nativeMethod" : false + }, { + "methodName" : "runAllTasks", + "fileName" : "SingleThreadEventExecutor.java", + "lineNumber" : 404, + "className" : "io.netty.util.concurrent.SingleThreadEventExecutor", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "NioEventLoop.java", + "lineNumber" : 495, + "className" : "io.netty.channel.nio.NioEventLoop", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "SingleThreadEventExecutor.java", + "lineNumber" : 905, + "className" : "io.netty.util.concurrent.SingleThreadEventExecutor$5", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "Thread.java", + "lineNumber" : 748, + "className" : "java.lang.Thread", + "nativeMethod" : false + } ], + "message" : "fake.blobfake.core.windows.net", + "localizedMessage" : "fake.blobfake.core.windows.net", + "suppressed" : [ ] + }, + "ClassName" : "java.net.UnknownHostException" + } + }, { + "Method" : "GET", + "Uri" : "http://fake.blobfake.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : null, + "Exception" : { + "Throwable" : { + "cause" : null, + "stackTrace" : [ { + "methodName" : "lookupAllHostAddr", + "fileName" : "Inet6AddressImpl.java", + "lineNumber" : -2, + "className" : "java.net.Inet6AddressImpl", + "nativeMethod" : true + }, { + "methodName" : "lookupAllHostAddr", + "fileName" : "InetAddress.java", + "lineNumber" : 929, + "className" : "java.net.InetAddress$2", + "nativeMethod" : false + }, { + "methodName" : "getAddressesFromNameService", + "fileName" : "InetAddress.java", + "lineNumber" : 1324, + "className" : "java.net.InetAddress", + "nativeMethod" : false + }, { + "methodName" : "getAllByName0", + "fileName" : "InetAddress.java", + "lineNumber" : 1277, + "className" : "java.net.InetAddress", + "nativeMethod" : false + }, { + "methodName" : "getAllByName", + "fileName" : "InetAddress.java", + "lineNumber" : 1193, + "className" : "java.net.InetAddress", + "nativeMethod" : false + }, { + "methodName" : "getAllByName", + "fileName" : "InetAddress.java", + "lineNumber" : 1127, + "className" : "java.net.InetAddress", + "nativeMethod" : false + }, { + "methodName" : "getByName", + "fileName" : "InetAddress.java", + "lineNumber" : 1077, + "className" : "java.net.InetAddress", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "SocketUtils.java", + "lineNumber" : 146, + "className" : "io.netty.util.internal.SocketUtils$8", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "SocketUtils.java", + "lineNumber" : 143, + "className" : "io.netty.util.internal.SocketUtils$8", + "nativeMethod" : false + }, { + "methodName" : "doPrivileged", + "fileName" : "AccessController.java", + "lineNumber" : -2, + "className" : "java.security.AccessController", + "nativeMethod" : true + }, { + "methodName" : "addressByName", + "fileName" : "SocketUtils.java", + "lineNumber" : 143, + "className" : "io.netty.util.internal.SocketUtils", + "nativeMethod" : false + }, { + "methodName" : "doResolve", + "fileName" : "DefaultNameResolver.java", + "lineNumber" : 43, + "className" : "io.netty.resolver.DefaultNameResolver", + "nativeMethod" : false + }, { + "methodName" : "resolve", + "fileName" : "SimpleNameResolver.java", + "lineNumber" : 63, + "className" : "io.netty.resolver.SimpleNameResolver", + "nativeMethod" : false + }, { + "methodName" : "resolve", + "fileName" : "SimpleNameResolver.java", + "lineNumber" : 55, + "className" : "io.netty.resolver.SimpleNameResolver", + "nativeMethod" : false + }, { + "methodName" : "doResolve", + "fileName" : "InetSocketAddressResolver.java", + "lineNumber" : 57, + "className" : "io.netty.resolver.InetSocketAddressResolver", + "nativeMethod" : false + }, { + "methodName" : "doResolve", + "fileName" : "InetSocketAddressResolver.java", + "lineNumber" : 32, + "className" : "io.netty.resolver.InetSocketAddressResolver", + "nativeMethod" : false + }, { + "methodName" : "resolve", + "fileName" : "AbstractAddressResolver.java", + "lineNumber" : 108, + "className" : "io.netty.resolver.AbstractAddressResolver", + "nativeMethod" : false + }, { + "methodName" : "doResolveAndConnect0", + "fileName" : "Bootstrap.java", + "lineNumber" : 208, + "className" : "io.netty.bootstrap.Bootstrap", + "nativeMethod" : false + }, { + "methodName" : "access$000", + "fileName" : "Bootstrap.java", + "lineNumber" : 49, + "className" : "io.netty.bootstrap.Bootstrap", + "nativeMethod" : false + }, { + "methodName" : "operationComplete", + "fileName" : "Bootstrap.java", + "lineNumber" : 188, + "className" : "io.netty.bootstrap.Bootstrap$1", + "nativeMethod" : false + }, { + "methodName" : "operationComplete", + "fileName" : "Bootstrap.java", + "lineNumber" : 174, + "className" : "io.netty.bootstrap.Bootstrap$1", + "nativeMethod" : false + }, { + "methodName" : "notifyListener0", + "fileName" : "DefaultPromise.java", + "lineNumber" : 511, + "className" : "io.netty.util.concurrent.DefaultPromise", + "nativeMethod" : false + }, { + "methodName" : "notifyListenersNow", + "fileName" : "DefaultPromise.java", + "lineNumber" : 485, + "className" : "io.netty.util.concurrent.DefaultPromise", + "nativeMethod" : false + }, { + "methodName" : "notifyListeners", + "fileName" : "DefaultPromise.java", + "lineNumber" : 424, + "className" : "io.netty.util.concurrent.DefaultPromise", + "nativeMethod" : false + }, { + "methodName" : "trySuccess", + "fileName" : "DefaultPromise.java", + "lineNumber" : 103, + "className" : "io.netty.util.concurrent.DefaultPromise", + "nativeMethod" : false + }, { + "methodName" : "trySuccess", + "fileName" : "DefaultChannelPromise.java", + "lineNumber" : 84, + "className" : "io.netty.channel.DefaultChannelPromise", + "nativeMethod" : false + }, { + "methodName" : "safeSetSuccess", + "fileName" : "AbstractChannel.java", + "lineNumber" : 982, + "className" : "io.netty.channel.AbstractChannel$AbstractUnsafe", + "nativeMethod" : false + }, { + "methodName" : "register0", + "fileName" : "AbstractChannel.java", + "lineNumber" : 516, + "className" : "io.netty.channel.AbstractChannel$AbstractUnsafe", + "nativeMethod" : false + }, { + "methodName" : "access$200", + "fileName" : "AbstractChannel.java", + "lineNumber" : 427, + "className" : "io.netty.channel.AbstractChannel$AbstractUnsafe", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "AbstractChannel.java", + "lineNumber" : 486, + "className" : "io.netty.channel.AbstractChannel$AbstractUnsafe$1", + "nativeMethod" : false + }, { + "methodName" : "safeExecute", + "fileName" : "AbstractEventExecutor.java", + "lineNumber" : 163, + "className" : "io.netty.util.concurrent.AbstractEventExecutor", + "nativeMethod" : false + }, { + "methodName" : "runAllTasks", + "fileName" : "SingleThreadEventExecutor.java", + "lineNumber" : 404, + "className" : "io.netty.util.concurrent.SingleThreadEventExecutor", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "NioEventLoop.java", + "lineNumber" : 495, + "className" : "io.netty.channel.nio.NioEventLoop", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "SingleThreadEventExecutor.java", + "lineNumber" : 905, + "className" : "io.netty.util.concurrent.SingleThreadEventExecutor$5", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "Thread.java", + "lineNumber" : 748, + "className" : "java.lang.Thread", + "nativeMethod" : false + } ], + "message" : "fake.blobfake.core.windows.net", + "localizedMessage" : "fake.blobfake.core.windows.net", + "suppressed" : [ ] + }, + "ClassName" : "java.net.UnknownHostException" + } + }, { + "Method" : "GET", + "Uri" : "http://fake.blobfake.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : null, + "Exception" : { + "Throwable" : { + "cause" : null, + "stackTrace" : [ { + "methodName" : "getAllByName0", + "fileName" : "InetAddress.java", + "lineNumber" : 1281, + "className" : "java.net.InetAddress", + "nativeMethod" : false + }, { + "methodName" : "getAllByName", + "fileName" : "InetAddress.java", + "lineNumber" : 1193, + "className" : "java.net.InetAddress", + "nativeMethod" : false + }, { + "methodName" : "getAllByName", + "fileName" : "InetAddress.java", + "lineNumber" : 1127, + "className" : "java.net.InetAddress", + "nativeMethod" : false + }, { + "methodName" : "getByName", + "fileName" : "InetAddress.java", + "lineNumber" : 1077, + "className" : "java.net.InetAddress", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "SocketUtils.java", + "lineNumber" : 146, + "className" : "io.netty.util.internal.SocketUtils$8", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "SocketUtils.java", + "lineNumber" : 143, + "className" : "io.netty.util.internal.SocketUtils$8", + "nativeMethod" : false + }, { + "methodName" : "doPrivileged", + "fileName" : "AccessController.java", + "lineNumber" : -2, + "className" : "java.security.AccessController", + "nativeMethod" : true + }, { + "methodName" : "addressByName", + "fileName" : "SocketUtils.java", + "lineNumber" : 143, + "className" : "io.netty.util.internal.SocketUtils", + "nativeMethod" : false + }, { + "methodName" : "doResolve", + "fileName" : "DefaultNameResolver.java", + "lineNumber" : 43, + "className" : "io.netty.resolver.DefaultNameResolver", + "nativeMethod" : false + }, { + "methodName" : "resolve", + "fileName" : "SimpleNameResolver.java", + "lineNumber" : 63, + "className" : "io.netty.resolver.SimpleNameResolver", + "nativeMethod" : false + }, { + "methodName" : "resolve", + "fileName" : "SimpleNameResolver.java", + "lineNumber" : 55, + "className" : "io.netty.resolver.SimpleNameResolver", + "nativeMethod" : false + }, { + "methodName" : "doResolve", + "fileName" : "InetSocketAddressResolver.java", + "lineNumber" : 57, + "className" : "io.netty.resolver.InetSocketAddressResolver", + "nativeMethod" : false + }, { + "methodName" : "doResolve", + "fileName" : "InetSocketAddressResolver.java", + "lineNumber" : 32, + "className" : "io.netty.resolver.InetSocketAddressResolver", + "nativeMethod" : false + }, { + "methodName" : "resolve", + "fileName" : "AbstractAddressResolver.java", + "lineNumber" : 108, + "className" : "io.netty.resolver.AbstractAddressResolver", + "nativeMethod" : false + }, { + "methodName" : "doResolveAndConnect0", + "fileName" : "Bootstrap.java", + "lineNumber" : 208, + "className" : "io.netty.bootstrap.Bootstrap", + "nativeMethod" : false + }, { + "methodName" : "access$000", + "fileName" : "Bootstrap.java", + "lineNumber" : 49, + "className" : "io.netty.bootstrap.Bootstrap", + "nativeMethod" : false + }, { + "methodName" : "operationComplete", + "fileName" : "Bootstrap.java", + "lineNumber" : 188, + "className" : "io.netty.bootstrap.Bootstrap$1", + "nativeMethod" : false + }, { + "methodName" : "operationComplete", + "fileName" : "Bootstrap.java", + "lineNumber" : 174, + "className" : "io.netty.bootstrap.Bootstrap$1", + "nativeMethod" : false + }, { + "methodName" : "notifyListener0", + "fileName" : "DefaultPromise.java", + "lineNumber" : 511, + "className" : "io.netty.util.concurrent.DefaultPromise", + "nativeMethod" : false + }, { + "methodName" : "notifyListenersNow", + "fileName" : "DefaultPromise.java", + "lineNumber" : 485, + "className" : "io.netty.util.concurrent.DefaultPromise", + "nativeMethod" : false + }, { + "methodName" : "notifyListeners", + "fileName" : "DefaultPromise.java", + "lineNumber" : 424, + "className" : "io.netty.util.concurrent.DefaultPromise", + "nativeMethod" : false + }, { + "methodName" : "trySuccess", + "fileName" : "DefaultPromise.java", + "lineNumber" : 103, + "className" : "io.netty.util.concurrent.DefaultPromise", + "nativeMethod" : false + }, { + "methodName" : "trySuccess", + "fileName" : "DefaultChannelPromise.java", + "lineNumber" : 84, + "className" : "io.netty.channel.DefaultChannelPromise", + "nativeMethod" : false + }, { + "methodName" : "safeSetSuccess", + "fileName" : "AbstractChannel.java", + "lineNumber" : 982, + "className" : "io.netty.channel.AbstractChannel$AbstractUnsafe", + "nativeMethod" : false + }, { + "methodName" : "register0", + "fileName" : "AbstractChannel.java", + "lineNumber" : 516, + "className" : "io.netty.channel.AbstractChannel$AbstractUnsafe", + "nativeMethod" : false + }, { + "methodName" : "access$200", + "fileName" : "AbstractChannel.java", + "lineNumber" : 427, + "className" : "io.netty.channel.AbstractChannel$AbstractUnsafe", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "AbstractChannel.java", + "lineNumber" : 486, + "className" : "io.netty.channel.AbstractChannel$AbstractUnsafe$1", + "nativeMethod" : false + }, { + "methodName" : "safeExecute", + "fileName" : "AbstractEventExecutor.java", + "lineNumber" : 163, + "className" : "io.netty.util.concurrent.AbstractEventExecutor", + "nativeMethod" : false + }, { + "methodName" : "runAllTasks", + "fileName" : "SingleThreadEventExecutor.java", + "lineNumber" : 404, + "className" : "io.netty.util.concurrent.SingleThreadEventExecutor", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "NioEventLoop.java", + "lineNumber" : 495, + "className" : "io.netty.channel.nio.NioEventLoop", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "SingleThreadEventExecutor.java", + "lineNumber" : 905, + "className" : "io.netty.util.concurrent.SingleThreadEventExecutor$5", + "nativeMethod" : false + }, { + "methodName" : "run", + "fileName" : "Thread.java", + "lineNumber" : 748, + "className" : "java.lang.Thread", + "nativeMethod" : false + } ], + "message" : "fake.blobfake.core.windows.net", + "localizedMessage" : "fake.blobfake.core.windows.net", + "suppressed" : [ ] + }, + "ClassName" : "java.net.UnknownHostException" + } + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfe07b28-201e-004c-67fd-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:53:01 GMT", + "x-ms-client-request-id" : "16cff8bb-4ebc-4600-a591-f7ceabc20dae" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcinvalidaccountname&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "cfe07b72-201e-004c-21fd-59f769000000", + "Body" : "jtcinvalidaccountnamejtcinvalidaccountname0serviceapitestinvalidaccountname4dd87860Fri, 23 Aug 2019 21:52:01 GMT\"0x8D728142128B84E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:53:01 GMT", + "x-ms-client-request-id" : "66fa78cc-8be7-481a-99ae-f0d173d7fa60", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcinvalidaccountname0serviceapitestinvalidaccountname4dd87860?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfe07b88-201e-004c-31fd-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:53:01 GMT", + "x-ms-client-request-id" : "38d1de1d-f0da-4f76-93ad-bc35674fc8cb" + }, + "Exception" : null + } ], + "variables" : [ "jtcinvalidaccountname0serviceapitestinvalidaccountname4dd87860" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestlistcontainers.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestlistcontainers.json new file mode 100644 index 0000000000000..dc5956a5662f7 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestlistcontainers.json @@ -0,0 +1,120 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistcontainers0serviceapitestlistcontainersd4e01803ca20?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D7281409E4587D\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7809bca-301e-0094-76fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:22 GMT", + "x-ms-client-request-id" : "eac9d35b-b302-4a4a-9f13-b1e1b8672ee8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7809be8-301e-0094-12fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:22 GMT", + "x-ms-client-request-id" : "600760cc-85aa-4565-b28d-9ccae9d4f33a" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtc&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7809c3a-301e-0094-57fc-5950b8000000", + "Body" : "jtcjtclistcontainers0serviceapitestlistcontainersd4e01803ca20Fri, 23 Aug 2019 21:51:22 GMT\"0x8D7281409E4587D\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:22 GMT", + "x-ms-client-request-id" : "778cbaa8-792d-4ae0-a19a-839429ee2b22", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7809c53-301e-0094-6dfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:22 GMT", + "x-ms-client-request-id" : "fd631fc7-e74f-430d-85d7-9bfc22d98d47" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtclistcontainers&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7809c72-301e-0094-05fc-5950b8000000", + "Body" : "jtclistcontainersjtclistcontainers0serviceapitestlistcontainersd4e01803ca20Fri, 23 Aug 2019 21:51:22 GMT\"0x8D7281409E4587D\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:22 GMT", + "x-ms-client-request-id" : "901e2e66-0843-490d-ac76-dd2dd58f4193", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistcontainers0serviceapitestlistcontainersd4e01803ca20?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7809c86-301e-0094-17fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:22 GMT", + "x-ms-client-request-id" : "31c53614-af49-4a8f-b693-26ea0b148e9c" + }, + "Exception" : null + } ], + "variables" : [ "jtclistcontainers0serviceapitestlistcontainersd4e01803ca20" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestlistcontainersdetails.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestlistcontainersdetails.json new file mode 100644 index 0000000000000..641e49be918fc --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestlistcontainersdetails.json @@ -0,0 +1,158 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistcontainersdetails0117653bf1cbf17ceb49d0?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728140AB93F77\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7809f8a-301e-0094-53fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:23 GMT", + "x-ms-client-request-id" : "5cb6ed0e-7856-417a-a2ec-635725255532" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7809fb6-301e-0094-7afc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:23 GMT", + "x-ms-client-request-id" : "69bcfeb8-94b6-4d43-85ef-93fde3adb7b6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/aaajtclistcontainersdetails1588756c029606160545ac?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728140AC43E8B\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7809fd9-301e-0094-19fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:23 GMT", + "x-ms-client-request-id" : "9b077c50-02ed-4d62-acb6-ed2eb7eca3b8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=aaajtc&include=metadata&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f780a038-301e-0094-73fc-5950b8000000", + "Body" : "aaajtcaaajtclistcontainersdetails1588756c029606160545acFri, 23 Aug 2019 21:51:24 GMT\"0x8D728140AC43E8B\"unlockedavailable$account-encryption-keyfalsefalsefalsebar", + "Date" : "Fri, 23 Aug 2019 21:51:23 GMT", + "x-ms-client-request-id" : "73e9ac39-cdee-474c-8488-19d34ed14c1f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/aaajtclistcontainersdetails1588756c029606160545ac?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f780a048-301e-0094-03fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:23 GMT", + "x-ms-client-request-id" : "06c85ee9-0856-4e54-948f-bca0fac563d5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f780a05e-301e-0094-19fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:23 GMT", + "x-ms-client-request-id" : "da3f950e-bce5-476a-a249-89fa56a6ca6a" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtclistcontainersdetails&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f780a074-301e-0094-2ffc-5950b8000000", + "Body" : "jtclistcontainersdetailsjtclistcontainersdetails0117653bf1cbf17ceb49d0Fri, 23 Aug 2019 21:51:24 GMT\"0x8D728140AB93F77\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:23 GMT", + "x-ms-client-request-id" : "b3f004a8-e602-4d05-932e-da0c2c4deeb6", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistcontainersdetails0117653bf1cbf17ceb49d0?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f780a085-301e-0094-40fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:23 GMT", + "x-ms-client-request-id" : "227d8d92-18ea-49f5-9d13-e67034b7f50c" + }, + "Exception" : null + } ], + "variables" : [ "jtclistcontainersdetails0117653bf1cbf17ceb49d0", "jtclistcontainersdetails1588756c029606160545ac" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestlistcontainerserror.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestlistcontainerserror.json new file mode 100644 index 0000000000000..66e27501e89ce --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestlistcontainerserror.json @@ -0,0 +1,121 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistcontainerserror071402810e24302ae9451ca?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728140B5BC261\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "cfdfd8b6-201e-004c-54fc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:24 GMT", + "x-ms-client-request-id" : "79fece96-5805-40a9-b077-6ffe25105436" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfdfd8c1-201e-004c-5dfc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:24 GMT", + "x-ms-client-request-id" : "99b0ffff-ef0d-4c1f-80d3-baa5b31e6588" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?marker=garbage%20continuation%20token&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "OutOfRangeInput", + "retry-after" : "0", + "Content-Length" : "226", + "StatusCode" : "400", + "x-ms-request-id" : "cfdfd8cf-201e-004c-68fc-59f769000000", + "Body" : "OutOfRangeInputOne of the request inputs is out of range.\nRequestId:cfdfd8cf-201e-004c-68fc-59f769000000\nTime:2019-08-23T21:51:25.1905053Z", + "Date" : "Fri, 23 Aug 2019 21:51:24 GMT", + "x-ms-client-request-id" : "05e53547-d505-4c23-bdf6-fa76eda3d35e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfdfd8d8-201e-004c-71fc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:24 GMT", + "x-ms-client-request-id" : "6c28ce20-621e-4f36-abc0-3556a831ef14" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtclistcontainerserror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "cfdfd8e4-201e-004c-7cfc-59f769000000", + "Body" : "jtclistcontainerserrorjtclistcontainerserror071402810e24302ae9451caFri, 23 Aug 2019 21:51:25 GMT\"0x8D728140B5BC261\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:24 GMT", + "x-ms-client-request-id" : "a0afe045-8e88-43e7-948e-ca721dc8aef2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistcontainerserror071402810e24302ae9451ca?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfdfd8ef-201e-004c-05fc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:24 GMT", + "x-ms-client-request-id" : "4ba47b79-80a6-40ab-b684-6dfb748f2b1d" + }, + "Exception" : null + } ], + "variables" : [ "jtclistcontainerserror071402810e24302ae9451ca" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestlistcontainersmarker.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestlistcontainersmarker.json new file mode 100644 index 0000000000000..4d1f46758d55e --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestlistcontainersmarker.json @@ -0,0 +1,500 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistcontainersmarker095632f73979e51a244e68b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728140A2DF5E3\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7809d67-301e-0094-65fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:22 GMT", + "x-ms-client-request-id" : "8f54e3c4-8d45-4d88-9ec4-b4123c897869" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7809d7b-301e-0094-73fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:22 GMT", + "x-ms-client-request-id" : "d7190a95-b396-47ab-8557-d657e943d14f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistcontainersmarker1866757921b8dd214c4a82b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728140A3ACA1B\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7809dad-301e-0094-21fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:22 GMT", + "x-ms-client-request-id" : "d149fe7f-60de-4476-a0da-7eb1e13e44b4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistcontainersmarker24734766ec65b4a8bc42d39?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728140A429420\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7809dd2-301e-0094-3ffc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:22 GMT", + "x-ms-client-request-id" : "f1234f5b-cc97-43c0-a00f-7c4fb3e7d996" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistcontainersmarker397669c8d77cf66b66457ab?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728140A47502E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7809de0-301e-0094-4cfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:22 GMT", + "x-ms-client-request-id" : "ab0d01fe-5802-42f8-9eb1-4f96ba6ce354" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistcontainersmarker475385698e9cb759e848b1b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728140A4C334F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7809dee-301e-0094-59fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:22 GMT", + "x-ms-client-request-id" : "87df97cd-9f8d-4d8b-86c9-74be76c09628" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistcontainersmarker564090d5fa6e3c695045c88?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728140A50C846\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7809e05-301e-0094-6ffc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:22 GMT", + "x-ms-client-request-id" : "df954384-0456-462c-8b57-1210963ea581" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistcontainersmarker64834123e741096c1c4cdf8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728140A55F994\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7809e0f-301e-0094-77fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:22 GMT", + "x-ms-client-request-id" : "1fd49f52-0799-4262-87b1-f6479a8e1015" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistcontainersmarker795863bdfb41663873481cb?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728140A5AB5A2\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7809e22-301e-0094-07fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:23 GMT", + "x-ms-client-request-id" : "23f76328-3d68-40c0-9d09-0e68fffb2dd9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistcontainersmarker824430684f1746dc2347cd8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728140A5F98C7\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7809e35-301e-0094-17fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:23 GMT", + "x-ms-client-request-id" : "64f1b53b-1552-43fd-b75a-67ec70eb01ac" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistcontainersmarker940838eda08b0a80c34962a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728140A647BEC\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7809e41-301e-0094-20fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:23 GMT", + "x-ms-client-request-id" : "920b3cc7-7ccf-4277-b5dc-081f4d65587f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistcontainersmarker101852793173450b4cb4f2c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728140A6910DF\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7809e4f-301e-0094-2bfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:23 GMT", + "x-ms-client-request-id" : "f0bd1f3d-5000-43df-87b4-366c329c7e04" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7809e5e-301e-0094-38fc-5950b8000000", + "Body" : "$rootFri, 23 Aug 2019 21:31:00 GMT\"0x8D72811318929AD\"unlockedavailable$account-encryption-keyfalsefalsefalse$webFri, 23 Aug 2019 21:49:11 GMT\"0x8D72813BBB7D121\"unlockedavailable$account-encryption-keyfalsefalsefalsejtclistcontainersmarker095632f73979e51a244e68bFri, 23 Aug 2019 21:51:23 GMT\"0x8D728140A2DF5E3\"unlockedavailable$account-encryption-keyfalsefalsefalsejtclistcontainersmarker101852793173450b4cb4f2cFri, 23 Aug 2019 21:51:23 GMT\"0x8D728140A6910DF\"unlockedavailable$account-encryption-keyfalsefalsefalsejtclistcontainersmarker1866757921b8dd214c4a82bFri, 23 Aug 2019 21:51:23 GMT\"0x8D728140A3ACA1B\"unlockedavailable$account-encryption-keyfalsefalsefalsejtclistcontainersmarker24734766ec65b4a8bc42d39Fri, 23 Aug 2019 21:51:23 GMT\"0x8D728140A429420\"unlockedavailable$account-encryption-keyfalsefalsefalsejtclistcontainersmarker397669c8d77cf66b66457abFri, 23 Aug 2019 21:51:23 GMT\"0x8D728140A47502E\"unlockedavailable$account-encryption-keyfalsefalsefalsejtclistcontainersmarker475385698e9cb759e848b1bFri, 23 Aug 2019 21:51:23 GMT\"0x8D728140A4C334F\"unlockedavailable$account-encryption-keyfalsefalsefalsejtclistcontainersmarker564090d5fa6e3c695045c88Fri, 23 Aug 2019 21:51:23 GMT\"0x8D728140A50C846\"unlockedavailable$account-encryption-keyfalsefalsefalsejtclistcontainersmarker64834123e741096c1c4cdf8Fri, 23 Aug 2019 21:51:23 GMT\"0x8D728140A55F994\"unlockedavailable$account-encryption-keyfalsefalsefalsejtclistcontainersmarker795863bdfb41663873481cbFri, 23 Aug 2019 21:51:23 GMT\"0x8D728140A5AB5A2\"unlockedavailable$account-encryption-keyfalsefalsefalsejtclistcontainersmarker824430684f1746dc2347cd8Fri, 23 Aug 2019 21:51:23 GMT\"0x8D728140A5F98C7\"unlockedavailable$account-encryption-keyfalsefalsefalsejtclistcontainersmarker940838eda08b0a80c34962aFri, 23 Aug 2019 21:51:23 GMT\"0x8D728140A647BEC\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:23 GMT", + "x-ms-client-request-id" : "cfa61f35-b171-4d39-9692-697bda9fef0b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7809e77-301e-0094-50fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:23 GMT", + "x-ms-client-request-id" : "8c1cc9fa-f4b0-4df2-b78f-4757595fc9c1" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtclistcontainersmarker&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7809e87-301e-0094-5efc-5950b8000000", + "Body" : "jtclistcontainersmarkerjtclistcontainersmarker095632f73979e51a244e68bFri, 23 Aug 2019 21:51:23 GMT\"0x8D728140A2DF5E3\"unlockedavailable$account-encryption-keyfalsefalsefalsejtclistcontainersmarker101852793173450b4cb4f2cFri, 23 Aug 2019 21:51:23 GMT\"0x8D728140A6910DF\"unlockedavailable$account-encryption-keyfalsefalsefalsejtclistcontainersmarker1866757921b8dd214c4a82bFri, 23 Aug 2019 21:51:23 GMT\"0x8D728140A3ACA1B\"unlockedavailable$account-encryption-keyfalsefalsefalsejtclistcontainersmarker24734766ec65b4a8bc42d39Fri, 23 Aug 2019 21:51:23 GMT\"0x8D728140A429420\"unlockedavailable$account-encryption-keyfalsefalsefalsejtclistcontainersmarker397669c8d77cf66b66457abFri, 23 Aug 2019 21:51:23 GMT\"0x8D728140A47502E\"unlockedavailable$account-encryption-keyfalsefalsefalsejtclistcontainersmarker475385698e9cb759e848b1bFri, 23 Aug 2019 21:51:23 GMT\"0x8D728140A4C334F\"unlockedavailable$account-encryption-keyfalsefalsefalsejtclistcontainersmarker564090d5fa6e3c695045c88Fri, 23 Aug 2019 21:51:23 GMT\"0x8D728140A50C846\"unlockedavailable$account-encryption-keyfalsefalsefalsejtclistcontainersmarker64834123e741096c1c4cdf8Fri, 23 Aug 2019 21:51:23 GMT\"0x8D728140A55F994\"unlockedavailable$account-encryption-keyfalsefalsefalsejtclistcontainersmarker795863bdfb41663873481cbFri, 23 Aug 2019 21:51:23 GMT\"0x8D728140A5AB5A2\"unlockedavailable$account-encryption-keyfalsefalsefalsejtclistcontainersmarker824430684f1746dc2347cd8Fri, 23 Aug 2019 21:51:23 GMT\"0x8D728140A5F98C7\"unlockedavailable$account-encryption-keyfalsefalsefalsejtclistcontainersmarker940838eda08b0a80c34962aFri, 23 Aug 2019 21:51:23 GMT\"0x8D728140A647BEC\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:23 GMT", + "x-ms-client-request-id" : "9cc16fb8-2459-47b8-ad55-fad86e051f23", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistcontainersmarker095632f73979e51a244e68b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7809eab-301e-0094-01fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:23 GMT", + "x-ms-client-request-id" : "2c69c75d-7569-4ccb-ba29-e78908d9bd3a" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistcontainersmarker101852793173450b4cb4f2c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7809ebf-301e-0094-13fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:23 GMT", + "x-ms-client-request-id" : "d05c1a8f-195a-4ba9-8058-35f8be480dc6" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistcontainersmarker1866757921b8dd214c4a82b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7809ed3-301e-0094-26fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:23 GMT", + "x-ms-client-request-id" : "76707a85-7b3d-45ef-bbc6-42d21343eaa4" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistcontainersmarker24734766ec65b4a8bc42d39?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7809ee9-301e-0094-3afc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:23 GMT", + "x-ms-client-request-id" : "a2f24c3e-ed0c-41f6-8daa-025e70a4880c" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistcontainersmarker397669c8d77cf66b66457ab?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7809efb-301e-0094-4bfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:23 GMT", + "x-ms-client-request-id" : "9c37dde1-5fd7-4d28-ba1f-eefe69d2cf14" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistcontainersmarker475385698e9cb759e848b1b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7809f12-301e-0094-61fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:23 GMT", + "x-ms-client-request-id" : "69381ca1-ccf3-437a-982d-9bcb4de29839" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistcontainersmarker564090d5fa6e3c695045c88?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7809f1f-301e-0094-6dfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:23 GMT", + "x-ms-client-request-id" : "b78139d4-f875-43ef-b7ec-994fa320c078" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistcontainersmarker64834123e741096c1c4cdf8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7809f36-301e-0094-01fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:23 GMT", + "x-ms-client-request-id" : "d423305a-23aa-4509-b56b-8f6eec91e3c4" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistcontainersmarker795863bdfb41663873481cb?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7809f4a-301e-0094-15fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:23 GMT", + "x-ms-client-request-id" : "9330e561-59aa-4c68-92ba-dd15a2481701" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistcontainersmarker824430684f1746dc2347cd8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7809f5f-301e-0094-28fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:23 GMT", + "x-ms-client-request-id" : "2c1c046a-f0c8-43e8-acb3-8422140d6384" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistcontainersmarker940838eda08b0a80c34962a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7809f75-301e-0094-3efc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:23 GMT", + "x-ms-client-request-id" : "9a716443-b953-4e84-827d-b578b77f280c" + }, + "Exception" : null + } ], + "variables" : [ "jtclistcontainersmarker095632f73979e51a244e68b", "jtclistcontainersmarker1866757921b8dd214c4a82b", "jtclistcontainersmarker24734766ec65b4a8bc42d39", "jtclistcontainersmarker397669c8d77cf66b66457ab", "jtclistcontainersmarker475385698e9cb759e848b1b", "jtclistcontainersmarker564090d5fa6e3c695045c88", "jtclistcontainersmarker64834123e741096c1c4cdf8", "jtclistcontainersmarker795863bdfb41663873481cb", "jtclistcontainersmarker824430684f1746dc2347cd8", "jtclistcontainersmarker940838eda08b0a80c34962a", "jtclistcontainersmarker101852793173450b4cb4f2c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestlistcontainersmaxresults.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestlistcontainersmaxresults.json new file mode 100644 index 0000000000000..23d21770fac0f --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestlistcontainersmaxresults.json @@ -0,0 +1,350 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistcontainersmaxresults036594ca878869c1d44da?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728140AF2D385\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f780a09d-301e-0094-58fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:23 GMT", + "x-ms-client-request-id" : "074f4703-491a-4735-aedf-c63337dd9080" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f780a0b1-301e-0094-6afc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:24 GMT", + "x-ms-client-request-id" : "f7285647-e5fe-48f5-9026-ed6d83c7dbdb" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistcontainersmaxresults157004db9e9cb4410d43c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728140AFD5D54\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f780a0cb-301e-0094-01fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:24 GMT", + "x-ms-client-request-id" : "385e430c-1d90-4a55-8065-20d27e40beb6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistcontainersmaxresults280999bc2ff719d171439?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728140B02406B\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f780a0e9-301e-0094-1cfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:24 GMT", + "x-ms-client-request-id" : "e7cdbe98-599a-47cf-927f-3a186b8a8ec9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistcontainersmaxresults336986148f26b28170416?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728140B07E719\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f780a108-301e-0094-36fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:24 GMT", + "x-ms-client-request-id" : "4be0bc22-3be9-4e66-a80b-a48e60390bd0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistcontainersmaxresults4835257ce729f864fe405?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728140B0CA327\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f780a122-301e-0094-4efc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:24 GMT", + "x-ms-client-request-id" : "1e467ccc-706d-466a-a27c-f6f2dfc899d8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistcontainersmaxresults554650dde84a797352496?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728140B115F28\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f780a143-301e-0094-6afc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:24 GMT", + "x-ms-client-request-id" : "09f35348-514e-4d0f-894f-c77cddf57493" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?maxresults=3&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f780a167-301e-0094-06fc-5950b8000000", + "Body" : "3$rootFri, 23 Aug 2019 21:31:00 GMT\"0x8D72811318929AD\"unlockedavailable$account-encryption-keyfalsefalsefalse$webFri, 23 Aug 2019 21:49:11 GMT\"0x8D72813BBB7D121\"unlockedavailable$account-encryption-keyfalsefalsefalsejtclistcontainersmaxresults036594ca878869c1d44daFri, 23 Aug 2019 21:51:24 GMT\"0x8D728140AF2D385\"unlockedavailable$account-encryption-keyfalsefalsefalse/azstoragesdkaccount/jtclistcontainersmaxresults157004db9e9cb4410d43c", + "Date" : "Fri, 23 Aug 2019 21:51:24 GMT", + "x-ms-client-request-id" : "0b87c3da-e747-4001-8c03-5a31f44095e8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?marker=/azstoragesdkaccount/jtclistcontainersmaxresults157004db9e9cb4410d43c&maxresults=3&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f780a18a-301e-0094-24fc-5950b8000000", + "Body" : "/azstoragesdkaccount/jtclistcontainersmaxresults157004db9e9cb4410d43c3jtclistcontainersmaxresults157004db9e9cb4410d43cFri, 23 Aug 2019 21:51:24 GMT\"0x8D728140AFD5D54\"unlockedavailable$account-encryption-keyfalsefalsefalsejtclistcontainersmaxresults280999bc2ff719d171439Fri, 23 Aug 2019 21:51:24 GMT\"0x8D728140B02406B\"unlockedavailable$account-encryption-keyfalsefalsefalsejtclistcontainersmaxresults336986148f26b28170416Fri, 23 Aug 2019 21:51:24 GMT\"0x8D728140B07E719\"unlockedavailable$account-encryption-keyfalsefalsefalse/azstoragesdkaccount/jtclistcontainersmaxresults4835257ce729f864fe405", + "Date" : "Fri, 23 Aug 2019 21:51:24 GMT", + "x-ms-client-request-id" : "e997152b-88aa-49a0-a50e-5ec160955f22", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?marker=/azstoragesdkaccount/jtclistcontainersmaxresults4835257ce729f864fe405&maxresults=3&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f780a199-301e-0094-33fc-5950b8000000", + "Body" : "/azstoragesdkaccount/jtclistcontainersmaxresults4835257ce729f864fe4053jtclistcontainersmaxresults4835257ce729f864fe405Fri, 23 Aug 2019 21:51:24 GMT\"0x8D728140B0CA327\"unlockedavailable$account-encryption-keyfalsefalsefalsejtclistcontainersmaxresults554650dde84a797352496Fri, 23 Aug 2019 21:51:24 GMT\"0x8D728140B115F28\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:24 GMT", + "x-ms-client-request-id" : "10a161f7-1132-4442-845b-503724c449a2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistcontainersmaxresults157004db9e9cb4410d43c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfdfd84d-201e-004c-7efc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:24 GMT", + "x-ms-client-request-id" : "3bff3711-4bf4-4b3b-a655-69bdfce93f8a" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistcontainersmaxresults280999bc2ff719d171439?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfdfd85d-201e-004c-09fc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:24 GMT", + "x-ms-client-request-id" : "c30a97b4-8e2c-4fd8-897b-abd8a6560f49" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistcontainersmaxresults336986148f26b28170416?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfdfd866-201e-004c-12fc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:24 GMT", + "x-ms-client-request-id" : "a7b3cd56-d260-4c9d-b5ca-a022827ffa78" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistcontainersmaxresults4835257ce729f864fe405?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfdfd872-201e-004c-1cfc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:24 GMT", + "x-ms-client-request-id" : "d78dd583-9a22-4812-bbf6-82da64e8bbfe" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistcontainersmaxresults554650dde84a797352496?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfdfd880-201e-004c-27fc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:24 GMT", + "x-ms-client-request-id" : "c91cdf73-207a-4cb5-a3eb-83d94589085b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfdfd889-201e-004c-30fc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:24 GMT", + "x-ms-client-request-id" : "fffcf596-9bd3-4b14-882d-85556b0173b8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtclistcontainersmaxresults&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "cfdfd899-201e-004c-39fc-59f769000000", + "Body" : "jtclistcontainersmaxresultsjtclistcontainersmaxresults036594ca878869c1d44daFri, 23 Aug 2019 21:51:24 GMT\"0x8D728140AF2D385\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:24 GMT", + "x-ms-client-request-id" : "abb8ae87-00b8-4b67-8547-03607c64cbe1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistcontainersmaxresults036594ca878869c1d44da?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfdfd8aa-201e-004c-4afc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:24 GMT", + "x-ms-client-request-id" : "21deafd0-05a4-4524-804b-bb3f7accace6" + }, + "Exception" : null + } ], + "variables" : [ "jtclistcontainersmaxresults036594ca878869c1d44da", "jtclistcontainersmaxresults157004db9e9cb4410d43c", "jtclistcontainersmaxresults280999bc2ff719d171439", "jtclistcontainersmaxresults336986148f26b28170416", "jtclistcontainersmaxresults4835257ce729f864fe405", "jtclistcontainersmaxresults554650dde84a797352496" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestlistcontainersmin.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestlistcontainersmin.json new file mode 100644 index 0000000000000..0a67818f1994e --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestlistcontainersmin.json @@ -0,0 +1,120 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistcontainersmin0serviceapitestlistcontainersmin222222049?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728140A0D1FB7\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f7809ca4-301e-0094-33fc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:22 GMT", + "x-ms-client-request-id" : "a6109d34-602d-4a19-abea-ffa5d20ab9c9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7809cbf-301e-0094-4bfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:22 GMT", + "x-ms-client-request-id" : "5b42344f-2402-4124-badf-34d1dc79ae0b" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7809cdb-301e-0094-66fc-5950b8000000", + "Body" : "$rootFri, 23 Aug 2019 21:31:00 GMT\"0x8D72811318929AD\"unlockedavailable$account-encryption-keyfalsefalsefalse$webFri, 23 Aug 2019 21:49:11 GMT\"0x8D72813BBB7D121\"unlockedavailable$account-encryption-keyfalsefalsefalsejtclistcontainersmin0serviceapitestlistcontainersmin222222049Fri, 23 Aug 2019 21:51:22 GMT\"0x8D728140A0D1FB7\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:22 GMT", + "x-ms-client-request-id" : "b4bdb1b4-8892-40b8-afea-b3e84674ecd0", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7809d03-301e-0094-0cfc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:22 GMT", + "x-ms-client-request-id" : "787238b9-8a5c-4738-ab7a-70bd09f9e80b" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtclistcontainersmin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f7809d2c-301e-0094-32fc-5950b8000000", + "Body" : "jtclistcontainersminjtclistcontainersmin0serviceapitestlistcontainersmin222222049Fri, 23 Aug 2019 21:51:22 GMT\"0x8D728140A0D1FB7\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:22 GMT", + "x-ms-client-request-id" : "d5336ad9-7ba9-42fb-966a-2a0bfc9717cd", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistcontainersmin0serviceapitestlistcontainersmin222222049?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f7809d4a-301e-0094-4afc-5950b8000000", + "Date" : "Fri, 23 Aug 2019 21:51:22 GMT", + "x-ms-client-request-id" : "d69f4678-9718-436e-9718-7f389a5ce7af" + }, + "Exception" : null + } ], + "variables" : [ "jtclistcontainersmin0serviceapitestlistcontainersmin222222049" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestlistcontainerswithtimeoutstillbackedbypagedflux.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestlistcontainerswithtimeoutstillbackedbypagedflux.json new file mode 100644 index 0000000000000..02ef5b87f9f64 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestlistcontainerswithtimeoutstillbackedbypagedflux.json @@ -0,0 +1,350 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistcontainerswithtimeoutstillbackedbypagedflux020719b85?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728140B79B20F\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "cfdfd900-201e-004c-14fc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:24 GMT", + "x-ms-client-request-id" : "a06dd1ac-9da9-48fa-a3f9-57f83e7ad692" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfdfd909-201e-004c-1afc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:24 GMT", + "x-ms-client-request-id" : "ffc37d18-4a8b-4cb4-b671-ae7a0dc8d975" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistcontainerswithtimeoutstillbackedbypagedflux170034d10?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728140B84D861\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "cfdfd911-201e-004c-21fc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:24 GMT", + "x-ms-client-request-id" : "4743af3f-551c-4fb7-a44f-39ba82ea5cc9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistcontainerswithtimeoutstillbackedbypagedflux2686008b9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728140B89E2B4\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "cfdfd921-201e-004c-2cfc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:24 GMT", + "x-ms-client-request-id" : "01714fe9-4c61-4527-9c2b-89914dbcf1e6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistcontainerswithtimeoutstillbackedbypagedflux364945e8e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728140B8F141E\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "cfdfd934-201e-004c-3cfc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:24 GMT", + "x-ms-client-request-id" : "5ebe11f3-ec1e-4309-9d76-01be3cf108f8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistcontainerswithtimeoutstillbackedbypagedflux440082d23?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728140B93F759\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "cfdfd945-201e-004c-4bfc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:24 GMT", + "x-ms-client-request-id" : "8fabe185-2922-42b1-9d2c-2fab704fa2ba" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistcontainerswithtimeoutstillbackedbypagedflux56845425d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728140B9901A2\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "cfdfd959-201e-004c-5bfc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:24 GMT", + "x-ms-client-request-id" : "3aa6c341-86d3-4b85-bc20-abd232789c8b" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?maxresults=3&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "cfdfd962-201e-004c-61fc-59f769000000", + "Body" : "3$rootFri, 23 Aug 2019 21:31:00 GMT\"0x8D72811318929AD\"unlockedavailable$account-encryption-keyfalsefalsefalse$webFri, 23 Aug 2019 21:49:11 GMT\"0x8D72813BBB7D121\"unlockedavailable$account-encryption-keyfalsefalsefalsejtclistcontainerswithtimeoutstillbackedbypagedflux020719b85Fri, 23 Aug 2019 21:51:25 GMT\"0x8D728140B79B20F\"unlockedavailable$account-encryption-keyfalsefalsefalse/azstoragesdkaccount/jtclistcontainerswithtimeoutstillbackedbypagedflux170034d10", + "Date" : "Fri, 23 Aug 2019 21:51:24 GMT", + "x-ms-client-request-id" : "20c42f08-641f-4a6c-bf12-26fe0604c2fc", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?marker=/azstoragesdkaccount/jtclistcontainerswithtimeoutstillbackedbypagedflux170034d10&maxresults=3&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "cfdfd96b-201e-004c-6afc-59f769000000", + "Body" : "/azstoragesdkaccount/jtclistcontainerswithtimeoutstillbackedbypagedflux170034d103jtclistcontainerswithtimeoutstillbackedbypagedflux170034d10Fri, 23 Aug 2019 21:51:25 GMT\"0x8D728140B84D861\"unlockedavailable$account-encryption-keyfalsefalsefalsejtclistcontainerswithtimeoutstillbackedbypagedflux2686008b9Fri, 23 Aug 2019 21:51:25 GMT\"0x8D728140B89E2B4\"unlockedavailable$account-encryption-keyfalsefalsefalsejtclistcontainerswithtimeoutstillbackedbypagedflux364945e8eFri, 23 Aug 2019 21:51:25 GMT\"0x8D728140B8F141E\"unlockedavailable$account-encryption-keyfalsefalsefalse/azstoragesdkaccount/jtclistcontainerswithtimeoutstillbackedbypagedflux440082d23", + "Date" : "Fri, 23 Aug 2019 21:51:24 GMT", + "x-ms-client-request-id" : "c37b9f94-0168-4f69-a8d2-aa937dbf6d65", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?marker=/azstoragesdkaccount/jtclistcontainerswithtimeoutstillbackedbypagedflux440082d23&maxresults=3&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "cfdfd96f-201e-004c-6efc-59f769000000", + "Body" : "/azstoragesdkaccount/jtclistcontainerswithtimeoutstillbackedbypagedflux440082d233jtclistcontainerswithtimeoutstillbackedbypagedflux440082d23Fri, 23 Aug 2019 21:51:25 GMT\"0x8D728140B93F759\"unlockedavailable$account-encryption-keyfalsefalsefalsejtclistcontainerswithtimeoutstillbackedbypagedflux56845425dFri, 23 Aug 2019 21:51:25 GMT\"0x8D728140B9901A2\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:24 GMT", + "x-ms-client-request-id" : "4c759e35-01e0-4335-9a08-7f8b5328733b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistcontainerswithtimeoutstillbackedbypagedflux170034d10?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfdfd97b-201e-004c-78fc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:24 GMT", + "x-ms-client-request-id" : "166c689e-42e4-4bce-b67e-badff5665294" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistcontainerswithtimeoutstillbackedbypagedflux2686008b9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfdfd986-201e-004c-02fc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:25 GMT", + "x-ms-client-request-id" : "38f2a8c7-1629-4ab8-bbee-1504f1b7fa51" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistcontainerswithtimeoutstillbackedbypagedflux364945e8e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfdfd990-201e-004c-0bfc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:25 GMT", + "x-ms-client-request-id" : "a24d7b60-1ce9-415b-bc88-ab9f97a25801" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistcontainerswithtimeoutstillbackedbypagedflux440082d23?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfdfd999-201e-004c-13fc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:25 GMT", + "x-ms-client-request-id" : "78dbc6d8-089b-4c05-9d11-6e7142a25d4f" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistcontainerswithtimeoutstillbackedbypagedflux56845425d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfdfd9a3-201e-004c-1bfc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:25 GMT", + "x-ms-client-request-id" : "3e0cd589-ffae-4c7e-a2f9-168eedad83f9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfdfd9a9-201e-004c-21fc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:25 GMT", + "x-ms-client-request-id" : "00e88471-8a55-423f-9fa8-4d55361b0cc4" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtclistcontainerswithtimeoutstillbackedbypagedflux&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "cfdfd9bf-201e-004c-31fc-59f769000000", + "Body" : "jtclistcontainerswithtimeoutstillbackedbypagedfluxjtclistcontainerswithtimeoutstillbackedbypagedflux020719b85Fri, 23 Aug 2019 21:51:25 GMT\"0x8D728140B79B20F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:25 GMT", + "x-ms-client-request-id" : "c2243c11-ab03-4bb9-8ce6-a902b32c05e3", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtclistcontainerswithtimeoutstillbackedbypagedflux020719b85?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfdfd9cd-201e-004c-3cfc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:25 GMT", + "x-ms-client-request-id" : "da0aeee1-04b1-4333-be0b-eba0b630c432" + }, + "Exception" : null + } ], + "variables" : [ "jtclistcontainerswithtimeoutstillbackedbypagedflux020719b85", "jtclistcontainerswithtimeoutstillbackedbypagedflux170034d10", "jtclistcontainerswithtimeoutstillbackedbypagedflux2686008b9", "jtclistcontainerswithtimeoutstillbackedbypagedflux364945e8e", "jtclistcontainerswithtimeoutstillbackedbypagedflux440082d23", "jtclistcontainerswithtimeoutstillbackedbypagedflux56845425d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestsetgetproperties.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestsetgetproperties.json new file mode 100644 index 0000000000000..533c29106165a --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestsetgetproperties.json @@ -0,0 +1,143 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetgetproperties0serviceapitestsetgetpropertiesffe7200488?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728140BE9314B\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "cfdfda01-201e-004c-69fc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:25 GMT", + "x-ms-client-request-id" : "629da275-05f9-43cd-9d49-9930d2c4c809" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfdfda10-201e-004c-77fc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:25 GMT", + "x-ms-client-request-id" : "daca6db1-3ef6-44fa-8ef4-e30316f1bd11" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfdfda27-201e-004c-0afc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:25 GMT", + "x-ms-client-request-id" : "714f441d-670c-4a2c-a3f3-502d2b9fd0c8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "cfe0078e-201e-004c-4bfc-59f769000000", + "Body" : "1.0truefalsefalsetrue51.0truetruetrue51.0truetruetrue5GET,PUT,HEAD*x-ms-versionx-ms-client-request-id10true5truemyIndex.htmlcustom/error/path.html2016-05-31", + "Date" : "Fri, 23 Aug 2019 21:51:55 GMT", + "x-ms-client-request-id" : "c8e5de2f-ae5d-4ea2-9f0a-0aec153675a8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfe007a7-201e-004c-5ffc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:55 GMT", + "x-ms-client-request-id" : "86c4159f-5df6-47b3-9fb6-7ab82e1f5041" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsetgetproperties&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "cfe007bc-201e-004c-6bfc-59f769000000", + "Body" : "jtcsetgetpropertiesjtcsetgetproperties0serviceapitestsetgetpropertiesffe7200488Fri, 23 Aug 2019 21:51:26 GMT\"0x8D728140BE9314B\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:55 GMT", + "x-ms-client-request-id" : "8012c1ed-c207-425e-b35f-9e8b9a9d6ccc", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetgetproperties0serviceapitestsetgetpropertiesffe7200488?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfe007c7-201e-004c-75fc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:55 GMT", + "x-ms-client-request-id" : "224af830-f4e0-4c6a-8787-2c11ce21795d" + }, + "Exception" : null + } ], + "variables" : [ "jtcsetgetproperties0serviceapitestsetgetpropertiesffe7200488" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestsetpropserror.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestsetpropserror.json new file mode 100644 index 0000000000000..4b0be69834889 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestsetpropserror.json @@ -0,0 +1,122 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetpropserror0serviceapitestsetpropserroraca18238a88da?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728141E1D0136\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "cfe0085b-201e-004c-5bfc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:55 GMT", + "x-ms-client-request-id" : "2520c810-7f9e-4637-b86e-a8b49f6ae3f3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfe0086f-201e-004c-68fc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:55 GMT", + "x-ms-client-request-id" : "b48cfbd0-2a5d-4330-b13f-e1277dd57be6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://error.blob.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "Server" : "Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "AuthenticationFailed", + "retry-after" : "0", + "Content-Length" : "472", + "StatusCode" : "403", + "x-ms-request-id" : "af83ba0d-c01e-00fe-1efc-596566000000", + "Body" : "AuthenticationFailedServer failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.\nRequestId:af83ba0d-c01e-00fe-1efc-596566000000\nTime:2019-08-23T21:51:56.9587302ZCannot find the claimed account when trying to GetProperties for the account azstoragesdkaccount.", + "Date" : "Fri, 23 Aug 2019 21:51:56 GMT", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfe00926-201e-004c-72fc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:56 GMT", + "x-ms-client-request-id" : "cad5d6f9-926d-44ad-8f28-975b558cb4e2" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsetpropserror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "cfe0092f-201e-004c-79fc-59f769000000", + "Body" : "jtcsetpropserrorjtcsetpropserror0serviceapitestsetpropserroraca18238a88daFri, 23 Aug 2019 21:51:56 GMT\"0x8D728141E1D0136\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:56 GMT", + "x-ms-client-request-id" : "10b45d05-3ed7-4b5d-9dab-a9dc644e2703", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetpropserror0serviceapitestsetpropserroraca18238a88da?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfe0093f-201e-004c-04fc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:56 GMT", + "x-ms-client-request-id" : "ad7f4cec-6e96-4484-9815-5bf8c4003a23" + }, + "Exception" : null + } ], + "variables" : [ "jtcsetpropserror0serviceapitestsetpropserroraca18238a88da" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestsetpropsmin.json b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestsetpropsmin.json new file mode 100644 index 0000000000000..9a8e538b918a3 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/resources/session-records/ServiceAPITestsetpropsmin.json @@ -0,0 +1,121 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetpropsmin0serviceapitestsetpropsmin6116783558aabe3?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D728141DF65CCC\"", + "Last-Modified" : "Fri, 23 Aug 2019 21:51:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "cfe007e9-201e-004c-0afc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:55 GMT", + "x-ms-client-request-id" : "36844029-1cbd-4f66-b7d2-5726aaa2c2e9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfe007f7-201e-004c-15fc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:55 GMT", + "x-ms-client-request-id" : "9393f959-b286-407d-94cd-e47058488c22" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfe00810-201e-004c-23fc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:55 GMT", + "x-ms-client-request-id" : "182a43fe-f2be-4751-99bb-5965cf7ea168" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfe0081d-201e-004c-2bfc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:55 GMT", + "x-ms-client-request-id" : "b4b9dd80-41bc-4da2-8491-26c13fb5f618" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net?prefix=jtcsetpropsmin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "Access-Control-Expose-Headers" : "x-ms-client-request-id", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Access-Control-Allow-Origin" : "*", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "cfe00832-201e-004c-3cfc-59f769000000", + "Body" : "jtcsetpropsminjtcsetpropsmin0serviceapitestsetpropsmin6116783558aabe3Fri, 23 Aug 2019 21:51:56 GMT\"0x8D728141DF65CCC\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 23 Aug 2019 21:51:55 GMT", + "x-ms-client-request-id" : "0b8ddd78-f5ef-43c5-98b5-c7d1fa7be97f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://azstoragesdkaccount.blob.core.windows.net/jtcsetpropsmin0serviceapitestsetpropsmin6116783558aabe3?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cfe00840-201e-004c-47fc-59f769000000", + "Date" : "Fri, 23 Aug 2019 21:51:55 GMT", + "x-ms-client-request-id" : "8d542bde-f779-4d92-a498-02bf5a21113d" + }, + "Exception" : null + } ], + "variables" : [ "jtcsetpropsmin0serviceapitestsetpropsmin6116783558aabe3" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file/pom.xml b/sdk/storage/azure-storage-file/pom.xml index 9a4b0d1b9d98a..6b212bca9b2c4 100644 --- a/sdk/storage/azure-storage-file/pom.xml +++ b/sdk/storage/azure-storage-file/pom.xml @@ -66,6 +66,11 @@ 1.0.0-preview.4 test + + org.slf4j + slf4j-simple + test + io.projectreactor reactor-test diff --git a/sdk/storage/azure-storage-file/src/test/java/com/azure/storage/file/spock/APISpec.groovy b/sdk/storage/azure-storage-file/src/test/java/com/azure/storage/file/spock/APISpec.groovy index 472b049b47e86..13e396272d1d8 100644 --- a/sdk/storage/azure-storage-file/src/test/java/com/azure/storage/file/spock/APISpec.groovy +++ b/sdk/storage/azure-storage-file/src/test/java/com/azure/storage/file/spock/APISpec.groovy @@ -3,6 +3,7 @@ package com.azure.storage.file.spock +import com.azure.core.http.policy.HttpLogDetailLevel import com.azure.core.test.InterceptorManager import com.azure.core.test.TestMode import com.azure.core.test.utils.TestResourceNamer @@ -17,8 +18,6 @@ import com.azure.storage.file.ShareClientBuilder import com.azure.storage.file.models.ListSharesOptions import spock.lang.Specification -import java.nio.file.Files - class APISpec extends Specification { // Field common used for all APIs. def logger = new ClientLogger(APISpec.class) @@ -102,6 +101,7 @@ class APISpec extends Specification { if (testMode == TestMode.RECORD) { return new FileServiceClientBuilder() .connectionString(connectionString) + .httpLogDetailLevel(HttpLogDetailLevel.BODY_AND_HEADERS) .addPolicy(interceptorManager.getRecordPolicy()) } else { return new FileServiceClientBuilder() @@ -115,6 +115,7 @@ class APISpec extends Specification { return new ShareClientBuilder() .connectionString(connectionString) .shareName(shareName) + .httpLogDetailLevel(HttpLogDetailLevel.BODY_AND_HEADERS) .addPolicy(interceptorManager.getRecordPolicy()) } else { return new ShareClientBuilder() @@ -130,6 +131,7 @@ class APISpec extends Specification { .connectionString(connectionString) .shareName(shareName) .directoryPath(directoryPath) + .httpLogDetailLevel(HttpLogDetailLevel.BODY_AND_HEADERS) .addPolicy(interceptorManager.getRecordPolicy()) } else { return new DirectoryClientBuilder() @@ -146,6 +148,7 @@ class APISpec extends Specification { .connectionString(connectionString) .shareName(shareName) .filePath(filePath) + .httpLogDetailLevel(HttpLogDetailLevel.BODY_AND_HEADERS) .addPolicy(interceptorManager.getRecordPolicy()) } else { return new FileClientBuilder() diff --git a/sdk/storage/azure-storage-file/src/test/java/com/azure/storage/file/spock/FileAPITests.groovy b/sdk/storage/azure-storage-file/src/test/java/com/azure/storage/file/spock/FileAPITests.groovy index b98289788df72..9b1aee71b0e9b 100644 --- a/sdk/storage/azure-storage-file/src/test/java/com/azure/storage/file/spock/FileAPITests.groovy +++ b/sdk/storage/azure-storage-file/src/test/java/com/azure/storage/file/spock/FileAPITests.groovy @@ -86,6 +86,7 @@ class FileAPITests extends APISpec { 1024 | httpHeaders | Collections.singletonMap("testMeta", "value") | 403 | StorageErrorCode.AUTHENTICATION_FAILED } + @Ignore def "Upload and download data"() { given: primaryFileClient.create(dataLength) @@ -106,6 +107,7 @@ class FileAPITests extends APISpec { defaultData.clear() } + @Ignore def "Upload and download data with args"() { given: primaryFileClient.create(1024) @@ -142,6 +144,7 @@ class FileAPITests extends APISpec { FileTestHelper.assertExceptionStatusCodeAndMessage(e, 404, StorageErrorCode.RESOURCE_NOT_FOUND) } + @Ignore def "Upload and download file"() { given: File uploadFile = new File(testFolder.getPath() + "/helloworld") @@ -205,6 +208,7 @@ class FileAPITests extends APISpec { FileTestHelper.assertExceptionStatusCodeAndMessage(e, 404, StorageErrorCode.RESOURCE_NOT_FOUND) } + @Ignore def "Get properties"() { given: primaryFileClient.create(1024) @@ -223,6 +227,7 @@ class FileAPITests extends APISpec { thrown(HttpResponseException) } + @Ignore def "Set httpHeaders"() { given: primaryFileClient.createWithResponse(1024, httpHeaders, testMetadata, null) @@ -240,6 +245,7 @@ class FileAPITests extends APISpec { FileTestHelper.assertExceptionStatusCodeAndMessage(e, 400, StorageErrorCode.OUT_OF_RANGE_INPUT) } + @Ignore def "Set metadata"() { given: primaryFileClient.createWithResponse(1024, httpHeaders, testMetadata, null) diff --git a/sdk/storage/azure-storage-file/src/test/java/com/azure/storage/file/spock/FileAsyncAPITests.groovy b/sdk/storage/azure-storage-file/src/test/java/com/azure/storage/file/spock/FileAsyncAPITests.groovy index af8ef5d583dcb..c2c5724b20dd8 100644 --- a/sdk/storage/azure-storage-file/src/test/java/com/azure/storage/file/spock/FileAsyncAPITests.groovy +++ b/sdk/storage/azure-storage-file/src/test/java/com/azure/storage/file/spock/FileAsyncAPITests.groovy @@ -10,7 +10,6 @@ import com.azure.storage.file.models.FileHTTPHeaders import com.azure.storage.file.models.FileRange import com.azure.storage.file.models.FileRangeWriteType import com.azure.storage.file.models.StorageErrorCode -import io.netty.buffer.Unpooled import reactor.core.publisher.Flux import reactor.test.StepVerifier import spock.lang.Ignore @@ -92,6 +91,7 @@ class FileAsyncAPITests extends APISpec { 1024 | httpHeaders | Collections.singletonMap("testMeta", "value") | 403 | StorageErrorCode.AUTHENTICATION_FAILED } + @Ignore def "Upload and download data"() { given: primaryFileAsyncClient.create(dataLength).block() @@ -115,6 +115,7 @@ class FileAsyncAPITests extends APISpec { defaultData.clear() } + @Ignore def "Upload and download data with args"() { given: primaryFileAsyncClient.create(1024).block() @@ -156,6 +157,7 @@ class FileAsyncAPITests extends APISpec { } } + @Ignore def "Upload and download file"() { given: File uploadFile = new File(testFolder.getPath() + "/helloworld") @@ -227,6 +229,7 @@ class FileAsyncAPITests extends APISpec { } } + @Ignore def "Get properties"() { given: primaryFileAsyncClient.create(1024).block() @@ -249,6 +252,7 @@ class FileAsyncAPITests extends APISpec { } } + @Ignore def "Set httpHeaders"() { given: primaryFileAsyncClient.createWithResponse(1024, httpHeaders, testMetadata).block() @@ -270,6 +274,7 @@ class FileAsyncAPITests extends APISpec { } } + @Ignore def "Set metadata"() { given: primaryFileAsyncClient.createWithResponse(1024, httpHeaders, testMetadata).block() diff --git a/sdk/storage/azure-storage-file/src/test/resources/session-records/FileAPITestsGetPropertiesError.json b/sdk/storage/azure-storage-file/src/test/resources/session-records/FileAPITestsGetPropertiesError.json index cea719b0eb3f3..e60f06308e9d5 100644 --- a/sdk/storage/azure-storage-file/src/test/resources/session-records/FileAPITestsGetPropertiesError.json +++ b/sdk/storage/azure-storage-file/src/test/resources/session-records/FileAPITestsGetPropertiesError.json @@ -25,6 +25,8 @@ "User-Agent" : "azsdk-java-azure-storage-file/12.0.0-preview.3 1.8.0_201; Windows 10 10.0" }, "Response" : { + "x-ms-server-encrypted" : "true", + "x-ms-type" : "File", "x-ms-version" : "2018-11-09", "Server" : "Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0", "x-ms-error-code" : "ResourceNotFound", @@ -35,4 +37,4 @@ } } ], "variables" : [ "fileapitestsgetpropertieserror525445136610e3017", "fileapitestsgetpropertieserror3950997116c9741d7" ] -} \ No newline at end of file +} diff --git a/sdk/storage/azure-storage-file/src/test/resources/session-records/FileAPITestsUploadAndDownloadData.json b/sdk/storage/azure-storage-file/src/test/resources/session-records/FileAPITestsUploadAndDownloadData.json index a76b21657f527..0ed63ac2c43a3 100644 --- a/sdk/storage/azure-storage-file/src/test/resources/session-records/FileAPITestsUploadAndDownloadData.json +++ b/sdk/storage/azure-storage-file/src/test/resources/session-records/FileAPITestsUploadAndDownloadData.json @@ -45,6 +45,8 @@ "Content-Type" : "application/octet-stream" }, "Response" : { + "x-ms-server-encrypted" : "true", + "x-ms-type" : "File", "x-ms-version" : "2018-11-09", "Server" : "Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0", "ETag" : "\"0x8D7258EA10762DF\"", @@ -79,7 +81,8 @@ "x-ms-request-id" : "1152b594-c01a-0064-6277-5780d6000000", "Body" : "default", "Content-Type" : "application/octet-stream" - } + }, + "Exception" : null } ], "variables" : [ "fileapitestsuploadanddownloaddata8261753d4a9a8ace", "fileapitestsuploadanddownloaddata955818dc2be89dfa" ] -} \ No newline at end of file +} diff --git a/sdk/storage/azure-storage-file/src/test/resources/session-records/createFromFileClient.json b/sdk/storage/azure-storage-file/src/test/resources/session-records/createFromFileClient.json new file mode 100644 index 0000000000000..290acd437ef46 --- /dev/null +++ b/sdk/storage/azure-storage-file/src/test/resources/session-records/createFromFileClient.json @@ -0,0 +1,46 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.file.core.windows.net/filesharename/testdir%2ffile46052765", + "Headers" : { + "x-ms-version" : "2018-11-09", + "User-Agent" : "azsdk-java-azure-storage-file/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2018-11-09", + "Server" : "Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D724DE73E05B70\"", + "Last-Modified" : "Mon, 19 Aug 2019 19:50:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "07d2b78c-e01a-0111-17c7-564138000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Mon, 19 Aug 2019 19:50:13 GMT" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.file.core.windows.net/filesharename/testdir%2ffile46052765", + "Headers" : { + "x-ms-version" : "2018-11-09", + "User-Agent" : "azsdk-java-azure-storage-file/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-server-encrypted" : "true", + "x-ms-type" : "File", + "x-ms-version" : "2018-11-09", + "Server" : "Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D724DE73E05B70\"", + "Last-Modified" : "Mon, 19 Aug 2019 19:50:14 GMT", + "retry-after" : "0", + "Content-Length" : "1024", + "StatusCode" : "200", + "x-ms-request-id" : "07d2b78d-e01a-0111-18c7-564138000000", + "Date" : "Mon, 19 Aug 2019 19:50:13 GMT", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + } ], + "variables" : [ "file46052765" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file/src/test/resources/session-records/downloadWithProperties.json b/sdk/storage/azure-storage-file/src/test/resources/session-records/downloadWithProperties.json new file mode 100644 index 0000000000000..98a6ad000a80d --- /dev/null +++ b/sdk/storage/azure-storage-file/src/test/resources/session-records/downloadWithProperties.json @@ -0,0 +1,49 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.file.core.windows.net/filesharename/testdir%2ffile01908600", + "Headers" : { + "x-ms-version" : "2018-11-09", + "User-Agent" : "azsdk-java-azure-storage-file/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2018-11-09", + "Server" : "Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D724DE73C3F2CF\"", + "Last-Modified" : "Mon, 19 Aug 2019 19:50:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "07d2b788-e01a-0111-13c7-564138000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Mon, 19 Aug 2019 19:50:13 GMT" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://azstoragesdkaccount.file.core.windows.net/filesharename/testdir%2ffile01908600", + "Headers" : { + "x-ms-version" : "2018-11-09", + "User-Agent" : "azsdk-java-azure-storage-file/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2018-11-09", + "Server" : "Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0", + "Content-Range" : "bytes 0-1023/1024", + "Last-Modified" : "Mon, 19 Aug 2019 19:50:13 GMT", + "retry-after" : "0", + "StatusCode" : "206", + "Date" : "Mon, 19 Aug 2019 19:50:13 GMT", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-type" : "File", + "ETag" : "\"0x8D724DE73C3F2CF\"", + "Content-Length" : "1024", + "x-ms-request-id" : "07d2b789-e01a-0111-14c7-564138000000", + "Body" : "[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + } ], + "variables" : [ "file01908600" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file/src/test/resources/session-records/getPropertiesFromFileClient.json b/sdk/storage/azure-storage-file/src/test/resources/session-records/getPropertiesFromFileClient.json new file mode 100644 index 0000000000000..be1d4554735c3 --- /dev/null +++ b/sdk/storage/azure-storage-file/src/test/resources/session-records/getPropertiesFromFileClient.json @@ -0,0 +1,46 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://azstoragesdkaccount.file.core.windows.net/filesharename/testdir%2ffile6226590e", + "Headers" : { + "x-ms-version" : "2018-11-09", + "User-Agent" : "azsdk-java-azure-storage-file/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-version" : "2018-11-09", + "Server" : "Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D724DE73AE1B77\"", + "Last-Modified" : "Mon, 19 Aug 2019 19:50:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "07d2b784-e01a-0111-0fc7-564138000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Mon, 19 Aug 2019 19:50:12 GMT" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://azstoragesdkaccount.file.core.windows.net/filesharename/testdir%2ffile6226590e", + "Headers" : { + "x-ms-version" : "2018-11-09", + "User-Agent" : "azsdk-java-azure-storage-file/12.0.0-preview.3 1.8.0_212; Windows 10 10.0" + }, + "Response" : { + "x-ms-server-encrypted" : "true", + "x-ms-type" : "File", + "x-ms-version" : "2018-11-09", + "Server" : "Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "\"0x8D724DE73AE1B77\"", + "Last-Modified" : "Mon, 19 Aug 2019 19:50:13 GMT", + "retry-after" : "0", + "Content-Length" : "1024", + "StatusCode" : "200", + "x-ms-request-id" : "07d2b785-e01a-0111-10c7-564138000000", + "Date" : "Mon, 19 Aug 2019 19:50:12 GMT", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + } ], + "variables" : [ "file6226590e" ] +} \ No newline at end of file diff --git a/sdk/storage/pom.service.xml b/sdk/storage/pom.service.xml index 367536ca484f4..147f709647439 100644 --- a/sdk/storage/pom.service.xml +++ b/sdk/storage/pom.service.xml @@ -15,7 +15,7 @@ ../core/azure-core-http-netty ../identity/azure-identity azure-storage-common - + azure-storage-blob azure-storage-file azure-storage-queue diff --git a/sdk/storage/tests.yml b/sdk/storage/tests.yml index 846f46380ee65..1e8102699c2ea 100644 --- a/sdk/storage/tests.yml +++ b/sdk/storage/tests.yml @@ -14,4 +14,6 @@ jobs: BLOB_STORAGE_ACCOUNT_NAME: $(java-storage-test-blob-account-name) BLOB_STORAGE_ACCOUNT_KEY: $(java-storage-test-blob-account-key) PREMIUM_STORAGE_ACCOUNT_NAME: $(java-storage-test-premium-account-name) - PREMIUM_STORAGE_ACCOUNT_KEY: $(java-storage-test-premium-account-key) \ No newline at end of file + PREMIUM_STORAGE_ACCOUNT_KEY: $(java-storage-test-premium-account-key) + AZURE_STORAGE_ACCESS_KEY: $(java-storage-test-access-key) + AZURE_STORAGE_FILE_ENDPOINT: $(java-storage-test-file-endpoint)