HDDS-275. Add message output for succeeded -deleteVolume CLI. Contributed by Nilotpal Nandi.
This commit is contained in:
parent
6837121a43
commit
c7ae55675e
|
@ -249,6 +249,8 @@ public class TestOzoneShell {
|
|||
String[] args = new String[] {"-deleteVolume", url + "/" + volumeName,
|
||||
"-root"};
|
||||
assertEquals(0, ToolRunner.run(shell, args));
|
||||
String output = out.toString();
|
||||
assertTrue(output.contains("Volume " + volumeName + " is deleted"));
|
||||
|
||||
// verify if volume has been deleted
|
||||
try {
|
||||
|
|
|
@ -67,5 +67,6 @@ public class DeleteVolumeHandler extends Handler {
|
|||
}
|
||||
|
||||
client.getObjectStore().deleteVolume(volumeName);
|
||||
System.out.printf("Volume %s is deleted%n", volumeName);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue