Package org.jclouds.openstack.swift.extensions

Examples of org.jclouds.openstack.swift.extensions.TemporaryUrlKeyApi


   public CloudFilesBlobLiveTest() {
      provider = "cloudfiles";
   }

   public void testGetAndSetTemporaryUrlKey() {
      TemporaryUrlKeyApi client = view.utils().injector().getInstance(TemporaryUrlKeyApi.class);

      String currentSecretKey = client.getTemporaryUrlKey();
      assertNotNull(currentSecretKey);
      try {
         String testKey = UUID.randomUUID().toString();
         client.setTemporaryUrlKey(testKey);
         assertEquals(client.getTemporaryUrlKey(), testKey);

      } finally {
         client.setTemporaryUrlKey(currentSecretKey);
      }
   }
View Full Code Here


   public CloudFilesBlobLiveTest() {
      provider = "cloudfiles";
   }

   public void testGetAndSetTemporaryUrlKey() {
      TemporaryUrlKeyApi client = view.utils().injector().getInstance(TemporaryUrlKeyApi.class);

      String currentSecretKey = client.getTemporaryUrlKey();
      assertNotNull(currentSecretKey);
      try {
         String testKey = UUID.randomUUID().toString();
         client.setTemporaryUrlKey(testKey);
         assertEquals(client.getTemporaryUrlKey(), testKey);

      } finally {
         client.setTemporaryUrlKey(currentSecretKey);
      }
   }
View Full Code Here

   public CloudFilesBlobLiveTest() {
      provider = "cloudfiles";
   }

   public void testGetAndSetTemporaryUrlKey() {
      TemporaryUrlKeyApi client = view.utils().injector().getInstance(TemporaryUrlKeyApi.class);

      String currentSecretKey = client.getTemporaryUrlKey();
      assertNotNull(currentSecretKey);
      try {
         String testKey = UUID.randomUUID().toString();
         client.setTemporaryUrlKey(testKey);
         assertEquals(client.getTemporaryUrlKey(), testKey);

      } finally {
         client.setTemporaryUrlKey(currentSecretKey);
      }
   }
View Full Code Here

TOP

Related Classes of org.jclouds.openstack.swift.extensions.TemporaryUrlKeyApi

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.