neils-dev commented on PR #3371:
URL: https://github.com/apache/ozone/pull/3371#issuecomment-1124520669

   A unit test can be added to `TestKeyValueContainer` 
(_hadoop-hdds/container-service/src/test/java/org/apache/hadoop/ozone/container/keyvalue/TestKeyValueContainer.java_).
  This test, `TestKeyValueContainer#testKeyValueDataProtoBufMsg`, can exercise 
the protobuf and all attributes set: 
   ie. 
   ```
   populate(numberOfKeysToWrite);
   ContainerDataProto proto = containerData.getProtoBufMessage();
   assertEquals(proto.getState(), keyValueContainerData.getState());
   ...
   assertEquals(proto.getBlockCount(), numberOfKeysToWrite);
   
   ```


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