Search in sources :

Example 1 with EsPublisherConfiguration

use of com.netflix.titus.supplementary.taskspublisher.config.EsPublisherConfiguration in project titus-control-plane by Netflix.

the class TaskEventsGeneratorTest method mockEsPublisherConfiguration.

private EsPublisherConfiguration mockEsPublisherConfiguration() {
    EsPublisherConfiguration mockConfig = mock(EsPublisherConfiguration.class);
    when(mockConfig.getTaskDocumentEsIndexName()).thenReturn("tasks_");
    when(mockConfig.getTaskDocumentEsIndexDateSuffixPattern()).thenReturn("yyyyMM");
    return mockConfig;
}
Also used : EsPublisherConfiguration(com.netflix.titus.supplementary.taskspublisher.config.EsPublisherConfiguration)

Aggregations

EsPublisherConfiguration (com.netflix.titus.supplementary.taskspublisher.config.EsPublisherConfiguration)1