use of ddf.catalog.content.operation.impl.UpdateStorageRequestImpl in project ddf by codice.
the class FanoutCatalogFrameworkTest method testBlacklistedTagUpdateStorageRequestFails.
@Test(expected = IngestException.class)
public void testBlacklistedTagUpdateStorageRequestFails() throws Exception {
Metacard metacard = new MetacardImpl();
metacard.setAttribute(new AttributeImpl(Metacard.ID, "metacardId"));
metacard.setAttribute(new AttributeImpl(Metacard.TAGS, "blacklisted"));
ContentItem item = new ContentItemImpl(uuidGenerator.generateUuid(), ByteSource.empty(), "text/xml", "filename.xml", 0L, metacard);
UpdateStorageRequest request = new UpdateStorageRequestImpl(Collections.singletonList(item), new HashMap<>());
framework.setFanoutTagBlacklist(Collections.singletonList("blacklisted"));
framework.update(request);
}
Aggregations