Package org.jclouds.glacier.domain

Examples of org.jclouds.glacier.domain.MultipartUploadMetadata


      mr.addHeader(HttpHeaders.CONTENT_TYPE, MediaType.JSON_UTF_8);
      mr.setBody(getResponseBody("/json/listPartsResponseBody.json"));
      mr.addHeader(HttpHeaders.CONTENT_LENGTH, mr.getBody().length);
      server.enqueue(mr);

      MultipartUploadMetadata mpu = client.listParts(VAULT_NAME, MULTIPART_UPLOAD_ID, PaginationOptions.Builder.limit(1).marker("1001"));
      assertThat(mpu.getArchiveDescription()).isEqualTo("archive description 1");
      assertThat(mpu.getMultipartUploadId()).isEqualTo(MULTIPART_UPLOAD_ID);
      assertThat(mpu.getPartSizeInBytes()).isEqualTo(4194304);
      assertThat(mpu).extracting("treeHash").containsExactly(HashCode.fromString("01d34dabf7be316472c93b1ef80721f5d4"));
      assertThat(mpu).extracting("range").containsExactly(ContentRange.fromString("4194304-8388607"));

      assertEquals(server.takeRequest().getRequestLine(),
              "GET /-/vaults/examplevault/multipart-uploads/" + MULTIPART_UPLOAD_ID + "?limit=1&marker=1001 " + HTTP);
View Full Code Here

TOP

Related Classes of org.jclouds.glacier.domain.MultipartUploadMetadata

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.