Package org.jclouds.compute.domain

Examples of org.jclouds.compute.domain.CIMOperatingSystem$Builder


      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


   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

      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

      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

      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

*
* @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

     
      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

import com.google.common.collect.ImmutableSet.Builder;
import com.google.common.collect.Iterables;

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

*/
@Test
public class OperatingSystemPredicatesTest {

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

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

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

TOP

Related Classes of org.jclouds.compute.domain.CIMOperatingSystem$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.