jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Gaul <notificati...@github.com>
Subject Re: [jclouds/jclouds] JClouds 1281- DLO Swift Implementation (#1090)
Date Sun, 30 Apr 2017 01:22:30 GMT
andrewgaul commented on this pull request.



> @@ -123,6 +124,50 @@ public void uploadMultipartBlob() {
       // The etag returned by Swift is not the md5 of the Blob uploaded
       // It is the md5 of the concatenated segment md5s
    }
+   
+   @Test
+   public void uploadMultipartBlobDLO() {
+      Blob blob = blobStore.blobBuilder(bigFile.getName())
+            .payload(new FilePayload(bigFile))
+            .build();
+      // configure the blobstore to use multipart uploading of the file
+      OpenStackSwiftPutOptions opt = new OpenStackSwiftPutOptions();
+      opt.multipart(executor);
+      opt.DLO(true);
+      String eTag = blobStore.putBlob(CONTAINER, blob, opt);
+      // assertEquals(eTag, etag);
+      // The etag returned by Swift is not the md5 of the Blob uploaded
+      // It is the md5 of the concatenated segment md5s

Why not verify the ETag?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/1090#pullrequestreview-35507363
Mime
View raw message