@Test public void listVolumes() throws Exception { List<Volume> list = VolumeAPI.listVolumes(null, null, "DATADISK", null, null); System.out.println(list.size()); List<Volume> deattached = VolumeAPI.listVolumesNotAttached(null, null, "DATADISK", null); System.out.println(deattached.size()); }
@Test public void clearNotAttachedVolumes() throws IOException { Assert.assertTrue(VolumeAPI.clearNotAttachedVolumes()); }