[ https://issues.apache.org/jira/browse/YARN-7614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17601540#comment-17601540 ]
ASF GitHub Bot commented on YARN-7614: -------------------------------------- goiri commented on code in PR #4843: URL: https://github.com/apache/hadoop/pull/4843#discussion_r965350196 ########## hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router/src/test/java/org/apache/hadoop/yarn/server/router/webapp/TestFederationInterceptorREST.java: ########## @@ -1056,4 +1065,65 @@ public void testGetAppActivities() throws IOException, InterruptedException { Assert.assertEquals(appId.toString(), appActivitiesInfo.getApplicationId()); Assert.assertEquals(10, appActivitiesInfo.getAllocations().size()); } + + @Test + public void testListReservation() throws Exception { + + // Add ReservationId In stateStore + ReservationId reservationId = ReservationId.newInstance(Time.now(), 1); + SubClusterId homeSubClusterId = subClusters.get(0); + ReservationHomeSubCluster reservationHomeSubCluster = + ReservationHomeSubCluster.newInstance(reservationId, homeSubClusterId); + AddReservationHomeSubClusterRequest request = + AddReservationHomeSubClusterRequest.newInstance(reservationHomeSubCluster); + stateStore.addReservationHomeSubCluster(request); + + // Call the listReservation method + String applyReservationId = reservationId.toString(); + Response listReservationResponse = + interceptor.listReservation(MockDefaultRequestInterceptorREST.QUEUE_DEDICATED_FULL, + applyReservationId, -1, -1, false, null); Review Comment: Indentation > [RESERVATION] Support ListReservation APIs in Federation Router > --------------------------------------------------------------- > > Key: YARN-7614 > URL: https://issues.apache.org/jira/browse/YARN-7614 > Project: Hadoop YARN > Issue Type: Sub-task > Components: federation, reservation system > Reporter: Carlo Curino > Assignee: fanshilun > Priority: Major > Labels: pull-request-available > -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org