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 void testDeleteVolume() throws Exception {
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 {

View File

@ -67,5 +67,6 @@ protected void execute(CommandLine cmd)
}
client.getObjectStore().deleteVolume(volumeName);
System.out.printf("Volume %s is deleted%n", volumeName);
}
}