diff --git a/sdk/communication/azure-communication-jobrouter/src/main/java/com/azure/communication/jobrouter/RouterAsyncClient.java b/sdk/communication/azure-communication-jobrouter/src/main/java/com/azure/communication/jobrouter/RouterAsyncClient.java index 2b465fe97eb6..29cb6d140be9 100644 --- a/sdk/communication/azure-communication-jobrouter/src/main/java/com/azure/communication/jobrouter/RouterAsyncClient.java +++ b/sdk/communication/azure-communication-jobrouter/src/main/java/com/azure/communication/jobrouter/RouterAsyncClient.java @@ -16,10 +16,12 @@ import com.azure.communication.jobrouter.models.RouterJobItem; import com.azure.communication.jobrouter.models.RouterWorker; import com.azure.communication.jobrouter.models.RouterWorkerItem; +import com.azure.communication.jobrouter.models.UnassignJobResult; import com.azure.communication.jobrouter.models.WorkerStateSelector; import com.azure.communication.jobrouter.models.options.CloseJobOptions; import com.azure.communication.jobrouter.models.options.CreateJobOptions; import com.azure.communication.jobrouter.models.options.CreateWorkerOptions; +import com.azure.communication.jobrouter.models.options.UnassignJobOptions; import com.azure.communication.jobrouter.models.options.UpdateJobOptions; import com.azure.communication.jobrouter.models.options.UpdateWorkerOptions; import com.azure.core.annotation.ReturnType; @@ -502,6 +504,62 @@ Mono> closeJobWithResponse(CloseJobOptions closeJobOptions, Conte } } + /** + * Unassigns a job from a worker. + * + * @param unassignJobOptions Options object for unassign job operation. + * @return result as mentioned in {@link com.azure.communication.jobrouter.models.UnassignJobResult}. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws CommunicationErrorResponseException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono unassignJob(UnassignJobOptions unassignJobOptions) { + try { + return withContext(context -> unassignJobWithResponse(unassignJobOptions, context) + .flatMap( + (Response res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + })); + } catch (RuntimeException ex) { + return monoError(LOGGER, ex); + } + } + + /** + * Unassigns a job from the assigned worker. + * + * @param unassignJobOptions Options object for unassign job operation. + * @return result as mentioned in {@link com.azure.communication.jobrouter.models.UnassignJobResult}. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws CommunicationErrorResponseException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> unassignJobWithResponse(UnassignJobOptions unassignJobOptions) { + try { + return withContext(context -> unassignJobWithResponse(unassignJobOptions, context)); + } catch (RuntimeException ex) { + return monoError(LOGGER, ex); + } + } + + Mono> unassignJobWithResponse(UnassignJobOptions unassignJobOptions, Context context) { + try { + return jobRouter.unassignJobActionWithResponseAsync( + unassignJobOptions.getJobId(), + unassignJobOptions.getAssignmentId(), + context + ); + } catch (RuntimeException ex) { + return monoError(LOGGER, ex); + } + } + /** * Retrieves list of jobs based on filter parameters. * diff --git a/sdk/communication/azure-communication-jobrouter/src/main/java/com/azure/communication/jobrouter/RouterClient.java b/sdk/communication/azure-communication-jobrouter/src/main/java/com/azure/communication/jobrouter/RouterClient.java index 815b442a3061..6ddac45f4989 100644 --- a/sdk/communication/azure-communication-jobrouter/src/main/java/com/azure/communication/jobrouter/RouterClient.java +++ b/sdk/communication/azure-communication-jobrouter/src/main/java/com/azure/communication/jobrouter/RouterClient.java @@ -14,10 +14,12 @@ import com.azure.communication.jobrouter.models.RouterJobItem; import com.azure.communication.jobrouter.models.RouterWorker; import com.azure.communication.jobrouter.models.RouterWorkerItem; +import com.azure.communication.jobrouter.models.UnassignJobResult; import com.azure.communication.jobrouter.models.WorkerStateSelector; import com.azure.communication.jobrouter.models.options.CloseJobOptions; import com.azure.communication.jobrouter.models.options.CreateJobOptions; import com.azure.communication.jobrouter.models.options.CreateWorkerOptions; +import com.azure.communication.jobrouter.models.options.UnassignJobOptions; import com.azure.communication.jobrouter.models.options.UpdateJobOptions; import com.azure.communication.jobrouter.models.options.UpdateWorkerOptions; import com.azure.core.annotation.ReturnType; @@ -300,6 +302,35 @@ public Response closeJobWithResponse(CloseJobOptions closeJobOptions, Cont return this.client.closeJobWithResponse(closeJobOptions, context).block(); } + /** + * Unassigns a job from assigned worker. + * + * @param unassignJobOptions Options object for close job operation. + * @return UnassignJobResult + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws CommunicationErrorResponseException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public UnassignJobResult unassignJob(UnassignJobOptions unassignJobOptions) { + return this.client.unassignJob(unassignJobOptions).block(); + } + + /** + * Unassigns a job from assigned worker. + * + * @param unassignJobOptions Options object for close job operation. + * @param context The context to associate with this operation. + * @return void. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws CommunicationErrorResponseException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response unassignJobWithResponse(UnassignJobOptions unassignJobOptions, Context context) { + return this.client.unassignJobWithResponse(unassignJobOptions, context).block(); + } + /** * Retrieves list of jobs based on filter parameters. * @@ -489,7 +520,7 @@ public Response createWorkerWithResponse(CreateWorkerOptions creat * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public RouterWorker updateWorkerOptions(UpdateWorkerOptions updateWorkerOptions) { + public RouterWorker updateWorker(UpdateWorkerOptions updateWorkerOptions) { return this.client.updateWorker(updateWorkerOptions).block(); } diff --git a/sdk/communication/azure-communication-jobrouter/src/main/java/com/azure/communication/jobrouter/implementation/convertors/JobAdapter.java b/sdk/communication/azure-communication-jobrouter/src/main/java/com/azure/communication/jobrouter/implementation/convertors/JobAdapter.java index 302b9ac60483..26fdb8431069 100644 --- a/sdk/communication/azure-communication-jobrouter/src/main/java/com/azure/communication/jobrouter/implementation/convertors/JobAdapter.java +++ b/sdk/communication/azure-communication-jobrouter/src/main/java/com/azure/communication/jobrouter/implementation/convertors/JobAdapter.java @@ -28,6 +28,7 @@ public static RouterJob convertCreateJobOptionsToRouterJob(CreateJobOptions crea return new RouterJob() .setChannelId(createJobOptions.getChannelId()) .setChannelReference(createJobOptions.getChannelReference()) + .setQueueId(createJobOptions.getQueueId()) .setLabels(labels) .setNotes(createJobOptions.getNotes()) .setPriority(createJobOptions.getPriority()) diff --git a/sdk/communication/azure-communication-jobrouter/src/main/java/com/azure/communication/jobrouter/implementation/convertors/WorkerAdapter.java b/sdk/communication/azure-communication-jobrouter/src/main/java/com/azure/communication/jobrouter/implementation/convertors/WorkerAdapter.java index 2a917eb6ffdd..4bf354a07d1a 100644 --- a/sdk/communication/azure-communication-jobrouter/src/main/java/com/azure/communication/jobrouter/implementation/convertors/WorkerAdapter.java +++ b/sdk/communication/azure-communication-jobrouter/src/main/java/com/azure/communication/jobrouter/implementation/convertors/WorkerAdapter.java @@ -50,8 +50,8 @@ public static RouterWorker convertUpdateWorkerOptionsToRouterWorker(UpdateWorker .collect(Collectors.toMap(Map.Entry::getKey, entry -> entry.getValue().getValue())) : null; Map queueAssignmentsMap = updateWorkerOptions.getQueueAssignments(); - Map queueAssignments = queueAssignmentsMap.entrySet().stream() - .collect(Collectors.toMap(Map.Entry::getKey, e -> e.getValue())); + Map queueAssignments = queueAssignmentsMap != null ? queueAssignmentsMap.entrySet().stream() + .collect(Collectors.toMap(Map.Entry::getKey, e -> e.getValue())) : null; return new RouterWorker() .setLabels(labels) .setTags(updateWorkerOptions.getTags()) diff --git a/sdk/communication/azure-communication-jobrouter/src/main/java/com/azure/communication/jobrouter/models/options/UnassignJobOptions.java b/sdk/communication/azure-communication-jobrouter/src/main/java/com/azure/communication/jobrouter/models/options/UnassignJobOptions.java new file mode 100644 index 000000000000..b71b7c1962d8 --- /dev/null +++ b/sdk/communication/azure-communication-jobrouter/src/main/java/com/azure/communication/jobrouter/models/options/UnassignJobOptions.java @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.communication.jobrouter.models.options; + +/** + * Request options to unassign a job from a worker. + */ +public final class UnassignJobOptions { + /** + * id of job to close. + */ + private final String jobId; + + /** + * id of assignment associated with the job. + */ + private final String assignmentId; + + /** + * Constructor for UnassignJobOptions. + * @param jobId jobId to unassign. + * @param assignmentId assignmentId of the job. + */ + public UnassignJobOptions(String jobId, String assignmentId) { + this.jobId = jobId; + this.assignmentId = assignmentId; + } + + /** + * Get jobId. + * @return jobId + */ + public String getJobId() { + return this.jobId; + } + + /** + * Get assignmentId. + * @return assignmentId + */ + public String getAssignmentId() { + return this.assignmentId; + } +} diff --git a/sdk/communication/azure-communication-jobrouter/src/test/java/com.azure.communication.jobrouter/RouterJobLiveTests.java b/sdk/communication/azure-communication-jobrouter/src/test/java/com.azure.communication.jobrouter/RouterJobLiveTests.java new file mode 100644 index 000000000000..7f1cdeb03d69 --- /dev/null +++ b/sdk/communication/azure-communication-jobrouter/src/test/java/com.azure.communication.jobrouter/RouterJobLiveTests.java @@ -0,0 +1,128 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.communication.jobrouter; + +import com.azure.communication.jobrouter.models.AcceptJobOfferResult; +import com.azure.communication.jobrouter.models.ChannelConfiguration; +import com.azure.communication.jobrouter.models.DistributionPolicy; +import com.azure.communication.jobrouter.models.JobOffer; +import com.azure.communication.jobrouter.models.JobQueue; +import com.azure.communication.jobrouter.models.LabelValue; +import com.azure.communication.jobrouter.models.QueueAssignment; +import com.azure.communication.jobrouter.models.RouterJob; +import com.azure.communication.jobrouter.models.RouterWorker; +import com.azure.communication.jobrouter.models.UnassignJobResult; +import com.azure.communication.jobrouter.models.options.CreateJobOptions; +import com.azure.communication.jobrouter.models.options.CreateWorkerOptions; +import com.azure.communication.jobrouter.models.options.UnassignJobOptions; +import com.azure.core.http.HttpClient; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertTrue; + +public class RouterJobLiveTests extends JobRouterTestBase { + private RouterClient routerClient; + + private RouterAdministrationClient routerAdminClient; + + @ParameterizedTest + @MethodSource("com.azure.core.test.TestBase#getHttpClients") + public void unassignJob(HttpClient httpClient) { + // Setup + routerClient = getRouterClient(httpClient); + routerAdminClient = getRouterAdministrationClient(httpClient); + String testName = "unassign-job-2"; + /** + * Setup queue + */ + String distributionPolicyId = String.format("%s-%s-DistributionPolicy", JAVA_LIVE_TESTS, testName); + DistributionPolicy distributionPolicy = createDistributionPolicy(routerAdminClient, distributionPolicyId); + + String queueId = String.format("%s-%s-Queue", JAVA_LIVE_TESTS, testName); + JobQueue jobQueue = createQueue(routerAdminClient, queueId, distributionPolicy.getId()); + + /** + * Setup worker + */ + Map labels = new HashMap() { + { + put("Label", new LabelValue("Value")); + } + }; + + Map tags = new HashMap() { + { + put("Tag", "Value"); + } + }; + + ChannelConfiguration channelConfiguration = new ChannelConfiguration(); + channelConfiguration.setCapacityCostPerJob(1); + Map channelConfigurations = new HashMap() { + { + put("channel1", channelConfiguration); + } + }; + + Map queueAssignments = new HashMap() { + { + put(jobQueue.getId(), new QueueAssignment()); + } + }; + + String workerId = String.format("%s-%s-Worker", JAVA_LIVE_TESTS, testName); + CreateWorkerOptions createWorkerOptions = new CreateWorkerOptions(workerId, 10) + .setLabels(labels) + .setTags(tags) + .setAvailableForOffers(true) + .setChannelConfigurations(channelConfigurations) + .setQueueAssignments(queueAssignments); + + RouterWorker worker = routerClient.createWorker(createWorkerOptions); + + String jobId = String.format("%s-%s-Job", JAVA_LIVE_TESTS, testName); + CreateJobOptions createJobOptions = new CreateJobOptions(jobId, "channel1", queueId); + + RouterJob job = routerClient.createJob(createJobOptions); + + List jobOffers = new ArrayList<>(); + long startTimeMillis = System.currentTimeMillis(); + while (true) { + worker = routerClient.getWorker(workerId); + jobOffers = worker.getOffers(); + if (jobOffers.size() > 0 || System.currentTimeMillis() - startTimeMillis > 10000) { + break; + } + } + + assertTrue(jobOffers.size() == 1); + + JobOffer offer = jobOffers.get(0); + + AcceptJobOfferResult acceptJobOfferResult = routerClient.acceptJobOffer(workerId, offer.getId()); + + String assignmentId = acceptJobOfferResult.getAssignmentId(); + + // Action + UnassignJobOptions unassignJobOptions = new UnassignJobOptions(jobId, assignmentId); + UnassignJobResult unassignJobResult = routerClient.unassignJob(unassignJobOptions); + + // Verify + assertEquals(1, unassignJobResult.getUnassignmentCount()); + + // Cleanup + routerClient.cancelJob(jobId, "Done.", "test"); + routerClient.deleteJob(jobId); + routerClient.deleteWorker(workerId); + routerAdminClient.deleteQueue(queueId); + routerAdminClient.deleteDistributionPolicy(distributionPolicyId); + } +} diff --git a/sdk/communication/azure-communication-jobrouter/src/test/resources/session-records/ClassificationPolicyLiveTests.createClassificationPolicy[1].json b/sdk/communication/azure-communication-jobrouter/src/test/resources/session-records/ClassificationPolicyLiveTests.createClassificationPolicy[1].json index 0eed6bca3fda..7280044e25ef 100644 --- a/sdk/communication/azure-communication-jobrouter/src/test/resources/session-records/ClassificationPolicyLiveTests.createClassificationPolicy[1].json +++ b/sdk/communication/azure-communication-jobrouter/src/test/resources/session-records/ClassificationPolicyLiveTests.createClassificationPolicy[1].json @@ -3,21 +3,21 @@ "Method" : "PATCH", "Uri" : "https://REDACTED.communication.azure.com/routing/distributionPolicies/JAVA_LIVE_TESTS-DistributionPolicy?api-version=2022-07-18-preview", "Headers" : { - "x-ms-client-request-id" : "2fd36edb-ae43-47d5-b053-0e3d95b18785", - "Content-Type" : "application/merge-patch+json" + "content-type" : "application/merge-patch+json", + "x-ms-client-request-id" : "955a5919-fa57-4a69-b108-cbe0f9b64614" }, "Response" : { "Transfer-Encoding" : "chunked", "X-Cache" : "CONFIG_NOCACHE", "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", - "trace-id" : "3d65f5a6-eeae-e7bf-60ca-3b622bf8d6a5", - "ETag" : "\"91004fa9-0000-0700-0000-64432dc30000\"", - "Last-Modified" : "Sat, 22 Apr 2023 00:43:47 GMT", + "trace-id" : "1a8b3347-785b-dbb0-07df-b2e08e35bfb4", + "ETag" : "\"7a0fed2d-0000-0700-0000-645982650000\"", + "Last-Modified" : "Mon, 08 May 2023 23:14:45 GMT", "retry-after" : "0", - "X-Azure-Ref" : "0wi1DZAAAAAA000IXFyonTrXZRgfn/hJuWVZSMzExMDAwMTE1MDQ1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "X-Azure-Ref" : "0ZYJZZAAAAABQIPfytX7JSILqbR1dYVrTWVZSMzExMDAwMTE1MDQ1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", "StatusCode" : "200", "Body" : "{\"id\":\"JAVA_LIVE_TESTS-DistributionPolicy\",\"name\":\"JAVA_LIVE_TESTS-DistributionPolicy-Name\",\"offerTtlSeconds\":10,\"mode\":{\"kind\":\"longest-idle\",\"minConcurrentOffers\":1,\"maxConcurrentOffers\":10,\"bypassSelectors\":false}}", - "Date" : "Sat, 22 Apr 2023 00:43:46 GMT", + "Date" : "Mon, 08 May 2023 23:14:44 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null @@ -25,21 +25,21 @@ "Method" : "PATCH", "Uri" : "https://REDACTED.communication.azure.com/routing/queues/JAVA_LIVE_TESTS-Queue?api-version=2022-07-18-preview", "Headers" : { - "x-ms-client-request-id" : "fcbffd5e-6d76-4124-8459-4d48cc0859d1", - "Content-Type" : "application/merge-patch+json" + "content-type" : "application/merge-patch+json", + "x-ms-client-request-id" : "4c261aeb-e4ae-4332-b4bc-436aa1154e32" }, "Response" : { "Transfer-Encoding" : "chunked", "X-Cache" : "CONFIG_NOCACHE", "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", - "trace-id" : "e1adfebc-c499-ed25-43ad-f6c2635d5ab5", - "ETag" : "\"17004139-0000-0700-0000-64432dc30000\"", - "Last-Modified" : "Sat, 22 Apr 2023 00:43:47 GMT", + "trace-id" : "cd6432cc-b88f-cca8-7a3b-2e6ccafad815", + "ETag" : "\"af001e21-0000-0700-0000-645982650000\"", + "Last-Modified" : "Mon, 08 May 2023 23:14:45 GMT", "retry-after" : "0", - "X-Azure-Ref" : "0wy1DZAAAAABs1RymYF5vR5/Y3pnM3H9BWVZSMzExMDAwMTE1MDQ1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "X-Azure-Ref" : "0ZYJZZAAAAAAdu/hvtKPeRIHUxOn7DiXbWVZSMzExMDAwMTE1MDQ1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", "StatusCode" : "200", "Body" : "{\"id\":\"JAVA_LIVE_TESTS-Queue\",\"name\":\"JAVA_LIVE_TESTS-Queue-Name\",\"distributionPolicyId\":\"JAVA_LIVE_TESTS-DistributionPolicy\",\"labels\":{\"Label_1\":\"Value_1\",\"Id\":\"JAVA_LIVE_TESTS-Queue\"}}", - "Date" : "Sat, 22 Apr 2023 00:43:47 GMT", + "Date" : "Mon, 08 May 2023 23:14:45 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null @@ -47,21 +47,21 @@ "Method" : "PATCH", "Uri" : "https://REDACTED.communication.azure.com/routing/classificationPolicies/JAVA_LIVE_TESTS-ClassificationPolicy?api-version=2022-07-18-preview", "Headers" : { - "x-ms-client-request-id" : "32af944b-1b3e-4622-b635-168123187c35", - "Content-Type" : "application/merge-patch+json" + "content-type" : "application/merge-patch+json", + "x-ms-client-request-id" : "ee826b8c-7359-480d-a558-16026ccc13b6" }, "Response" : { "Transfer-Encoding" : "chunked", "X-Cache" : "CONFIG_NOCACHE", "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", - "trace-id" : "f54af3c7-2a93-439d-57c0-505c2a4eef11", - "ETag" : "\"1e00f586-0000-0700-0000-64432dc40000\"", - "Last-Modified" : "Sat, 22 Apr 2023 00:43:48 GMT", + "trace-id" : "58e6ebd1-c473-5171-89fa-a7463e137ce1", + "ETag" : "\"6400fd02-0000-0700-0000-645982660000\"", + "Last-Modified" : "Mon, 08 May 2023 23:14:46 GMT", "retry-after" : "0", - "X-Azure-Ref" : "0wy1DZAAAAACn1qXIwXMhTKz6czhlBMYMWVZSMzExMDAwMTE1MDQ1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "X-Azure-Ref" : "0ZoJZZAAAAABxF9+M9Df0RqNtgRUz7FYSWVZSMzExMDAwMTE1MDQ1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", "StatusCode" : "200", "Body" : "{\"id\":\"JAVA_LIVE_TESTS-ClassificationPolicy\",\"name\":\"JAVA_LIVE_TESTS-ClassificationPolicy-Name\",\"fallbackQueueId\":\"JAVA_LIVE_TESTS-Queue\",\"queueSelectors\":[{\"kind\":\"static\",\"labelSelector\":{\"key\":\"queueId\",\"labelOperator\":\"equal\",\"value\":\"JAVA_LIVE_TESTS-Queue\"}}],\"prioritizationRule\":{\"kind\":\"static-rule\",\"value\":1},\"workerSelectors\":[{\"kind\":\"static\",\"labelSelector\":{\"expedite\":false,\"state\":\"active\",\"key\":\"key\",\"labelOperator\":\"equal\",\"value\":\"value\"}}]}", - "Date" : "Sat, 22 Apr 2023 00:43:47 GMT", + "Date" : "Mon, 08 May 2023 23:14:45 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null @@ -69,48 +69,54 @@ "Method" : "DELETE", "Uri" : "https://REDACTED.communication.azure.com/routing/classificationPolicies/JAVA_LIVE_TESTS-ClassificationPolicy?api-version=2022-07-18-preview", "Headers" : { - "x-ms-client-request-id" : "e9a48389-304e-4cac-bd54-b040c50bc85c" + "x-ms-client-request-id" : "c5538a67-6cb3-4db9-ab1c-1661c6736fd3" }, "Response" : { "X-Cache" : "CONFIG_NOCACHE", "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", - "trace-id" : "3a0a8cd1-f386-2cde-90ca-3927f9f43c98", + "trace-id" : "f7df56e3-208a-00f5-4557-0a3762bbf4f4", "retry-after" : "0", - "X-Azure-Ref" : "0xC1DZAAAAABjSWA2u7cKSo7k//suqk5nWVZSMzExMDAwMTE1MDQ1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "X-Azure-Ref" : "0ZoJZZAAAAABAR3liroU+Q4iMvTJ064xCWVZSMzExMDAwMTE1MDQ1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "Content-Length" : "0", "StatusCode" : "204", - "Date" : "Sat, 22 Apr 2023 00:43:48 GMT" + "Body" : "", + "Date" : "Mon, 08 May 2023 23:14:46 GMT" }, "Exception" : null }, { "Method" : "DELETE", "Uri" : "https://REDACTED.communication.azure.com/routing/queues/JAVA_LIVE_TESTS-Queue?api-version=2022-07-18-preview", "Headers" : { - "x-ms-client-request-id" : "97080fc9-27b8-490a-b4af-abd0e87a6773" + "x-ms-client-request-id" : "60c8aef8-99dd-479b-b9e4-b92c214ae6ee" }, "Response" : { "X-Cache" : "CONFIG_NOCACHE", "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", - "trace-id" : "ffbe2baa-c81b-445d-a0b9-a6ebecdd5089", + "trace-id" : "2611da9a-a35d-27ed-4b48-b8ae4de7b081", "retry-after" : "0", - "X-Azure-Ref" : "0xC1DZAAAAAADlHaVhYKbQItwD06wtkwdWVZSMzExMDAwMTE1MDQ1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "X-Azure-Ref" : "0Z4JZZAAAAABfXHTvtr+tToDqkveyjDTrWVZSMzExMDAwMTE1MDQ1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "Content-Length" : "0", "StatusCode" : "204", - "Date" : "Sat, 22 Apr 2023 00:43:48 GMT" + "Body" : "", + "Date" : "Mon, 08 May 2023 23:14:46 GMT" }, "Exception" : null }, { "Method" : "DELETE", "Uri" : "https://REDACTED.communication.azure.com/routing/distributionPolicies/JAVA_LIVE_TESTS-DistributionPolicy?api-version=2022-07-18-preview", "Headers" : { - "x-ms-client-request-id" : "a6d0dd19-7b81-49de-8f5c-6469d7d65957" + "x-ms-client-request-id" : "c5a7d7e8-0b04-4cf0-9e3f-5b18223f69e9" }, "Response" : { "X-Cache" : "CONFIG_NOCACHE", "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", - "trace-id" : "814f0559-796d-8d55-be50-a169c8bc6a66", + "trace-id" : "a2444630-af93-dccf-2760-cba1db700623", "retry-after" : "0", - "X-Azure-Ref" : "0xS1DZAAAAADkBh5gho+TSo0tYv/WphkwWVZSMzExMDAwMTE1MDQ1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "X-Azure-Ref" : "0Z4JZZAAAAABVotLftrUhTJVdbphSTcVmWVZSMzExMDAwMTE1MDQ1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "Content-Length" : "0", "StatusCode" : "204", - "Date" : "Sat, 22 Apr 2023 00:43:48 GMT" + "Body" : "", + "Date" : "Mon, 08 May 2023 23:14:46 GMT" }, "Exception" : null } ], diff --git a/sdk/communication/azure-communication-jobrouter/src/test/resources/session-records/DistributionPolicyLiveTests.createDistributionPolicyBestWorkerAzureFunctionRule[1].json b/sdk/communication/azure-communication-jobrouter/src/test/resources/session-records/DistributionPolicyLiveTests.createDistributionPolicyBestWorkerAzureFunctionRule[1].json index 3346037e0af6..cc7c85ae42d0 100644 --- a/sdk/communication/azure-communication-jobrouter/src/test/resources/session-records/DistributionPolicyLiveTests.createDistributionPolicyBestWorkerAzureFunctionRule[1].json +++ b/sdk/communication/azure-communication-jobrouter/src/test/resources/session-records/DistributionPolicyLiveTests.createDistributionPolicyBestWorkerAzureFunctionRule[1].json @@ -3,21 +3,21 @@ "Method" : "PATCH", "Uri" : "https://REDACTED.communication.azure.com/routing/distributionPolicies/JAVA_LIVE_TESTS-BestWorkerAzureFunctionRule-DistributionPolicy?api-version=2022-07-18-preview", "Headers" : { - "x-ms-client-request-id" : "d14ce98b-6db3-4efb-9310-965657b89ace", - "Content-Type" : "application/merge-patch+json" + "content-type" : "application/merge-patch+json", + "x-ms-client-request-id" : "63a36060-daaa-4ff9-9b33-a14e277b04e4" }, "Response" : { "Transfer-Encoding" : "chunked", "X-Cache" : "CONFIG_NOCACHE", "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", - "trace-id" : "5917f10b-dffd-6373-e58d-9d7ec3146aec", - "ETag" : "\"9100eda9-0000-0700-0000-64432dd20000\"", - "Last-Modified" : "Sat, 22 Apr 2023 00:44:02 GMT", + "trace-id" : "8e2d90dc-52f6-8d7e-29ad-10967b1b0ff7", + "ETag" : "\"7a0fef2b-0000-0700-0000-645982610000\"", + "Last-Modified" : "Mon, 08 May 2023 23:14:41 GMT", "retry-after" : "0", - "X-Azure-Ref" : "00i1DZAAAAADZeGsIOn4lSb+5uOitd+AuWVZSMzExMDAwMTE1MDIxADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "X-Azure-Ref" : "0YYJZZAAAAABMmWAYLipkRq37j9VLjbgXWVZSMzExMDAwMTE1MDQ1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", "StatusCode" : "200", "Body" : "{\"id\":\"JAVA_LIVE_TESTS-BestWorkerAzureFunctionRule-DistributionPolicy\",\"name\":\"JAVA_LIVE_TESTS-BestWorkerAzureFunctionRule-DistributionPolicy-Name\",\"offerTtlSeconds\":10,\"mode\":{\"kind\":\"best-worker\",\"scoringRule\":{\"kind\":\"azure-function-rule\",\"credential\":{\"appKey\":\"MyAppKey\",\"clientId\":\"MyClientId\"}},\"scoringRuleOptions\":{\"scoringParameters\":[\"jobLabels\",\"workerSelectors\"],\"allowScoringBatchOfWorkers\":false,\"descendingOrder\":true},\"minConcurrentOffers\":1,\"maxConcurrentOffers\":10,\"bypassSelectors\":false}}", - "Date" : "Sat, 22 Apr 2023 00:44:01 GMT", + "Date" : "Mon, 08 May 2023 23:14:40 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null @@ -25,16 +25,18 @@ "Method" : "DELETE", "Uri" : "https://REDACTED.communication.azure.com/routing/distributionPolicies/JAVA_LIVE_TESTS-BestWorkerAzureFunctionRule-DistributionPolicy?api-version=2022-07-18-preview", "Headers" : { - "x-ms-client-request-id" : "42996b68-4083-47c6-ae11-6e09e8fec9c5" + "x-ms-client-request-id" : "28b66e41-c7f8-4ba4-a218-90982010efa5" }, "Response" : { "X-Cache" : "CONFIG_NOCACHE", "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", - "trace-id" : "b394118c-3693-6abb-4082-05b2ce9e2b4f", + "trace-id" : "f425660b-52f8-8638-32a5-779873f54bc3", "retry-after" : "0", - "X-Azure-Ref" : "00i1DZAAAAACyS1cPt0GWRbMQzUhvm/7jWVZSMzExMDAwMTE1MDIxADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "X-Azure-Ref" : "0YYJZZAAAAAB3rczFikQyTqTUTUyK67mIWVZSMzExMDAwMTE1MDQ1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "Content-Length" : "0", "StatusCode" : "204", - "Date" : "Sat, 22 Apr 2023 00:44:02 GMT" + "Body" : "", + "Date" : "Mon, 08 May 2023 23:14:41 GMT" }, "Exception" : null } ], diff --git a/sdk/communication/azure-communication-jobrouter/src/test/resources/session-records/DistributionPolicyLiveTests.createDistributionPolicyBestWorkerDefaultScoringRule[1].json b/sdk/communication/azure-communication-jobrouter/src/test/resources/session-records/DistributionPolicyLiveTests.createDistributionPolicyBestWorkerDefaultScoringRule[1].json index 892ac51c9c2b..eac7151f202c 100644 --- a/sdk/communication/azure-communication-jobrouter/src/test/resources/session-records/DistributionPolicyLiveTests.createDistributionPolicyBestWorkerDefaultScoringRule[1].json +++ b/sdk/communication/azure-communication-jobrouter/src/test/resources/session-records/DistributionPolicyLiveTests.createDistributionPolicyBestWorkerDefaultScoringRule[1].json @@ -3,21 +3,21 @@ "Method" : "PATCH", "Uri" : "https://REDACTED.communication.azure.com/routing/distributionPolicies/JAVA_LIVE_TESTS-BestWorkerDefaultScoringRule-DistributionPolicy?api-version=2022-07-18-preview", "Headers" : { - "x-ms-client-request-id" : "f892af10-3b14-479f-8330-44ae188a8f17", - "Content-Type" : "application/merge-patch+json" + "content-type" : "application/merge-patch+json", + "x-ms-client-request-id" : "76ce70cd-def6-4ef1-b0e0-61297d700762" }, "Response" : { "Transfer-Encoding" : "chunked", "X-Cache" : "CONFIG_NOCACHE", "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", - "trace-id" : "eb8b16e8-5e80-dc9e-4bcf-11e7bae193a1", - "ETag" : "\"9100f3a9-0000-0700-0000-64432dd30000\"", - "Last-Modified" : "Sat, 22 Apr 2023 00:44:03 GMT", + "trace-id" : "034f0d44-2d3e-430c-7c9e-c7a2566174fc", + "ETag" : "\"7a0f7f2c-0000-0700-0000-645982620000\"", + "Last-Modified" : "Mon, 08 May 2023 23:14:42 GMT", "retry-after" : "0", - "X-Azure-Ref" : "00i1DZAAAAAB+9+/dpNXmRqQvZXWR9CwjWVZSMzExMDAwMTE1MDIxADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "X-Azure-Ref" : "0YoJZZAAAAABv6cGfvNwCQI3Oo3QrQXlkWVZSMzExMDAwMTE1MDQ1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", "StatusCode" : "200", "Body" : "{\"id\":\"JAVA_LIVE_TESTS-BestWorkerDefaultScoringRule-DistributionPolicy\",\"name\":\"JAVA_LIVE_TESTS-BestWorkerDefaultScoringRule-DistributionPolicy-Name\",\"offerTtlSeconds\":10,\"mode\":{\"kind\":\"best-worker\",\"scoringRuleOptions\":{\"scoringParameters\":[\"jobLabels\",\"workerSelectors\"],\"allowScoringBatchOfWorkers\":false,\"descendingOrder\":true},\"minConcurrentOffers\":1,\"maxConcurrentOffers\":10,\"bypassSelectors\":false}}", - "Date" : "Sat, 22 Apr 2023 00:44:02 GMT", + "Date" : "Mon, 08 May 2023 23:14:41 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null @@ -25,16 +25,18 @@ "Method" : "DELETE", "Uri" : "https://REDACTED.communication.azure.com/routing/distributionPolicies/JAVA_LIVE_TESTS-BestWorkerDefaultScoringRule-DistributionPolicy?api-version=2022-07-18-preview", "Headers" : { - "x-ms-client-request-id" : "ea6120b5-cde6-438b-85bd-a8adbe3f52f2" + "x-ms-client-request-id" : "abff860d-2681-4c01-b6fe-ec33aad1227e" }, "Response" : { "X-Cache" : "CONFIG_NOCACHE", "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", - "trace-id" : "fac1b62f-a8bb-bfb3-c438-bae0550081a2", + "trace-id" : "a5fc95fb-a283-1eb6-88fb-eb43a9d2730e", "retry-after" : "0", - "X-Azure-Ref" : "00y1DZAAAAABDKJbpWSe1RLwprSAcIMGzWVZSMzExMDAwMTE1MDIxADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "X-Azure-Ref" : "0YoJZZAAAAAC2kSjm6uIuQZQW6HkhcyXFWVZSMzExMDAwMTE1MDQ1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "Content-Length" : "0", "StatusCode" : "204", - "Date" : "Sat, 22 Apr 2023 00:44:02 GMT" + "Body" : "", + "Date" : "Mon, 08 May 2023 23:14:41 GMT" }, "Exception" : null } ], diff --git a/sdk/communication/azure-communication-jobrouter/src/test/resources/session-records/DistributionPolicyLiveTests.createDistributionPolicyLongestIdle[1].json b/sdk/communication/azure-communication-jobrouter/src/test/resources/session-records/DistributionPolicyLiveTests.createDistributionPolicyLongestIdle[1].json index a2814334aee6..7d97150f6b61 100644 --- a/sdk/communication/azure-communication-jobrouter/src/test/resources/session-records/DistributionPolicyLiveTests.createDistributionPolicyLongestIdle[1].json +++ b/sdk/communication/azure-communication-jobrouter/src/test/resources/session-records/DistributionPolicyLiveTests.createDistributionPolicyLongestIdle[1].json @@ -3,21 +3,21 @@ "Method" : "PATCH", "Uri" : "https://REDACTED.communication.azure.com/routing/distributionPolicies/JAVA_LIVE_TESTS-LongestIdle-DistributionPolicy?api-version=2022-07-18-preview", "Headers" : { - "x-ms-client-request-id" : "46098929-f802-4b5f-adf8-d053efc172a2", - "Content-Type" : "application/merge-patch+json" + "content-type" : "application/merge-patch+json", + "x-ms-client-request-id" : "5c29fb2a-39b6-47c7-9f7e-1b1536670b5e" }, "Response" : { "Transfer-Encoding" : "chunked", "X-Cache" : "CONFIG_NOCACHE", "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", - "trace-id" : "229776fe-68b5-660e-cece-a5d5dea5c8ff", - "ETag" : "\"9100dba9-0000-0700-0000-64432dd00000\"", - "Last-Modified" : "Sat, 22 Apr 2023 00:44:00 GMT", + "trace-id" : "c2981f78-d967-1b25-342d-7d5eb72d259a", + "ETag" : "\"7a0ff52a-0000-0700-0000-645982600000\"", + "Last-Modified" : "Mon, 08 May 2023 23:14:40 GMT", "retry-after" : "0", - "X-Azure-Ref" : "00C1DZAAAAAA4tzt/lBv0TpeuKSYNYH24WVZSMzExMDAwMTE1MDIxADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "X-Azure-Ref" : "0X4JZZAAAAACUNBcW4HVUTrb81BSVC6RPWVZSMzExMDAwMTE1MDQ1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", "StatusCode" : "200", "Body" : "{\"id\":\"JAVA_LIVE_TESTS-LongestIdle-DistributionPolicy\",\"name\":\"JAVA_LIVE_TESTS-LongestIdle-DistributionPolicy-Name\",\"offerTtlSeconds\":10,\"mode\":{\"kind\":\"longest-idle\",\"minConcurrentOffers\":1,\"maxConcurrentOffers\":10,\"bypassSelectors\":false}}", - "Date" : "Sat, 22 Apr 2023 00:44:00 GMT", + "Date" : "Mon, 08 May 2023 23:14:39 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null @@ -25,16 +25,18 @@ "Method" : "DELETE", "Uri" : "https://REDACTED.communication.azure.com/routing/distributionPolicies/JAVA_LIVE_TESTS-LongestIdle-DistributionPolicy?api-version=2022-07-18-preview", "Headers" : { - "x-ms-client-request-id" : "5f6169bb-6643-4722-94a9-c96eedae5403" + "x-ms-client-request-id" : "ec285210-1b92-48aa-be41-01676c05fa9c" }, "Response" : { "X-Cache" : "CONFIG_NOCACHE", "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", - "trace-id" : "1a7ca2d0-1a4d-824d-1e74-5a58314bd9a9", + "trace-id" : "b94355bc-ce86-aaa8-8753-ac295b93602f", "retry-after" : "0", - "X-Azure-Ref" : "00S1DZAAAAAAFjb1CFVhNTIlOiOvEymRVWVZSMzExMDAwMTE1MDIxADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "X-Azure-Ref" : "0YIJZZAAAAAAZFxHWc7s6QL9oOCdoWWOjWVZSMzExMDAwMTE1MDQ1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "Content-Length" : "0", "StatusCode" : "204", - "Date" : "Sat, 22 Apr 2023 00:44:00 GMT" + "Body" : "", + "Date" : "Mon, 08 May 2023 23:14:39 GMT" }, "Exception" : null } ], diff --git a/sdk/communication/azure-communication-jobrouter/src/test/resources/session-records/DistributionPolicyLiveTests.createDistributionPolicyRoundRobin[1].json b/sdk/communication/azure-communication-jobrouter/src/test/resources/session-records/DistributionPolicyLiveTests.createDistributionPolicyRoundRobin[1].json index 9fc8e9b70afa..d0ad62dafef9 100644 --- a/sdk/communication/azure-communication-jobrouter/src/test/resources/session-records/DistributionPolicyLiveTests.createDistributionPolicyRoundRobin[1].json +++ b/sdk/communication/azure-communication-jobrouter/src/test/resources/session-records/DistributionPolicyLiveTests.createDistributionPolicyRoundRobin[1].json @@ -3,21 +3,21 @@ "Method" : "PATCH", "Uri" : "https://REDACTED.communication.azure.com/routing/distributionPolicies/JAVA_LIVE_TESTS-RoundRobin-DistributionPolicy?api-version=2022-07-18-preview", "Headers" : { - "x-ms-client-request-id" : "5fa9bfcc-8488-40fd-b4d8-0156c38a22c1", - "Content-Type" : "application/merge-patch+json" + "content-type" : "application/merge-patch+json", + "x-ms-client-request-id" : "42426ba4-3228-48a2-b4e7-1b1b4f5f21ac" }, "Response" : { "Transfer-Encoding" : "chunked", "X-Cache" : "CONFIG_NOCACHE", "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", - "trace-id" : "7451d1cc-7ac6-6bb4-4d86-43a5ab8972d5", - "ETag" : "\"9100e6a9-0000-0700-0000-64432dd10000\"", - "Last-Modified" : "Sat, 22 Apr 2023 00:44:01 GMT", + "trace-id" : "67ba2bbe-be66-1beb-0e89-8e0130cffddc", + "ETag" : "\"7a0f552b-0000-0700-0000-645982600000\"", + "Last-Modified" : "Mon, 08 May 2023 23:14:40 GMT", "retry-after" : "0", - "X-Azure-Ref" : "00S1DZAAAAADkQ/Xn/ZUZTLhjhc7OvogWWVZSMzExMDAwMTE1MDIxADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "X-Azure-Ref" : "0YIJZZAAAAADH2OzEyaPBQIqnnAZAPtsJWVZSMzExMDAwMTE1MDQ1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", "StatusCode" : "200", "Body" : "{\"id\":\"JAVA_LIVE_TESTS-RoundRobin-DistributionPolicy\",\"name\":\"JAVA_LIVE_TESTS-RoundRobin-DistributionPolicy-Name\",\"offerTtlSeconds\":10,\"mode\":{\"kind\":\"round-robin\",\"minConcurrentOffers\":1,\"maxConcurrentOffers\":10,\"bypassSelectors\":false}}", - "Date" : "Sat, 22 Apr 2023 00:44:01 GMT", + "Date" : "Mon, 08 May 2023 23:14:40 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null @@ -25,16 +25,18 @@ "Method" : "DELETE", "Uri" : "https://REDACTED.communication.azure.com/routing/distributionPolicies/JAVA_LIVE_TESTS-RoundRobin-DistributionPolicy?api-version=2022-07-18-preview", "Headers" : { - "x-ms-client-request-id" : "5de8db04-60dd-4267-87c8-9f77b120e4d8" + "x-ms-client-request-id" : "d81e6d2e-02f6-4a82-9d24-b4aed03ddc1e" }, "Response" : { "X-Cache" : "CONFIG_NOCACHE", "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", - "trace-id" : "030f644d-173d-8543-9d56-457086201c79", + "trace-id" : "ffb268d7-84fb-2f86-dc9d-179fa175dbf2", "retry-after" : "0", - "X-Azure-Ref" : "00S1DZAAAAABPq21XyzG9QZU5VanjoZ8AWVZSMzExMDAwMTE1MDIxADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "X-Azure-Ref" : "0YYJZZAAAAAAncf3t3iynSaLgMJCgVAY5WVZSMzExMDAwMTE1MDQ1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "Content-Length" : "0", "StatusCode" : "204", - "Date" : "Sat, 22 Apr 2023 00:44:01 GMT" + "Body" : "", + "Date" : "Mon, 08 May 2023 23:14:40 GMT" }, "Exception" : null } ], diff --git a/sdk/communication/azure-communication-jobrouter/src/test/resources/session-records/ExceptionPolicyLiveTests.createExceptionPolicy[1].json b/sdk/communication/azure-communication-jobrouter/src/test/resources/session-records/ExceptionPolicyLiveTests.createExceptionPolicy[1].json index d4c089ca6fee..6fd9e5a7f4d8 100644 --- a/sdk/communication/azure-communication-jobrouter/src/test/resources/session-records/ExceptionPolicyLiveTests.createExceptionPolicy[1].json +++ b/sdk/communication/azure-communication-jobrouter/src/test/resources/session-records/ExceptionPolicyLiveTests.createExceptionPolicy[1].json @@ -3,21 +3,21 @@ "Method" : "PATCH", "Uri" : "https://REDACTED.communication.azure.com/routing/exceptionPolicies/JAVA_LIVE_TESTS-CreateExceptionPolicy-ExceptionPolicy?api-version=2022-07-18-preview", "Headers" : { - "x-ms-client-request-id" : "066899d3-e28e-4018-a7a4-80b911374acb", - "Content-Type" : "application/merge-patch+json" + "content-type" : "application/merge-patch+json", + "x-ms-client-request-id" : "532da9dc-ca5d-4596-a72d-b8f0e8a84e54" }, "Response" : { "Transfer-Encoding" : "chunked", "X-Cache" : "CONFIG_NOCACHE", "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", - "trace-id" : "802a6108-4311-668e-8f17-77aa7f1916bb", - "ETag" : "\"d4023ecd-0000-0700-0000-64432ddb0000\"", - "Last-Modified" : "Sat, 22 Apr 2023 00:44:11 GMT", + "trace-id" : "e7b5c67c-f5ee-cb47-6b1f-d888509c7c15", + "ETag" : "\"4108b464-0000-0700-0000-6459826c0000\"", + "Last-Modified" : "Mon, 08 May 2023 23:14:52 GMT", "retry-after" : "0", - "X-Azure-Ref" : "02y1DZAAAAABTutI95ot4TITE2De9ulqNWVZSMzExMDAwMTE1MDM3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "X-Azure-Ref" : "0a4JZZAAAAADTQtiRpf1dTp0hjUSa8Rc5WVZSMzExMDAwMTE1MDQ1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", "StatusCode" : "200", "Body" : "{\"id\":\"JAVA_LIVE_TESTS-CreateExceptionPolicy-ExceptionPolicy\",\"name\":\"JAVA_LIVE_TESTS-CreateExceptionPolicy-ExceptionPolicy-Name\",\"exceptionRules\":{\"JAVA_LIVE_TESTS-CreateExceptionPolicy-ExceptionPolicy\":{\"trigger\":{\"kind\":\"queue-length\",\"threshold\":1},\"actions\":{\"CancelledDueToMaxQueueLengthReached\":{\"kind\":\"cancel\",\"note\":\"Job Cancelled as maximum queue length is reached.\",\"dispositionCode\":\"CancelledDueToMaxQueueLengthReached\"}}}}}", - "Date" : "Sat, 22 Apr 2023 00:44:11 GMT", + "Date" : "Mon, 08 May 2023 23:14:51 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null @@ -25,16 +25,18 @@ "Method" : "DELETE", "Uri" : "https://REDACTED.communication.azure.com/routing/exceptionPolicies/JAVA_LIVE_TESTS-CreateExceptionPolicy-ExceptionPolicy?api-version=2022-07-18-preview", "Headers" : { - "x-ms-client-request-id" : "f933f274-8853-4b5a-896c-0e3352eeab10" + "x-ms-client-request-id" : "567fd005-8be5-497e-bf88-b7cf968c078b" }, "Response" : { "X-Cache" : "CONFIG_NOCACHE", "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", - "trace-id" : "233dbcdd-e3c0-376b-5bfe-181d1d55c1f4", + "trace-id" : "e5b08717-7b83-8894-f92f-bd07dcfcb290", "retry-after" : "0", - "X-Azure-Ref" : "02y1DZAAAAACaxcYlsrHtQ4oCcuZc4tLWWVZSMzExMDAwMTE1MDM3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "X-Azure-Ref" : "0bIJZZAAAAAApuUFzQUwCQYrsE0L+7ywdWVZSMzExMDAwMTE1MDQ1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "Content-Length" : "0", "StatusCode" : "204", - "Date" : "Sat, 22 Apr 2023 00:44:11 GMT" + "Body" : "", + "Date" : "Mon, 08 May 2023 23:14:51 GMT" }, "Exception" : null } ], diff --git a/sdk/communication/azure-communication-jobrouter/src/test/resources/session-records/JobQueueLiveTests.createQueue[1].json b/sdk/communication/azure-communication-jobrouter/src/test/resources/session-records/JobQueueLiveTests.createQueue[1].json index 709d221f9c9e..d512a9871a31 100644 --- a/sdk/communication/azure-communication-jobrouter/src/test/resources/session-records/JobQueueLiveTests.createQueue[1].json +++ b/sdk/communication/azure-communication-jobrouter/src/test/resources/session-records/JobQueueLiveTests.createQueue[1].json @@ -3,21 +3,21 @@ "Method" : "PATCH", "Uri" : "https://REDACTED.communication.azure.com/routing/distributionPolicies/JAVA_LIVE_TESTS-CreateQueue-DistributionPolicy?api-version=2022-07-18-preview", "Headers" : { - "x-ms-client-request-id" : "ecd44d2a-dc43-4b84-ad2b-3d07a15053cc", - "Content-Type" : "application/merge-patch+json" + "content-type" : "application/merge-patch+json", + "x-ms-client-request-id" : "a6ef92d4-29e1-49d6-be94-80be39077908" }, "Response" : { "Transfer-Encoding" : "chunked", "X-Cache" : "CONFIG_NOCACHE", "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", - "trace-id" : "cc822703-0068-9f53-b3de-3282d17a71b1", - "ETag" : "\"9100b1aa-0000-0700-0000-64432dea0000\"", - "Last-Modified" : "Sat, 22 Apr 2023 00:44:26 GMT", + "trace-id" : "64138db3-de7a-cb9b-a538-47e5b93749a9", + "ETag" : "\"7a0fe52f-0000-0700-0000-6459826a0000\"", + "Last-Modified" : "Mon, 08 May 2023 23:14:50 GMT", "retry-after" : "0", - "X-Azure-Ref" : "06i1DZAAAAADs4NB0+v6DQLl79+FM7Tp2WVZSMzExMDAwMTE1MDE3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "X-Azure-Ref" : "0aoJZZAAAAACwq8UWG/F2Qo/bP+sBfEVrWVZSMzExMDAwMTE1MDQ1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", "StatusCode" : "200", "Body" : "{\"id\":\"JAVA_LIVE_TESTS-CreateQueue-DistributionPolicy\",\"name\":\"JAVA_LIVE_TESTS-CreateQueue-DistributionPolicy-Name\",\"offerTtlSeconds\":10,\"mode\":{\"kind\":\"longest-idle\",\"minConcurrentOffers\":1,\"maxConcurrentOffers\":10,\"bypassSelectors\":false}}", - "Date" : "Sat, 22 Apr 2023 00:44:26 GMT", + "Date" : "Mon, 08 May 2023 23:14:49 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null @@ -25,21 +25,21 @@ "Method" : "PATCH", "Uri" : "https://REDACTED.communication.azure.com/routing/queues/JAVA_LIVE_TESTS-CreateQueue-Queue?api-version=2022-07-18-preview", "Headers" : { - "x-ms-client-request-id" : "1783e4df-2540-41a0-bc86-9fd2c292cfbf", - "Content-Type" : "application/merge-patch+json" + "content-type" : "application/merge-patch+json", + "x-ms-client-request-id" : "2b26b232-1379-4cb0-bbff-0c1e05da6469" }, "Response" : { "Transfer-Encoding" : "chunked", "X-Cache" : "CONFIG_NOCACHE", "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", - "trace-id" : "ad509f53-aad7-01e3-f5eb-64990ac62e00", - "ETag" : "\"17005839-0000-0700-0000-64432dea0000\"", - "Last-Modified" : "Sat, 22 Apr 2023 00:44:26 GMT", + "trace-id" : "ba55a504-187a-fd3f-6d10-3c78a4767015", + "ETag" : "\"af006021-0000-0700-0000-6459826a0000\"", + "Last-Modified" : "Mon, 08 May 2023 23:14:50 GMT", "retry-after" : "0", - "X-Azure-Ref" : "06i1DZAAAAAAoW+zKEddlSarO7QmMQx0mWVZSMzExMDAwMTE1MDE3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "X-Azure-Ref" : "0aoJZZAAAAAAeU9DveKroSY9yV7XbjqhAWVZSMzExMDAwMTE1MDQ1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", "StatusCode" : "200", "Body" : "{\"id\":\"JAVA_LIVE_TESTS-CreateQueue-Queue\",\"name\":\"JAVA_LIVE_TESTS-CreateQueue-Queue-Name\",\"distributionPolicyId\":\"JAVA_LIVE_TESTS-CreateQueue-DistributionPolicy\",\"labels\":{\"Label_1\":\"Value_1\",\"Id\":\"JAVA_LIVE_TESTS-CreateQueue-Queue\"}}", - "Date" : "Sat, 22 Apr 2023 00:44:26 GMT", + "Date" : "Mon, 08 May 2023 23:14:50 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null @@ -47,32 +47,36 @@ "Method" : "DELETE", "Uri" : "https://REDACTED.communication.azure.com/routing/queues/JAVA_LIVE_TESTS-CreateQueue-Queue?api-version=2022-07-18-preview", "Headers" : { - "x-ms-client-request-id" : "0635ec5e-118b-464d-82c1-7884d888e6c1" + "x-ms-client-request-id" : "699ccdab-c290-4964-8bff-f8cfb40e56af" }, "Response" : { "X-Cache" : "CONFIG_NOCACHE", "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", - "trace-id" : "caf00527-d3ac-8d81-6de5-d36b4614bf96", + "trace-id" : "31b820ae-534d-9687-0444-f04577f852b8", "retry-after" : "0", - "X-Azure-Ref" : "06y1DZAAAAAC0EIP4bqR3T4GiA+rQYU8YWVZSMzExMDAwMTE1MDE3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "X-Azure-Ref" : "0a4JZZAAAAABok0+579XsTqxuGZ6FCj88WVZSMzExMDAwMTE1MDQ1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "Content-Length" : "0", "StatusCode" : "204", - "Date" : "Sat, 22 Apr 2023 00:44:27 GMT" + "Body" : "", + "Date" : "Mon, 08 May 2023 23:14:50 GMT" }, "Exception" : null }, { "Method" : "DELETE", "Uri" : "https://REDACTED.communication.azure.com/routing/distributionPolicies/JAVA_LIVE_TESTS-CreateQueue-DistributionPolicy?api-version=2022-07-18-preview", "Headers" : { - "x-ms-client-request-id" : "23b21c5e-ccde-46bf-8be3-057d882124d9" + "x-ms-client-request-id" : "f6485488-9f90-477c-8e8c-6517b629d989" }, "Response" : { "X-Cache" : "CONFIG_NOCACHE", "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", - "trace-id" : "3de1e244-b0c1-b8a1-79a1-a368c74e6207", + "trace-id" : "544fe231-795b-fb41-4da5-44c72181c0e6", "retry-after" : "0", - "X-Azure-Ref" : "06y1DZAAAAACx1nC5SbmRSbyGQXuEnlDmWVZSMzExMDAwMTE1MDE3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "X-Azure-Ref" : "0a4JZZAAAAAAlnHhukBoXS569eGzZcLG/WVZSMzExMDAwMTE1MDQ1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "Content-Length" : "0", "StatusCode" : "204", - "Date" : "Sat, 22 Apr 2023 00:44:27 GMT" + "Body" : "", + "Date" : "Mon, 08 May 2023 23:14:50 GMT" }, "Exception" : null } ], diff --git a/sdk/communication/azure-communication-jobrouter/src/test/resources/session-records/JobQueueLiveTests.updateQueue[1].json b/sdk/communication/azure-communication-jobrouter/src/test/resources/session-records/JobQueueLiveTests.updateQueue[1].json index 677671d90460..d03fbe88b697 100644 --- a/sdk/communication/azure-communication-jobrouter/src/test/resources/session-records/JobQueueLiveTests.updateQueue[1].json +++ b/sdk/communication/azure-communication-jobrouter/src/test/resources/session-records/JobQueueLiveTests.updateQueue[1].json @@ -3,21 +3,21 @@ "Method" : "PATCH", "Uri" : "https://REDACTED.communication.azure.com/routing/distributionPolicies/JAVA_LIVE_TESTS-CreateQueue-DistributionPolicy?api-version=2022-07-18-preview", "Headers" : { - "x-ms-client-request-id" : "754cecbd-ff22-4532-847a-9f1435cc593a", - "Content-Type" : "application/merge-patch+json" + "content-type" : "application/merge-patch+json", + "x-ms-client-request-id" : "40a352ff-260f-475c-98d8-f6869511bc77" }, "Response" : { "Transfer-Encoding" : "chunked", "X-Cache" : "CONFIG_NOCACHE", "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", - "trace-id" : "4ee56d8d-2fe5-5744-3cd8-c6267064af52", - "ETag" : "\"9100a0aa-0000-0700-0000-64432de80000\"", - "Last-Modified" : "Sat, 22 Apr 2023 00:44:24 GMT", + "trace-id" : "3c8b9677-76af-4104-7f4b-fd489ed61433", + "ETag" : "\"7a0fe62e-0000-0700-0000-645982670000\"", + "Last-Modified" : "Mon, 08 May 2023 23:14:47 GMT", "retry-after" : "0", - "X-Azure-Ref" : "05y1DZAAAAACTgRY7Z7qKRrecoR1cg9ORWVZSMzExMDAwMTE1MDE3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "X-Azure-Ref" : "0Z4JZZAAAAAAvfuf8kaVoRYFhJBbhmByxWVZSMzExMDAwMTE1MDQ1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", "StatusCode" : "200", "Body" : "{\"id\":\"JAVA_LIVE_TESTS-CreateQueue-DistributionPolicy\",\"name\":\"JAVA_LIVE_TESTS-CreateQueue-DistributionPolicy-Name\",\"offerTtlSeconds\":10,\"mode\":{\"kind\":\"longest-idle\",\"minConcurrentOffers\":1,\"maxConcurrentOffers\":10,\"bypassSelectors\":false}}", - "Date" : "Sat, 22 Apr 2023 00:44:24 GMT", + "Date" : "Mon, 08 May 2023 23:14:47 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null @@ -25,21 +25,21 @@ "Method" : "PATCH", "Uri" : "https://REDACTED.communication.azure.com/routing/queues/JAVA_LIVE_TESTS-CreateQueue-Queue?api-version=2022-07-18-preview", "Headers" : { - "x-ms-client-request-id" : "dd5a2a53-3b03-4389-9e31-175b1bc8a642", - "Content-Type" : "application/merge-patch+json" + "content-type" : "application/merge-patch+json", + "x-ms-client-request-id" : "5405f659-1cc3-4319-a6d3-5b2d251fc938" }, "Response" : { "Transfer-Encoding" : "chunked", "X-Cache" : "CONFIG_NOCACHE", "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", - "trace-id" : "2748aad5-5f2a-b370-df07-57b533ff3985", - "ETag" : "\"17005639-0000-0700-0000-64432de80000\"", - "Last-Modified" : "Sat, 22 Apr 2023 00:44:24 GMT", + "trace-id" : "135030f6-6ca2-f4cb-8acf-0b29f76ab776", + "ETag" : "\"af003b21-0000-0700-0000-645982680000\"", + "Last-Modified" : "Mon, 08 May 2023 23:14:48 GMT", "retry-after" : "0", - "X-Azure-Ref" : "06C1DZAAAAAAHc08W9uJeSrKZihwjmfOkWVZSMzExMDAwMTE1MDE3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "X-Azure-Ref" : "0aIJZZAAAAABXFQ7peRgdSpe90/v0YhUnWVZSMzExMDAwMTE1MDQ1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", "StatusCode" : "200", "Body" : "{\"id\":\"JAVA_LIVE_TESTS-CreateQueue-Queue\",\"name\":\"JAVA_LIVE_TESTS-CreateQueue-Queue-Name\",\"distributionPolicyId\":\"JAVA_LIVE_TESTS-CreateQueue-DistributionPolicy\",\"labels\":{\"Label_1\":\"Value_1\",\"Id\":\"JAVA_LIVE_TESTS-CreateQueue-Queue\"}}", - "Date" : "Sat, 22 Apr 2023 00:44:24 GMT", + "Date" : "Mon, 08 May 2023 23:14:47 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null @@ -47,21 +47,21 @@ "Method" : "PATCH", "Uri" : "https://REDACTED.communication.azure.com/routing/queues/JAVA_LIVE_TESTS-CreateQueue-Queue?api-version=2022-07-18-preview", "Headers" : { - "x-ms-client-request-id" : "494b3de2-1b29-490a-ac00-ef7a50378f1f", - "Content-Type" : "application/merge-patch+json" + "content-type" : "application/merge-patch+json", + "x-ms-client-request-id" : "1d1cd77f-dff2-4986-bf33-fb291fd768af" }, "Response" : { "Transfer-Encoding" : "chunked", "X-Cache" : "CONFIG_NOCACHE", "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", - "trace-id" : "323cbbde-0042-d180-4d97-0a5b6c3e0335", - "ETag" : "\"17005739-0000-0700-0000-64432de90000\"", - "Last-Modified" : "Sat, 22 Apr 2023 00:44:25 GMT", + "trace-id" : "5f1a2ca6-1f44-72d5-42d2-27d4e7dd2e32", + "ETag" : "\"af003f21-0000-0700-0000-645982680000\"", + "Last-Modified" : "Mon, 08 May 2023 23:14:48 GMT", "retry-after" : "0", - "X-Azure-Ref" : "06S1DZAAAAAAVwAT90ZV+SKqRtqBOSg72WVZSMzExMDAwMTE1MDE3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "X-Azure-Ref" : "0aIJZZAAAAADDktPSn1+pTZt7RDBF3JDXWVZSMzExMDAwMTE1MDQ1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", "StatusCode" : "200", "Body" : "{\"id\":\"JAVA_LIVE_TESTS-CreateQueue-Queue\",\"name\":\"JAVA_LIVE_TESTS-CreateQueue-Queue-Name\",\"distributionPolicyId\":\"JAVA_LIVE_TESTS-CreateQueue-DistributionPolicy\",\"labels\":{\"Id\":\"JAVA_LIVE_TESTS-CreateQueue-Queue\",\"Label_1\":\"UpdatedValue\"}}", - "Date" : "Sat, 22 Apr 2023 00:44:25 GMT", + "Date" : "Mon, 08 May 2023 23:14:48 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null @@ -69,32 +69,36 @@ "Method" : "DELETE", "Uri" : "https://REDACTED.communication.azure.com/routing/queues/JAVA_LIVE_TESTS-CreateQueue-Queue?api-version=2022-07-18-preview", "Headers" : { - "x-ms-client-request-id" : "0c92861a-3ce4-429b-aa14-4a9d9aae4c33" + "x-ms-client-request-id" : "f87608aa-0d81-4c12-b17d-cadfd8e3024a" }, "Response" : { "X-Cache" : "CONFIG_NOCACHE", "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", - "trace-id" : "fb62289b-75f7-6a4c-31f7-02cd5f8c81e8", + "trace-id" : "2ca00b85-1dd1-f68b-2908-28c5f1373185", "retry-after" : "0", - "X-Azure-Ref" : "06S1DZAAAAAAv58VvK05BSKHYx397/faKWVZSMzExMDAwMTE1MDE3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "X-Azure-Ref" : "0aIJZZAAAAAB+DKWd/ReySb3FzlgMToeNWVZSMzExMDAwMTE1MDQ1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "Content-Length" : "0", "StatusCode" : "204", - "Date" : "Sat, 22 Apr 2023 00:44:25 GMT" + "Body" : "", + "Date" : "Mon, 08 May 2023 23:14:49 GMT" }, "Exception" : null }, { "Method" : "DELETE", "Uri" : "https://REDACTED.communication.azure.com/routing/distributionPolicies/JAVA_LIVE_TESTS-CreateQueue-DistributionPolicy?api-version=2022-07-18-preview", "Headers" : { - "x-ms-client-request-id" : "451b4eb8-926a-4d34-8edd-7da5e5bfb9f3" + "x-ms-client-request-id" : "a0bdb788-dd2a-49ae-9218-06b54b4ee7d4" }, "Response" : { "X-Cache" : "CONFIG_NOCACHE", "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", - "trace-id" : "eaab0631-17b5-5a62-b8cd-c34b8626f820", + "trace-id" : "2f382411-b279-822e-d76b-c16ab5262266", "retry-after" : "0", - "X-Azure-Ref" : "06i1DZAAAAABVyWrNqtlTSabozKeWYbQIWVZSMzExMDAwMTE1MDE3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "X-Azure-Ref" : "0aYJZZAAAAADUbzKoXUAlQ47O0gttp/tmWVZSMzExMDAwMTE1MDQ1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "Content-Length" : "0", "StatusCode" : "204", - "Date" : "Sat, 22 Apr 2023 00:44:25 GMT" + "Body" : "", + "Date" : "Mon, 08 May 2023 23:14:49 GMT" }, "Exception" : null } ], diff --git a/sdk/communication/azure-communication-jobrouter/src/test/resources/session-records/RouterJobLiveTests.unassignJob[1].json b/sdk/communication/azure-communication-jobrouter/src/test/resources/session-records/RouterJobLiveTests.unassignJob[1].json new file mode 100644 index 000000000000..b030246ed0f1 --- /dev/null +++ b/sdk/communication/azure-communication-jobrouter/src/test/resources/session-records/RouterJobLiveTests.unassignJob[1].json @@ -0,0 +1,453 @@ +{ + "networkCallRecords" : [ { + "Method" : "PATCH", + "Uri" : "https://REDACTED.communication.azure.com/routing/distributionPolicies/JAVA_LIVE_TESTS-unassign-job-2-DistributionPolicy?api-version=2022-07-18-preview", + "Headers" : { + "content-type" : "application/merge-patch+json", + "x-ms-client-request-id" : "c7e706b6-f28d-4f87-bf6c-504cff5879a8" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", + "trace-id" : "d2b533ce-127a-dde2-cb86-434f72a86268", + "ETag" : "\"7a0f54ae-0000-0700-0000-645983e30000\"", + "Last-Modified" : "Mon, 08 May 2023 23:21:07 GMT", + "retry-after" : "0", + "X-Azure-Ref" : "04oNZZAAAAAA4Wcipn3cBRLxgizPlhmWxWVZSMzExMDAwMTE1MDM1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "StatusCode" : "200", + "Body" : "{\"id\":\"JAVA_LIVE_TESTS-unassign-job-2-DistributionPolicy\",\"name\":\"JAVA_LIVE_TESTS-unassign-job-2-DistributionPolicy-Name\",\"offerTtlSeconds\":10,\"mode\":{\"kind\":\"longest-idle\",\"minConcurrentOffers\":1,\"maxConcurrentOffers\":10,\"bypassSelectors\":false}}", + "Date" : "Mon, 08 May 2023 23:21:06 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.communication.azure.com/routing/queues/JAVA_LIVE_TESTS-unassign-job-2-Queue?api-version=2022-07-18-preview", + "Headers" : { + "content-type" : "application/merge-patch+json", + "x-ms-client-request-id" : "2967f0f8-7f3e-4542-8b0e-2d69ca454f9d" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", + "trace-id" : "61770082-1571-fb9c-c368-321d2be64828", + "ETag" : "\"af00ad33-0000-0700-0000-645983e30000\"", + "Last-Modified" : "Mon, 08 May 2023 23:21:07 GMT", + "retry-after" : "0", + "X-Azure-Ref" : "044NZZAAAAACOL7yr816uSYpKAKfTkDsQWVZSMzExMDAwMTE1MDM1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "StatusCode" : "200", + "Body" : "{\"id\":\"JAVA_LIVE_TESTS-unassign-job-2-Queue\",\"name\":\"JAVA_LIVE_TESTS-unassign-job-2-Queue-Name\",\"distributionPolicyId\":\"JAVA_LIVE_TESTS-unassign-job-2-DistributionPolicy\",\"labels\":{\"Label_1\":\"Value_1\",\"Id\":\"JAVA_LIVE_TESTS-unassign-job-2-Queue\"}}", + "Date" : "Mon, 08 May 2023 23:21:06 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.communication.azure.com/routing/workers/JAVA_LIVE_TESTS-unassign-job-2-Worker?api-version=2022-07-18-preview", + "Headers" : { + "content-type" : "application/merge-patch+json", + "x-ms-client-request-id" : "163ea2cc-deaf-4286-8c94-2c0cee4fd73d" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", + "trace-id" : "0b317579-ea05-1413-b1f6-c48bdcf04b40", + "ETag" : "\"00000001-0000-0000-4d76-0fe71a50db08\"", + "Last-Modified" : "Mon, 08 May 2023 23:21:07 GMT", + "retry-after" : "0", + "X-Azure-Ref" : "044NZZAAAAABm2gz+pr/zSrXajdMcCiA/WVZSMzExMDAwMTE1MDM1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "StatusCode" : "200", + "Body" : "{\"id\":\"JAVA_LIVE_TESTS-unassign-job-2-Worker\",\"state\":\"active\",\"queueAssignments\":{\"JAVA_LIVE_TESTS-unassign-job-2-Queue\":{}},\"totalCapacity\":10,\"labels\":{\"Label\":\"Value\",\"Id\":\"JAVA_LIVE_TESTS-unassign-job-2-Worker\"},\"tags\":{\"Tag\":\"Value\"},\"channelConfigurations\":{\"channel1\":{\"capacityCostPerJob\":1}},\"offers\":[],\"assignedJobs\":[],\"loadRatio\":0,\"availableForOffers\":true}", + "Date" : "Mon, 08 May 2023 23:21:07 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.communication.azure.com/routing/jobs/JAVA_LIVE_TESTS-unassign-job-2-Job?api-version=2022-07-18-preview", + "Headers" : { + "content-type" : "application/merge-patch+json", + "x-ms-client-request-id" : "08ca1f4e-058f-480f-a0e9-9fd5dd85cc9c" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", + "trace-id" : "74acb898-caee-5063-1621-c42ed0d56cc5", + "ETag" : "\"00000000-0000-0000-6850-78e71a50db08\"", + "Last-Modified" : "Mon, 08 May 2023 23:21:08 GMT", + "retry-after" : "0", + "X-Azure-Ref" : "05INZZAAAAABgT+oDRQrcSrAnzFubJVWBWVZSMzExMDAwMTE1MDM1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "StatusCode" : "200", + "Body" : "{\"id\":\"JAVA_LIVE_TESTS-unassign-job-2-Job\",\"jobStatus\":\"created\",\"channelId\":\"channel1\",\"queueId\":\"JAVA_LIVE_TESTS-unassign-job-2-Queue\",\"priority\":1,\"requestedWorkerSelectors\":[],\"attachedWorkerSelectors\":[],\"labels\":{},\"assignments\":{},\"tags\":{},\"notes\":{}}", + "Date" : "Mon, 08 May 2023 23:21:08 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/routing/workers/JAVA_LIVE_TESTS-unassign-job-2-Worker?api-version=2022-07-18-preview", + "Headers" : { + "x-ms-client-request-id" : "688d106b-29aa-4871-8abd-f38ccb571924" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", + "trace-id" : "5d5554e6-d52d-a132-c6a7-76a4424c3933", + "ETag" : "\"00000001-0000-0000-4d76-0fe71a50db08\"", + "Last-Modified" : "Mon, 08 May 2023 23:21:07 GMT", + "retry-after" : "0", + "X-Azure-Ref" : "05INZZAAAAABF/5UwYR/zTpar9MFBlubiWVZSMzExMDAwMTE1MDM1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "StatusCode" : "200", + "Body" : "{\"id\":\"JAVA_LIVE_TESTS-unassign-job-2-Worker\",\"state\":\"active\",\"queueAssignments\":{\"JAVA_LIVE_TESTS-unassign-job-2-Queue\":{}},\"totalCapacity\":10,\"labels\":{\"Label\":\"Value\",\"Id\":\"JAVA_LIVE_TESTS-unassign-job-2-Worker\"},\"tags\":{\"Tag\":\"Value\"},\"channelConfigurations\":{\"channel1\":{\"capacityCostPerJob\":1}},\"offers\":[],\"assignedJobs\":[],\"loadRatio\":0,\"availableForOffers\":true}", + "Date" : "Mon, 08 May 2023 23:21:08 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/routing/workers/JAVA_LIVE_TESTS-unassign-job-2-Worker?api-version=2022-07-18-preview", + "Headers" : { + "x-ms-client-request-id" : "f5d0e589-3451-4795-8720-aa80b7564ca2" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", + "trace-id" : "7f36ea23-51ab-77f5-f796-31dc2eaa5954", + "ETag" : "\"00000002-0000-0000-685e-aae71a50db08\"", + "Last-Modified" : "Mon, 08 May 2023 23:21:08 GMT", + "retry-after" : "0", + "X-Azure-Ref" : "05YNZZAAAAAAGxNluazwvTpBvJm5QU6uhWVZSMzExMDAwMTE1MDM1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "StatusCode" : "200", + "Body" : "{\"id\":\"JAVA_LIVE_TESTS-unassign-job-2-Worker\",\"state\":\"active\",\"queueAssignments\":{\"JAVA_LIVE_TESTS-unassign-job-2-Queue\":{}},\"totalCapacity\":10,\"labels\":{\"Label\":\"Value\",\"Id\":\"JAVA_LIVE_TESTS-unassign-job-2-Worker\"},\"tags\":{\"Tag\":\"Value\"},\"channelConfigurations\":{\"channel1\":{\"capacityCostPerJob\":1}},\"offers\":[],\"assignedJobs\":[],\"loadRatio\":0,\"availableForOffers\":true}", + "Date" : "Mon, 08 May 2023 23:21:08 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/routing/workers/JAVA_LIVE_TESTS-unassign-job-2-Worker?api-version=2022-07-18-preview", + "Headers" : { + "x-ms-client-request-id" : "02a4d16f-32d1-4ef5-89cc-3dcfcb596a68" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", + "trace-id" : "f4ec21bf-94b4-68d9-5431-c6aeb3764d0b", + "ETag" : "\"00000002-0000-0000-685e-aae71a50db08\"", + "Last-Modified" : "Mon, 08 May 2023 23:21:08 GMT", + "retry-after" : "0", + "X-Azure-Ref" : "05YNZZAAAAADdFxMRyAiSSqIhnP+YMwdJWVZSMzExMDAwMTE1MDM1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "StatusCode" : "200", + "Body" : "{\"id\":\"JAVA_LIVE_TESTS-unassign-job-2-Worker\",\"state\":\"active\",\"queueAssignments\":{\"JAVA_LIVE_TESTS-unassign-job-2-Queue\":{}},\"totalCapacity\":10,\"labels\":{\"Label\":\"Value\",\"Id\":\"JAVA_LIVE_TESTS-unassign-job-2-Worker\"},\"tags\":{\"Tag\":\"Value\"},\"channelConfigurations\":{\"channel1\":{\"capacityCostPerJob\":1}},\"offers\":[],\"assignedJobs\":[],\"loadRatio\":0,\"availableForOffers\":true}", + "Date" : "Mon, 08 May 2023 23:21:08 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/routing/workers/JAVA_LIVE_TESTS-unassign-job-2-Worker?api-version=2022-07-18-preview", + "Headers" : { + "x-ms-client-request-id" : "86894732-a15d-4d51-ae0a-776a563874ae" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", + "trace-id" : "dac98d4a-1997-45f6-212f-d58f141a3577", + "ETag" : "\"00000002-0000-0000-685e-aae71a50db08\"", + "Last-Modified" : "Mon, 08 May 2023 23:21:08 GMT", + "retry-after" : "0", + "X-Azure-Ref" : "05YNZZAAAAADOj6fd/OlJT5a5neikHYbZWVZSMzExMDAwMTE1MDM1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "StatusCode" : "200", + "Body" : "{\"id\":\"JAVA_LIVE_TESTS-unassign-job-2-Worker\",\"state\":\"active\",\"queueAssignments\":{\"JAVA_LIVE_TESTS-unassign-job-2-Queue\":{}},\"totalCapacity\":10,\"labels\":{\"Label\":\"Value\",\"Id\":\"JAVA_LIVE_TESTS-unassign-job-2-Worker\"},\"tags\":{\"Tag\":\"Value\"},\"channelConfigurations\":{\"channel1\":{\"capacityCostPerJob\":1}},\"offers\":[],\"assignedJobs\":[],\"loadRatio\":0,\"availableForOffers\":true}", + "Date" : "Mon, 08 May 2023 23:21:08 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/routing/workers/JAVA_LIVE_TESTS-unassign-job-2-Worker?api-version=2022-07-18-preview", + "Headers" : { + "x-ms-client-request-id" : "3e844bc4-c589-43c5-80af-ffb3ddd691dc" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", + "trace-id" : "c4486b9e-cfc8-0960-b218-68846774698f", + "ETag" : "\"00000002-0000-0000-685e-aae71a50db08\"", + "Last-Modified" : "Mon, 08 May 2023 23:21:08 GMT", + "retry-after" : "0", + "X-Azure-Ref" : "05YNZZAAAAABdXuwB8YnwRpXUWJr/Uz9ZWVZSMzExMDAwMTE1MDM1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "StatusCode" : "200", + "Body" : "{\"id\":\"JAVA_LIVE_TESTS-unassign-job-2-Worker\",\"state\":\"active\",\"queueAssignments\":{\"JAVA_LIVE_TESTS-unassign-job-2-Queue\":{}},\"totalCapacity\":10,\"labels\":{\"Label\":\"Value\",\"Id\":\"JAVA_LIVE_TESTS-unassign-job-2-Worker\"},\"tags\":{\"Tag\":\"Value\"},\"channelConfigurations\":{\"channel1\":{\"capacityCostPerJob\":1}},\"offers\":[],\"assignedJobs\":[],\"loadRatio\":0,\"availableForOffers\":true}", + "Date" : "Mon, 08 May 2023 23:21:09 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/routing/workers/JAVA_LIVE_TESTS-unassign-job-2-Worker?api-version=2022-07-18-preview", + "Headers" : { + "x-ms-client-request-id" : "dc51db8d-810d-4429-8275-3671569a1f61" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", + "trace-id" : "51b14a38-7152-049b-1c8a-6203ba27c545", + "ETag" : "\"00000002-0000-0000-685e-aae71a50db08\"", + "Last-Modified" : "Mon, 08 May 2023 23:21:08 GMT", + "retry-after" : "0", + "X-Azure-Ref" : "05YNZZAAAAACtf3FF23JJTbjk9k/zFYgFWVZSMzExMDAwMTE1MDM1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "StatusCode" : "200", + "Body" : "{\"id\":\"JAVA_LIVE_TESTS-unassign-job-2-Worker\",\"state\":\"active\",\"queueAssignments\":{\"JAVA_LIVE_TESTS-unassign-job-2-Queue\":{}},\"totalCapacity\":10,\"labels\":{\"Label\":\"Value\",\"Id\":\"JAVA_LIVE_TESTS-unassign-job-2-Worker\"},\"tags\":{\"Tag\":\"Value\"},\"channelConfigurations\":{\"channel1\":{\"capacityCostPerJob\":1}},\"offers\":[],\"assignedJobs\":[],\"loadRatio\":0,\"availableForOffers\":true}", + "Date" : "Mon, 08 May 2023 23:21:09 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/routing/workers/JAVA_LIVE_TESTS-unassign-job-2-Worker?api-version=2022-07-18-preview", + "Headers" : { + "x-ms-client-request-id" : "4a86808e-0705-4398-bc19-92203d75b14c" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", + "trace-id" : "ee7ddbf4-3275-71f8-6484-0b74f6bb542f", + "ETag" : "\"00000002-0000-0000-685e-aae71a50db08\"", + "Last-Modified" : "Mon, 08 May 2023 23:21:08 GMT", + "retry-after" : "0", + "X-Azure-Ref" : "05YNZZAAAAACGJNP+FPH3Q6ENqGvmClC1WVZSMzExMDAwMTE1MDM1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "StatusCode" : "200", + "Body" : "{\"id\":\"JAVA_LIVE_TESTS-unassign-job-2-Worker\",\"state\":\"active\",\"queueAssignments\":{\"JAVA_LIVE_TESTS-unassign-job-2-Queue\":{}},\"totalCapacity\":10,\"labels\":{\"Label\":\"Value\",\"Id\":\"JAVA_LIVE_TESTS-unassign-job-2-Worker\"},\"tags\":{\"Tag\":\"Value\"},\"channelConfigurations\":{\"channel1\":{\"capacityCostPerJob\":1}},\"offers\":[],\"assignedJobs\":[],\"loadRatio\":0,\"availableForOffers\":true}", + "Date" : "Mon, 08 May 2023 23:21:09 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/routing/workers/JAVA_LIVE_TESTS-unassign-job-2-Worker?api-version=2022-07-18-preview", + "Headers" : { + "x-ms-client-request-id" : "7826bd12-a0b3-4284-8454-4db826276740" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", + "trace-id" : "5bc776a4-d210-c9c5-b43f-518098eba57c", + "ETag" : "\"00000002-0000-0000-685e-aae71a50db08\"", + "Last-Modified" : "Mon, 08 May 2023 23:21:08 GMT", + "retry-after" : "0", + "X-Azure-Ref" : "05oNZZAAAAABPkZOjqzw4Qogh3B7eEo9eWVZSMzExMDAwMTE1MDM1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "StatusCode" : "200", + "Body" : "{\"id\":\"JAVA_LIVE_TESTS-unassign-job-2-Worker\",\"state\":\"active\",\"queueAssignments\":{\"JAVA_LIVE_TESTS-unassign-job-2-Queue\":{}},\"totalCapacity\":10,\"labels\":{\"Label\":\"Value\",\"Id\":\"JAVA_LIVE_TESTS-unassign-job-2-Worker\"},\"tags\":{\"Tag\":\"Value\"},\"channelConfigurations\":{\"channel1\":{\"capacityCostPerJob\":1}},\"offers\":[],\"assignedJobs\":[],\"loadRatio\":0,\"availableForOffers\":true}", + "Date" : "Mon, 08 May 2023 23:21:09 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/routing/workers/JAVA_LIVE_TESTS-unassign-job-2-Worker?api-version=2022-07-18-preview", + "Headers" : { + "x-ms-client-request-id" : "957d8aff-b244-489e-958c-8e7430213839" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", + "trace-id" : "5fdfc162-1a08-fc89-bbdf-9cd0fcb0aeff", + "ETag" : "\"00000002-0000-0000-685e-aae71a50db08\"", + "Last-Modified" : "Mon, 08 May 2023 23:21:08 GMT", + "retry-after" : "0", + "X-Azure-Ref" : "05oNZZAAAAABNjYKE7qv+R4dHEWC0c8w+WVZSMzExMDAwMTE1MDM1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "StatusCode" : "200", + "Body" : "{\"id\":\"JAVA_LIVE_TESTS-unassign-job-2-Worker\",\"state\":\"active\",\"queueAssignments\":{\"JAVA_LIVE_TESTS-unassign-job-2-Queue\":{}},\"totalCapacity\":10,\"labels\":{\"Label\":\"Value\",\"Id\":\"JAVA_LIVE_TESTS-unassign-job-2-Worker\"},\"tags\":{\"Tag\":\"Value\"},\"channelConfigurations\":{\"channel1\":{\"capacityCostPerJob\":1}},\"offers\":[],\"assignedJobs\":[],\"loadRatio\":0,\"availableForOffers\":true}", + "Date" : "Mon, 08 May 2023 23:21:09 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/routing/workers/JAVA_LIVE_TESTS-unassign-job-2-Worker?api-version=2022-07-18-preview", + "Headers" : { + "x-ms-client-request-id" : "e18fa262-714e-429d-a22b-53430e5f5682" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", + "trace-id" : "9917fbbc-e72e-2b08-0a8c-2f86f9662e9e", + "ETag" : "\"00000002-0000-0000-685e-aae71a50db08\"", + "Last-Modified" : "Mon, 08 May 2023 23:21:08 GMT", + "retry-after" : "0", + "X-Azure-Ref" : "05oNZZAAAAADSLO33V68VSowuVv/J+gUKWVZSMzExMDAwMTE1MDM1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "StatusCode" : "200", + "Body" : "{\"id\":\"JAVA_LIVE_TESTS-unassign-job-2-Worker\",\"state\":\"active\",\"queueAssignments\":{\"JAVA_LIVE_TESTS-unassign-job-2-Queue\":{}},\"totalCapacity\":10,\"labels\":{\"Label\":\"Value\",\"Id\":\"JAVA_LIVE_TESTS-unassign-job-2-Worker\"},\"tags\":{\"Tag\":\"Value\"},\"channelConfigurations\":{\"channel1\":{\"capacityCostPerJob\":1}},\"offers\":[],\"assignedJobs\":[],\"loadRatio\":0,\"availableForOffers\":true}", + "Date" : "Mon, 08 May 2023 23:21:10 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/routing/workers/JAVA_LIVE_TESTS-unassign-job-2-Worker?api-version=2022-07-18-preview", + "Headers" : { + "x-ms-client-request-id" : "7c075230-9fc7-49e4-b782-01ec9cd7db39" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", + "trace-id" : "4d7df755-0b12-0a5f-13c9-9c2139472554", + "ETag" : "\"00000003-0000-0000-4846-9ee81a50db08\"", + "Last-Modified" : "Mon, 08 May 2023 23:21:10 GMT", + "retry-after" : "0", + "X-Azure-Ref" : "05oNZZAAAAAAWXIwgpphxQ4SwzyE4iNedWVZSMzExMDAwMTE1MDM1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "StatusCode" : "200", + "Body" : "{\"id\":\"JAVA_LIVE_TESTS-unassign-job-2-Worker\",\"state\":\"active\",\"queueAssignments\":{\"JAVA_LIVE_TESTS-unassign-job-2-Queue\":{}},\"totalCapacity\":10,\"labels\":{\"Label\":\"Value\",\"Id\":\"JAVA_LIVE_TESTS-unassign-job-2-Worker\"},\"tags\":{\"Tag\":\"Value\"},\"channelConfigurations\":{\"channel1\":{\"capacityCostPerJob\":1}},\"offers\":[{\"id\":\"0a58c907-4071-42f3-8f24-fad42e65cbcd\",\"jobId\":\"JAVA_LIVE_TESTS-unassign-job-2-Job\",\"capacityCost\":1,\"offerTimeUtc\":\"2023-05-08T23:21:10.5115692+00:00\",\"expiryTimeUtc\":\"2023-05-08T23:21:20.5115694+00:00\"}],\"assignedJobs\":[],\"loadRatio\":0.1,\"availableForOffers\":true}", + "Date" : "Mon, 08 May 2023 23:21:10 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "POST", + "Uri" : "https://REDACTED.communication.azure.com/routing/workers/JAVA_LIVE_TESTS-unassign-job-2-Worker/offers/0a58c907-4071-42f3-8f24-fad42e65cbcd:accept?api-version=2022-07-18-preview", + "Headers" : { + "x-ms-client-request-id" : "176a6b74-24da-457e-a310-1bbc34c0b8b6" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", + "trace-id" : "b3f7933e-a2a2-c39a-d8c6-b60aef8e1d94", + "retry-after" : "0", + "X-Azure-Ref" : "05oNZZAAAAAB2pca0gTvYSJounK3t34PzWVZSMzExMDAwMTE1MDM1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "StatusCode" : "200", + "Body" : "{\"assignmentId\":\"ef05e0f5-950a-41dc-bd06-ec71a61c08a4\",\"jobId\":\"JAVA_LIVE_TESTS-unassign-job-2-Job\",\"workerId\":\"JAVA_LIVE_TESTS-unassign-job-2-Worker\"}", + "Date" : "Mon, 08 May 2023 23:21:11 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "POST", + "Uri" : "https://REDACTED.communication.azure.com/routing/jobs/JAVA_LIVE_TESTS-unassign-job-2-Job/assignments/ef05e0f5-950a-41dc-bd06-ec71a61c08a4:unassign?api-version=2022-07-18-preview", + "Headers" : { + "x-ms-client-request-id" : "3bcc1cc5-67d1-4b70-a7cd-d1cef2244105" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", + "trace-id" : "b8e14a8b-ca81-7a63-00e7-90c2906c848c", + "retry-after" : "0", + "X-Azure-Ref" : "054NZZAAAAAATwA1MaTq4Q7FIVo2rAh90WVZSMzExMDAwMTE1MDM1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "StatusCode" : "200", + "Body" : "{\"jobId\":\"JAVA_LIVE_TESTS-unassign-job-2-Job\",\"unassignmentCount\":1}", + "Date" : "Mon, 08 May 2023 23:21:11 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "POST", + "Uri" : "https://REDACTED.communication.azure.com/routing/jobs/JAVA_LIVE_TESTS-unassign-job-2-Job:cancel?api-version=2022-07-18-preview", + "Headers" : { + "content-type" : "application/json", + "x-ms-client-request-id" : "36ef60e7-28af-4795-9ba5-f97d43ed812d" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", + "trace-id" : "2d249bf6-7180-8ce5-7fd8-2d9843d75517", + "retry-after" : "0", + "X-Azure-Ref" : "06INZZAAAAAC6j/NnG3/4RJVuedHZbmTxWVZSMzExMDAwMTE1MDM1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "StatusCode" : "200", + "Body" : "{}", + "Date" : "Mon, 08 May 2023 23:21:12 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.communication.azure.com/routing/jobs/JAVA_LIVE_TESTS-unassign-job-2-Job?api-version=2022-07-18-preview", + "Headers" : { + "x-ms-client-request-id" : "04c2b46d-a1fc-4d4a-9bab-34cd96862064" + }, + "Response" : { + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", + "trace-id" : "bb90db57-6d0f-d420-9146-d61454a95a23", + "retry-after" : "0", + "X-Azure-Ref" : "06YNZZAAAAAAh4Un+NFl9QYYtLSa9HjbVWVZSMzExMDAwMTE1MDM1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "Content-Length" : "0", + "StatusCode" : "204", + "Body" : "", + "Date" : "Mon, 08 May 2023 23:21:13 GMT" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.communication.azure.com/routing/workers/JAVA_LIVE_TESTS-unassign-job-2-Worker?api-version=2022-07-18-preview", + "Headers" : { + "x-ms-client-request-id" : "ec03b13a-8d7d-4790-a967-516d422c30ab" + }, + "Response" : { + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", + "trace-id" : "e7c9e7d1-d3c1-6134-d2df-dda93ad9b754", + "retry-after" : "0", + "X-Azure-Ref" : "06YNZZAAAAAANO+Q9DgWmRLq/1noHceh6WVZSMzExMDAwMTE1MDM1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "Content-Length" : "0", + "StatusCode" : "204", + "Body" : "", + "Date" : "Mon, 08 May 2023 23:21:13 GMT" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.communication.azure.com/routing/queues/JAVA_LIVE_TESTS-unassign-job-2-Queue?api-version=2022-07-18-preview", + "Headers" : { + "x-ms-client-request-id" : "17b008c0-7f6d-49d0-b7ec-471463b1cc64" + }, + "Response" : { + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", + "trace-id" : "35aa230d-95c6-2502-2434-5b1978baf762", + "retry-after" : "0", + "X-Azure-Ref" : "06oNZZAAAAAC450mMWDtMQ5eYLUaTnZmGWVZSMzExMDAwMTE1MDM1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "Content-Length" : "0", + "StatusCode" : "204", + "Body" : "", + "Date" : "Mon, 08 May 2023 23:21:14 GMT" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.communication.azure.com/routing/distributionPolicies/JAVA_LIVE_TESTS-unassign-job-2-DistributionPolicy?api-version=2022-07-18-preview", + "Headers" : { + "x-ms-client-request-id" : "22d0ddcd-920e-4551-854a-3d8470a218bb" + }, + "Response" : { + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", + "trace-id" : "716e0381-dc5e-6ffb-bcce-11180a925e3e", + "retry-after" : "0", + "X-Azure-Ref" : "06oNZZAAAAAD1icZCx3NrSIrutnFQg4O9WVZSMzExMDAwMTE1MDM1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "Content-Length" : "0", + "StatusCode" : "204", + "Body" : "", + "Date" : "Mon, 08 May 2023 23:21:14 GMT" + }, + "Exception" : null + } ], + "variables" : [ ] +} \ No newline at end of file diff --git a/sdk/communication/azure-communication-jobrouter/src/test/resources/session-records/RouterWorkerLiveTests.createWorker[1].json b/sdk/communication/azure-communication-jobrouter/src/test/resources/session-records/RouterWorkerLiveTests.createWorker[1].json index 0675e5fd49bf..c52a45abcddc 100644 --- a/sdk/communication/azure-communication-jobrouter/src/test/resources/session-records/RouterWorkerLiveTests.createWorker[1].json +++ b/sdk/communication/azure-communication-jobrouter/src/test/resources/session-records/RouterWorkerLiveTests.createWorker[1].json @@ -3,21 +3,21 @@ "Method" : "PATCH", "Uri" : "https://REDACTED.communication.azure.com/routing/distributionPolicies/JAVA_LIVE_TESTS-CreateWorker-DistributionPolicy?api-version=2022-07-18-preview", "Headers" : { - "x-ms-client-request-id" : "015e8e1d-150a-4a3c-b6d8-1f33cb6b0d03", - "Content-Type" : "application/merge-patch+json" + "content-type" : "application/merge-patch+json", + "x-ms-client-request-id" : "4e2104d2-e661-4dae-89ce-6bce7f102dba" }, "Response" : { "Transfer-Encoding" : "chunked", "X-Cache" : "CONFIG_NOCACHE", "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", - "trace-id" : "311cdbee-9e96-83e8-93e9-7b4a13a7bedf", - "ETag" : "\"9100fba2-0000-0700-0000-64432cec0000\"", - "Last-Modified" : "Sat, 22 Apr 2023 00:40:12 GMT", + "trace-id" : "6fac3b84-78ca-1f89-95d6-2309d4dea765", + "ETag" : "\"7a0fe02c-0000-0700-0000-645982620000\"", + "Last-Modified" : "Mon, 08 May 2023 23:14:42 GMT", "retry-after" : "0", - "X-Azure-Ref" : "09i1DZAAAAABFc0YHSyChRaNgEqC8i0DBWVZSMzExMDAwMTE1MDIzADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "X-Azure-Ref" : "0YoJZZAAAAAC01ZqG5GvRR63Oa+i0mkIIWVZSMzExMDAwMTE1MDQ1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", "StatusCode" : "200", "Body" : "{\"id\":\"JAVA_LIVE_TESTS-CreateWorker-DistributionPolicy\",\"name\":\"JAVA_LIVE_TESTS-CreateWorker-DistributionPolicy-Name\",\"offerTtlSeconds\":10,\"mode\":{\"kind\":\"longest-idle\",\"minConcurrentOffers\":1,\"maxConcurrentOffers\":10,\"bypassSelectors\":false}}", - "Date" : "Sat, 22 Apr 2023 00:44:38 GMT", + "Date" : "Mon, 08 May 2023 23:14:42 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null @@ -25,21 +25,21 @@ "Method" : "PATCH", "Uri" : "https://REDACTED.communication.azure.com/routing/queues/JAVA_LIVE_TESTS-CreateWorker-Queue?api-version=2022-07-18-preview", "Headers" : { - "x-ms-client-request-id" : "35ece680-e83c-4d8b-b1ea-b42223248713", - "Content-Type" : "application/merge-patch+json" + "content-type" : "application/merge-patch+json", + "x-ms-client-request-id" : "e032545e-f494-496a-8b3c-8523d209e082" }, "Response" : { "Transfer-Encoding" : "chunked", "X-Cache" : "CONFIG_NOCACHE", "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", - "trace-id" : "03f086ba-f22f-de86-2d04-109a99dd9d77", - "ETag" : "\"1700a838-0000-0700-0000-64432ced0000\"", - "Last-Modified" : "Sat, 22 Apr 2023 00:40:13 GMT", + "trace-id" : "4f34a3b4-4dd9-522f-4ce2-a51ed0dd6477", + "ETag" : "\"af00f920-0000-0700-0000-645982630000\"", + "Last-Modified" : "Mon, 08 May 2023 23:14:43 GMT", "retry-after" : "0", - "X-Azure-Ref" : "09y1DZAAAAACZawYEP0JXQIbNV/wnCNT9WVZSMzExMDAwMTE1MDIzADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "X-Azure-Ref" : "0Y4JZZAAAAAAamZraTL9BSp7scDz9QCaTWVZSMzExMDAwMTE1MDQ1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", "StatusCode" : "200", "Body" : "{\"id\":\"JAVA_LIVE_TESTS-CreateWorker-Queue\",\"name\":\"JAVA_LIVE_TESTS-CreateWorker-Queue-Name\",\"distributionPolicyId\":\"JAVA_LIVE_TESTS-CreateWorker-DistributionPolicy\",\"labels\":{\"Label_1\":\"Value_1\",\"Id\":\"JAVA_LIVE_TESTS-CreateWorker-Queue\"}}", - "Date" : "Sat, 22 Apr 2023 00:44:38 GMT", + "Date" : "Mon, 08 May 2023 23:14:42 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null @@ -47,21 +47,21 @@ "Method" : "PATCH", "Uri" : "https://REDACTED.communication.azure.com/routing/workers/JAVA_LIVE_TESTS-CreateWorker-Worker?api-version=2022-07-18-preview", "Headers" : { - "x-ms-client-request-id" : "5dda493a-77f8-4226-9a32-8a2fa4c52c41", - "Content-Type" : "application/merge-patch+json" + "content-type" : "application/merge-patch+json", + "x-ms-client-request-id" : "3fd88a5d-b8c5-469a-89e3-a98dc804cce0" }, "Response" : { "Transfer-Encoding" : "chunked", "X-Cache" : "CONFIG_NOCACHE", "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", - "trace-id" : "3deb22db-98f5-4332-3324-d1d5b2795666", - "ETag" : "\"00000000-0000-0000-be17-3dc1ca42db08\"", - "Last-Modified" : "Sat, 22 Apr 2023 00:44:39 GMT", + "trace-id" : "8742087b-d5ca-9537-ae92-22ffdf602a95", + "ETag" : "\"00000000-0000-0000-997c-12021a50db08\"", + "Last-Modified" : "Mon, 08 May 2023 23:14:43 GMT", "retry-after" : "0", - "X-Azure-Ref" : "09y1DZAAAAADwn+Wvl7mTQIvzZaO2yiQ5WVZSMzExMDAwMTE1MDIzADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "X-Azure-Ref" : "0Y4JZZAAAAAAXJ1JL+KYISYNt9PHfVBLrWVZSMzExMDAwMTE1MDQ1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", "StatusCode" : "200", "Body" : "{\"id\":\"JAVA_LIVE_TESTS-CreateWorker-Worker\",\"state\":\"inactive\",\"queueAssignments\":{\"JAVA_LIVE_TESTS-CreateWorker-Queue\":{}},\"totalCapacity\":10,\"labels\":{\"Label\":\"Value\",\"Id\":\"JAVA_LIVE_TESTS-CreateWorker-Worker\"},\"tags\":{\"Tag\":\"Value\"},\"channelConfigurations\":{\"channel1\":{\"capacityCostPerJob\":1}},\"offers\":[],\"assignedJobs\":[],\"loadRatio\":0,\"availableForOffers\":false}", - "Date" : "Sat, 22 Apr 2023 00:44:39 GMT", + "Date" : "Mon, 08 May 2023 23:14:43 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null @@ -69,48 +69,54 @@ "Method" : "DELETE", "Uri" : "https://REDACTED.communication.azure.com/routing/workers/JAVA_LIVE_TESTS-CreateWorker-Worker?api-version=2022-07-18-preview", "Headers" : { - "x-ms-client-request-id" : "8e7e49bd-0874-4725-b879-490df192e0b9" + "x-ms-client-request-id" : "7f54ac00-1b15-4ed3-ab6b-28996c4ddfec" }, "Response" : { "X-Cache" : "CONFIG_NOCACHE", "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", - "trace-id" : "7e6ff9c3-b759-cb58-7c58-9353dc83338a", + "trace-id" : "656586e3-9fd7-b30b-66d7-e7d43061b418", "retry-after" : "0", - "X-Azure-Ref" : "09y1DZAAAAAD1qxeOQIbaRZP6QiB4MmlSWVZSMzExMDAwMTE1MDIzADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "X-Azure-Ref" : "0ZIJZZAAAAAAL4gd60CBEQIhXxdeCoauNWVZSMzExMDAwMTE1MDQ1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "Content-Length" : "0", "StatusCode" : "204", - "Date" : "Sat, 22 Apr 2023 00:44:39 GMT" + "Body" : "", + "Date" : "Mon, 08 May 2023 23:14:43 GMT" }, "Exception" : null }, { "Method" : "DELETE", "Uri" : "https://REDACTED.communication.azure.com/routing/queues/JAVA_LIVE_TESTS-CreateWorker-Queue?api-version=2022-07-18-preview", "Headers" : { - "x-ms-client-request-id" : "e524ce0c-40ce-4cd3-8f6d-78956e227281" + "x-ms-client-request-id" : "151f1083-8144-4825-96e0-8bf01ff22f6a" }, "Response" : { "X-Cache" : "CONFIG_NOCACHE", "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", - "trace-id" : "4a4e3c35-3cd0-df46-e408-83d13c51ba48", + "trace-id" : "8452eddd-0f17-556c-7483-c86a37b0aefd", "retry-after" : "0", - "X-Azure-Ref" : "0+C1DZAAAAAA5SqUZeCimQJXt3/BGY34OWVZSMzExMDAwMTE1MDIzADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "X-Azure-Ref" : "0ZIJZZAAAAADxHxIaEO+lR7e3AnDDsg2gWVZSMzExMDAwMTE1MDQ1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "Content-Length" : "0", "StatusCode" : "204", - "Date" : "Sat, 22 Apr 2023 00:44:40 GMT" + "Body" : "", + "Date" : "Mon, 08 May 2023 23:14:44 GMT" }, "Exception" : null }, { "Method" : "DELETE", "Uri" : "https://REDACTED.communication.azure.com/routing/distributionPolicies/JAVA_LIVE_TESTS-CreateWorker-DistributionPolicy?api-version=2022-07-18-preview", "Headers" : { - "x-ms-client-request-id" : "37e39977-231b-45f6-8e5b-718accde4033" + "x-ms-client-request-id" : "e463bb4a-2576-4f12-980d-b257d91393fa" }, "Response" : { "X-Cache" : "CONFIG_NOCACHE", "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", - "trace-id" : "800637d4-8208-5a53-3e39-ebbc85cd0a85", + "trace-id" : "a979d420-14dc-ae45-2344-f16716a0806b", "retry-after" : "0", - "X-Azure-Ref" : "0+S1DZAAAAACxUe3CKti+Qor9OcEw0L57WVZSMzExMDAwMTE1MDIzADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "X-Azure-Ref" : "0ZYJZZAAAAAA0MoxYyFToQYsnmlGuuo+qWVZSMzExMDAwMTE1MDQ1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "Content-Length" : "0", "StatusCode" : "204", - "Date" : "Sat, 22 Apr 2023 00:44:40 GMT" + "Body" : "", + "Date" : "Mon, 08 May 2023 23:14:44 GMT" }, "Exception" : null } ],