use of com.epam.ta.reportportal.ws.model.project.AnalyzerConfig in project service-api by reportportal.
the class LogIndexerServiceTest method testIndexDefectsUpdate.
@Test
void testIndexDefectsUpdate() {
final Map<Long, String> toUpdate = Maps.newHashMap(1L, "pb001");
when(indexerServiceClient.indexDefectsUpdate(1L, toUpdate)).thenReturn(Collections.emptyList());
logIndexerService.indexDefectsUpdate(1L, new AnalyzerConfig(), Lists.newArrayList(createTestItem(1L, TestItemIssueGroup.PRODUCT_BUG)));
verify(indexerServiceClient, times(1)).indexDefectsUpdate(1L, toUpdate);
}
use of com.epam.ta.reportportal.ws.model.project.AnalyzerConfig in project service-api by reportportal.
the class LaunchPreparerServiceImplTest method prepare.
@Test
void prepare() {
final long launchId = 1L;
final IndexLaunch indexLaunch = new IndexLaunch();
indexLaunch.setLaunchId(launchId);
indexLaunch.setLaunchName("name");
indexLaunch.setProjectId(1L);
when(launchRepository.findIndexLaunchByIdsAndLogLevel(eq(List.of(launchId)), anyInt())).thenReturn(List.of(indexLaunch));
final IndexTestItem indexTestItem = new IndexTestItem();
when(testItemPreparerService.prepare(indexLaunch.getLaunchId())).thenReturn(List.of(indexTestItem));
final Cluster cluster = new Cluster();
cluster.setIndexId(1L);
cluster.setMessage("hello");
when(clusterRepository.findAllByLaunchId(indexLaunch.getLaunchId())).thenReturn(List.of(cluster));
final AnalyzerConfig analyzerConfig = new AnalyzerConfig();
preparerService.prepare(List.of(launchId), analyzerConfig);
}
use of com.epam.ta.reportportal.ws.model.project.AnalyzerConfig in project service-api by reportportal.
the class BatchLogIndexerTest method analyzerConfig.
private AnalyzerConfig analyzerConfig() {
AnalyzerConfig analyzerConfig = new AnalyzerConfig();
analyzerConfig.setAnalyzerMode(ALL_LAUNCHES.getValue());
return analyzerConfig;
}
Aggregations