sarvekshayr commented on code in PR #8248:
URL: https://github.com/apache/ozone/pull/8248#discussion_r2074699838
##########
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/shell/TestOzoneDebugShell.java:
##########
@@ -87,6 +87,28 @@ void shutdown() {
IOUtils.closeQuietly(client);
}
+ @ParameterizedTest
+ @ValueSource(booleans = {true, false})
+ public void testReplicasVerifyCmd(boolean isEcKey) throws Exception {
+ final String volumeName = UUID.randomUUID().toString();
+ final String bucketName = UUID.randomUUID().toString();
+ final String keyName = UUID.randomUUID().toString();
+
+ writeKey(volumeName, bucketName, keyName, isEcKey);
+
+ String bucketPath = Path.SEPARATOR + volumeName + Path.SEPARATOR +
bucketName;
+ String fullKeyPath = bucketPath + Path.SEPARATOR + keyName;
+
+ String[] args = new String[] {
+ getSetConfStringFromConf(OMConfigKeys.OZONE_OM_ADDRESS_KEY),
+ "replicas", "verify", "--checksums", "--block-existence", fullKeyPath,
"--output-dir", "/"//, "--all-results"
Review Comment:
Added TODO for
[HDDS-12715](https://issues.apache.org/jira/browse/HDDS-12715) as more tests
will be added then.
--
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]