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,
|
String[] args = new String[] {"-deleteVolume", url + "/" + volumeName,
|
||||||
"-root"};
|
"-root"};
|
||||||
assertEquals(0, ToolRunner.run(shell, args));
|
assertEquals(0, ToolRunner.run(shell, args));
|
||||||
|
String output = out.toString();
|
||||||
|
assertTrue(output.contains("Volume " + volumeName + " is deleted"));
|
||||||
|
|
||||||
// verify if volume has been deleted
|
// verify if volume has been deleted
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -67,5 +67,6 @@ public class DeleteVolumeHandler extends Handler {
|
||||||
}
|
}
|
||||||
|
|
||||||
client.getObjectStore().deleteVolume(volumeName);
|
client.getObjectStore().deleteVolume(volumeName);
|
||||||
|
System.out.printf("Volume %s is deleted%n", volumeName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue