Nicklee007 commented on code in PR #3802:
URL: https://github.com/apache/bookkeeper/pull/3802#discussion_r1127587327
##########
bookkeeper-server/src/test/java/org/apache/bookkeeper/server/http/TestHttpService.java:
##########
@@ -1087,4 +1087,28 @@ public void testSuspendCompaction() throws Exception {
assertEquals(responseMap7.get("isMajorGcSuspended"), "false");
assertEquals(responseMap7.get("isMinorGcSuspended"), "false");
}
+
+ @Test
+ public void testTriggerEntryLocationCompactService() throws Exception {
+ HttpEndpointService triggerEntryLocationCompactService =
bkHttpServiceProvider
+
.provideHttpEndpointService(HttpServer.ApiType.TRIGGER_ENTRY_LOCATION_COMPACT);
+
+ //1. Put, should return OK
+ HttpServiceRequest request1 = new HttpServiceRequest(null,
HttpServer.Method.PUT, null);
+ HttpServiceResponse response1 =
triggerEntryLocationCompactService.handle(request1);
+ assertEquals(HttpServer.StatusCode.OK.getValue(),
response1.getStatusCode());
+ LOG.info("Get response: {}", response1.getBody());
+
+ //2. GET, should return OK
+ HttpServiceRequest request2 = new HttpServiceRequest(null,
HttpServer.Method.GET, null);
Review Comment:
addressed
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]