chungen0126 commented on code in PR #11293:
URL: https://github.com/apache/ozone/pull/11293#discussion_r4722673049


##########
hadoop-ozone/interface-storage/src/test/java/org/apache/hadoop/ozone/om/helpers/TestOmKeyInfoCodec.java:
##########
@@ -131,6 +135,31 @@ private OmKeyInfo getKeyInfoWithOpenKeyFields(int 
chunkNum) {
         .build();
   }
 
+  @ParameterizedTest
+  @ValueSource(booleans = {false, true})
+  public void testObjectLockFields(boolean hasDate) throws IOException {

Review Comment:
   Could `testObjectLockFields` be combined into the existing tests as well? 
`testCodecsWithKeyWithoutOpenKeyFields` already runs both codecs, so setting 
`retention` and `legalHold` on originKey there and asserting them on the two 
decoded keys covers the codecs. 
   
   The `KeyInfoProtoLight` check is already in 
`TestOmKeyInfo#protobufConversion`, and the field number assertions at lines 
159-160 can go.



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