use of org.apache.storm.generated.SettableBlobMeta in project storm by apache.
the class ClientBlobStoreTest method testGoodACLsForCreate.
@Test
public void testGoodACLsForCreate() throws Exception {
SettableBlobMeta meta = new SettableBlobMeta();
AccessControl submitterAcl = BlobStoreAclHandler.parseAccessControl("u:tester:rwa");
meta.add_to_acl(submitterAcl);
String testKey = "testBlobKey";
client.createBlob(testKey, meta);
validatedBlobAcls(testKey);
}
use of org.apache.storm.generated.SettableBlobMeta in project storm by apache.
the class ClientBlobStoreTest method testDuplicateACLsForSetBlobMeta.
@Test(expected = AuthorizationException.class)
public void testDuplicateACLsForSetBlobMeta() throws Exception {
String testKey = "testDuplicateACLsBlobKey";
SettableBlobMeta meta = new SettableBlobMeta();
createTestBlob(testKey, meta);
AccessControl duplicateAcl = BlobStoreAclHandler.parseAccessControl("u:tester:r--");
meta.add_to_acl(duplicateAcl);
client.setBlobMeta(testKey, meta);
}
use of org.apache.storm.generated.SettableBlobMeta in project storm by apache.
the class ClientBlobStoreTest method testGoodACLsForSetBlobMeta.
@Test
public void testGoodACLsForSetBlobMeta() throws Exception {
String testKey = "testBlobKey";
SettableBlobMeta meta = new SettableBlobMeta();
createTestBlob(testKey, meta);
meta.add_to_acl(BlobStoreAclHandler.parseAccessControl("u:nextuser:r--"));
client.setBlobMeta(testKey, meta);
validatedBlobAcls(testKey);
}
Aggregations