From 2e7c959e90c90de620056e10760c622617ca78fd Mon Sep 17 00:00:00 2001 From: SreejaMangarapu Date: Wed, 17 Jul 2024 14:03:24 +0530 Subject: [PATCH] CIRC-2099 added circulation setting module permission --- descriptors/ModuleDescriptor-template.json | 3 ++- src/test/java/api/printEvents/PrintEventsTests.java | 10 ++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/descriptors/ModuleDescriptor-template.json b/descriptors/ModuleDescriptor-template.json index 3f260fbef6..4223f70edf 100644 --- a/descriptors/ModuleDescriptor-template.json +++ b/descriptors/ModuleDescriptor-template.json @@ -748,7 +748,8 @@ "circulation.print-events-entry.item.post" ], "modulePermissions": [ - "print-events-storage.print-events-entry.item.post" + "print-events-storage.print-events-entry.item.post", + "circulation-storage.circulation-settings.collection.get" ] } ] diff --git a/src/test/java/api/printEvents/PrintEventsTests.java b/src/test/java/api/printEvents/PrintEventsTests.java index 691b972266..5ba3e6b859 100644 --- a/src/test/java/api/printEvents/PrintEventsTests.java +++ b/src/test/java/api/printEvents/PrintEventsTests.java @@ -9,7 +9,6 @@ import java.util.List; import java.util.UUID; -import java.util.stream.Collectors; import java.util.stream.IntStream; import static api.support.http.InterfaceUrls.printEventsUrl; @@ -74,9 +73,9 @@ void postPrintEventsWithInvalidRequestId() { .withName("Enable print event log") .withValue(new JsonObject().put("Enable Print Event", true))); JsonObject printRequest = getPrintEvent(); - List RequestIds = createOneHundredRequests(); - RequestIds.add(UUID.randomUUID()); - printRequest.put("requestIds", RequestIds); + List requestIds = createOneHundredRequests(); + requestIds.add(UUID.randomUUID()); + printRequest.put("requestIds", requestIds); Response response = restAssuredClient.post(printRequest, printEventsUrl("/print-events-entry"), "post-print-event"); assertThat(response, hasStatus(HTTP_UNPROCESSABLE_ENTITY)); } @@ -124,7 +123,6 @@ private List createOneHundredRequests() { .forItem(itemsFixture.basedUponSmallAngryPlanet()) .by(usersFixture.charlotte()) .fulfillToHoldShelf() - .withPickupServicePointId(pickupServicePointId)).getId()) - .collect(Collectors.toList()); + .withPickupServicePointId(pickupServicePointId)).getId()).toList(); } }