You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jclouds.apache.org by na...@apache.org on 2019/10/13 08:33:00 UTC

[jclouds] branch master updated: Etag is not supported in OSX

This is an automated email from the ASF dual-hosted git repository.

nacx pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jclouds.git


The following commit(s) were added to refs/heads/master by this push:
     new a2cbdd3  Etag is not supported in OSX
a2cbdd3 is described below

commit a2cbdd3385172e56cb035c2b3e7d9003c8088658
Author: Ignasi Barrera <na...@apache.org>
AuthorDate: Sun Oct 13 10:32:30 2019 +0200

    Etag is not supported in OSX
---
 .../filesystem/integration/FilesystemBlobIntegrationTest.java    | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/apis/filesystem/src/test/java/org/jclouds/filesystem/integration/FilesystemBlobIntegrationTest.java b/apis/filesystem/src/test/java/org/jclouds/filesystem/integration/FilesystemBlobIntegrationTest.java
index ff23e3f..4219ef6 100644
--- a/apis/filesystem/src/test/java/org/jclouds/filesystem/integration/FilesystemBlobIntegrationTest.java
+++ b/apis/filesystem/src/test/java/org/jclouds/filesystem/integration/FilesystemBlobIntegrationTest.java
@@ -120,6 +120,11 @@ public class FilesystemBlobIntegrationTest extends BaseBlobIntegrationTest {
 
    @Override
    protected void checkMPUParts(Blob blob, List<MultipartPart> partsList) {
+      // Mac OS X HFS+ does not support UserDefinedFileAttributeView:
+      // https://bugs.openjdk.java.net/browse/JDK-8030048
+      if (isMacOSX()) {
+         return;
+      }
       assertThat(blob.getMetadata().getETag()).endsWith(String.format("-%d\"", partsList.size()));
       Hasher eTagHasher = Hashing.md5().newHasher();
       for (MultipartPart part : partsList) {
@@ -134,7 +139,9 @@ public class FilesystemBlobIntegrationTest extends BaseBlobIntegrationTest {
       assertThat(blob.getMetadata().getETag()).isEqualTo(expectedETag);
    }
 
-   @Test(groups = { "integration", "live" })
+   // Mac OS X HFS+ does not support UserDefinedFileAttributeView:
+   // https://bugs.openjdk.java.net/browse/JDK-8030048
+   @Test(dataProvider = "ignoreOnMacOSX", groups = { "integration", "live" })
    public void testMultipartUploadMultiplePartsKnownETag() throws Exception {
       BlobStore blobStore = view.getBlobStore();
       String container = getContainerName();