use of com.thinkbiganalytics.feedmgr.rest.model.FeedMetadata in project kylo by Teradata.
the class IntegrationTestBase method createSimpleFeed.
protected FeedMetadata createSimpleFeed(String feedName, String testFile) {
FeedCategory category = createCategory(FUNCTIONAL_TESTS);
ImportTemplate template = importSimpleTemplate();
FeedMetadata request = makeCreateFeedRequest(category, template, feedName, testFile);
FeedMetadata response = createFeed(request).getFeedMetadata();
Assert.assertEquals(request.getFeedName(), response.getFeedName());
return response;
}
use of com.thinkbiganalytics.feedmgr.rest.model.FeedMetadata in project kylo by Teradata.
the class EntityLevelAccessIT method assertAnalystCantEditFeed.
private void assertAnalystCantEditFeed(String errorMessage) {
LOG.debug("EntityLevelAccessIT.assertAnalystCantEditFeed");
runAs(ANALYST);
FeedMetadata editFeedRequest = getEditFeedRequest();
NifiFeed feed = createFeed(editFeedRequest);
Assert.assertEquals(1, feed.getErrorMessages().size());
Assert.assertTrue(feed.getErrorMessages().get(0).startsWith(errorMessage));
}
use of com.thinkbiganalytics.feedmgr.rest.model.FeedMetadata in project kylo by Teradata.
the class EntityLevelAccessIT method createFeedWithAdmin.
private void createFeedWithAdmin() {
LOG.debug("EntityLevelAccessIT.createFeedWithAdmin");
runAs(ADMIN);
FeedMetadata feedRequest = makeCreateFeedRequest(category, template, "Feed A", TEST_FILE);
feed = createFeed(feedRequest).getFeedMetadata();
}
use of com.thinkbiganalytics.feedmgr.rest.model.FeedMetadata in project kylo by Teradata.
the class FeedIT method testDataIngestFeed.
@Test
public void testDataIngestFeed() throws Exception {
prepare();
importSystemFeeds();
copyDataToDropzone();
// create new category
FeedCategory category = createCategory(CATEGORY_NAME);
ImportTemplate ingest = importDataIngestTemplate();
// create standard ingest feed
FeedMetadata feed = getCreateFeedRequest(category, ingest, createNewFeedName());
FeedMetadata response = createFeed(feed).getFeedMetadata();
Assert.assertEquals(feed.getFeedName(), response.getFeedName());
waitForFeedToComplete();
assertExecutedJobs(response.getFeedName(), response.getFeedId());
failJobs(response.getCategoryAndFeedName());
abandonAllJobs(response.getCategoryAndFeedName());
}
use of com.thinkbiganalytics.feedmgr.rest.model.FeedMetadata in project kylo by Teradata.
the class SlaIT method testSla.
@Test
public void testSla() throws IOException {
copyDataToDropzone(TEST_FILE);
LocalDateTime now = LocalDateTime.now();
String systemName = now.format(DateTimeFormatter.ofPattern("HH_mm_ss_SSS"));
FeedMetadata response = createSimpleFeed("sla_" + systemName, TEST_FILE);
waitForFeedToComplete();
ServiceLevelAgreementGroup oneHourAgoSla = createOneHourAgoFeedProcessingDeadlineSla(response.getCategoryAndFeedName(), response.getFeedId());
triggerSla(oneHourAgoSla.getName());
assertSLA(oneHourAgoSla.getId(), FAILURE);
assertFilterByFailuresContains(oneHourAgoSla.getId());
assertFilterBySuccessContainsNot(oneHourAgoSla.getId());
assertFailedSlaAppearsInAlerts(oneHourAgoSla.getId());
ServiceLevelAgreementGroup oneHourAheadSla = createOneHourAheadFeedProcessingDeadlineSla(response.getCategoryAndFeedName(), response.getFeedId());
triggerSla(oneHourAheadSla.getName());
assertFilterByFailuresContainsNot(oneHourAheadSla.getId());
assertFilterBySuccessContains(oneHourAheadSla.getId());
assertSuccessfulSlaAppearsNotInAlerts(oneHourAheadSla.getId());
deleteExistingSla();
}
Aggregations