Package org.jclouds.vcloud.director.v1_5.admin

Examples of org.jclouds.vcloud.director.v1_5.admin.VCloudDirectorAdminApi


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


            .payload(payloadFromResourceWithContentType("/catalog/admin/editCatalog.xml", ADMIN_CATALOG + ";version=1.5"))
            .build();
   
   @Test
   public void testEditCatalogHref() {
      VCloudDirectorAdminApi api = requestsSendResponses(loginRequest, sessionResponse, edit, editResponse);
      assertEquals(api.getCatalogApi().edit(catalogAdminHref, editCatalog()), editCatalog());
   }
View Full Code Here

      assertEquals(api.getCatalogApi().edit(catalogAdminHref, editCatalog()), editCatalog());
   }
 
   @Test
   public void testEditCatalogUrn() {
      VCloudDirectorAdminApi api = requestsSendResponses(loginRequest, sessionResponse, resolveCatalog, resolveCatalogResponse, edit, editResponse);
      assertEquals(api.getCatalogApi().edit(catalogUrn, editCatalog()), editCatalog());
   }
View Full Code Here

                      .build())
             .build();
   
   @Test
   public void testGetCatalogOwnerHref() {
      VCloudDirectorAdminApi api = requestsSendResponses(loginRequest, sessionResponse, getOwner, getOwnerResponse);
      assertEquals(api.getCatalogApi().getOwner(catalogAdminHref), expectedGetOwner);
   }
View Full Code Here

      assertEquals(api.getCatalogApi().getOwner(catalogAdminHref), expectedGetOwner);
   }
  
   @Test
   public void testGetCatalogOwnerUrn() {
      VCloudDirectorAdminApi api = requestsSendResponses(loginRequest, sessionResponse, resolveCatalog, resolveCatalogResponse, getOwner, getOwnerResponse);
      assertEquals(api.getCatalogApi().getOwner(catalogUrn), expectedGetOwner);
   }
View Full Code Here

                  .build())
            .build();
  
   @Test
   public void testSetCatalogOwnerHref() {
      VCloudDirectorAdminApi api = requestsSendResponses(loginRequest, sessionResponse, setOwner, setOwnerResponse);
      api.getCatalogApi().setOwner(catalogAdminHref, ownerToSet);
   }
View Full Code Here

      api.getCatalogApi().setOwner(catalogAdminHref, ownerToSet);
   }
  
   @Test
   public void testSetCatalogOwnerUrn() {
      VCloudDirectorAdminApi api = requestsSendResponses(loginRequest, sessionResponse, resolveCatalog, resolveCatalogResponse, setOwner, setOwnerResponse);
      api.getCatalogApi().setOwner(catalogUrn, ownerToSet);
   }
View Full Code Here

            .statusCode(204)
            .build();
  
   @Test
   public void testPublishCatalogHref() {
      VCloudDirectorAdminApi api = requestsSendResponses(loginRequest, sessionResponse, publishCatalog,
               publishCatalogResponse);
      api.getCatalogApi().publish(catalogAdminHref, PublishCatalogParams.builder().isPublished(true).build());
   }
View Full Code Here

      api.getCatalogApi().publish(catalogAdminHref, PublishCatalogParams.builder().isPublished(true).build());
   }

   @Test
   public void testPublishCatalogUrn() {
      VCloudDirectorAdminApi api = requestsSendResponses(loginRequest, sessionResponse, resolveCatalog,
               resolveCatalogResponse, publishCatalog, publishCatalogResponse);
      api.getCatalogApi().publish(catalogUrn, PublishCatalogParams.builder().isPublished(true).build());
   }
View Full Code Here

            .statusCode(204)
            .build();
  
   @Test
   public void testRemoveCatalogHref() {
      VCloudDirectorAdminApi api = requestsSendResponses(loginRequest, sessionResponse, removeCatalog,
               removeCatalogResponse);
      api.getCatalogApi().remove(catalogAdminHref);
   }
View Full Code Here

TOP

Related Classes of org.jclouds.vcloud.director.v1_5.admin.VCloudDirectorAdminApi

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.