use of com.dexels.navajo.client.stream.ReactiveReply in project navajo by Dexels.
the class BinaryStoreAdapter method deleteBinary.
public ReactiveReply deleteBinary(String hexDigest, String resource, String bucket, boolean force) throws IOException {
String tenant = access.getTenant();
ReactiveReply result = HttpResourceFactory.getInstance().getHttpResource(resource).delete(tenant, bucket, hexDigest).blockingGet();
logger.info("Deleted binary with status: {}", result.status());
return result;
}
use of com.dexels.navajo.client.stream.ReactiveReply in project navajo by Dexels.
the class TestHttpResource method testDelete.
@Test
@Ignore
public void testDelete() throws IOException, MappableException, UserException {
BinaryStoreAdapter bsa = new BinaryStoreAdapter();
bsa.load(access);
Binary b = createBinary();
b.setMimeType("text/plain");
ReactiveReply reply = bsa.deleteBinary(b.getHexDigest(), "binstore", "junit", false);
Assert.assertNotSame(200, reply.status());
}
Aggregations