HDDS-275. Add message output for succeeded -deleteVolume CLI. Contributed by Nilotpal Nandi.

This commit is contained in:
Xiaoyu Yao 2018-07-20 13:12:07 -07:00
parent 6837121a43
commit c7ae55675e
2 changed files with 3 additions and 0 deletions

View File

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

View File

@ -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);
} }
} }