Package org.jclouds.openstack.v2_0.domain

Examples of org.jclouds.openstack.v2_0.domain.Link


     * @throws Exception
     */
    @Test(description = "GET /v${apiVersion}/{tenantId}/extensions/{alias}", dependsOnMethods = { "testListExtensions" })
    public void testGetExtensionByAlias() throws Exception {
       for (String zoneId : zones) {
           ExtensionApi extensionApi = api.getExtensionApiForZone(zoneId);
           Set<? extends Extension> response = extensionApi.list();
           for (Extension extension : response) {
              Extension details = extensionApi.get(extension.getId());
              assertNotNull(details);
              assertEquals(details.getId(), extension.getId());
              assertEquals(details.getName(), extension.getName());
              assertEquals(details.getDescription(), extension.getDescription());
              assertEquals(details.getNamespace(), extension.getNamespace());
View Full Code Here


     * @throws Exception
     */
    @Test(description = "GET /v${apiVersion}/{tenantId}/extensions")
    public void testListExtensions() throws Exception {
       for (String zoneId : zones) {
          ExtensionApi extensionApi = api.getExtensionApiForZone(zoneId);
          Set<? extends Extension> response = extensionApi.list();
          assertNotNull(response);
          assertFalse(response.isEmpty());
           for (Extension extension : response) {
              assertNotNull(extension.getId());
              assertNotNull(extension.getName());
View Full Code Here

     * @throws Exception
     */
    @Test(description = "GET /v${apiVersion}/{tenantId}/extensions/{alias}", dependsOnMethods = { "testListExtensions" })
    public void testGetExtensionByAlias() throws Exception {
       for (String zoneId : zones) {
           ExtensionApi extensionApi = api.getExtensionApiForZone(zoneId);
           Set<? extends Extension> response = extensionApi.list();
           for (Extension extension : response) {
              Extension details = extensionApi.get(extension.getId());
              assertNotNull(details);
              assertEquals(details.getId(), extension.getId());
              assertEquals(details.getName(), extension.getName());
              assertEquals(details.getDescription(), extension.getDescription());
              assertEquals(details.getNamespace(), extension.getNamespace());
View Full Code Here

         return new Function<Object, IterableWithMarker<ReferenceWithName>>() {

            @SuppressWarnings("unchecked")
            @Override
            public IterableWithMarker<ReferenceWithName> apply(Object input) {
               PaginationOptions paginationOptions = PaginationOptions.class.cast(input);
               return IterableWithMarker.class.cast(portApi.list(paginationOptions));
            }

            @Override
            public String toString() {
View Full Code Here

         return new Function<Object, IterableWithMarker<ReferenceWithName>>() {

            @SuppressWarnings("unchecked")
            @Override
            public IterableWithMarker<ReferenceWithName> apply(Object input) {
               PaginationOptions paginationOptions = PaginationOptions.class.cast(input);
               return IterableWithMarker.class.cast(subnetApi.list(paginationOptions));
            }

            @Override
            public String toString() {
View Full Code Here

         return new Function<Object, IterableWithMarker<Network>>() {

            @SuppressWarnings("unchecked")
            @Override
            public IterableWithMarker<Network> apply(Object input) {
               PaginationOptions paginationOptions = PaginationOptions.class.cast(input);
               return IterableWithMarker.class.cast(networkApi.listInDetail(paginationOptions));
            }

            @Override
            public String toString() {
View Full Code Here

         return new Function<Object, IterableWithMarker<Subnet>>() {

            @SuppressWarnings("unchecked")
            @Override
            public IterableWithMarker<Subnet> apply(Object input) {
               PaginationOptions paginationOptions = PaginationOptions.class.cast(input);
               return IterableWithMarker.class.cast(subnetApi.listInDetail(paginationOptions));
            }

            @Override
            public String toString() {
View Full Code Here

         return new Function<Object, IterableWithMarker<ReferenceWithName>>() {

            @SuppressWarnings("unchecked")
            @Override
            public IterableWithMarker<ReferenceWithName> apply(Object input) {
               PaginationOptions paginationOptions = PaginationOptions.class.cast(input);
               return IterableWithMarker.class.cast(networkApi.list(paginationOptions));
            }

            @Override
            public String toString() {
View Full Code Here

         return new Function<Object, IterableWithMarker<ReferenceWithName>>() {

            @SuppressWarnings("unchecked")
            @Override
            public IterableWithMarker<ReferenceWithName> apply(Object input) {
               PaginationOptions paginationOptions = PaginationOptions.class.cast(input);
               return IterableWithMarker.class.cast(portApi.listInDetail(paginationOptions));
            }

            @Override
            public String toString() {
View Full Code Here

               responseWithKeystoneAccess,
               authenticatedGET().endpoint(endpoint + "/v2.0/tenants").build(),
               HttpResponse.builder().statusCode(200).payload(
                        payloadFromResourceWithContentType("/tenant_list.json", APPLICATION_JSON)).build())
               .getTenantApi().get();
      Set<? extends Tenant> tenants = api.list(new PaginationOptions()).toSet();
      assertNotNull(tenants);
      assertFalse(tenants.isEmpty());

      assertEquals(tenants, expectedTenants);
   }
View Full Code Here

TOP

Related Classes of org.jclouds.openstack.v2_0.domain.Link

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.