Package org.jclouds.openstack.cinder.v1

Examples of org.jclouds.openstack.cinder.v1.CinderApiMetadata


*/
@Test(groups = "unit", testName = "CloudBlockStorageUSProviderTest")
public class CloudBlockStorageUSProviderTest extends BaseProviderMetadataTest {

   public CloudBlockStorageUSProviderTest() {
      super(new CloudBlockStorageUSProviderMetadata(), new CinderApiMetadata());
   }
View Full Code Here


   public static class Builder extends BaseProviderMetadata.Builder {

      protected Builder(){
         id("rackspace-cloudblockstorage-us")
         .name("Rackspace Next Generation Cloud Block Storage US")
         .apiMetadata(new CinderApiMetadata().toBuilder()
                  .identityName("${userName}")
                  .credentialName("${apiKey}")
                  .defaultEndpoint("https://identity.api.rackspacecloud.com/v2.0/")
                  .endpointName("identity service url ending in /v2.0/")
                  .documentation(URI.create("http://docs.rackspace.com/cbs/api/v1.0/cbs-devguide/content/overview.html"))
View Full Code Here

   public static class Builder extends BaseProviderMetadata.Builder {

      protected Builder() {
         id("rackspace-cloudblockstorage-us")
         .name("Rackspace Next Generation Cloud Block Storage US")
         .apiMetadata(new CinderApiMetadata().toBuilder()
                  .identityName("${userName}")
                  .credentialName("${apiKey}")
                  .defaultEndpoint("https://identity.api.rackspacecloud.com/v2.0/")
                  .endpointName("identity service url ending in /v2.0/")
                  .documentation(URI.create("http://docs.rackspace.com/cbs/api/v1.0/cbs-devguide/content/overview.html"))
View Full Code Here

   public static class Builder extends BaseProviderMetadata.Builder {

      protected Builder() {
         id("rackspace-cloudblockstorage-uk")
         .name("Rackspace Next Generation Cloud Block Storage UK")
         .apiMetadata(new CinderApiMetadata().toBuilder()
                  .identityName("${userName}")
                  .credentialName("${apiKey}")
                  .defaultEndpoint("https://lon.identity.api.rackspacecloud.com/v2.0/")
                  .endpointName("identity service url ending in /v2.0/")
                  .documentation(URI.create("http://docs.rackspace.com/cbs/api/v1.0/cbs-devguide/content/overview.html"))
View Full Code Here

   public static class Builder extends BaseProviderMetadata.Builder {

      protected Builder() {
         id("rackspace-cloudblockstorage-us")
         .name("Rackspace Next Generation Cloud Block Storage US")
         .apiMetadata(new CinderApiMetadata().toBuilder()
                  .identityName("${userName}")
                  .credentialName("${apiKey}")
                  .defaultEndpoint("https://identity.api.rackspacecloud.com/v2.0/")
                  .endpointName("identity service url ending in /v2.0/")
                  .documentation(URI.create("http://docs.rackspace.com/cbs/api/v1.0/cbs-devguide/content/overview.html"))
View Full Code Here

@Test(groups = "unit", testName = "CloudBlockStorageUSProviderTest")
public class CloudBlockStorageUSProviderTest extends BaseProviderMetadataTest {

   public CloudBlockStorageUSProviderTest() {
      super(new CloudBlockStorageUSProviderMetadata(), new CinderApiMetadata());
   }
View Full Code Here

@Test(groups = "unit", testName = "HPCloudBlockStorageProviderTest")
public class HPCloudBlockStorageProviderTest extends BaseProviderMetadataTest {

   public HPCloudBlockStorageProviderTest() {
      super(new HPCloudBlockStorageProviderMetadata(), new CinderApiMetadata());
   }
View Full Code Here

@Test(groups = "unit", testName = "CloudBlockStorageUKProviderTest")
public class CloudBlockStorageUKProviderTest extends BaseProviderMetadataTest {

   public CloudBlockStorageUKProviderTest() {
      super(new CloudBlockStorageUKProviderMetadata(), new CinderApiMetadata());
   }
View Full Code Here

   public static class Builder extends BaseProviderMetadata.Builder {

      protected Builder() {
         id("hpcloud-blockstorage")
         .name("HP Cloud Block Storage")
         .apiMetadata(new CinderApiMetadata().toBuilder()
               .identityName("${tenantName:accessKey}")
               .credentialName("${secret}")
               .defaultEndpoint("https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0/")
               .endpointName("identity service url ending in /v2.0/")
               .documentation(URI.create("https://docs.hpcloud.com/api/v13/block-storage/"))
View Full Code Here

   public void testListSnapshots() {
      Set<? extends Snapshot> snapshots = snapshotApi.list().toSet();
      assertNotNull(snapshots);
      boolean foundIt = false;
      for (Snapshot snap : snapshots) {
         Snapshot details = snapshotApi.get(snap.getId());
         if (Objects.equal(snap.getVolumeId(), testVolume.getId())) {
            foundIt = true;
         }
         assertNotNull(details);
         assertEquals(details.getId(), snap.getId());
         assertEquals(details.getVolumeId(), snap.getVolumeId());
      }
      assertTrue(foundIt, "Failed to find the snapshot we previously created in listSnapshots() response");
   }
View Full Code Here

TOP

Related Classes of org.jclouds.openstack.cinder.v1.CinderApiMetadata

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.