Examples of ApiMetadata


Examples of org.jclouds.openstack.keystone.v2_0.domain.ApiMetadata

*/
@Test(groups = "live", testName = "KeystoneApiLiveTest")
public class KeystoneApiLiveTest extends BaseKeystoneApiLiveTest {

   public void testGetApiMetaData() {
      ApiMetadata result = api.getApiMetadata();
      assertNotNull(result);
      assertNotNull(result.getId());
      assertNotNull(result.getStatus());
      assertNotNull(result.getUpdated());
   }
View Full Code Here

Examples of org.jclouds.openstack.keystone.v2_0.domain.ApiMetadata

            keystoneAuthWithUsernameAndPasswordAndTenantName, responseWithKeystoneAccess,
            HttpRequest.builder().method("GET").endpoint(endpoint + "/v2.0/").
            addHeader("Accept", APPLICATION_JSON).build(),
            HttpResponse.builder().statusCode(200).
                  payload(payloadFromResourceWithContentType("/raxVersion.json", APPLICATION_JSON)).build());
      ApiMetadata metadata = api.getApiMetadata();

      assertEquals(metadata, new ParseRackspaceApiMetadataTest().expected());
   }
View Full Code Here

Examples of org.jclouds.openstack.keystone.v2_0.domain.ApiMetadata

*/
@Test(groups = "live", testName = "KeystoneApiLiveTest")
public class KeystoneApiLiveTest extends BaseKeystoneApiLiveTest {

   public void testGetApiMetaData() {
      ApiMetadata result = api.getApiMetadata();
      assertNotNull(result);
      assertNotNull(result.getId());
      assertNotNull(result.getStatus());
      assertNotNull(result.getUpdated());
   }
View Full Code Here

Examples of org.jclouds.openstack.keystone.v2_0.domain.ApiMetadata

            keystoneAuthWithUsernameAndPasswordAndTenantName, responseWithKeystoneAccess,
            HttpRequest.builder().method("GET").endpoint(endpoint + "/v2.0/").
            addHeader("Accept", APPLICATION_JSON).build(),
            HttpResponse.builder().statusCode(200).
                  payload(payloadFromResourceWithContentType("/raxVersion.json", APPLICATION_JSON)).build());
      ApiMetadata metadata = api.getApiMetadata();

      assertEquals(metadata, new ParseRackspaceApiMetadataTest().expected());
   }
View Full Code Here

Examples of org.jclouds.openstack.keystone.v2_0.domain.ApiMetadata

*/
@Test(groups = "live", testName = "KeystoneApiLiveTest")
public class KeystoneApiLiveTest extends BaseKeystoneApiLiveTest {

   public void testGetApiMetaData() {
      ApiMetadata result = api.getApiMetadata();
      assertNotNull(result);
      assertNotNull(result.getId());
      assertNotNull(result.getStatus());
      assertNotNull(result.getUpdated());
   }
View Full Code Here

Examples of org.jclouds.representations.ApiMetadata

   @Test
   void testConversion() {
      assertNull(ToApiMetadata.INSTANCE.apply(null));
      org.jclouds.apis.ApiMetadata stub = Apis.withId("stub");
      assertNotNull(stub);
      ApiMetadata dto = ToApiMetadata.INSTANCE.apply(stub);
      assertNotNull(dto);
      assertEquals("stub", dto.getId());
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.