GeorgeJahad commented on code in PR #4182:
URL: https://github.com/apache/ozone/pull/4182#discussion_r1120934940
##########
hadoop-ozone/recon/src/test/java/org/apache/hadoop/ozone/recon/api/TestContainerEndpoint.java:
##########
@@ -280,6 +340,34 @@ public void testGetKeysForContainer() {
assertEquals(3, data.getTotalCount());
}
+ @Test
+ public void testGetFileTableKeysForContainer() throws IOException {
+ // test to check if the ContainerEndpoint also reads the File table
+
+ // Set up test data for FSO keys
+ setUpMultiBlockKey();
+ // Reprocess the container key mapper to ensure the latest mapping is used
+ reprocessContainerKeyMapper();
+ Response response = containerEndpoint.getKeysForContainer(20L, -1, "");
Review Comment:
please create a static final for the CONTAINER_ID
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]