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

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


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


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

           .payload(payloadFromStringWithContentType(networkEntity, ENTITY + ";version=1.5"))
           .build();
  
   @Test
   public void testGetNetworkUrn() {
      VCloudDirectorAdminApi api = requestsSendResponses(loginRequest, sessionResponse, resolveNetwork, resolveNetworkResponse, get, getResponse);
      assertEquals(api.getNetworkApi().get(networkUrn), network());
   }
View Full Code Here

            .payload(payloadFromResourceWithContentType("/network/admin/editNetworkTask.xml", TASK))
            .build();

   @Test
   public void testEditNetworkHref() {
      VCloudDirectorAdminApi api = requestsSendResponses(loginRequest, sessionResponse, edit, editResponse);
      assertEquals(api.getNetworkApi().edit(networkAdminHref, editNetwork()), editNetworkTask());
   }
View Full Code Here

      assertEquals(api.getNetworkApi().edit(networkAdminHref, editNetwork()), editNetworkTask());
   }
  
   @Test
   public void testEditNetworkUrn() {
      VCloudDirectorAdminApi api = requestsSendResponses(loginRequest, sessionResponse, resolveNetwork, resolveNetworkResponse, edit, editResponse);
      assertEquals(api.getNetworkApi().edit(networkUrn, editNetwork()), editNetworkTask());
   }
View Full Code Here

            .payload(payloadFromResourceWithContentType("/network/admin/resetNetworkTask.xml", TASK))
            .build();

   @Test
   public void testResetNetworkHref() {
      VCloudDirectorAdminApi api = requestsSendResponses(loginRequest, sessionResponse, reset, resetResponse);
      assertEquals(api.getNetworkApi().reset(networkAdminHref), resetNetworkTask());
   }
View Full Code Here

      assertEquals(api.getNetworkApi().reset(networkAdminHref), resetNetworkTask());
   }
  
   @Test
   public void testResetNetworkUrn() {
      VCloudDirectorAdminApi api = requestsSendResponses(loginRequest, sessionResponse, resolveNetwork, resolveNetworkResponse, reset, resetResponse);
      assertEquals(api.getNetworkApi().reset(networkUrn), resetNetworkTask());
   }
View Full Code Here

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

           .payload(payloadFromStringWithContentType(catalogEntity, ENTITY + ";version=1.5"))
           .build();
  
   @Test
   public void testGetCatalogUrn() {
      VCloudDirectorAdminApi api = requestsSendResponses(loginRequest, sessionResponse, resolveCatalog, resolveCatalogResponse, get, getResponse);
      assertEquals(api.getCatalogApi().get(catalogUrn), catalog());
   }
View Full Code Here

            .payload(payloadFromResourceWithContentType("/catalog/admin/addCatalog.xml", ADMIN_CATALOG + ";version=1.5"))
            .build();
   
   @Test
   public void testAddCatalogHref() {
      VCloudDirectorAdminApi api = requestsSendResponses(loginRequest, sessionResponse, add, addResponse);
      assertEquals(api.getCatalogApi().addCatalogToOrg(addCatalogToOrgSource(), orgAdminHref), addCatalogToOrg());
   }
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.