Esempio n. 1
0
 @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());
 }
Esempio n. 2
0
 @Test
 public void clearNotAttachedVolumes() throws IOException {
   Assert.assertTrue(VolumeAPI.clearNotAttachedVolumes());
 }