adoroszlai commented on code in PR #10550:
URL: https://github.com/apache/ozone/pull/10550#discussion_r3442854442


##########
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/TestSecureOzoneCluster.java:
##########
@@ -541,9 +540,9 @@ void 
testSecureOMDelegationTokenSecretManagerInitializationFailure() throws Exce
       conf.setTimeDuration(OMConfigKeys.DELEGATION_TOKEN_MAX_LIFETIME_KEY, 7, 
TimeUnit.DAYS);
       IllegalArgumentException exception = assertThrows(
           IllegalArgumentException.class, () -> setupOm(conf));
-      assertTrue(exception.getMessage().contains("Secret key expiry duration 
hdds.secret.key.expiry.duration "  +
+      assertThat(exception.getMessage()).contains("Secret key expiry duration 
hdds.secret.key.expiry.duration "  +
           "should be greater than value of 
(ozone.manager.delegation.token.max-lifetime + " +
-          "ozone.manager.delegation.remover.scan.interval + 
hdds.secret.key.rotate.duration"));
+          "ozone.manager.delegation.remover.scan.interval + 
hdds.secret.key.rotate.duration");
     } finally {
       if (scm != null) {
         scm.stop();

Review Comment:
   Thanks @chungen0126 for the review.  I'd defer that to HDDS-12250 because it 
would inflate the patch due to indentation change.



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