From f8869d208050290eb757202135fa585a5bf47a03 Mon Sep 17 00:00:00 2001 From: Charandeep Parisineti Date: Wed, 22 Mar 2023 11:41:17 -0700 Subject: [PATCH 1/8] Add unassign job and update tests --- .../jobrouter/RouterAsyncClient.java | 58 +++ .../communication/jobrouter/RouterClient.java | 32 +- .../implementation/convertors/JobAdapter.java | 1 + .../convertors/WorkerAdapter.java | 4 +- .../models/options/UnassignJobOptions.java | 42 ++ .../ClassificationPolicyLiveTests.java | 8 +- .../ExceptionPolicyLiveTests.java | 3 - .../JobQueueLiveTests.java | 16 +- .../JobRouterTestBase.java | 63 +++ .../RouterJobLiveTests.java | 114 +++++ .../RouterWorkerLiveTests.java | 8 +- .../RouterJobLiveTests.unassignJob[1].json | 467 ++++++++++++++++++ ...RouterWorkerLiveTests.createWorker[1].json | 119 +++-- 13 files changed, 856 insertions(+), 79 deletions(-) create mode 100644 sdk/communication/azure-communication-jobrouter/src/main/java/com/azure/communication/jobrouter/models/options/UnassignJobOptions.java create mode 100644 sdk/communication/azure-communication-jobrouter/src/test/java/com.azure.communication.jobrouter/RouterJobLiveTests.java create mode 100644 sdk/communication/azure-communication-jobrouter/src/test/resources/session-records/RouterJobLiveTests.unassignJob[1].json 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 86711a0ecb41..9b7d056ddc15 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..b17942537809 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,34 @@ 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. + * @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 +519,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..3b13b2c8971a --- /dev/null +++ b/sdk/communication/azure-communication-jobrouter/src/main/java/com/azure/communication/jobrouter/models/options/UnassignJobOptions.java @@ -0,0 +1,42 @@ +package com.azure.communication.jobrouter.models.options; + +import java.time.OffsetDateTime; + +public final class UnassignJobOptions { + /** + * id of job to close. + */ + private final String jobId; + + /** + * id of assignment associated with the job. + */ + private final String assignmentId; + + /** + * If set to true, the service will not re-match the job to a worker. + */ + private Boolean isWorkerRematchPending; + + public UnassignJobOptions(String jobId, String assignmentId) { + this.jobId = jobId; + this.assignmentId = assignmentId; + } + + public void setSetToPending(Boolean isWorkerRematchPending) { + this.isWorkerRematchPending = isWorkerRematchPending; + } + + + 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/ClassificationPolicyLiveTests.java b/sdk/communication/azure-communication-jobrouter/src/test/java/com.azure.communication.jobrouter/ClassificationPolicyLiveTests.java index 46191ce9770a..b48368c5186a 100644 --- a/sdk/communication/azure-communication-jobrouter/src/test/java/com.azure.communication.jobrouter/ClassificationPolicyLiveTests.java +++ b/sdk/communication/azure-communication-jobrouter/src/test/java/com.azure.communication.jobrouter/ClassificationPolicyLiveTests.java @@ -40,9 +40,11 @@ public void createClassificationPolicy() { // Setup String distributionPolicyId = String.format("%s-DistributionPolicy", JAVA_LIVE_TESTS); DistributionPolicy distributionPolicy = createDistributionPolicy(routerAdminClient, distributionPolicyId); + distributionPoliciesToDelete.add(distributionPolicyId); String queueId = String.format("%s-Queue", JAVA_LIVE_TESTS); JobQueue jobQueue = createQueue(routerAdminClient, queueId, distributionPolicy.getId()); + queuesToDelete.add(queueId); String classificationPolicyId = String.format("%s-ClassificationPolicy", JAVA_LIVE_TESTS); String classificationPolicyName = String.format("%s-Name", classificationPolicyId); @@ -92,13 +94,9 @@ public void createClassificationPolicy() { // Action ClassificationPolicy result = routerAdminClient.createClassificationPolicy(createClassificationPolicyOptions); + classificationPoliciesToDelete.add(classificationPolicyId); // Verify assertEquals(classificationPolicyId, result.getId()); - - // Cleanup - routerAdminClient.deleteClassificationPolicy(classificationPolicyId); - routerAdminClient.deleteQueue(queueId); - routerAdminClient.deleteDistributionPolicy(distributionPolicyId); } } diff --git a/sdk/communication/azure-communication-jobrouter/src/test/java/com.azure.communication.jobrouter/ExceptionPolicyLiveTests.java b/sdk/communication/azure-communication-jobrouter/src/test/java/com.azure.communication.jobrouter/ExceptionPolicyLiveTests.java index 4c23bdcd6ad6..7db6b40fe5dd 100644 --- a/sdk/communication/azure-communication-jobrouter/src/test/java/com.azure.communication.jobrouter/ExceptionPolicyLiveTests.java +++ b/sdk/communication/azure-communication-jobrouter/src/test/java/com.azure.communication.jobrouter/ExceptionPolicyLiveTests.java @@ -65,8 +65,5 @@ public void createExceptionPolicy() { // Verify assertEquals(exceptionPolicyId, result.getId()); - - // Cleanup - routerAdminClient.deleteExceptionPolicy(exceptionPolicyId); } } diff --git a/sdk/communication/azure-communication-jobrouter/src/test/java/com.azure.communication.jobrouter/JobQueueLiveTests.java b/sdk/communication/azure-communication-jobrouter/src/test/java/com.azure.communication.jobrouter/JobQueueLiveTests.java index b7f2107f5187..28ea57da13af 100644 --- a/sdk/communication/azure-communication-jobrouter/src/test/java/com.azure.communication.jobrouter/JobQueueLiveTests.java +++ b/sdk/communication/azure-communication-jobrouter/src/test/java/com.azure.communication.jobrouter/JobQueueLiveTests.java @@ -15,10 +15,6 @@ import static org.junit.jupiter.api.Assertions.assertEquals; public class JobQueueLiveTests extends JobRouterTestBase { - private RouterClient routerClient; - - private RouterAdministrationClient routerAdminClient; - @Override protected void beforeTest() { routerClient = clientSetup(httpPipeline -> new RouterClientBuilder() @@ -37,18 +33,16 @@ public void createQueue() { // Setup String distributionPolicyId = String.format("%s-CreateQueue-DistributionPolicy", JAVA_LIVE_TESTS); DistributionPolicy distributionPolicy = createDistributionPolicy(routerAdminClient, distributionPolicyId); + distributionPoliciesToDelete.add(distributionPolicyId); String queueId = String.format("%s-CreateQueue-Queue", JAVA_LIVE_TESTS); // Action JobQueue jobQueue = createQueue(routerAdminClient, queueId, distributionPolicy.getId()); + queuesToDelete.add(queueId); // Verify assertEquals(queueId, jobQueue.getId()); - - // Cleanup - routerAdminClient.deleteQueue(queueId); - routerAdminClient.deleteDistributionPolicy(distributionPolicyId); } @Test @@ -56,9 +50,11 @@ public void updateQueue() { // Setup String distributionPolicyId = String.format("%s-CreateQueue-DistributionPolicy", JAVA_LIVE_TESTS); DistributionPolicy distributionPolicy = createDistributionPolicy(routerAdminClient, distributionPolicyId); + distributionPoliciesToDelete.add(distributionPolicyId); String queueId = String.format("%s-CreateQueue-Queue", JAVA_LIVE_TESTS); JobQueue jobQueue = createQueue(routerAdminClient, queueId, distributionPolicy.getId()); + queuesToDelete.add(queueId); Map updatedQueueLabels = new HashMap() { { @@ -71,9 +67,5 @@ public void updateQueue() { // Verify assertEquals(updatedQueueLabels.get("Label_1").getValue(), jobQueue.getLabels().get("Label_1")); - - // Cleanup - routerAdminClient.deleteQueue(queueId); - routerAdminClient.deleteDistributionPolicy(distributionPolicyId); } } diff --git a/sdk/communication/azure-communication-jobrouter/src/test/java/com.azure.communication.jobrouter/JobRouterTestBase.java b/sdk/communication/azure-communication-jobrouter/src/test/java/com.azure.communication.jobrouter/JobRouterTestBase.java index b581175e1a1f..6a87cd2da18f 100644 --- a/sdk/communication/azure-communication-jobrouter/src/test/java/com.azure.communication.jobrouter/JobRouterTestBase.java +++ b/sdk/communication/azure-communication-jobrouter/src/test/java/com.azure.communication.jobrouter/JobRouterTestBase.java @@ -15,6 +15,7 @@ import com.azure.communication.jobrouter.models.options.CreateDistributionPolicyOptions; import com.azure.communication.jobrouter.models.options.CreateJobOptions; import com.azure.communication.jobrouter.models.options.CreateQueueOptions; +import com.azure.communication.jobrouter.models.options.UpdateWorkerOptions; import com.azure.core.credential.AzureKeyCredential; import com.azure.core.http.HttpClient; import com.azure.core.http.HttpPipeline; @@ -30,6 +31,8 @@ import com.azure.core.http.policy.RetryPolicy; import com.azure.core.test.TestBase; import com.azure.core.util.Configuration; +import org.junit.jupiter.api.AfterEach; +import org.junit.jupiter.api.BeforeEach; import java.time.Duration; import java.util.ArrayList; @@ -42,6 +45,35 @@ class JobRouterTestBase extends TestBase { protected static final String JAVA_LIVE_TESTS = "JAVA_LIVE_TESTS"; + protected List jobsToDelete = new ArrayList<>(); + + protected List workersToDelete = new ArrayList<>(); + + protected List queuesToDelete = new ArrayList<>(); + + protected List distributionPoliciesToDelete = new ArrayList<>(); + + protected List exceptionPoliciesToDelete = new ArrayList<>(); + + protected List classificationPoliciesToDelete = new ArrayList<>(); + + protected RouterClient routerClient; + + protected RouterAdministrationClient routerAdminClient; + + @BeforeEach + protected void clientSetup() { + routerClient = clientSetup(httpPipeline -> new RouterClientBuilder() + .connectionString(getConnectionString()) + .pipeline(httpPipeline) + .buildClient()); + + routerAdminClient = clientSetup(httpPipeline -> new RouterAdministrationClientBuilder() + .connectionString(getConnectionString()) + .pipeline(httpPipeline) + .buildClient()); + } + protected String getConnectionString() { String connectionString = interceptorManager.isPlaybackMode() ? "endpoint=https://REDACTED.int.communication.azure.net;accessKey=secret" @@ -134,4 +166,35 @@ protected RouterJob createJob(RouterClient routerClient, String queueId) { ); return routerClient.createJob(createJobOptions); } + + @AfterEach + protected void cleanup() { + for (String jobId : jobsToDelete) { + routerClient.cancelJob(jobId, JAVA_LIVE_TESTS, JAVA_LIVE_TESTS); + routerClient.deleteJob(jobId); + } + + for (String workerId : workersToDelete) { + UpdateWorkerOptions updateWorkerOptions = new UpdateWorkerOptions(workerId) + .setAvailableForOffers(false); + routerClient.updateWorker(updateWorkerOptions); + routerClient.deleteWorker(workerId); + } + + for (String queueId : queuesToDelete) { + routerAdminClient.deleteQueue(queueId); + } + + for (String distributionPolicyId : distributionPoliciesToDelete) { + routerAdminClient.deleteDistributionPolicy(distributionPolicyId); + } + + for (String exceptionPolicyId : exceptionPoliciesToDelete) { + routerAdminClient.deleteExceptionPolicy(exceptionPolicyId); + } + + for (String classificationPolicyId: classificationPoliciesToDelete) { + routerAdminClient.deleteClassificationPolicy(classificationPolicyId); + } + } } 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..f272835f8f64 --- /dev/null +++ b/sdk/communication/azure-communication-jobrouter/src/test/java/com.azure.communication.jobrouter/RouterJobLiveTests.java @@ -0,0 +1,114 @@ +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 org.junit.jupiter.api.AfterAll; +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 { + @ParameterizedTest + @MethodSource("com.azure.core.test.TestBase#getHttpClients") + public void unassignJob() { + String testName = "UnassignJob"; + // Setup + /** + * Setup queue + */ + String distributionPolicyId = String.format("%s-%s-DistributionPolicy", JAVA_LIVE_TESTS, testName); + DistributionPolicy distributionPolicy = createDistributionPolicy(routerAdminClient, distributionPolicyId); + distributionPoliciesToDelete.add(distributionPolicyId); + + String queueId = String.format("%s-%s-Queue", JAVA_LIVE_TESTS, testName); + JobQueue jobQueue = createQueue(routerAdminClient, queueId, distributionPolicy.getId()); + queuesToDelete.add(queueId); + + /** + * 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); + workersToDelete.add(workerId); + + String jobId = String.format("%s-%s-Job", JAVA_LIVE_TESTS, testName); + CreateJobOptions createJobOptions = new CreateJobOptions(jobId, "channel1", queueId); + + RouterJob job = routerClient.createJob(createJobOptions); + jobsToDelete.add(job.getId()); + + 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()); + } +} diff --git a/sdk/communication/azure-communication-jobrouter/src/test/java/com.azure.communication.jobrouter/RouterWorkerLiveTests.java b/sdk/communication/azure-communication-jobrouter/src/test/java/com.azure.communication.jobrouter/RouterWorkerLiveTests.java index 2aae000e5315..36be72a7438c 100644 --- a/sdk/communication/azure-communication-jobrouter/src/test/java/com.azure.communication.jobrouter/RouterWorkerLiveTests.java +++ b/sdk/communication/azure-communication-jobrouter/src/test/java/com.azure.communication.jobrouter/RouterWorkerLiveTests.java @@ -45,9 +45,11 @@ public void createWorker() { */ String distributionPolicyId = String.format("%s-CreateWorker-DistributionPolicy", JAVA_LIVE_TESTS); DistributionPolicy distributionPolicy = createDistributionPolicy(routerAdminClient, distributionPolicyId); + distributionPoliciesToDelete.add(distributionPolicyId); String queueId = String.format("%s-CreateWorker-Queue", JAVA_LIVE_TESTS); JobQueue jobQueue = createQueue(routerAdminClient, queueId, distributionPolicy.getId()); + queuesToDelete.add(queueId); /** * Setup worker @@ -89,13 +91,9 @@ public void createWorker() { // Action RouterWorker result = routerClient.createWorker(createWorkerOptions); + workersToDelete.add(workerId); // Verify assertEquals(workerId, result.getId()); - - // Cleanup - routerClient.deleteWorker(workerId); - routerAdminClient.deleteQueue(queueId); - routerAdminClient.deleteDistributionPolicy(distributionPolicyId); } } 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..6b73a2a0959b --- /dev/null +++ b/sdk/communication/azure-communication-jobrouter/src/test/resources/session-records/RouterJobLiveTests.unassignJob[1].json @@ -0,0 +1,467 @@ +{ + "networkCallRecords" : [ { + "Method" : "PATCH", + "Uri" : "https://REDACTED.communication.azure.com/routing/distributionPolicies/JAVA_LIVE_TESTS-UnassignJob-DistributionPolicy?api-version=2022-07-18-preview", + "Headers" : { + "x-ms-client-request-id" : "1237a8e8-c38f-4f41-9329-40433e65fa99", + "Content-Type" : "application/merge-patch+json" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", + "trace-id" : "3b6998e2-aba7-60f4-d895-af3614f6c884", + "ETag" : "\"a2010cde-0000-0700-0000-641b4a8b0000\"", + "Last-Modified" : "Wed, 22 Mar 2023 18:35:55 GMT", + "retry-after" : "0", + "X-Azure-Ref" : "0i0obZAAAAABnTl6fF8kVSpQBh1kbl6ENWVZSMzExMDAwMTE1MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "StatusCode" : "200", + "Body" : "{\"id\":\"JAVA_LIVE_TESTS-UnassignJob-DistributionPolicy\",\"name\":\"JAVA_LIVE_TESTS-UnassignJob-DistributionPolicy-Name\",\"offerTtlSeconds\":10,\"mode\":{\"kind\":\"longest-idle\",\"minConcurrentOffers\":1,\"maxConcurrentOffers\":10,\"bypassSelectors\":false}}", + "Date" : "Wed, 22 Mar 2023 18:35:55 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.communication.azure.com/routing/queues/JAVA_LIVE_TESTS-UnassignJob-Queue?api-version=2022-07-18-preview", + "Headers" : { + "x-ms-client-request-id" : "43bd9920-28cd-41eb-88a0-faff6cde39c3", + "Content-Type" : "application/merge-patch+json" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", + "trace-id" : "6bce06e7-ffad-2854-a6ac-d974c5246428", + "ETag" : "\"d501239a-0000-0700-0000-641b4a8c0000\"", + "Last-Modified" : "Wed, 22 Mar 2023 18:35:56 GMT", + "retry-after" : "0", + "X-Azure-Ref" : "0jEobZAAAAAAuyWW+cIuxS7Zx8yOxTdMfWVZSMzExMDAwMTE1MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "StatusCode" : "200", + "Body" : "{\"id\":\"JAVA_LIVE_TESTS-UnassignJob-Queue\",\"name\":\"JAVA_LIVE_TESTS-UnassignJob-Queue-Name\",\"distributionPolicyId\":\"JAVA_LIVE_TESTS-UnassignJob-DistributionPolicy\",\"labels\":{\"Label_1\":\"Value_1\",\"Id\":\"JAVA_LIVE_TESTS-UnassignJob-Queue\"}}", + "Date" : "Wed, 22 Mar 2023 18:35:56 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.communication.azure.com/routing/workers/JAVA_LIVE_TESTS-UnassignJob-Worker?api-version=2022-07-18-preview", + "Headers" : { + "x-ms-client-request-id" : "6ef00d9a-b96b-4ab5-bdad-01afefc50fad", + "Content-Type" : "application/merge-patch+json" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", + "trace-id" : "fea9e6d7-8c6e-e1f3-27a6-d368e81c642e", + "ETag" : "\"00000001-0000-0000-3f62-8f46042bdb08\"", + "Last-Modified" : "Wed, 22 Mar 2023 18:35:56 GMT", + "retry-after" : "0", + "X-Azure-Ref" : "0jEobZAAAAABk6qgk7ZyaRba7OjS3x5R9WVZSMzExMDAwMTE1MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "StatusCode" : "200", + "Body" : "{\"id\":\"JAVA_LIVE_TESTS-UnassignJob-Worker\",\"state\":\"active\",\"queueAssignments\":{\"JAVA_LIVE_TESTS-UnassignJob-Queue\":{}},\"totalCapacity\":10,\"labels\":{\"Label\":\"Value\",\"Id\":\"JAVA_LIVE_TESTS-UnassignJob-Worker\"},\"tags\":{\"Tag\":\"Value\"},\"channelConfigurations\":{\"channel1\":{\"capacityCostPerJob\":1}},\"offers\":[],\"assignedJobs\":[],\"loadRatio\":0,\"availableForOffers\":true}", + "Date" : "Wed, 22 Mar 2023 18:35:56 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.communication.azure.com/routing/jobs/JAVA_LIVE_TESTS-UnassignJob-Job?api-version=2022-07-18-preview", + "Headers" : { + "x-ms-client-request-id" : "0100edbc-fbe7-4958-a6f5-2ab7a0174f51", + "Content-Type" : "application/merge-patch+json" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", + "trace-id" : "a742076b-5da1-c329-d8e2-660dd07e1b16", + "ETag" : "\"00000000-0000-0000-fc1a-f646042bdb08\"", + "Last-Modified" : "Wed, 22 Mar 2023 18:35:57 GMT", + "retry-after" : "0", + "X-Azure-Ref" : "0jUobZAAAAAAnTe2ecluXSKbSxURiSeXPWVZSMzExMDAwMTE1MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "StatusCode" : "200", + "Body" : "{\"id\":\"JAVA_LIVE_TESTS-UnassignJob-Job\",\"jobStatus\":\"created\",\"channelId\":\"channel1\",\"queueId\":\"JAVA_LIVE_TESTS-UnassignJob-Queue\",\"priority\":1,\"requestedWorkerSelectors\":[],\"attachedWorkerSelectors\":[],\"labels\":{},\"assignments\":{},\"tags\":{},\"notes\":{}}", + "Date" : "Wed, 22 Mar 2023 18:35:57 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/routing/workers/JAVA_LIVE_TESTS-UnassignJob-Worker?api-version=2022-07-18-preview", + "Headers" : { + "x-ms-client-request-id" : "81dac80c-cf12-4411-9c9a-eb15aa6f0af6" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", + "trace-id" : "7e8811d5-7917-038b-02b5-b98b91efb0e4", + "ETag" : "\"00000001-0000-0000-3f62-8f46042bdb08\"", + "Last-Modified" : "Wed, 22 Mar 2023 18:35:56 GMT", + "retry-after" : "0", + "X-Azure-Ref" : "0jUobZAAAAACTFrHTM9d9S4n9lZB6Ne5OWVZSMzExMDAwMTE1MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "StatusCode" : "200", + "Body" : "{\"id\":\"JAVA_LIVE_TESTS-UnassignJob-Worker\",\"state\":\"active\",\"queueAssignments\":{\"JAVA_LIVE_TESTS-UnassignJob-Queue\":{}},\"totalCapacity\":10,\"labels\":{\"Label\":\"Value\",\"Id\":\"JAVA_LIVE_TESTS-UnassignJob-Worker\"},\"tags\":{\"Tag\":\"Value\"},\"channelConfigurations\":{\"channel1\":{\"capacityCostPerJob\":1}},\"offers\":[],\"assignedJobs\":[],\"loadRatio\":0,\"availableForOffers\":true}", + "Date" : "Wed, 22 Mar 2023 18:35:57 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/routing/workers/JAVA_LIVE_TESTS-UnassignJob-Worker?api-version=2022-07-18-preview", + "Headers" : { + "x-ms-client-request-id" : "4c016386-10cb-47b7-b577-bc32d655f21f" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", + "trace-id" : "d04fc320-d0bf-47dc-4112-a1b9afe1288b", + "ETag" : "\"00000001-0000-0000-3f62-8f46042bdb08\"", + "Last-Modified" : "Wed, 22 Mar 2023 18:35:56 GMT", + "retry-after" : "0", + "X-Azure-Ref" : "0jUobZAAAAAD9aAvWVIQJQJTBUtVB1nayWVZSMzExMDAwMTE1MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "StatusCode" : "200", + "Body" : "{\"id\":\"JAVA_LIVE_TESTS-UnassignJob-Worker\",\"state\":\"active\",\"queueAssignments\":{\"JAVA_LIVE_TESTS-UnassignJob-Queue\":{}},\"totalCapacity\":10,\"labels\":{\"Label\":\"Value\",\"Id\":\"JAVA_LIVE_TESTS-UnassignJob-Worker\"},\"tags\":{\"Tag\":\"Value\"},\"channelConfigurations\":{\"channel1\":{\"capacityCostPerJob\":1}},\"offers\":[],\"assignedJobs\":[],\"loadRatio\":0,\"availableForOffers\":true}", + "Date" : "Wed, 22 Mar 2023 18:35:57 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/routing/workers/JAVA_LIVE_TESTS-UnassignJob-Worker?api-version=2022-07-18-preview", + "Headers" : { + "x-ms-client-request-id" : "2fa67340-4c32-41b4-b250-5e4d6bb25a4c" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", + "trace-id" : "0135aeea-d85a-fd4e-b8e4-c7a385400da4", + "ETag" : "\"00000001-0000-0000-3f62-8f46042bdb08\"", + "Last-Modified" : "Wed, 22 Mar 2023 18:35:56 GMT", + "retry-after" : "0", + "X-Azure-Ref" : "0jkobZAAAAAALIms89zYEQ714mON67s/iWVZSMzExMDAwMTE1MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "StatusCode" : "200", + "Body" : "{\"id\":\"JAVA_LIVE_TESTS-UnassignJob-Worker\",\"state\":\"active\",\"queueAssignments\":{\"JAVA_LIVE_TESTS-UnassignJob-Queue\":{}},\"totalCapacity\":10,\"labels\":{\"Label\":\"Value\",\"Id\":\"JAVA_LIVE_TESTS-UnassignJob-Worker\"},\"tags\":{\"Tag\":\"Value\"},\"channelConfigurations\":{\"channel1\":{\"capacityCostPerJob\":1}},\"offers\":[],\"assignedJobs\":[],\"loadRatio\":0,\"availableForOffers\":true}", + "Date" : "Wed, 22 Mar 2023 18:35:57 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/routing/workers/JAVA_LIVE_TESTS-UnassignJob-Worker?api-version=2022-07-18-preview", + "Headers" : { + "x-ms-client-request-id" : "0c41a86f-0405-4ce8-a117-e71243c95724" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", + "trace-id" : "5cb855c2-b58b-0d93-31a7-866b670e9981", + "ETag" : "\"00000001-0000-0000-3f62-8f46042bdb08\"", + "Last-Modified" : "Wed, 22 Mar 2023 18:35:56 GMT", + "retry-after" : "0", + "X-Azure-Ref" : "0jkobZAAAAACXXVxIE+wPQZLdpwOhcMhiWVZSMzExMDAwMTE1MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "StatusCode" : "200", + "Body" : "{\"id\":\"JAVA_LIVE_TESTS-UnassignJob-Worker\",\"state\":\"active\",\"queueAssignments\":{\"JAVA_LIVE_TESTS-UnassignJob-Queue\":{}},\"totalCapacity\":10,\"labels\":{\"Label\":\"Value\",\"Id\":\"JAVA_LIVE_TESTS-UnassignJob-Worker\"},\"tags\":{\"Tag\":\"Value\"},\"channelConfigurations\":{\"channel1\":{\"capacityCostPerJob\":1}},\"offers\":[],\"assignedJobs\":[],\"loadRatio\":0,\"availableForOffers\":true}", + "Date" : "Wed, 22 Mar 2023 18:35:58 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/routing/workers/JAVA_LIVE_TESTS-UnassignJob-Worker?api-version=2022-07-18-preview", + "Headers" : { + "x-ms-client-request-id" : "794c83ce-8f79-4619-ad83-56d91fb0fb6e" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", + "trace-id" : "0b50fd29-24be-955c-d39b-dea1b6e1bb85", + "ETag" : "\"00000001-0000-0000-3f62-8f46042bdb08\"", + "Last-Modified" : "Wed, 22 Mar 2023 18:35:56 GMT", + "retry-after" : "0", + "X-Azure-Ref" : "0jkobZAAAAACXWZoOmLsUS6fkIv6At2R1WVZSMzExMDAwMTE1MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "StatusCode" : "200", + "Body" : "{\"id\":\"JAVA_LIVE_TESTS-UnassignJob-Worker\",\"state\":\"active\",\"queueAssignments\":{\"JAVA_LIVE_TESTS-UnassignJob-Queue\":{}},\"totalCapacity\":10,\"labels\":{\"Label\":\"Value\",\"Id\":\"JAVA_LIVE_TESTS-UnassignJob-Worker\"},\"tags\":{\"Tag\":\"Value\"},\"channelConfigurations\":{\"channel1\":{\"capacityCostPerJob\":1}},\"offers\":[],\"assignedJobs\":[],\"loadRatio\":0,\"availableForOffers\":true}", + "Date" : "Wed, 22 Mar 2023 18:35:58 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/routing/workers/JAVA_LIVE_TESTS-UnassignJob-Worker?api-version=2022-07-18-preview", + "Headers" : { + "x-ms-client-request-id" : "7debdf20-47a6-4d0a-b75d-d0bcc06391ca" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", + "trace-id" : "dff20241-bca8-260c-b2be-10c8207a0e8c", + "ETag" : "\"00000002-0000-0000-d614-9647042bdb08\"", + "Last-Modified" : "Wed, 22 Mar 2023 18:35:58 GMT", + "retry-after" : "0", + "X-Azure-Ref" : "0jkobZAAAAAA4PZN9+AzSSItbrzcMQfmtWVZSMzExMDAwMTE1MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "StatusCode" : "200", + "Body" : "{\"id\":\"JAVA_LIVE_TESTS-UnassignJob-Worker\",\"state\":\"active\",\"queueAssignments\":{\"JAVA_LIVE_TESTS-UnassignJob-Queue\":{}},\"totalCapacity\":10,\"labels\":{\"Label\":\"Value\",\"Id\":\"JAVA_LIVE_TESTS-UnassignJob-Worker\"},\"tags\":{\"Tag\":\"Value\"},\"channelConfigurations\":{\"channel1\":{\"capacityCostPerJob\":1}},\"offers\":[],\"assignedJobs\":[],\"loadRatio\":0,\"availableForOffers\":true}", + "Date" : "Wed, 22 Mar 2023 18:35:58 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/routing/workers/JAVA_LIVE_TESTS-UnassignJob-Worker?api-version=2022-07-18-preview", + "Headers" : { + "x-ms-client-request-id" : "504bd0e7-58ab-4ebd-b21b-6e5ae3dcecc3" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", + "trace-id" : "ca06f36e-36da-c84c-0941-067e7436af63", + "ETag" : "\"00000002-0000-0000-d614-9647042bdb08\"", + "Last-Modified" : "Wed, 22 Mar 2023 18:35:58 GMT", + "retry-after" : "0", + "X-Azure-Ref" : "0jkobZAAAAACZkrNMHCUOTYIZFoQpGQ/oWVZSMzExMDAwMTE1MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "StatusCode" : "200", + "Body" : "{\"id\":\"JAVA_LIVE_TESTS-UnassignJob-Worker\",\"state\":\"active\",\"queueAssignments\":{\"JAVA_LIVE_TESTS-UnassignJob-Queue\":{}},\"totalCapacity\":10,\"labels\":{\"Label\":\"Value\",\"Id\":\"JAVA_LIVE_TESTS-UnassignJob-Worker\"},\"tags\":{\"Tag\":\"Value\"},\"channelConfigurations\":{\"channel1\":{\"capacityCostPerJob\":1}},\"offers\":[],\"assignedJobs\":[],\"loadRatio\":0,\"availableForOffers\":true}", + "Date" : "Wed, 22 Mar 2023 18:35:58 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/routing/workers/JAVA_LIVE_TESTS-UnassignJob-Worker?api-version=2022-07-18-preview", + "Headers" : { + "x-ms-client-request-id" : "581b3c28-ce59-4743-b72c-0f5024d14204" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", + "trace-id" : "828750b5-b3e2-f436-4c82-eaab42b14232", + "ETag" : "\"00000002-0000-0000-d614-9647042bdb08\"", + "Last-Modified" : "Wed, 22 Mar 2023 18:35:58 GMT", + "retry-after" : "0", + "X-Azure-Ref" : "0jkobZAAAAACpt2gmXZPhRYk7khWjbLATWVZSMzExMDAwMTE1MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "StatusCode" : "200", + "Body" : "{\"id\":\"JAVA_LIVE_TESTS-UnassignJob-Worker\",\"state\":\"active\",\"queueAssignments\":{\"JAVA_LIVE_TESTS-UnassignJob-Queue\":{}},\"totalCapacity\":10,\"labels\":{\"Label\":\"Value\",\"Id\":\"JAVA_LIVE_TESTS-UnassignJob-Worker\"},\"tags\":{\"Tag\":\"Value\"},\"channelConfigurations\":{\"channel1\":{\"capacityCostPerJob\":1}},\"offers\":[],\"assignedJobs\":[],\"loadRatio\":0,\"availableForOffers\":true}", + "Date" : "Wed, 22 Mar 2023 18:35:58 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/routing/workers/JAVA_LIVE_TESTS-UnassignJob-Worker?api-version=2022-07-18-preview", + "Headers" : { + "x-ms-client-request-id" : "e358f172-f68a-41e8-ba8d-d102c62899c6" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", + "trace-id" : "e9f739c2-b1e4-b710-81d2-9fc5964b2349", + "ETag" : "\"00000002-0000-0000-d614-9647042bdb08\"", + "Last-Modified" : "Wed, 22 Mar 2023 18:35:58 GMT", + "retry-after" : "0", + "X-Azure-Ref" : "0j0obZAAAAACV7Jgl8L4IT54phhy91bdEWVZSMzExMDAwMTE1MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "StatusCode" : "200", + "Body" : "{\"id\":\"JAVA_LIVE_TESTS-UnassignJob-Worker\",\"state\":\"active\",\"queueAssignments\":{\"JAVA_LIVE_TESTS-UnassignJob-Queue\":{}},\"totalCapacity\":10,\"labels\":{\"Label\":\"Value\",\"Id\":\"JAVA_LIVE_TESTS-UnassignJob-Worker\"},\"tags\":{\"Tag\":\"Value\"},\"channelConfigurations\":{\"channel1\":{\"capacityCostPerJob\":1}},\"offers\":[],\"assignedJobs\":[],\"loadRatio\":0,\"availableForOffers\":true}", + "Date" : "Wed, 22 Mar 2023 18:35:59 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/routing/workers/JAVA_LIVE_TESTS-UnassignJob-Worker?api-version=2022-07-18-preview", + "Headers" : { + "x-ms-client-request-id" : "6cb9d973-11f5-411a-8871-537d3a2430b5" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", + "trace-id" : "3ccbff08-e020-fb7a-c504-438d7ae6edb6", + "ETag" : "\"00000002-0000-0000-d614-9647042bdb08\"", + "Last-Modified" : "Wed, 22 Mar 2023 18:35:58 GMT", + "retry-after" : "0", + "X-Azure-Ref" : "0j0obZAAAAAC6n0zFfNCARIa6MrXwD8rCWVZSMzExMDAwMTE1MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "StatusCode" : "200", + "Body" : "{\"id\":\"JAVA_LIVE_TESTS-UnassignJob-Worker\",\"state\":\"active\",\"queueAssignments\":{\"JAVA_LIVE_TESTS-UnassignJob-Queue\":{}},\"totalCapacity\":10,\"labels\":{\"Label\":\"Value\",\"Id\":\"JAVA_LIVE_TESTS-UnassignJob-Worker\"},\"tags\":{\"Tag\":\"Value\"},\"channelConfigurations\":{\"channel1\":{\"capacityCostPerJob\":1}},\"offers\":[],\"assignedJobs\":[],\"loadRatio\":0,\"availableForOffers\":true}", + "Date" : "Wed, 22 Mar 2023 18:35:59 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.communication.azure.com/routing/workers/JAVA_LIVE_TESTS-UnassignJob-Worker?api-version=2022-07-18-preview", + "Headers" : { + "x-ms-client-request-id" : "4e0fba9b-295a-4ddc-b09c-cf3e9c10565e" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", + "trace-id" : "1eb62f4d-df89-728e-c55a-28aaf7d40876", + "ETag" : "\"00000003-0000-0000-9965-2448042bdb08\"", + "Last-Modified" : "Wed, 22 Mar 2023 18:35:59 GMT", + "retry-after" : "0", + "X-Azure-Ref" : "0j0obZAAAAAD/8p7lOSXEQ6dN4QP7KoLPWVZSMzExMDAwMTE1MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "StatusCode" : "200", + "Body" : "{\"id\":\"JAVA_LIVE_TESTS-UnassignJob-Worker\",\"state\":\"active\",\"queueAssignments\":{\"JAVA_LIVE_TESTS-UnassignJob-Queue\":{}},\"totalCapacity\":10,\"labels\":{\"Label\":\"Value\",\"Id\":\"JAVA_LIVE_TESTS-UnassignJob-Worker\"},\"tags\":{\"Tag\":\"Value\"},\"channelConfigurations\":{\"channel1\":{\"capacityCostPerJob\":1}},\"offers\":[{\"id\":\"5354383e-10e7-4cc8-82ca-c4c074c25ee5\",\"jobId\":\"JAVA_LIVE_TESTS-UnassignJob-Job\",\"capacityCost\":1,\"offerTimeUtc\":\"2023-03-22T18:35:59.3265536+00:00\",\"expiryTimeUtc\":\"2023-03-22T18:36:09.3265539+00:00\"}],\"assignedJobs\":[],\"loadRatio\":0.1,\"availableForOffers\":true}", + "Date" : "Wed, 22 Mar 2023 18:35:59 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "POST", + "Uri" : "https://REDACTED.communication.azure.com/routing/workers/JAVA_LIVE_TESTS-UnassignJob-Worker/offers/5354383e-10e7-4cc8-82ca-c4c074c25ee5:accept?api-version=2022-07-18-preview", + "Headers" : { + "x-ms-client-request-id" : "1568b400-c351-4946-b496-baa836ba4d5b" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", + "trace-id" : "2fc740b6-e493-fd16-1e92-2f872d5e4d1c", + "retry-after" : "0", + "X-Azure-Ref" : "0j0obZAAAAAA3XQqD0fsaSZqkFT3Vos73WVZSMzExMDAwMTE1MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "StatusCode" : "200", + "Body" : "{\"assignmentId\":\"e7285230-04ef-409e-80b2-5521239ceea4\",\"jobId\":\"JAVA_LIVE_TESTS-UnassignJob-Job\",\"workerId\":\"JAVA_LIVE_TESTS-UnassignJob-Worker\"}", + "Date" : "Wed, 22 Mar 2023 18:36:00 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "POST", + "Uri" : "https://REDACTED.communication.azure.com/routing/jobs/JAVA_LIVE_TESTS-UnassignJob-Job/assignments/e7285230-04ef-409e-80b2-5521239ceea4:unassign?api-version=2022-07-18-preview", + "Headers" : { + "x-ms-client-request-id" : "ad151204-550b-4856-8c51-42f61209460e" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", + "trace-id" : "5b382aa6-0925-ecfc-5e72-ee3cff9c42be", + "retry-after" : "0", + "X-Azure-Ref" : "0kEobZAAAAAC1JGf7S5UST63cRzyKJTCwWVZSMzExMDAwMTE1MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "StatusCode" : "200", + "Body" : "{\"jobId\":\"JAVA_LIVE_TESTS-UnassignJob-Job\",\"unassignmentCount\":1}", + "Date" : "Wed, 22 Mar 2023 18:36:01 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "POST", + "Uri" : "https://REDACTED.communication.azure.com/routing/jobs/JAVA_LIVE_TESTS-UnassignJob-Job:cancel?api-version=2022-07-18-preview", + "Headers" : { + "x-ms-client-request-id" : "8e46f39f-bc7d-41ae-b2e2-f567c30dc566", + "Content-Type" : "application/json" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", + "trace-id" : "4a934747-774d-995b-4d1f-af919b323e13", + "retry-after" : "0", + "X-Azure-Ref" : "0kUobZAAAAADApFiS7EjlRJewePkq5hJ7WVZSMzExMDAwMTE1MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "StatusCode" : "200", + "Body" : "{}", + "Date" : "Wed, 22 Mar 2023 18:36:01 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.communication.azure.com/routing/jobs/JAVA_LIVE_TESTS-UnassignJob-Job?api-version=2022-07-18-preview", + "Headers" : { + "x-ms-client-request-id" : "99bc2ad6-7e43-474b-90c6-fa6418797e41" + }, + "Response" : { + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", + "trace-id" : "e3759e6c-6fe5-752e-1b96-dd6f4b4b84c4", + "retry-after" : "0", + "X-Azure-Ref" : "0kUobZAAAAADPdu3TnLduQKsM3ffc+qinWVZSMzExMDAwMTE1MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "StatusCode" : "204", + "Date" : "Wed, 22 Mar 2023 18:36:02 GMT" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.communication.azure.com/routing/workers/JAVA_LIVE_TESTS-UnassignJob-Worker?api-version=2022-07-18-preview", + "Headers" : { + "x-ms-client-request-id" : "f7bc039f-b866-4ae6-b7d0-4b9eeaa14ec0", + "Content-Type" : "application/merge-patch+json" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", + "trace-id" : "2526fda2-c7a7-62cd-e273-2e0b2bda2a95", + "ETag" : "\"00000008-0000-0000-1a64-494a042bdb08\"", + "Last-Modified" : "Wed, 22 Mar 2023 18:36:02 GMT", + "retry-after" : "0", + "X-Azure-Ref" : "0kkobZAAAAAAws3vpDj1fR4996SOEkI4LWVZSMzExMDAwMTE1MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "StatusCode" : "200", + "Body" : "{\"id\":\"JAVA_LIVE_TESTS-UnassignJob-Worker\",\"state\":\"inactive\",\"queueAssignments\":{\"JAVA_LIVE_TESTS-UnassignJob-Queue\":{}},\"totalCapacity\":10,\"labels\":{\"Label\":\"Value\",\"Id\":\"JAVA_LIVE_TESTS-UnassignJob-Worker\"},\"tags\":{\"Tag\":\"Value\"},\"channelConfigurations\":{\"channel1\":{\"capacityCostPerJob\":1}},\"offers\":[],\"assignedJobs\":[],\"loadRatio\":0,\"availableForOffers\":false}", + "Date" : "Wed, 22 Mar 2023 18:36:03 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.communication.azure.com/routing/workers/JAVA_LIVE_TESTS-UnassignJob-Worker?api-version=2022-07-18-preview", + "Headers" : { + "x-ms-client-request-id" : "55e594da-5db0-42b5-9db4-e17a4f9d14fa" + }, + "Response" : { + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", + "trace-id" : "c17b01e1-7547-1d3d-ce33-74c17057c7a8", + "retry-after" : "0", + "X-Azure-Ref" : "0k0obZAAAAADgsqGwkY/9Qb8150IPo0dOWVZSMzExMDAwMTE1MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "StatusCode" : "204", + "Date" : "Wed, 22 Mar 2023 18:36:04 GMT" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.communication.azure.com/routing/queues/JAVA_LIVE_TESTS-UnassignJob-Queue?api-version=2022-07-18-preview", + "Headers" : { + "x-ms-client-request-id" : "884853f9-ddbf-4012-ab54-c520bea632db" + }, + "Response" : { + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", + "trace-id" : "057e8ae9-838a-cc2e-8439-a2b338973d61", + "retry-after" : "0", + "X-Azure-Ref" : "0lEobZAAAAAD/69dblGI9T422NGa/1dj3WVZSMzExMDAwMTE1MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "StatusCode" : "204", + "Date" : "Wed, 22 Mar 2023 18:36:04 GMT" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.communication.azure.com/routing/distributionPolicies/JAVA_LIVE_TESTS-UnassignJob-DistributionPolicy?api-version=2022-07-18-preview", + "Headers" : { + "x-ms-client-request-id" : "c36569be-10fb-41c4-9f2e-05b87efb2357" + }, + "Response" : { + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", + "trace-id" : "128a5b36-2383-5899-724c-1fcddf3d39d5", + "retry-after" : "0", + "X-Azure-Ref" : "0lUobZAAAAACcwkBUcZJERaGvEVBQVHBjWVZSMzExMDAwMTE1MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "StatusCode" : "204", + "Date" : "Wed, 22 Mar 2023 18:36:05 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 c933ce351cc8..947644e9c933 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 @@ -1,128 +1,145 @@ { "networkCallRecords" : [ { "Method" : "PATCH", - "Uri" : "https://REDACTED.int.communication.azure.net/routing/distributionPolicies/JAVA_LIVE_TESTS-CreateWorker-DistributionPolicy?api-version=2022-07-18-preview", + "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" : "f0b498de-281d-43af-b002-42e170035788", + "x-ms-client-request-id" : "905341c6-23b4-4416-b524-68c893dc1aaa", "Content-Type" : "application/merge-patch+json" }, "Response" : { "Transfer-Encoding" : "chunked", - "x-azure-ref" : "20220809T220824Z-gu5mc89ux17apbrm5n76u6e4ng00000000kg00000001bnzz", + "x-azure-ref" : "20230322T183932Z-wac1ug3feh2s56g4asddes7gks00000001qg00000000z76s", "X-Cache" : "CONFIG_NOCACHE", - "api-supported-versions" : "2021-04-07-preview1, 2021-10-20-preview2, 2022-07-18-preview", + "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", "Connection" : "keep-alive", - "Last-Modified" : "Tue, 09 Aug 2022 22:08:25 GMT", + "Last-Modified" : "Wed, 22 Mar 2023 18:39:33 GMT", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Tue, 09 Aug 2022 22:08:25 GMT", - "ETag" : "\"2d012c9b-0000-0700-0000-62f2dad90000\"", - "trace-id" : "055573e4268a91278a82ea663658b234", + "Date" : "Wed, 22 Mar 2023 18:39:33 GMT", + "trace-id" : "030ebc73-c008-12eb-3e77-02fb73712e03", + "ETag" : "\"a20183f9-0000-0700-0000-641b4b650000\"", "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}}", - "Content-Type" : "application/json; charset=utf-8", - "Request-Context" : "appId=" + "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null }, { "Method" : "PATCH", - "Uri" : "https://REDACTED.int.communication.azure.net/routing/queues/JAVA_LIVE_TESTS-CreateWorker-Queue?api-version=2022-07-18-preview", + "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" : "c7d24e0a-3f6e-48ec-97b9-8023da6a4d6f", + "x-ms-client-request-id" : "1f6fa19e-e121-4feb-b395-be7c692aebf3", "Content-Type" : "application/merge-patch+json" }, "Response" : { "Transfer-Encoding" : "chunked", - "x-azure-ref" : "20220809T220825Z-gu5mc89ux17apbrm5n76u6e4ng00000000kg00000001bpfn", + "x-azure-ref" : "20230322T183933Z-wac1ug3feh2s56g4asddes7gks00000001qg00000000z7b0", "X-Cache" : "CONFIG_NOCACHE", - "api-supported-versions" : "2021-04-07-preview1, 2021-10-20-preview2, 2022-07-18-preview", + "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", "Connection" : "keep-alive", - "Last-Modified" : "Tue, 09 Aug 2022 22:08:27 GMT", + "Last-Modified" : "Wed, 22 Mar 2023 18:39:34 GMT", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Tue, 09 Aug 2022 22:08:27 GMT", - "ETag" : "\"1500aef5-0000-0700-0000-62f2dadb0000\"", - "trace-id" : "3d5b3bb67aef37b8b8debdc56cba630f", + "Date" : "Wed, 22 Mar 2023 18:39:34 GMT", + "trace-id" : "3de708c7-39e5-3806-0419-2442340c19af", + "ETag" : "\"d501d1b6-0000-0700-0000-641b4b660000\"", "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\"}}", - "Content-Type" : "application/json; charset=utf-8", - "Request-Context" : "appId=" + "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null }, { "Method" : "PATCH", - "Uri" : "https://REDACTED.int.communication.azure.net/routing/workers/JAVA_LIVE_TESTS-CreateWorker-Worker?api-version=2022-07-18-preview", + "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" : "5bc56a32-0622-4d71-a843-c0477e74ab5e", + "x-ms-client-request-id" : "c049cbfc-2e5c-4184-bae1-d7132316af36", "Content-Type" : "application/merge-patch+json" }, "Response" : { "Transfer-Encoding" : "chunked", - "x-azure-ref" : "20220809T220827Z-gu5mc89ux17apbrm5n76u6e4ng00000000kg00000001bq2m", + "x-azure-ref" : "20230322T183934Z-wac1ug3feh2s56g4asddes7gks00000001qg00000000z7dt", "X-Cache" : "CONFIG_NOCACHE", - "api-supported-versions" : "2021-04-07-preview1, 2021-10-20-preview2, 2022-07-18-preview", + "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", "Connection" : "keep-alive", - "Last-Modified" : "Tue, 09 Aug 2022 22:08:28 GMT", + "Last-Modified" : "Wed, 22 Mar 2023 18:39:34 GMT", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Tue, 09 Aug 2022 22:08:30 GMT", - "ETag" : "\"00000000-0000-0000-c450-86b0537ada08\"", - "trace-id" : "72c62366cb4b78f0ae0c8b8feeb5a701", + "Date" : "Wed, 22 Mar 2023 18:39:34 GMT", + "trace-id" : "f110da27-6676-36b4-ac0d-dd41289492ae", + "ETag" : "\"00000000-0000-0000-f1f3-74c8042bdb08\"", "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}", - "Content-Type" : "application/json; charset=utf-8", - "Request-Context" : "appId=" + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "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" : "86e5a58a-e821-47ac-970c-bd9b06dcf554", + "Content-Type" : "application/merge-patch+json" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-azure-ref" : "20230322T183934Z-wac1ug3feh2s56g4asddes7gks00000001qg00000000z7gq", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", + "Connection" : "keep-alive", + "Last-Modified" : "Wed, 22 Mar 2023 18:39:34 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Wed, 22 Mar 2023 18:39:35 GMT", + "trace-id" : "04688d44-a94e-7f26-b83f-9e71b1fbefb3", + "ETag" : "\"00000000-0000-0000-f1f3-74c8042bdb08\"", + "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}", + "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null }, { "Method" : "DELETE", - "Uri" : "https://REDACTED.int.communication.azure.net/routing/workers/JAVA_LIVE_TESTS-CreateWorker-Worker?api-version=2022-07-18-preview", + "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" : "6abab4b2-fcd7-4835-82e8-9d018977e6f0" + "x-ms-client-request-id" : "c88ebc27-66ff-4a21-ad4f-6a162f81e33b" }, "Response" : { - "x-azure-ref" : "20220809T220830Z-gu5mc89ux17apbrm5n76u6e4ng00000000kg00000001bqrh", + "x-azure-ref" : "20230322T183935Z-wac1ug3feh2s56g4asddes7gks00000001qg00000000z7tu", "X-Cache" : "CONFIG_NOCACHE", - "trace-id" : "5fdf73a8763b68f8c1cbef75968a0c13", - "api-supported-versions" : "2021-04-07-preview1, 2021-10-20-preview2, 2022-07-18-preview", + "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", + "trace-id" : "d6b76774-7da8-043b-9b48-629d64ca0fcd", "Connection" : "keep-alive", "retry-after" : "0", "StatusCode" : "204", - "Date" : "Tue, 09 Aug 2022 22:08:31 GMT", - "Request-Context" : "appId=" + "Date" : "Wed, 22 Mar 2023 18:39:36 GMT" }, "Exception" : null }, { "Method" : "DELETE", - "Uri" : "https://REDACTED.int.communication.azure.net/routing/queues/JAVA_LIVE_TESTS-CreateWorker-Queue?api-version=2022-07-18-preview", + "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" : "d0cf03f5-aa97-4097-a74e-0bd04276f295" + "x-ms-client-request-id" : "a81cf926-09e2-4f07-ba88-7036c7755a4a" }, "Response" : { - "x-azure-ref" : "20220809T220831Z-gu5mc89ux17apbrm5n76u6e4ng00000000kg00000001br31", + "x-azure-ref" : "20230322T183936Z-wac1ug3feh2s56g4asddes7gks00000001qg00000000z85a", "X-Cache" : "CONFIG_NOCACHE", - "trace-id" : "b79f2979812229d3df7c97d63b655843", - "api-supported-versions" : "2021-04-07-preview1, 2021-10-20-preview2, 2022-07-18-preview", + "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", + "trace-id" : "db1b40bd-e592-c9a6-15ea-7ff8be445f82", "Connection" : "keep-alive", "retry-after" : "0", "StatusCode" : "204", - "Date" : "Tue, 09 Aug 2022 22:08:31 GMT", - "Request-Context" : "appId=" + "Date" : "Wed, 22 Mar 2023 18:39:37 GMT" }, "Exception" : null }, { "Method" : "DELETE", - "Uri" : "https://REDACTED.int.communication.azure.net/routing/distributionPolicies/JAVA_LIVE_TESTS-CreateWorker-DistributionPolicy?api-version=2022-07-18-preview", + "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" : "45074cd3-df09-4a25-b4e7-a53b25adb4ec" + "x-ms-client-request-id" : "1ba91565-5290-4e99-8f3c-00589acf9dbe" }, "Response" : { - "x-azure-ref" : "20220809T220831Z-gu5mc89ux17apbrm5n76u6e4ng00000000kg00000001br89", + "x-azure-ref" : "20230322T183937Z-wac1ug3feh2s56g4asddes7gks00000001qg00000000z88u", "X-Cache" : "CONFIG_NOCACHE", - "trace-id" : "a149433d33c890926a801ecaa27e36f3", - "api-supported-versions" : "2021-04-07-preview1, 2021-10-20-preview2, 2022-07-18-preview", + "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", + "trace-id" : "642867fc-0323-4e66-7e97-7add82116355", "Connection" : "keep-alive", "retry-after" : "0", "StatusCode" : "204", - "Date" : "Tue, 09 Aug 2022 22:08:32 GMT", - "Request-Context" : "appId=" + "Date" : "Wed, 22 Mar 2023 18:39:37 GMT" }, "Exception" : null } ], From 56ac5e027e73996ee2d7feab0771173412292de9 Mon Sep 17 00:00:00 2001 From: Charandeep Parisineti Date: Wed, 22 Mar 2023 13:33:53 -0700 Subject: [PATCH 2/8] Add javadocs --- .../models/options/UnassignJobOptions.java | 22 +++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) 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 index 3b13b2c8971a..7e5be2afd348 100644 --- 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 @@ -1,6 +1,7 @@ -package com.azure.communication.jobrouter.models.options; +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. -import java.time.OffsetDateTime; +package com.azure.communication.jobrouter.models.options; public final class UnassignJobOptions { /** @@ -18,16 +19,29 @@ public final class UnassignJobOptions { */ private Boolean isWorkerRematchPending; + /** + * 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; } - public void setSetToPending(Boolean isWorkerRematchPending) { + /** + * Sets isWorkerRematchPending to true or false. + * If set to true, the job is NOT queued for re-matching. + * @param isWorkerRematchPending + */ + public void setIsWorkerRematchPending(Boolean isWorkerRematchPending) { this.isWorkerRematchPending = isWorkerRematchPending; } - + /** + * Get jobId. + * @return jobId + */ public String getJobId() { return this.jobId; } From 9f162e7b2df0c6063191373f12aa421ce49b1ff1 Mon Sep 17 00:00:00 2001 From: Charandeep Parisineti Date: Wed, 22 Mar 2023 14:03:41 -0700 Subject: [PATCH 3/8] Fix formatting errors --- .../jobrouter/models/options/UnassignJobOptions.java | 3 +++ .../RouterJobLiveTests.java | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) 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 index 7e5be2afd348..298cf4228d22 100644 --- 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 @@ -3,6 +3,9 @@ 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. 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 index f272835f8f64..cb2239e2d256 100644 --- 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 @@ -13,7 +13,6 @@ 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 org.junit.jupiter.api.AfterAll; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.MethodSource; @@ -93,7 +92,9 @@ public void unassignJob() { while (true) { worker = routerClient.getWorker(workerId); jobOffers = worker.getOffers(); - if (jobOffers.size() > 0 || System.currentTimeMillis() - startTimeMillis > 10000) break; + if (jobOffers.size() > 0 || System.currentTimeMillis() - startTimeMillis > 10000) { + break; + } } assertTrue(jobOffers.size() == 1); From fc22149d3f2eb11103698516e5bcb6760762bfa5 Mon Sep 17 00:00:00 2001 From: Charandeep Parisineti Date: Wed, 22 Mar 2023 14:17:04 -0700 Subject: [PATCH 4/8] More formatting fixes --- .../java/com/azure/communication/jobrouter/RouterClient.java | 1 + .../jobrouter/models/options/UnassignJobOptions.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 b17942537809..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 @@ -306,6 +306,7 @@ public Response closeJobWithResponse(CloseJobOptions closeJobOptions, Cont * 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. 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 index 298cf4228d22..dd4a13015121 100644 --- 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 @@ -35,7 +35,7 @@ public UnassignJobOptions(String jobId, String assignmentId) { /** * Sets isWorkerRematchPending to true or false. * If set to true, the job is NOT queued for re-matching. - * @param isWorkerRematchPending + * @param isWorkerRematchPending true, if job is requested to not be queued; false, otherwise. */ public void setIsWorkerRematchPending(Boolean isWorkerRematchPending) { this.isWorkerRematchPending = isWorkerRematchPending; From 236a7dd5084930bfcf5503614c4b9de3411701fb Mon Sep 17 00:00:00 2001 From: Charandeep Parisineti Date: Wed, 22 Mar 2023 14:56:13 -0700 Subject: [PATCH 5/8] Fix liniting errors --- .../jobrouter/models/options/UnassignJobOptions.java | 8 ++++++++ .../RouterJobLiveTests.java | 3 +++ 2 files changed, 11 insertions(+) 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 index dd4a13015121..3687d588e69c 100644 --- 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 @@ -56,4 +56,12 @@ public String getJobId() { public String getAssignmentId() { return this.assignmentId; } + + /** + * Get isWorkerRematchPending. + * @return isWorkerRematchPending + */ + public Boolean getIsWorkerRematchPending() { + return this.isWorkerRematchPending; + } } 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 index cb2239e2d256..ffacff62ec08 100644 --- 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 @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + package com.azure.communication.jobrouter; import com.azure.communication.jobrouter.models.AcceptJobOfferResult; From 0fdb95e3c9b83cf8e1d093b5c8f4631b711a2ab2 Mon Sep 17 00:00:00 2001 From: Charandeep Parisineti Date: Mon, 8 May 2023 15:30:36 -0700 Subject: [PATCH 6/8] Remove field --- .../models/options/UnassignJobOptions.java | 22 ------------------- 1 file changed, 22 deletions(-) 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 index 3687d588e69c..b71b7c1962d8 100644 --- 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 @@ -17,11 +17,6 @@ public final class UnassignJobOptions { */ private final String assignmentId; - /** - * If set to true, the service will not re-match the job to a worker. - */ - private Boolean isWorkerRematchPending; - /** * Constructor for UnassignJobOptions. * @param jobId jobId to unassign. @@ -32,15 +27,6 @@ public UnassignJobOptions(String jobId, String assignmentId) { this.assignmentId = assignmentId; } - /** - * Sets isWorkerRematchPending to true or false. - * If set to true, the job is NOT queued for re-matching. - * @param isWorkerRematchPending true, if job is requested to not be queued; false, otherwise. - */ - public void setIsWorkerRematchPending(Boolean isWorkerRematchPending) { - this.isWorkerRematchPending = isWorkerRematchPending; - } - /** * Get jobId. * @return jobId @@ -56,12 +42,4 @@ public String getJobId() { public String getAssignmentId() { return this.assignmentId; } - - /** - * Get isWorkerRematchPending. - * @return isWorkerRematchPending - */ - public Boolean getIsWorkerRematchPending() { - return this.isWorkerRematchPending; - } } From 60099a29083872541a569fa412cdb4e1af772798 Mon Sep 17 00:00:00 2001 From: Charandeep Parisineti Date: Mon, 8 May 2023 16:23:22 -0700 Subject: [PATCH 7/8] Commit session records --- .../RouterJobLiveTests.java | 10 +- ...veTests.createClassificationPolicy[1].json | 72 ++-- ...nPolicyBestWorkerAzureFunctionRule[1].json | 24 +- ...PolicyBestWorkerDefaultScoringRule[1].json | 24 +- ...reateDistributionPolicyLongestIdle[1].json | 24 +- ...createDistributionPolicyRoundRobin[1].json | 24 +- ...icyLiveTests.createExceptionPolicy[1].json | 24 +- .../JobQueueLiveTests.createQueue[1].json | 48 +-- .../JobQueueLiveTests.updateQueue[1].json | 62 +-- .../RouterJobLiveTests.unassignJob[1].json | 354 +++++++++--------- ...RouterWorkerLiveTests.createWorker[1].json | 124 ++++++ 11 files changed, 466 insertions(+), 324 deletions(-) create mode 100644 sdk/communication/azure-communication-jobrouter/src/test/resources/session-records/RouterWorkerLiveTests.createWorker[1].json 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 index 3e0e5472ace3..86d26c5c3b3f 100644 --- 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 @@ -13,6 +13,7 @@ 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.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; @@ -39,7 +40,7 @@ public void unassignJob(HttpClient httpClient) { // Setup routerClient = getRouterClient(httpClient); routerAdminClient = getRouterAdministrationClient(httpClient); - String testName = "UnassignJob"; + String testName = "unassign-job-2"; /** * Setup queue */ @@ -117,5 +118,12 @@ public void unassignJob(HttpClient httpClient) { // 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 index 6b73a2a0959b..b030246ed0f1 100644 --- 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 @@ -1,465 +1,451 @@ { "networkCallRecords" : [ { "Method" : "PATCH", - "Uri" : "https://REDACTED.communication.azure.com/routing/distributionPolicies/JAVA_LIVE_TESTS-UnassignJob-DistributionPolicy?api-version=2022-07-18-preview", + "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" : "1237a8e8-c38f-4f41-9329-40433e65fa99", - "Content-Type" : "application/merge-patch+json" + "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" : "3b6998e2-aba7-60f4-d895-af3614f6c884", - "ETag" : "\"a2010cde-0000-0700-0000-641b4a8b0000\"", - "Last-Modified" : "Wed, 22 Mar 2023 18:35:55 GMT", + "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" : "0i0obZAAAAABnTl6fF8kVSpQBh1kbl6ENWVZSMzExMDAwMTE1MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "X-Azure-Ref" : "04oNZZAAAAAA4Wcipn3cBRLxgizPlhmWxWVZSMzExMDAwMTE1MDM1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", "StatusCode" : "200", - "Body" : "{\"id\":\"JAVA_LIVE_TESTS-UnassignJob-DistributionPolicy\",\"name\":\"JAVA_LIVE_TESTS-UnassignJob-DistributionPolicy-Name\",\"offerTtlSeconds\":10,\"mode\":{\"kind\":\"longest-idle\",\"minConcurrentOffers\":1,\"maxConcurrentOffers\":10,\"bypassSelectors\":false}}", - "Date" : "Wed, 22 Mar 2023 18:35:55 GMT", + "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-UnassignJob-Queue?api-version=2022-07-18-preview", + "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" : "43bd9920-28cd-41eb-88a0-faff6cde39c3", - "Content-Type" : "application/merge-patch+json" + "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" : "6bce06e7-ffad-2854-a6ac-d974c5246428", - "ETag" : "\"d501239a-0000-0700-0000-641b4a8c0000\"", - "Last-Modified" : "Wed, 22 Mar 2023 18:35:56 GMT", + "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" : "0jEobZAAAAAAuyWW+cIuxS7Zx8yOxTdMfWVZSMzExMDAwMTE1MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "X-Azure-Ref" : "044NZZAAAAACOL7yr816uSYpKAKfTkDsQWVZSMzExMDAwMTE1MDM1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", "StatusCode" : "200", - "Body" : "{\"id\":\"JAVA_LIVE_TESTS-UnassignJob-Queue\",\"name\":\"JAVA_LIVE_TESTS-UnassignJob-Queue-Name\",\"distributionPolicyId\":\"JAVA_LIVE_TESTS-UnassignJob-DistributionPolicy\",\"labels\":{\"Label_1\":\"Value_1\",\"Id\":\"JAVA_LIVE_TESTS-UnassignJob-Queue\"}}", - "Date" : "Wed, 22 Mar 2023 18:35:56 GMT", + "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-UnassignJob-Worker?api-version=2022-07-18-preview", + "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" : "6ef00d9a-b96b-4ab5-bdad-01afefc50fad", - "Content-Type" : "application/merge-patch+json" + "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" : "fea9e6d7-8c6e-e1f3-27a6-d368e81c642e", - "ETag" : "\"00000001-0000-0000-3f62-8f46042bdb08\"", - "Last-Modified" : "Wed, 22 Mar 2023 18:35:56 GMT", + "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" : "0jEobZAAAAABk6qgk7ZyaRba7OjS3x5R9WVZSMzExMDAwMTE1MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "X-Azure-Ref" : "044NZZAAAAABm2gz+pr/zSrXajdMcCiA/WVZSMzExMDAwMTE1MDM1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", "StatusCode" : "200", - "Body" : "{\"id\":\"JAVA_LIVE_TESTS-UnassignJob-Worker\",\"state\":\"active\",\"queueAssignments\":{\"JAVA_LIVE_TESTS-UnassignJob-Queue\":{}},\"totalCapacity\":10,\"labels\":{\"Label\":\"Value\",\"Id\":\"JAVA_LIVE_TESTS-UnassignJob-Worker\"},\"tags\":{\"Tag\":\"Value\"},\"channelConfigurations\":{\"channel1\":{\"capacityCostPerJob\":1}},\"offers\":[],\"assignedJobs\":[],\"loadRatio\":0,\"availableForOffers\":true}", - "Date" : "Wed, 22 Mar 2023 18:35:56 GMT", + "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-UnassignJob-Job?api-version=2022-07-18-preview", + "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" : "0100edbc-fbe7-4958-a6f5-2ab7a0174f51", - "Content-Type" : "application/merge-patch+json" + "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" : "a742076b-5da1-c329-d8e2-660dd07e1b16", - "ETag" : "\"00000000-0000-0000-fc1a-f646042bdb08\"", - "Last-Modified" : "Wed, 22 Mar 2023 18:35:57 GMT", + "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" : "0jUobZAAAAAAnTe2ecluXSKbSxURiSeXPWVZSMzExMDAwMTE1MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "X-Azure-Ref" : "05INZZAAAAABgT+oDRQrcSrAnzFubJVWBWVZSMzExMDAwMTE1MDM1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", "StatusCode" : "200", - "Body" : "{\"id\":\"JAVA_LIVE_TESTS-UnassignJob-Job\",\"jobStatus\":\"created\",\"channelId\":\"channel1\",\"queueId\":\"JAVA_LIVE_TESTS-UnassignJob-Queue\",\"priority\":1,\"requestedWorkerSelectors\":[],\"attachedWorkerSelectors\":[],\"labels\":{},\"assignments\":{},\"tags\":{},\"notes\":{}}", - "Date" : "Wed, 22 Mar 2023 18:35:57 GMT", + "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-UnassignJob-Worker?api-version=2022-07-18-preview", + "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" : "81dac80c-cf12-4411-9c9a-eb15aa6f0af6" + "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" : "7e8811d5-7917-038b-02b5-b98b91efb0e4", - "ETag" : "\"00000001-0000-0000-3f62-8f46042bdb08\"", - "Last-Modified" : "Wed, 22 Mar 2023 18:35:56 GMT", + "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" : "0jUobZAAAAACTFrHTM9d9S4n9lZB6Ne5OWVZSMzExMDAwMTE1MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "X-Azure-Ref" : "05INZZAAAAABF/5UwYR/zTpar9MFBlubiWVZSMzExMDAwMTE1MDM1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", "StatusCode" : "200", - "Body" : "{\"id\":\"JAVA_LIVE_TESTS-UnassignJob-Worker\",\"state\":\"active\",\"queueAssignments\":{\"JAVA_LIVE_TESTS-UnassignJob-Queue\":{}},\"totalCapacity\":10,\"labels\":{\"Label\":\"Value\",\"Id\":\"JAVA_LIVE_TESTS-UnassignJob-Worker\"},\"tags\":{\"Tag\":\"Value\"},\"channelConfigurations\":{\"channel1\":{\"capacityCostPerJob\":1}},\"offers\":[],\"assignedJobs\":[],\"loadRatio\":0,\"availableForOffers\":true}", - "Date" : "Wed, 22 Mar 2023 18:35:57 GMT", + "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-UnassignJob-Worker?api-version=2022-07-18-preview", + "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" : "4c016386-10cb-47b7-b577-bc32d655f21f" + "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" : "d04fc320-d0bf-47dc-4112-a1b9afe1288b", - "ETag" : "\"00000001-0000-0000-3f62-8f46042bdb08\"", - "Last-Modified" : "Wed, 22 Mar 2023 18:35:56 GMT", + "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" : "0jUobZAAAAAD9aAvWVIQJQJTBUtVB1nayWVZSMzExMDAwMTE1MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "X-Azure-Ref" : "05YNZZAAAAAAGxNluazwvTpBvJm5QU6uhWVZSMzExMDAwMTE1MDM1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", "StatusCode" : "200", - "Body" : "{\"id\":\"JAVA_LIVE_TESTS-UnassignJob-Worker\",\"state\":\"active\",\"queueAssignments\":{\"JAVA_LIVE_TESTS-UnassignJob-Queue\":{}},\"totalCapacity\":10,\"labels\":{\"Label\":\"Value\",\"Id\":\"JAVA_LIVE_TESTS-UnassignJob-Worker\"},\"tags\":{\"Tag\":\"Value\"},\"channelConfigurations\":{\"channel1\":{\"capacityCostPerJob\":1}},\"offers\":[],\"assignedJobs\":[],\"loadRatio\":0,\"availableForOffers\":true}", - "Date" : "Wed, 22 Mar 2023 18:35:57 GMT", + "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-UnassignJob-Worker?api-version=2022-07-18-preview", + "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" : "2fa67340-4c32-41b4-b250-5e4d6bb25a4c" + "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" : "0135aeea-d85a-fd4e-b8e4-c7a385400da4", - "ETag" : "\"00000001-0000-0000-3f62-8f46042bdb08\"", - "Last-Modified" : "Wed, 22 Mar 2023 18:35:56 GMT", + "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" : "0jkobZAAAAAALIms89zYEQ714mON67s/iWVZSMzExMDAwMTE1MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "X-Azure-Ref" : "05YNZZAAAAADdFxMRyAiSSqIhnP+YMwdJWVZSMzExMDAwMTE1MDM1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", "StatusCode" : "200", - "Body" : "{\"id\":\"JAVA_LIVE_TESTS-UnassignJob-Worker\",\"state\":\"active\",\"queueAssignments\":{\"JAVA_LIVE_TESTS-UnassignJob-Queue\":{}},\"totalCapacity\":10,\"labels\":{\"Label\":\"Value\",\"Id\":\"JAVA_LIVE_TESTS-UnassignJob-Worker\"},\"tags\":{\"Tag\":\"Value\"},\"channelConfigurations\":{\"channel1\":{\"capacityCostPerJob\":1}},\"offers\":[],\"assignedJobs\":[],\"loadRatio\":0,\"availableForOffers\":true}", - "Date" : "Wed, 22 Mar 2023 18:35:57 GMT", + "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-UnassignJob-Worker?api-version=2022-07-18-preview", + "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" : "0c41a86f-0405-4ce8-a117-e71243c95724" + "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" : "5cb855c2-b58b-0d93-31a7-866b670e9981", - "ETag" : "\"00000001-0000-0000-3f62-8f46042bdb08\"", - "Last-Modified" : "Wed, 22 Mar 2023 18:35:56 GMT", + "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" : "0jkobZAAAAACXXVxIE+wPQZLdpwOhcMhiWVZSMzExMDAwMTE1MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "X-Azure-Ref" : "05YNZZAAAAADOj6fd/OlJT5a5neikHYbZWVZSMzExMDAwMTE1MDM1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", "StatusCode" : "200", - "Body" : "{\"id\":\"JAVA_LIVE_TESTS-UnassignJob-Worker\",\"state\":\"active\",\"queueAssignments\":{\"JAVA_LIVE_TESTS-UnassignJob-Queue\":{}},\"totalCapacity\":10,\"labels\":{\"Label\":\"Value\",\"Id\":\"JAVA_LIVE_TESTS-UnassignJob-Worker\"},\"tags\":{\"Tag\":\"Value\"},\"channelConfigurations\":{\"channel1\":{\"capacityCostPerJob\":1}},\"offers\":[],\"assignedJobs\":[],\"loadRatio\":0,\"availableForOffers\":true}", - "Date" : "Wed, 22 Mar 2023 18:35:58 GMT", + "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-UnassignJob-Worker?api-version=2022-07-18-preview", + "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" : "794c83ce-8f79-4619-ad83-56d91fb0fb6e" + "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" : "0b50fd29-24be-955c-d39b-dea1b6e1bb85", - "ETag" : "\"00000001-0000-0000-3f62-8f46042bdb08\"", - "Last-Modified" : "Wed, 22 Mar 2023 18:35:56 GMT", + "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" : "0jkobZAAAAACXWZoOmLsUS6fkIv6At2R1WVZSMzExMDAwMTE1MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "X-Azure-Ref" : "05YNZZAAAAABdXuwB8YnwRpXUWJr/Uz9ZWVZSMzExMDAwMTE1MDM1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", "StatusCode" : "200", - "Body" : "{\"id\":\"JAVA_LIVE_TESTS-UnassignJob-Worker\",\"state\":\"active\",\"queueAssignments\":{\"JAVA_LIVE_TESTS-UnassignJob-Queue\":{}},\"totalCapacity\":10,\"labels\":{\"Label\":\"Value\",\"Id\":\"JAVA_LIVE_TESTS-UnassignJob-Worker\"},\"tags\":{\"Tag\":\"Value\"},\"channelConfigurations\":{\"channel1\":{\"capacityCostPerJob\":1}},\"offers\":[],\"assignedJobs\":[],\"loadRatio\":0,\"availableForOffers\":true}", - "Date" : "Wed, 22 Mar 2023 18:35:58 GMT", + "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-UnassignJob-Worker?api-version=2022-07-18-preview", + "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" : "7debdf20-47a6-4d0a-b75d-d0bcc06391ca" + "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" : "dff20241-bca8-260c-b2be-10c8207a0e8c", - "ETag" : "\"00000002-0000-0000-d614-9647042bdb08\"", - "Last-Modified" : "Wed, 22 Mar 2023 18:35:58 GMT", + "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" : "0jkobZAAAAAA4PZN9+AzSSItbrzcMQfmtWVZSMzExMDAwMTE1MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "X-Azure-Ref" : "05YNZZAAAAACtf3FF23JJTbjk9k/zFYgFWVZSMzExMDAwMTE1MDM1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", "StatusCode" : "200", - "Body" : "{\"id\":\"JAVA_LIVE_TESTS-UnassignJob-Worker\",\"state\":\"active\",\"queueAssignments\":{\"JAVA_LIVE_TESTS-UnassignJob-Queue\":{}},\"totalCapacity\":10,\"labels\":{\"Label\":\"Value\",\"Id\":\"JAVA_LIVE_TESTS-UnassignJob-Worker\"},\"tags\":{\"Tag\":\"Value\"},\"channelConfigurations\":{\"channel1\":{\"capacityCostPerJob\":1}},\"offers\":[],\"assignedJobs\":[],\"loadRatio\":0,\"availableForOffers\":true}", - "Date" : "Wed, 22 Mar 2023 18:35:58 GMT", + "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-UnassignJob-Worker?api-version=2022-07-18-preview", + "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" : "504bd0e7-58ab-4ebd-b21b-6e5ae3dcecc3" + "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" : "ca06f36e-36da-c84c-0941-067e7436af63", - "ETag" : "\"00000002-0000-0000-d614-9647042bdb08\"", - "Last-Modified" : "Wed, 22 Mar 2023 18:35:58 GMT", + "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" : "0jkobZAAAAACZkrNMHCUOTYIZFoQpGQ/oWVZSMzExMDAwMTE1MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "X-Azure-Ref" : "05YNZZAAAAACGJNP+FPH3Q6ENqGvmClC1WVZSMzExMDAwMTE1MDM1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", "StatusCode" : "200", - "Body" : "{\"id\":\"JAVA_LIVE_TESTS-UnassignJob-Worker\",\"state\":\"active\",\"queueAssignments\":{\"JAVA_LIVE_TESTS-UnassignJob-Queue\":{}},\"totalCapacity\":10,\"labels\":{\"Label\":\"Value\",\"Id\":\"JAVA_LIVE_TESTS-UnassignJob-Worker\"},\"tags\":{\"Tag\":\"Value\"},\"channelConfigurations\":{\"channel1\":{\"capacityCostPerJob\":1}},\"offers\":[],\"assignedJobs\":[],\"loadRatio\":0,\"availableForOffers\":true}", - "Date" : "Wed, 22 Mar 2023 18:35:58 GMT", + "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-UnassignJob-Worker?api-version=2022-07-18-preview", + "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" : "581b3c28-ce59-4743-b72c-0f5024d14204" + "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" : "828750b5-b3e2-f436-4c82-eaab42b14232", - "ETag" : "\"00000002-0000-0000-d614-9647042bdb08\"", - "Last-Modified" : "Wed, 22 Mar 2023 18:35:58 GMT", + "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" : "0jkobZAAAAACpt2gmXZPhRYk7khWjbLATWVZSMzExMDAwMTE1MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "X-Azure-Ref" : "05oNZZAAAAABPkZOjqzw4Qogh3B7eEo9eWVZSMzExMDAwMTE1MDM1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", "StatusCode" : "200", - "Body" : "{\"id\":\"JAVA_LIVE_TESTS-UnassignJob-Worker\",\"state\":\"active\",\"queueAssignments\":{\"JAVA_LIVE_TESTS-UnassignJob-Queue\":{}},\"totalCapacity\":10,\"labels\":{\"Label\":\"Value\",\"Id\":\"JAVA_LIVE_TESTS-UnassignJob-Worker\"},\"tags\":{\"Tag\":\"Value\"},\"channelConfigurations\":{\"channel1\":{\"capacityCostPerJob\":1}},\"offers\":[],\"assignedJobs\":[],\"loadRatio\":0,\"availableForOffers\":true}", - "Date" : "Wed, 22 Mar 2023 18:35:58 GMT", + "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-UnassignJob-Worker?api-version=2022-07-18-preview", + "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" : "e358f172-f68a-41e8-ba8d-d102c62899c6" + "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" : "e9f739c2-b1e4-b710-81d2-9fc5964b2349", - "ETag" : "\"00000002-0000-0000-d614-9647042bdb08\"", - "Last-Modified" : "Wed, 22 Mar 2023 18:35:58 GMT", + "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" : "0j0obZAAAAACV7Jgl8L4IT54phhy91bdEWVZSMzExMDAwMTE1MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "X-Azure-Ref" : "05oNZZAAAAABNjYKE7qv+R4dHEWC0c8w+WVZSMzExMDAwMTE1MDM1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", "StatusCode" : "200", - "Body" : "{\"id\":\"JAVA_LIVE_TESTS-UnassignJob-Worker\",\"state\":\"active\",\"queueAssignments\":{\"JAVA_LIVE_TESTS-UnassignJob-Queue\":{}},\"totalCapacity\":10,\"labels\":{\"Label\":\"Value\",\"Id\":\"JAVA_LIVE_TESTS-UnassignJob-Worker\"},\"tags\":{\"Tag\":\"Value\"},\"channelConfigurations\":{\"channel1\":{\"capacityCostPerJob\":1}},\"offers\":[],\"assignedJobs\":[],\"loadRatio\":0,\"availableForOffers\":true}", - "Date" : "Wed, 22 Mar 2023 18:35:59 GMT", + "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-UnassignJob-Worker?api-version=2022-07-18-preview", + "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" : "6cb9d973-11f5-411a-8871-537d3a2430b5" + "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" : "3ccbff08-e020-fb7a-c504-438d7ae6edb6", - "ETag" : "\"00000002-0000-0000-d614-9647042bdb08\"", - "Last-Modified" : "Wed, 22 Mar 2023 18:35:58 GMT", + "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" : "0j0obZAAAAAC6n0zFfNCARIa6MrXwD8rCWVZSMzExMDAwMTE1MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "X-Azure-Ref" : "05oNZZAAAAADSLO33V68VSowuVv/J+gUKWVZSMzExMDAwMTE1MDM1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", "StatusCode" : "200", - "Body" : "{\"id\":\"JAVA_LIVE_TESTS-UnassignJob-Worker\",\"state\":\"active\",\"queueAssignments\":{\"JAVA_LIVE_TESTS-UnassignJob-Queue\":{}},\"totalCapacity\":10,\"labels\":{\"Label\":\"Value\",\"Id\":\"JAVA_LIVE_TESTS-UnassignJob-Worker\"},\"tags\":{\"Tag\":\"Value\"},\"channelConfigurations\":{\"channel1\":{\"capacityCostPerJob\":1}},\"offers\":[],\"assignedJobs\":[],\"loadRatio\":0,\"availableForOffers\":true}", - "Date" : "Wed, 22 Mar 2023 18:35:59 GMT", + "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-UnassignJob-Worker?api-version=2022-07-18-preview", + "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" : "4e0fba9b-295a-4ddc-b09c-cf3e9c10565e" + "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" : "1eb62f4d-df89-728e-c55a-28aaf7d40876", - "ETag" : "\"00000003-0000-0000-9965-2448042bdb08\"", - "Last-Modified" : "Wed, 22 Mar 2023 18:35:59 GMT", + "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" : "0j0obZAAAAAD/8p7lOSXEQ6dN4QP7KoLPWVZSMzExMDAwMTE1MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "X-Azure-Ref" : "05oNZZAAAAAAWXIwgpphxQ4SwzyE4iNedWVZSMzExMDAwMTE1MDM1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", "StatusCode" : "200", - "Body" : "{\"id\":\"JAVA_LIVE_TESTS-UnassignJob-Worker\",\"state\":\"active\",\"queueAssignments\":{\"JAVA_LIVE_TESTS-UnassignJob-Queue\":{}},\"totalCapacity\":10,\"labels\":{\"Label\":\"Value\",\"Id\":\"JAVA_LIVE_TESTS-UnassignJob-Worker\"},\"tags\":{\"Tag\":\"Value\"},\"channelConfigurations\":{\"channel1\":{\"capacityCostPerJob\":1}},\"offers\":[{\"id\":\"5354383e-10e7-4cc8-82ca-c4c074c25ee5\",\"jobId\":\"JAVA_LIVE_TESTS-UnassignJob-Job\",\"capacityCost\":1,\"offerTimeUtc\":\"2023-03-22T18:35:59.3265536+00:00\",\"expiryTimeUtc\":\"2023-03-22T18:36:09.3265539+00:00\"}],\"assignedJobs\":[],\"loadRatio\":0.1,\"availableForOffers\":true}", - "Date" : "Wed, 22 Mar 2023 18:35:59 GMT", + "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-UnassignJob-Worker/offers/5354383e-10e7-4cc8-82ca-c4c074c25ee5:accept?api-version=2022-07-18-preview", + "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" : "1568b400-c351-4946-b496-baa836ba4d5b" + "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" : "2fc740b6-e493-fd16-1e92-2f872d5e4d1c", + "trace-id" : "b3f7933e-a2a2-c39a-d8c6-b60aef8e1d94", "retry-after" : "0", - "X-Azure-Ref" : "0j0obZAAAAAA3XQqD0fsaSZqkFT3Vos73WVZSMzExMDAwMTE1MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "X-Azure-Ref" : "05oNZZAAAAAB2pca0gTvYSJounK3t34PzWVZSMzExMDAwMTE1MDM1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", "StatusCode" : "200", - "Body" : "{\"assignmentId\":\"e7285230-04ef-409e-80b2-5521239ceea4\",\"jobId\":\"JAVA_LIVE_TESTS-UnassignJob-Job\",\"workerId\":\"JAVA_LIVE_TESTS-UnassignJob-Worker\"}", - "Date" : "Wed, 22 Mar 2023 18:36:00 GMT", + "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-UnassignJob-Job/assignments/e7285230-04ef-409e-80b2-5521239ceea4:unassign?api-version=2022-07-18-preview", + "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" : "ad151204-550b-4856-8c51-42f61209460e" + "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" : "5b382aa6-0925-ecfc-5e72-ee3cff9c42be", + "trace-id" : "b8e14a8b-ca81-7a63-00e7-90c2906c848c", "retry-after" : "0", - "X-Azure-Ref" : "0kEobZAAAAAC1JGf7S5UST63cRzyKJTCwWVZSMzExMDAwMTE1MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "X-Azure-Ref" : "054NZZAAAAAATwA1MaTq4Q7FIVo2rAh90WVZSMzExMDAwMTE1MDM1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", "StatusCode" : "200", - "Body" : "{\"jobId\":\"JAVA_LIVE_TESTS-UnassignJob-Job\",\"unassignmentCount\":1}", - "Date" : "Wed, 22 Mar 2023 18:36:01 GMT", + "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-UnassignJob-Job:cancel?api-version=2022-07-18-preview", + "Uri" : "https://REDACTED.communication.azure.com/routing/jobs/JAVA_LIVE_TESTS-unassign-job-2-Job:cancel?api-version=2022-07-18-preview", "Headers" : { - "x-ms-client-request-id" : "8e46f39f-bc7d-41ae-b2e2-f567c30dc566", - "Content-Type" : "application/json" + "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" : "4a934747-774d-995b-4d1f-af919b323e13", + "trace-id" : "2d249bf6-7180-8ce5-7fd8-2d9843d75517", "retry-after" : "0", - "X-Azure-Ref" : "0kUobZAAAAADApFiS7EjlRJewePkq5hJ7WVZSMzExMDAwMTE1MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "X-Azure-Ref" : "06INZZAAAAAC6j/NnG3/4RJVuedHZbmTxWVZSMzExMDAwMTE1MDM1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", "StatusCode" : "200", "Body" : "{}", - "Date" : "Wed, 22 Mar 2023 18:36:01 GMT", + "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-UnassignJob-Job?api-version=2022-07-18-preview", + "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" : "99bc2ad6-7e43-474b-90c6-fa6418797e41" + "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" : "e3759e6c-6fe5-752e-1b96-dd6f4b4b84c4", + "trace-id" : "bb90db57-6d0f-d420-9146-d61454a95a23", "retry-after" : "0", - "X-Azure-Ref" : "0kUobZAAAAADPdu3TnLduQKsM3ffc+qinWVZSMzExMDAwMTE1MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "X-Azure-Ref" : "06YNZZAAAAAAh4Un+NFl9QYYtLSa9HjbVWVZSMzExMDAwMTE1MDM1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "Content-Length" : "0", "StatusCode" : "204", - "Date" : "Wed, 22 Mar 2023 18:36:02 GMT" - }, - "Exception" : null - }, { - "Method" : "PATCH", - "Uri" : "https://REDACTED.communication.azure.com/routing/workers/JAVA_LIVE_TESTS-UnassignJob-Worker?api-version=2022-07-18-preview", - "Headers" : { - "x-ms-client-request-id" : "f7bc039f-b866-4ae6-b7d0-4b9eeaa14ec0", - "Content-Type" : "application/merge-patch+json" - }, - "Response" : { - "Transfer-Encoding" : "chunked", - "X-Cache" : "CONFIG_NOCACHE", - "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", - "trace-id" : "2526fda2-c7a7-62cd-e273-2e0b2bda2a95", - "ETag" : "\"00000008-0000-0000-1a64-494a042bdb08\"", - "Last-Modified" : "Wed, 22 Mar 2023 18:36:02 GMT", - "retry-after" : "0", - "X-Azure-Ref" : "0kkobZAAAAAAws3vpDj1fR4996SOEkI4LWVZSMzExMDAwMTE1MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", - "StatusCode" : "200", - "Body" : "{\"id\":\"JAVA_LIVE_TESTS-UnassignJob-Worker\",\"state\":\"inactive\",\"queueAssignments\":{\"JAVA_LIVE_TESTS-UnassignJob-Queue\":{}},\"totalCapacity\":10,\"labels\":{\"Label\":\"Value\",\"Id\":\"JAVA_LIVE_TESTS-UnassignJob-Worker\"},\"tags\":{\"Tag\":\"Value\"},\"channelConfigurations\":{\"channel1\":{\"capacityCostPerJob\":1}},\"offers\":[],\"assignedJobs\":[],\"loadRatio\":0,\"availableForOffers\":false}", - "Date" : "Wed, 22 Mar 2023 18:36:03 GMT", - "Content-Type" : "application/json; charset=utf-8" + "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-UnassignJob-Worker?api-version=2022-07-18-preview", + "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" : "55e594da-5db0-42b5-9db4-e17a4f9d14fa" + "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" : "c17b01e1-7547-1d3d-ce33-74c17057c7a8", + "trace-id" : "e7c9e7d1-d3c1-6134-d2df-dda93ad9b754", "retry-after" : "0", - "X-Azure-Ref" : "0k0obZAAAAADgsqGwkY/9Qb8150IPo0dOWVZSMzExMDAwMTE1MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "X-Azure-Ref" : "06YNZZAAAAAANO+Q9DgWmRLq/1noHceh6WVZSMzExMDAwMTE1MDM1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "Content-Length" : "0", "StatusCode" : "204", - "Date" : "Wed, 22 Mar 2023 18:36:04 GMT" + "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-UnassignJob-Queue?api-version=2022-07-18-preview", + "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" : "884853f9-ddbf-4012-ab54-c520bea632db" + "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" : "057e8ae9-838a-cc2e-8439-a2b338973d61", + "trace-id" : "35aa230d-95c6-2502-2434-5b1978baf762", "retry-after" : "0", - "X-Azure-Ref" : "0lEobZAAAAAD/69dblGI9T422NGa/1dj3WVZSMzExMDAwMTE1MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "X-Azure-Ref" : "06oNZZAAAAAC450mMWDtMQ5eYLUaTnZmGWVZSMzExMDAwMTE1MDM1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "Content-Length" : "0", "StatusCode" : "204", - "Date" : "Wed, 22 Mar 2023 18:36:04 GMT" + "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-UnassignJob-DistributionPolicy?api-version=2022-07-18-preview", + "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" : "c36569be-10fb-41c4-9f2e-05b87efb2357" + "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" : "128a5b36-2383-5899-724c-1fcddf3d39d5", + "trace-id" : "716e0381-dc5e-6ffb-bcce-11180a925e3e", "retry-after" : "0", - "X-Azure-Ref" : "0lUobZAAAAACcwkBUcZJERaGvEVBQVHBjWVZSMzExMDAwMTE1MDA5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "X-Azure-Ref" : "06oNZZAAAAAD1icZCx3NrSIrutnFQg4O9WVZSMzExMDAwMTE1MDM1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "Content-Length" : "0", "StatusCode" : "204", - "Date" : "Wed, 22 Mar 2023 18:36:05 GMT" + "Body" : "", + "Date" : "Mon, 08 May 2023 23:21:14 GMT" }, "Exception" : null } ], 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 new file mode 100644 index 000000000000..c52a45abcddc --- /dev/null +++ b/sdk/communication/azure-communication-jobrouter/src/test/resources/session-records/RouterWorkerLiveTests.createWorker[1].json @@ -0,0 +1,124 @@ +{ + "networkCallRecords" : [ { + "Method" : "PATCH", + "Uri" : "https://REDACTED.communication.azure.com/routing/distributionPolicies/JAVA_LIVE_TESTS-CreateWorker-DistributionPolicy?api-version=2022-07-18-preview", + "Headers" : { + "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" : "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" : "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" : "Mon, 08 May 2023 23:14:42 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.communication.azure.com/routing/queues/JAVA_LIVE_TESTS-CreateWorker-Queue?api-version=2022-07-18-preview", + "Headers" : { + "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" : "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" : "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" : "Mon, 08 May 2023 23:14:42 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.communication.azure.com/routing/workers/JAVA_LIVE_TESTS-CreateWorker-Worker?api-version=2022-07-18-preview", + "Headers" : { + "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" : "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" : "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" : "Mon, 08 May 2023 23:14:43 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "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" : "7f54ac00-1b15-4ed3-ab6b-28996c4ddfec" + }, + "Response" : { + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", + "trace-id" : "656586e3-9fd7-b30b-66d7-e7d43061b418", + "retry-after" : "0", + "X-Azure-Ref" : "0ZIJZZAAAAAAL4gd60CBEQIhXxdeCoauNWVZSMzExMDAwMTE1MDQ1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "Content-Length" : "0", + "StatusCode" : "204", + "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" : "151f1083-8144-4825-96e0-8bf01ff22f6a" + }, + "Response" : { + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", + "trace-id" : "8452eddd-0f17-556c-7483-c86a37b0aefd", + "retry-after" : "0", + "X-Azure-Ref" : "0ZIJZZAAAAADxHxIaEO+lR7e3AnDDsg2gWVZSMzExMDAwMTE1MDQ1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "Content-Length" : "0", + "StatusCode" : "204", + "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" : "e463bb4a-2576-4f12-980d-b257d91393fa" + }, + "Response" : { + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2021-04-07-preview1, 2022-07-18-preview", + "trace-id" : "a979d420-14dc-ae45-2344-f16716a0806b", + "retry-after" : "0", + "X-Azure-Ref" : "0ZYJZZAAAAAA0MoxYyFToQYsnmlGuuo+qWVZSMzExMDAwMTE1MDQ1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "Content-Length" : "0", + "StatusCode" : "204", + "Body" : "", + "Date" : "Mon, 08 May 2023 23:14:44 GMT" + }, + "Exception" : null + } ], + "variables" : [ ] +} \ No newline at end of file From 8e30c25dc772790ecf27d747a89aa688a794fecd Mon Sep 17 00:00:00 2001 From: Charandeep Parisineti Date: Mon, 8 May 2023 16:32:54 -0700 Subject: [PATCH 8/8] Remove unused import --- .../com.azure.communication.jobrouter/RouterJobLiveTests.java | 1 - 1 file changed, 1 deletion(-) 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 index 86d26c5c3b3f..7f1cdeb03d69 100644 --- 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 @@ -13,7 +13,6 @@ 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.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;