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);
}
Aggregations