Package org.jclouds.abiquo.domain.cloud.options

Examples of org.jclouds.abiquo.domain.cloud.options.VolumeOptions


      assertNotNull(env.virtualDatacenter.getVolume(volume.getId()));
   }

   @Test(dependsOnMethods = "testCreateVolume")
   public void testFilterVolumes() {
      VolumeOptions validOptions = VolumeOptions.builder().has("hawa").build();
      VolumeOptions invalidOptions = VolumeOptions.builder().has("cacatua").build();

      Iterable<Volume> volumes = env.virtualDatacenter.listVolumes(validOptions);
      assertEquals(size(volumes), 1);

      volumes = env.virtualDatacenter.listVolumes(invalidOptions);
View Full Code Here


                  .build());

      VirtualDatacenterDto vdc = new VirtualDatacenterDto();
      vdc.addLink(new RESTLink("volumes", "http://example.com/api/cloud/virtualdatacenters/1/volumes"));

      VolumeOptions options = VolumeOptions.builder().startWith(1).build();
      PaginatedCollection<VolumeManagementDto, VolumesManagementDto> templates = api.listVolumes(vdc, options);

      assertEquals(templates.size(), 1);
      assertEquals(templates.getTotalSize().intValue(), 2);
      assertEquals(templates.get(0).getId().intValue(), 1531);
View Full Code Here

      assertNotNull(env.virtualDatacenter.getVolume(volume.getId()));
   }

   @Test(dependsOnMethods = "testCreateVolume")
   public void testFilterVolumes() {
      VolumeOptions validOptions = VolumeOptions.builder().has("hawa").build();
      VolumeOptions invalidOptions = VolumeOptions.builder().has("cacatua").build();

      Iterable<Volume> volumes = env.virtualDatacenter.listVolumes(validOptions);
      assertEquals(size(volumes), 1);

      volumes = env.virtualDatacenter.listVolumes(invalidOptions);
View Full Code Here

                  .build());

      VirtualDatacenterDto vdc = new VirtualDatacenterDto();
      vdc.addLink(new RESTLink("volumes", "http://example.com/api/cloud/virtualdatacenters/1/volumes"));

      VolumeOptions options = VolumeOptions.builder().startWith(1).build();
      PaginatedCollection<VolumeManagementDto, VolumesManagementDto> templates = api.listVolumes(vdc, options);

      assertEquals(templates.size(), 1);
      assertEquals(templates.getTotalSize().intValue(), 2);
      assertEquals(templates.get(0).getId().intValue(), 1531);
View Full Code Here

      assertNotNull(env.virtualDatacenter.getVolume(volume.getId()));
   }

   @Test(dependsOnMethods = "testCreateVolume")
   public void testFilterVolumes() {
      VolumeOptions validOptions = VolumeOptions.builder().has("hawa").build();
      VolumeOptions invalidOptions = VolumeOptions.builder().has("cacatua").build();

      List<VolumeManagementDto> volumes = env.cloudApi.listVolumes(env.virtualDatacenter.unwrap(), validOptions)
            .getCollection();

      assertEquals(volumes.size(), 1);
View Full Code Here

TOP

Related Classes of org.jclouds.abiquo.domain.cloud.options.VolumeOptions

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.