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 void testDeleteVolume() throws Exception {
|
|||||||
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 @@ protected void execute(CommandLine cmd)
|
|||||||
}
|
}
|
||||||
|
|
||||||
client.getObjectStore().deleteVolume(volumeName);
|
client.getObjectStore().deleteVolume(volumeName);
|
||||||
|
System.out.printf("Volume %s is deleted%n", volumeName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user