Examples of CIMOperatingSystem


Examples of org.jclouds.compute.domain.CIMOperatingSystem

      assert !supportsApt().apply(new CIMOperatingSystem(OSType.RHEL, "", null, "description"));
      assert !supportsApt().apply(new CIMOperatingSystem(OSType.RHEL_64, "", null, "description"));
   }

   public void testCIMDEBIANSupportsApt() {
      assert supportsApt().apply(new CIMOperatingSystem(OSType.DEBIAN, "", null, "description"));
      assert supportsApt().apply(new CIMOperatingSystem(OSType.DEBIAN_64, "", null, "description"));
   }
View Full Code Here

Examples of org.jclouds.compute.domain.CIMOperatingSystem

      assert supportsApt().apply(new CIMOperatingSystem(OSType.DEBIAN, "", null, "description"));
      assert supportsApt().apply(new CIMOperatingSystem(OSType.DEBIAN_64, "", null, "description"));
   }

   public void testCIMUBUNTUSupportsApt() {
      assert supportsApt().apply(new CIMOperatingSystem(OSType.UBUNTU, "", null, "description"));
      assert supportsApt().apply(new CIMOperatingSystem(OSType.UBUNTU_64, "", null, "description"));
   }
View Full Code Here

Examples of org.jclouds.compute.domain.CIMOperatingSystem

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

   public void testCIMCENTOSSupportsYum() {
      assert supportsYum().apply(new CIMOperatingSystem(OSType.CENTOS, "", null, "description"));
      assert supportsYum().apply(new CIMOperatingSystem(OSType.CENTOS_64, "", null, "description"));
   }
View Full Code Here

Examples of org.jclouds.compute.domain.CIMOperatingSystem

      assert supportsYum().apply(new CIMOperatingSystem(OSType.CENTOS, "", null, "description"));
      assert supportsYum().apply(new CIMOperatingSystem(OSType.CENTOS_64, "", null, "description"));
   }

   public void testCIMRHELSupportsYum() {
      assert supportsYum().apply(new CIMOperatingSystem(OSType.RHEL, "", null, "description"));
      assert supportsYum().apply(new CIMOperatingSystem(OSType.RHEL_64, "", null, "description"));
   }
View Full Code Here

Examples of org.jclouds.compute.domain.CIMOperatingSystem

      assert supportsYum().apply(new CIMOperatingSystem(OSType.RHEL, "", null, "description"));
      assert supportsYum().apply(new CIMOperatingSystem(OSType.RHEL_64, "", null, "description"));
   }

   public void testCIMDEBIANDoesntSupportYum() {
      assert !supportsYum().apply(new CIMOperatingSystem(OSType.DEBIAN, "", null, "description"));
      assert !supportsYum().apply(new CIMOperatingSystem(OSType.DEBIAN_64, "", null, "description"));
   }
View Full Code Here

Examples of org.jclouds.compute.domain.CIMOperatingSystem

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

   public void testCIMUBUNTUDoesntSupportYum() {
      assert !supportsYum().apply(new CIMOperatingSystem(OSType.UBUNTU, "", null, "description"));
      assert !supportsYum().apply(new CIMOperatingSystem(OSType.UBUNTU_64, "", null, "description"));
   }
View Full Code Here

Examples of org.jclouds.compute.domain.CIMOperatingSystem

      builder.name(from.getName());
      builder.hostname(from.getName());
      Location vdcLocation = findLocationForResourceInVDC.apply(from.getVDC());
      builder.location(vdcLocation);
      if (from.getOsType() != null && OSType.fromValue(from.getOsType()) != OSType.UNRECOGNIZED) {
         builder.operatingSystem(new CIMOperatingSystem(OSType.fromValue(from.getOsType()), "", null, from
                  .getOperatingSystemDescription()));
      } else if (from.getOperatingSystemDescription() != null) {
         OperatingSystem.Builder osBuilder = new OperatingSystem.Builder();
         if (from.getOsType() != null)
            osBuilder.name(from.getOsType() + "");
View Full Code Here

Examples of org.jclouds.compute.domain.CIMOperatingSystem

*
* @author Adrian Cole
*/
public class VCloudComputeUtils {
   public static OperatingSystem toComputeOs(VApp vApp, OperatingSystem defaultOs) {
      CIMOperatingSystem cimOs = toComputeOs(vApp);
      return cimOs != null ? cimOs : defaultOs;
   }
View Full Code Here

Examples of org.jclouds.compute.domain.CIMOperatingSystem

     
      Image expectedImage = new ImageBuilder()
               .ids(ENDPOINT + "/v1.0/vAppTemplate/" + templateId)
               .uri(URI.create(ENDPOINT + "/v1.0/vAppTemplate/" + templateId))
               .name("UbuntuServer-x64-2GB")
               .operatingSystem(new CIMOperatingSystem(OSType.UBUNTU_64, "", null, "Ubuntu Linux (64-bit)"))
               // TODO: this looks like a bug, as it says network interfaces
               .description("This is a special place-holder used for disconnected network interfaces.")
               .defaultCredentials(LoginCredentials.builder().identity("root").build())
               .status(Image.Status.AVAILABLE)
               .location(vdcLocation).build();
View Full Code Here

Examples of org.jclouds.compute.domain.CIMOperatingSystem

     
      Image expectedImage = new ImageBuilder()
               .ids(ENDPOINT + "/v1.0/vAppTemplate/" + templateId)
               .uri(URI.create(ENDPOINT + "/v1.0/vAppTemplate/" + templateId))
               .name("UbuntuServer-x64-2GB")
               .operatingSystem(new CIMOperatingSystem(OSType.UBUNTU_64, "", null, "Ubuntu Linux (64-bit)"))
               // TODO: this looks like a bug, as it says network interfaces
               .description("This is a special place-holder used for disconnected network interfaces.")
               .defaultCredentials(LoginCredentials.builder().identity("root").build())
               .status(Image.Status.AVAILABLE)
               .location(vdcLocation).build();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.