throw new SkipException("Filesystem does not support xattr");
}
String blobKey = TestUtils.createRandomBlobKey("writePayload-", ".img");
// write blob
Blob blob = new BlobBuilderImpl()
.name(blobKey)
.payload(randomByteSource().slice(0, 1024))
.userMetadata(ImmutableMap.of("key1", "value1"))
.build();
storageStrategy.putBlob(CONTAINER_NAME, blob);
blob = storageStrategy.getBlob(CONTAINER_NAME, blobKey);
assertEquals(blob.getMetadata().getUserMetadata().get("key1"), "value1");
// overwrite blob
blob = new BlobBuilderImpl()
.name(blobKey)
.payload(randomByteSource().slice(0, 1024))
// no metadata
.build();
storageStrategy.putBlob(CONTAINER_NAME, blob);