Search in sources :

Example 96 with FeedMetadata

use of com.thinkbiganalytics.feedmgr.rest.model.FeedMetadata in project kylo by Teradata.

the class FeedWithConnectedReusableTemplateIT method testConnectedFeed.

@Test
public void testConnectedFeed() throws Exception {
    ConnectedTemplate connectedTemplate = registerConnectedReusableTemplate();
    URL resource = IntegrationTestBase.class.getResource("feedconnectedflow.template.zip");
    // Create a feed using this template
    // Register simple feed template
    ImportTemplate template = importTemplate(resource.getPath());
    FeedCategory feedCategory = createCategory("connected flows");
    // create a feed using this template
    FeedMetadata feed = FeedTestUtil.getCreateGenerateFlowFileFeedRequest(feedCategory, template, "connected_feed_" + System.currentTimeMillis());
    NifiFeed createdFeed = createFeed(feed);
    Assert.assertNotNull(createdFeed);
    waitForFeedToComplete();
    assertExecutedJobs(feed);
}
Also used : FeedCategory(com.thinkbiganalytics.feedmgr.rest.model.FeedCategory) FeedMetadata(com.thinkbiganalytics.feedmgr.rest.model.FeedMetadata) ImportTemplate(com.thinkbiganalytics.feedmgr.service.template.importing.model.ImportTemplate) NifiFeed(com.thinkbiganalytics.feedmgr.rest.model.NifiFeed) URL(java.net.URL) Test(org.junit.Test)

Aggregations

FeedMetadata (com.thinkbiganalytics.feedmgr.rest.model.FeedMetadata)96 NifiProperty (com.thinkbiganalytics.nifi.rest.model.NifiProperty)36 ArrayList (java.util.ArrayList)35 NifiFeed (com.thinkbiganalytics.feedmgr.rest.model.NifiFeed)32 List (java.util.List)30 Map (java.util.Map)30 Collectors (java.util.stream.Collectors)30 Set (java.util.Set)28 StringUtils (org.apache.commons.lang3.StringUtils)28 FeedCategory (com.thinkbiganalytics.feedmgr.rest.model.FeedCategory)27 RegisteredTemplate (com.thinkbiganalytics.feedmgr.rest.model.RegisteredTemplate)27 Logger (org.slf4j.Logger)27 LoggerFactory (org.slf4j.LoggerFactory)27 HashSet (java.util.HashSet)26 Inject (javax.inject.Inject)25 Nonnull (javax.annotation.Nonnull)24 FeedSummary (com.thinkbiganalytics.feedmgr.rest.model.FeedSummary)23 UIFeed (com.thinkbiganalytics.feedmgr.rest.model.UIFeed)23 FeedServicesAccessControl (com.thinkbiganalytics.feedmgr.security.FeedServicesAccessControl)23 AccessController (com.thinkbiganalytics.security.AccessController)23