Package org.jclouds.compute.domain

Examples of org.jclouds.compute.domain.OperatingSystem


      for (boolean is64Bit : new boolean[] { true, false })
         for (Entry<OsFamily, Map<String, String>> osVersions : this.osToVersionMap.entrySet()) {
            for (String version : ImmutableSet.copyOf(osVersions.getValue().values())) {
               String desc = String.format("stub %s %s", osVersions.getKey(), is64Bit);
               images.add(new ImageBuilder().ids(id++ + "").name(osVersions.getKey().name()).location(location.get())
                     .operatingSystem(new OperatingSystem(osVersions.getKey(), desc, version, null, desc, is64Bit))
                     .description(desc).status(Image.Status.AVAILABLE).build());
            }
         }
      return images.build();
   }
View Full Code Here


      assert supportsApt().apply(new CIMOperatingSystem(OSType.UBUNTU, "", null, "description"));
      assert supportsApt().apply(new CIMOperatingSystem(OSType.UBUNTU_64, "", null, "description"));
   }

   public void testUbuntuNameSupportsApt() {
      assert supportsApt().apply(new OperatingSystem(null, "Ubuntu", "", null, "description", false));
   }
View Full Code Here

      assert !supportsYum().apply(new CIMOperatingSystem(OSType.UBUNTU, "", null, "description"));
      assert !supportsYum().apply(new CIMOperatingSystem(OSType.UBUNTU_64, "", null, "description"));
   }

   public void testSuseTypeSupportsZypper() {
      assert supportsZypper().apply(new OperatingSystem(OsFamily.SUSE, null, "", null, "description", false));
   }
View Full Code Here

   public void testSuseTypeSupportsZypper() {
      assert supportsZypper().apply(new OperatingSystem(OsFamily.SUSE, null, "", null, "description", false));
   }

   public void testSuseDescriptionSupportsZypper() {
      assert supportsZypper().apply(new OperatingSystem(null, "", null, null, "Suse", false));
   }
View Full Code Here

   public void testSuseDescriptionSupportsZypper() {
      assert supportsZypper().apply(new OperatingSystem(null, "", null, null, "Suse", false));
   }

   public void testSuseNameSupportsZypper() {
      assert supportsZypper().apply(new OperatingSystem(null, "Suse", "", null, "description", false));
   }
View Full Code Here

   public void testSuseNameSupportsZypper() {
      assert supportsZypper().apply(new OperatingSystem(null, "Suse", "", null, "description", false));
   }

   public void testCentosTypeSupportsYum() {
      assert supportsYum().apply(new OperatingSystem(OsFamily.CENTOS, null, "", null, "description", false));
   }
View Full Code Here

   public void testCentosTypeSupportsYum() {
      assert supportsYum().apply(new OperatingSystem(OsFamily.CENTOS, null, "", null, "description", false));
   }

   public void testAmzTypeSupportsYum() {
      assert supportsYum().apply(new OperatingSystem(OsFamily.AMZN_LINUX, null, "", null, "description", false));
   }
View Full Code Here

   public void testAmzTypeSupportsYum() {
      assert supportsYum().apply(new OperatingSystem(OsFamily.AMZN_LINUX, null, "", null, "description", false));
   }

   public void testRhelTypeSupportsYum() {
      assert supportsYum().apply(new OperatingSystem(OsFamily.RHEL, null, "", null, "description", false));
   }
View Full Code Here

   public void testRhelTypeSupportsYum() {
      assert supportsYum().apply(new OperatingSystem(OsFamily.RHEL, null, "", null, "description", false));
   }

   public void testFedoraTypeSupportsYum() {
      assert supportsYum().apply(new OperatingSystem(OsFamily.FEDORA, null, "", null, "description", false));
   }
View Full Code Here

   public void testFedoraTypeSupportsYum() {
      assert supportsYum().apply(new OperatingSystem(OsFamily.FEDORA, null, "", null, "description", false));
   }

   public void testCentosNameSupportsYum() {
      assert supportsYum().apply(new OperatingSystem(null, "Centos", "", null, "description", false));
   }
View Full Code Here

TOP

Related Classes of org.jclouds.compute.domain.OperatingSystem

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.