jianghuazhu commented on code in PR #6012:
URL: https://github.com/apache/ozone/pull/6012#discussion_r1841655132
##########
hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/om/request/key/TestOMKeyRequest.java:
##########
@@ -322,4 +324,21 @@ protected SnapshotInfo createSnapshot(String snapshotName)
throws Exception {
return snapshotInfo;
}
+ @Test
+ public void testValidateKeyArgs() {
+ OMKeyRequest.ValidateKeyArgs validateKeyArgs1 = new
OMKeyRequest.ValidateKeyArgs.Builder()
+
.setKeyName("tmpKey").setSnapshotReservedWord("tmpSnapshotReservedWord").build();
+
assertTrue("tmpSnapshotReservedWord".equals(validateKeyArgs1.getSnapshotReservedWord()));
Review Comment:
Thanks @hemantk-12 for the comment and review.
I have updated it.
--
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]