raju-balpande commented on code in PR #5616:
URL: https://github.com/apache/ozone/pull/5616#discussion_r1400363724


##########
hadoop-ozone/s3gateway/src/test/java/org/apache/hadoop/ozone/s3/endpoint/TestPermissionCheck.java:
##########
@@ -96,10 +98,10 @@ public void testListS3Buckets() throws IOException {
 
     try {
       rootEndpoint.get();
-      Assert.fail("Should fail");
+      fail("Should fail");
     } catch (Exception e) {
-      Assert.assertTrue(e instanceof OS3Exception);
-      Assert.assertTrue(((OS3Exception) e).getHttpCode() == HTTP_FORBIDDEN);
+      assertTrue(e instanceof OS3Exception);

Review Comment:
   Done.



-- 
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]

Reply via email to