Package org.jclouds.openstack.cinder.v1.options

Examples of org.jclouds.openstack.cinder.v1.options.CreateVolumeOptions$Builder


      super.tearDown();
   }

   public void testCreateVolume() {
      CreateVolumeOptions options = CreateVolumeOptions.Builder
            .name(name)
            .description("description of test volume");
      testVolume = volumeApi.create(100, options);
     
      assertTrue(VolumePredicates.awaitAvailable(volumeApi).apply(testVolume));
View Full Code Here


                  .payload(payloadFromResourceWithContentType("/volume_create.json", MediaType.APPLICATION_JSON))
                  .build(),
            HttpResponse.builder().statusCode(200).payload(payloadFromResource("/volume_create_response.json")).build()
      ).getVolumeApiForZone("RegionOne");

      CreateVolumeOptions options = CreateVolumeOptions.Builder
            .name("jclouds-test-volume")
            .description("description of test volume");
      Volume volume = api.create(1, options);
      assertEquals(volume, testVolumeCreate());
   }
View Full Code Here

                  .payload(payloadFromResourceWithContentType("/volume_create.json", MediaType.APPLICATION_JSON))
               .build(),
            HttpResponse.builder().statusCode(404).payload(payloadFromResource("/volume_create_response.json")).build()
      ).getVolumeApiForZone("RegionOne");

      CreateVolumeOptions options = CreateVolumeOptions.Builder
            .name("jclouds-test-volume")
            .description("description of test volume");
      api.create(1, options);
   }
View Full Code Here

      super.tearDown();
   }

   public void testCreateVolume() {
      CreateVolumeOptions options = CreateVolumeOptions.Builder
            .name(name)
            .description("description of test volume");
      testVolume = volumeApi.create(100, options);

      assertTrue(VolumePredicates.awaitAvailable(volumeApi).apply(testVolume));
View Full Code Here

                  .payload(payloadFromResourceWithContentType("/volume_create.json", MediaType.APPLICATION_JSON))
                  .build(),
            HttpResponse.builder().statusCode(200).payload(payloadFromResource("/volume_create_response.json")).build()
      ).getVolumeApi("RegionOne");

      CreateVolumeOptions options = CreateVolumeOptions.Builder
            .name("jclouds-test-volume")
            .description("description of test volume");
      Volume volume = api.create(1, options);
      assertEquals(volume, testVolumeCreate());
   }
View Full Code Here

                  .payload(payloadFromResourceWithContentType("/volume_create.json", MediaType.APPLICATION_JSON))
               .build(),
            HttpResponse.builder().statusCode(404).payload(payloadFromResource("/volume_create_response.json")).build()
      ).getVolumeApi("RegionOne");

      CreateVolumeOptions options = CreateVolumeOptions.Builder
            .name("jclouds-test-volume")
            .description("description of test volume");
      api.create(1, options);
   }
View Full Code Here

      super.tearDown();
   }

   public void testCreateVolume() {
      if (volumeApi.isPresent()) {
         CreateVolumeOptions options = CreateVolumeOptions.Builder
               .name("jclouds-test-volume")
               .description("description of test volume")
               .availabilityZone(zone);

         testVolume = volumeApi.get().create(1, options);
View Full Code Here

      super.tearDown();
   }

   public void testCreateVolume() {
      if (volumeApi.isPresent()) {
         CreateVolumeOptions options = CreateVolumeOptions.Builder
               .name("jclouds-test-volume")
               .description("description of test volume")
               .availabilityZone(zone);

         testVolume = volumeApi.get().create(1, options);
View Full Code Here

      super.tearDown();
   }

   public void testCreateVolume() {
      if (volumeApi.isPresent()) {
         CreateVolumeOptions options = CreateVolumeOptions.Builder
               .name("jclouds-test-volume")
               .description("description of test volume")
               .availabilityZone(zone);

         testVolume = volumeApi.get().create(1, options);
View Full Code Here

      super.tearDown();
   }

   public void testCreateVolume() {
      if (volumeApi.isPresent()) {
         CreateVolumeOptions options = CreateVolumeOptions.Builder
               .name("jclouds-test-volume")
               .description("description of test volume")
               .availabilityZone(region);

         testVolume = volumeApi.get().create(1, options);
View Full Code Here

TOP

Related Classes of org.jclouds.openstack.cinder.v1.options.CreateVolumeOptions$Builder

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.