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

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


            .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

           .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

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.