Package org.jclouds.vcloud.director.v1_5.features

Examples of org.jclouds.vcloud.director.v1_5.features.UploadAsyncApi


            .entity(ubuntuVappTemplateReference())
            .build();

   @Test
   public void testAddCatalogItemHref() {
      VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse, add, addResponse);
      assertEquals(api.getCatalogApi().addItem(catalogHref, newItem), adddCatalogItem());
   }
View Full Code Here


      assertEquals(api.getCatalogApi().addItem(catalogHref, newItem), adddCatalogItem());
   }
  
   @Test
   public void testAddCatalogItemUrn() {
      VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse, resolveCatalog, resolveCatalogResponse, add, addResponse);
      assertEquals(api.getCatalogApi().addItem(catalogUrn, newItem), adddCatalogItem());
   }
View Full Code Here

            .payload(payloadFromResourceWithContentType("/catalog/catalogMetadata.xml", METADATA))
            .build();

   @Test
   public void testGetCatalogMetadataHref() {
      VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse, getMetadata, getMetadataResponse);
      assertEquals(api.getMetadataApi(catalogHref).get(), metadata());
   }
View Full Code Here

            .payload(payloadFromResourceWithContentType("/catalog/catalogMetadataValue.xml", METADATA_VALUE))
            .build();

   @Test
   public void testGetCatalogMetadataEntryHref() {
      VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse, getMetadataValue, getMetadataValueResponse);
      assertEquals(api.getMetadataApi(catalogHref).get("KEY"), "VALUE");
   }
View Full Code Here

            .payload(payloadFromResourceWithContentType("/catalog/catalogItem.xml", CATALOG_ITEM))
            .build();
     
   @Test
   public void testGetCatalogItemHref() {
      VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse, getItem, getItemResponse);
      assertEquals(api.getCatalogApi().getItem(itemHref), catalogItem());
   }
View Full Code Here

      assertEquals(api.getCatalogApi().getItem(itemHref), catalogItem());
   }
  
   @Test
   public void testGetCatalogItemUrn() {
      VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse, resolveItem, resolveItemResponse, getItem, getItemResponse);
      assertEquals(api.getCatalogApi().getItem(itemUrn), catalogItem());
   }
View Full Code Here

            .payload(payloadFromResourceWithContentType("/catalog/editCatalogItem.xml", CATALOG_ITEM + ";version=1.5"))
            .build();

   @Test
   public void testEditCatalogItemHref() {
      VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse, editItem, editItemResponse);
      assertEquals(api.getCatalogApi().editItem(itemHref, catalogItem()), catalogItem());
   }
View Full Code Here

      assertEquals(api.getCatalogApi().editItem(itemHref, catalogItem()), catalogItem());
   }
  
   @Test
   public void testEditCatalogItemUrn() {
      VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse, resolveItem, resolveItemResponse, editItem, editItemResponse);
      assertEquals(api.getCatalogApi().editItem(itemUrn, catalogItem()), catalogItem());
   }
View Full Code Here

            .statusCode(200)
            .build();
     
   @Test
   public void testRemoveCatalogItemHref() {
      VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse, removeItem, removeItemResponse);
      api.getCatalogApi().removeItem(itemHref);
   }
View Full Code Here

      api.getCatalogApi().removeItem(itemHref);
   }

   @Test
   public void testRemoveCatalogItemUrn() {
      VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse, resolveItem, resolveItemResponse, removeItem, removeItemResponse);
      api.getCatalogApi().removeItem(itemUrn);
   }
View Full Code Here

TOP

Related Classes of org.jclouds.vcloud.director.v1_5.features.UploadAsyncApi

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.