Package com.rackspacecloud.client.cloudfiles

Examples of com.rackspacecloud.client.cloudfiles.FilesClient.login()


  }
 
  public void testFilesObjectPath() {
    FilesClient client = new FilesClient();
    try {
      assertTrue(client.login());
      String containerName = createTempContainerName("FOpathTest");
     
      // Make sure it's not there
      assertFalse(client.containerExists(containerName));
     
View Full Code Here


 
  public void testURLs() {
    // Test to make sure these are getting set and are visible to the outside world (needed for Cyberduck's SSL).
    FilesClient client = new FilesClient();
    try {
      assertTrue(client.login());
      assertNotNull(client.getCdnManagementURL());
      assertNotNull(client.getStorageURL());

    } catch (Exception e) {
      fail(e.getMessage());
View Full Code Here

    String containerName = createTempContainerName("requst-entity");
    String filename = makeFileName("req-entity");
    try {
      byte randomData[] = makeRandomBytes();
      FilesClient client = new FilesClient();
      assertTrue(client.login());
     
      // Set up
      client.createContainer(containerName);
     
      // Store it
View Full Code Here

    String containerName = createTempContainerName("object-listing-marker");
    try {
      byte randomData[] = makeRandomBytes();
      FilesClient client = new FilesClient();
      // client.setUseETag(false);
      assertTrue(client.login());
     
      // Set up
      client.createContainer(containerName);
     
      // Store it
View Full Code Here

  public void testObjectListingWithDelimiter() {
    String containerName = createTempContainerName("delimiter");
    try {
      byte randomData[] = makeRandomBytes();
      FilesClient client = new FilesClient();
      assertTrue(client.login());
     
      // Set up
      client.createContainer(containerName);
     
      // Store it
View Full Code Here

  }

  public void testContainerListingWithLimitMarker() {
    try {
      FilesClient client = new FilesClient();
      assertTrue(client.login());
     
      // Populate our  account
      for (int i=0; i < 20; i++) {
        client.createContainer("test_container_" + i);
      }
View Full Code Here

    String filename = makeFileName("bytearray");
    try {
      byte randomData[] = makeRandomBytes(1024 * 100); // 100 K to make sure we do more with the callback
      FilesClient client = new FilesClient();
      // client.setUseETag(false);
      assertTrue(client.login());
     
      // Set up
      client.createContainer(containerName);
     
      // Store it
View Full Code Here

    String containerName = createTempContainerName("streamed");
    String filename = makeFileName("streamed");
    try {
      byte randomData[] = makeRandomBytes(1024 * 100); // 100 K to make sure it's interesting
      FilesClient client = new FilesClient();
      assertTrue(client.login());
     
      // Set up
      client.createContainer(containerName);
     
      // Store it
View Full Code Here

      while(zeroStripMd5Sum(randomData).length() ==32) {
        randomData = makeRandomBytes();
      }
      FilesClient client = new FilesClient();
      // client.setUseETag(false);
      assertTrue(client.login());
     
      // Set up
      client.createContainer(containerName);
     
      // Store it
View Full Code Here

     
  public void testUnicodeContainer() {
    String containerName = createTempContainerName("\u0169\u00f1\u00efcode-test-\u03de");
    try {
      FilesClient client = new FilesClient(FilesUtil.getProperty("username"), FilesUtil.getProperty("password"), FilesUtil.getProperty("account"));
      assertTrue(client.login());
     
      // Set up
      client.createContainer(containerName);
     
     
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.