Skip to content
Permalink
Browse files
Etag is not supported in OSX
  • Loading branch information
nacx committed Oct 13, 2019
1 parent c445547 commit a2cbdd3385172e56cb035c2b3e7d9003c8088658
Showing 1 changed file with 8 additions and 1 deletion.
@@ -120,6 +120,11 @@ public void testSetBlobAccess() throws Exception {

@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 @@ protected void checkMPUParts(Blob blob, List<MultipartPart> partsList) {
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();

0 comments on commit a2cbdd3

Please sign in to comment.