Package org.jclouds.vcloud.director.v1_5

Examples of org.jclouds.vcloud.director.v1_5.VCloudDirectorApiMetadata


*/
@Test(groups = "unit", testName = "CarrenzaVCloudDirectorProviderTest")
public class CarrenzaVCloudDirectorProviderTest extends BaseProviderMetadataTest {

   public CarrenzaVCloudDirectorProviderTest() {
      super(new CarrenzaVCloudDirectorProviderMetadata(), new VCloudDirectorApiMetadata());
   }
View Full Code Here


   public static class Builder extends BaseProviderMetadata.Builder {

      protected Builder() {
         id("carrenza-vcloud-director")
         .name("Carrenza vCloud Director")
         .apiMetadata(new VCloudDirectorApiMetadata().toBuilder()
                     .buildVersion("1.5.0.464915")
                     .defaultModules(ImmutableSet.<Class<? extends Module>>of(CarrenzaVCloudDirectorRestClientModule.class, CarrenzaVCloudDirectorComputeServiceContextModule.class))
                     .build())
         .homepage(URI.create("http://carrenza.com/"))
         .console(URI.create("https://myvdc.carrenza.net/cloud/org/YOUR_ORG_HERE"))
View Full Code Here

@Test(groups = "unit", testName = "CarrenzaVCloudDirectorProviderTest")
public class CarrenzaVCloudDirectorProviderTest extends BaseProviderMetadataTest {

   public CarrenzaVCloudDirectorProviderTest() {
      super(new CarrenzaVCloudDirectorProviderMetadata(), new VCloudDirectorApiMetadata());
   }
View Full Code Here

   public static class Builder extends BaseProviderMetadata.Builder {

      protected Builder() {
         id("carrenza-vcloud-director")
         .name("Carrenza vCloud Director")
         .apiMetadata(new VCloudDirectorApiMetadata().toBuilder()
                     .buildVersion("1.5.0.464915")
                     .defaultModules(ImmutableSet.<Class<? extends Module>>of(CarrenzaVCloudDirectorRestClientModule.class, CarrenzaVCloudDirectorComputeServiceContextModule.class))
                     .build())
         .homepage(URI.create("http://carrenza.com/"))
         .console(URI.create("https://myvdc.carrenza.net/cloud/org/YOUR_ORG_HERE"))
View Full Code Here

                        .build()).deleteOnStorageLeaseExpiration(false).storageLeaseSeconds(0).build();
   }

   @Test(enabled = false)
   public void testEditOrgVAppTemplateLeaseSettings() {
      VCloudDirectorAdminApi api = requestsSendResponses(
               loginRequest,
               sessionResponse,
               new VcloudHttpRequestPrimer()
                        .apiCommand("PUT",
                                 "/admin/org/6f312e42-cd2b-488d-a2bb-97519cd57ed0/settings/vAppTemplateLeaseSettings")
                        .xmlFilePayload("/org/admin/editVAppLeaseSettingsSource.xml",
                                 VCloudDirectorMediaType.ORG_VAPP_TEMPLATE_LEASE_SETTINGS)
                        .acceptMedia(VCloudDirectorMediaType.ORG_VAPP_TEMPLATE_LEASE_SETTINGS).httpRequestBuilder()
                        .build(),
               new VcloudHttpResponsePrimer()
                        .xmlFilePayload("/org/admin/editVAppLeaseSettings.xml",
                                 VCloudDirectorMediaType.ORG_VAPP_TEMPLATE_LEASE_SETTINGS).httpResponseBuilder()
                        .build());

      OrgVAppTemplateLeaseSettings expected = editVAppTemplateLeaseSettings();

      assertEquals(api.getOrgApi().editVAppTemplateLeaseSettings(orgRef.getHref(), expected), expected);
   }
View Full Code Here

            .payload(payloadFromResourceWithContentType("/user/addUser.xml", USER + ";version=1.5"))
            .build();
   
   @Test
   public void testAddUserHref() {
      VCloudDirectorAdminApi api = requestsSendResponses(loginRequest, sessionResponse, add, addResponse);
      assertEquals(api.getUserApi().addUserToOrg(addUserSource(), orgAdminHref), addUser());
   }
View Full Code Here

           .payload(payloadFromStringWithContentType(orgEntity, ENTITY + ";version=1.5"))
           .build();
  
   @Test
   public void testAddUserUrn() {
      VCloudDirectorAdminApi api = requestsSendResponses(loginRequest, sessionResponse, resolveOrg, resolveOrgResponse, add, addResponse);
      assertEquals(api.getUserApi().addUserToOrg(addUserSource(), orgUrn), addUser());
   }
View Full Code Here

            .payload(payloadFromResourceWithContentType("/user/user.xml", ORG + ";version=1.5"))
            .build();
   
   @Test
   public void testGetUserHref() {
      VCloudDirectorAdminApi api = requestsSendResponses(loginRequest, sessionResponse, get, getResponse);
      assertEquals(api.getUserApi().get(userHref), user());
   }
View Full Code Here

           .payload(payloadFromStringWithContentType(userEntity, ENTITY + ";version=1.5"))
           .build();
  
   @Test
   public void testGetUserUrn() {
      VCloudDirectorAdminApi api = requestsSendResponses(loginRequest, sessionResponse, resolveUser, resolveUserResponse, get, getResponse);
      assertEquals(api.getUserApi().get(userUrn), user());
   }
View Full Code Here

            .payload(payloadFromResourceWithContentType("/user/editUser.xml", USER))
            .build();

   @Test
   public void testEditUserHref() {
      VCloudDirectorAdminApi api = requestsSendResponses(loginRequest, sessionResponse, edit, editResponse);
      assertEquals(api.getUserApi().edit(userHref, editUserSource()), editUser());
   }
View Full Code Here

TOP

Related Classes of org.jclouds.vcloud.director.v1_5.VCloudDirectorApiMetadata

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.