dineshchitlangia commented on a change in pull request #70: HDDS-1643. Send 
hostName also part of OMRequest.
URL: https://github.com/apache/hadoop-ozone/pull/70#discussion_r337843721
 
 

 ##########
 File path: 
hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/om/request/TestOMClientRequestWithUserInfo.java
 ##########
 @@ -108,12 +108,14 @@ public void testUserInfo() throws Exception {
 
     InetAddress remoteAddress = omBucketCreateRequest.getRemoteAddress();
     UserGroupInformation ugi = omBucketCreateRequest.createUGI();
+    String hostName = omBucketCreateRequest.getHostName();
 
 
-    // Now check we have original user info and remote address or not.
-    // Here from OMRequest user info, converted to UGI and InetAddress.
+    // Now check we have original user info, remote address and hostname or 
not.
+    // Here from OMRequest user info, converted to UGI, InetAddress and String.
     Assert.assertEquals(inetAddress.getHostAddress(),
         remoteAddress.getHostAddress());
     Assert.assertEquals(userGroupInformation.getUserName(), ugi.getUserName());
+    Assert.assertEquals(inetAddress.getHostName(), hostName);
   }
 }
 
 Review comment:
   Missing new line at EOF

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-h...@hadoop.apache.org

Reply via email to