Package org.jclouds.googlecomputeengine.domain

Examples of org.jclouds.googlecomputeengine.domain.Image$Deprecated$Builder


   }


   @Test(groups = "live", dependsOnMethods = "testListImage")
   public void testGetImage() {
      Image image = api().get(this.image.getName());
      assertNotNull(image);
      assertImageEquals(image, this.image);
   }
View Full Code Here


           .description("")
           .rawDisk(Image.RawDisk.builder().source("").containerType("TAR").build());

   public void testArbitratyImageName() {
      GoogleComputeEngineImageToImage imageToImage = new GoogleComputeEngineImageToImage();
      Image image = imageBuilder.name("arbitratyname").build();
      org.jclouds.compute.domain.Image transformed = imageToImage.apply(image);
      assertEquals(transformed.getName(), image.getName());
      assertEquals(transformed.getId(), image.getName());
      assertEquals(transformed.getProviderId(), image.getId());
      assertSame(transformed.getOperatingSystem().getFamily(), OsFamily.LINUX);
   }
View Full Code Here

      assertSame(transformed.getOperatingSystem().getFamily(), OsFamily.LINUX);
   }

   public void testWellFormedImageName() {
      GoogleComputeEngineImageToImage imageToImage = new GoogleComputeEngineImageToImage();
      Image image = imageBuilder.name("ubuntu-12-04-v123123").build();
      org.jclouds.compute.domain.Image transformed = imageToImage.apply(image);
      assertEquals(transformed.getName(), image.getName());
      assertEquals(transformed.getId(), image.getName());
      assertEquals(transformed.getProviderId(), image.getId());
      assertSame(transformed.getOperatingSystem().getFamily(), OsFamily.UBUNTU);
      assertEquals(transformed.getOperatingSystem().getVersion(), "12.04");
   }
View Full Code Here

   }


   @Test(groups = "live", dependsOnMethods = "testListImage")
   public void testGetImage() {
      Image image = api().get(this.image.getName());
      assertNotNull(image);
      assertImageEquals(image, this.image);
   }
View Full Code Here

           .description("")
           .rawDisk(Image.RawDisk.builder().source("").containerType("TAR").build());

   public void testArbitratyImageName() {
      GoogleComputeEngineImageToImage imageToImage = new GoogleComputeEngineImageToImage();
      Image image = imageBuilder.name("arbitratyname").build();
      org.jclouds.compute.domain.Image transformed = imageToImage.apply(image);
      assertEquals(transformed.getName(), image.getName());
      assertEquals(transformed.getId(), image.getName());
      assertEquals(transformed.getProviderId(), image.getId());
      assertSame(transformed.getOperatingSystem().getFamily(), OsFamily.LINUX);
   }
View Full Code Here

      assertSame(transformed.getOperatingSystem().getFamily(), OsFamily.LINUX);
   }

   public void testWellFormedImageName() {
      GoogleComputeEngineImageToImage imageToImage = new GoogleComputeEngineImageToImage();
      Image image = imageBuilder.name("ubuntu-12-04-v123123").build();
      org.jclouds.compute.domain.Image transformed = imageToImage.apply(image);
      assertEquals(transformed.getName(), image.getName());
      assertEquals(transformed.getId(), image.getName());
      assertEquals(transformed.getProviderId(), image.getId());
      assertSame(transformed.getOperatingSystem().getFamily(), OsFamily.UBUNTU);
      assertEquals(transformed.getOperatingSystem().getVersion(), "12.04");
   }
View Full Code Here

   }


   @Test(groups = "live", dependsOnMethods = "testListImage")
   public void testGetImage() {
      Image image = api().get(this.image.getName());
      assertNotNull(image);
      assertImageEquals(image, this.image);
   }
View Full Code Here

           .description("")
           .rawDisk(Image.RawDisk.builder().source("").containerType("TAR").build());

   public void testArbitratyImageName() {
      GoogleComputeEngineImageToImage imageToImage = new GoogleComputeEngineImageToImage();
      Image image = imageBuilder.name("arbitratyname").build();
      org.jclouds.compute.domain.Image transformed = imageToImage.apply(image);
      assertEquals(transformed.getName(), image.getName());
      assertEquals(transformed.getId(), image.getName());
      assertEquals(transformed.getProviderId(), image.getId());
      assertSame(transformed.getOperatingSystem().getFamily(), OsFamily.LINUX);
   }
View Full Code Here

      assertSame(transformed.getOperatingSystem().getFamily(), OsFamily.LINUX);
   }

   public void testWellFormedImageName() {
      GoogleComputeEngineImageToImage imageToImage = new GoogleComputeEngineImageToImage();
      Image image = imageBuilder.name("ubuntu-12-04-v123123").build();
      org.jclouds.compute.domain.Image transformed = imageToImage.apply(image);
      assertEquals(transformed.getName(), image.getName());
      assertEquals(transformed.getId(), image.getName());
      assertEquals(transformed.getProviderId(), image.getId());
      assertSame(transformed.getOperatingSystem().getFamily(), OsFamily.UBUNTU);
      assertEquals(transformed.getOperatingSystem().getVersion(), "12.04");
   }
View Full Code Here

   }


   @Test(groups = "live", dependsOnMethods = "testListImage")
   public void testGetImage() {
      Image image = api().get(this.image.getName());
      assertNotNull(image);
      assertImageEquals(image, this.image);
   }
View Full Code Here

TOP

Related Classes of org.jclouds.googlecomputeengine.domain.Image$Deprecated$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.