Skip to content

Commit

Permalink
CIRC-2099 added circulation setting module permission
Browse files Browse the repository at this point in the history
  • Loading branch information
SreejaMangarapu committed Jul 17, 2024
1 parent a11ae99 commit 2e7c959
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
3 changes: 2 additions & 1 deletion descriptors/ModuleDescriptor-template.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
}
]
Expand Down
10 changes: 4 additions & 6 deletions src/test/java/api/printEvents/PrintEventsTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -74,9 +73,9 @@ void postPrintEventsWithInvalidRequestId() {
.withName("Enable print event log")
.withValue(new JsonObject().put("Enable Print Event", true)));
JsonObject printRequest = getPrintEvent();
List<UUID> RequestIds = createOneHundredRequests();
RequestIds.add(UUID.randomUUID());
printRequest.put("requestIds", RequestIds);
List<UUID> 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));
}
Expand Down Expand Up @@ -124,7 +123,6 @@ private List<UUID> createOneHundredRequests() {
.forItem(itemsFixture.basedUponSmallAngryPlanet())
.by(usersFixture.charlotte())
.fulfillToHoldShelf()
.withPickupServicePointId(pickupServicePointId)).getId())
.collect(Collectors.toList());
.withPickupServicePointId(pickupServicePointId)).getId()).toList();
}
}

0 comments on commit 2e7c959

Please sign in to comment.