use of com.thinkbiganalytics.metadata.api.sla.DatasourceUpdatedSinceSchedule in project kylo by Teradata.
the class MetadataClientProviderTest method testEnsurePrecondition.
@Test
public void testEnsurePrecondition() {
Feed feed = this.provider.ensureFeed("category", "test5", "");
try {
feed = this.provider.ensurePrecondition(feed.getId(), new DatasourceUpdatedSinceFeedExecuted("ds5", "test5"), new DatasourceUpdatedSinceSchedule("ds5", "0 0 6 * * ? *"), new FeedExecutedSinceFeed("category", "dep5", "category", "test5"), new FeedExecutedSinceSchedule("category", "test5", "0 0 6 * * ? *"), new com.thinkbiganalytics.metadata.api.sla.WithinSchedule("0 0 6 * * ? *", "2 hours"));
} catch (ParseException e) {
e.printStackTrace();
;
}
assertThat(feed).isNotNull();
}
Aggregations