bharatviswa504 commented on a change in pull request #634: HDDS-939. Add S3 access check to Ozone manager. Contributed by Ajay Kumar. URL: https://github.com/apache/hadoop/pull/634#discussion_r268895982
########## File path: hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/client/rpc/TestOzoneRpcClientAbstract.java ########## @@ -288,6 +292,23 @@ public void testCreateS3Bucket() Assert.assertTrue(volume.getCreationTime() >= currentTime); } + @Test + public void testCreateSecureS3Bucket() throws IOException { + long currentTime = Time.now(); + String userName = "ozone/localh...@example.com"; + String bucketName = UUID.randomUUID().toString(); + String s3VolumeName = OzoneS3Util.getVolumeName(userName); + store.createS3Bucket(s3VolumeName, bucketName); + String volumeName = store.getOzoneVolumeName(bucketName); + assertEquals(volumeName,"s3" + s3VolumeName); Review comment: Minor NIT: space after , ---------------------------------------------------------------- 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: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org