[TEST] Enable test compilation against elasticsearch version 1.5.2
ElasticsearchIntegrationTest now has a method called httpClient with a different return type than the watcher AbstractWatcherTests httpclient. This change renamed the `AbstractWatcherTests.httpClient` to `AbstractWatcherTests.watcherHttpClient`. Original commit: elastic/x-pack-elasticsearch@d35f076cf2
This commit is contained in:
parent
280732a120
commit
29d25d4440
|
@ -38,7 +38,7 @@ public class WatchRecordTests extends AbstractWatcherIntegrationTests {
|
|||
|
||||
@Test
|
||||
public void testParser() throws Exception {
|
||||
Watch watch = WatcherTestUtils.createTestWatch("fired_test", scriptService(), httpClient(), noopEmailService(), logger);
|
||||
Watch watch = WatcherTestUtils.createTestWatch("fired_test", scriptService(), watcherHttpClient(), noopEmailService(), logger);
|
||||
ScheduleTriggerEvent event = new ScheduleTriggerEvent(watch.id(), DateTime.now(UTC), DateTime.now(UTC));
|
||||
Wid wid = new Wid("_record", randomLong(), DateTime.now(UTC));
|
||||
WatchRecord watchRecord = new WatchRecord(wid, watch, event);
|
||||
|
@ -54,7 +54,7 @@ public class WatchRecordTests extends AbstractWatcherIntegrationTests {
|
|||
|
||||
@Test
|
||||
public void testParser_WithSealedWatchRecord() throws Exception {
|
||||
Watch watch = WatcherTestUtils.createTestWatch("fired_test", scriptService(), httpClient(), noopEmailService(), logger);
|
||||
Watch watch = WatcherTestUtils.createTestWatch("fired_test", scriptService(), watcherHttpClient(), noopEmailService(), logger);
|
||||
ScheduleTriggerEvent event = new ScheduleTriggerEvent(watch.id(), DateTime.now(UTC), DateTime.now(UTC));
|
||||
Wid wid = new Wid("_record", randomLong(), DateTime.now(UTC));
|
||||
WatchRecord watchRecord = new WatchRecord(wid, watch, event);
|
||||
|
@ -84,7 +84,7 @@ public class WatchRecordTests extends AbstractWatcherIntegrationTests {
|
|||
|
||||
@Test
|
||||
public void testParser_WithSealedWatchRecord_WithScriptSearchCondition() throws Exception {
|
||||
Watch watch = WatcherTestUtils.createTestWatch("fired_test", scriptService(), httpClient(), noopEmailService(), logger);
|
||||
Watch watch = WatcherTestUtils.createTestWatch("fired_test", scriptService(), watcherHttpClient(), noopEmailService(), logger);
|
||||
ScheduleTriggerEvent event = new ScheduleTriggerEvent(watch.id(), DateTime.now(UTC), DateTime.now(UTC));
|
||||
WatchExecutionContext ctx = new TriggeredExecutionContext( watch, new DateTime(), event);
|
||||
WatchRecord watchRecord = new WatchRecord(ctx.id(), watch, event);
|
||||
|
|
|
@ -333,7 +333,7 @@ public abstract class AbstractWatcherIntegrationTests extends ElasticsearchInteg
|
|||
return internalTestCluster().getInstance(ScriptServiceProxy.class);
|
||||
}
|
||||
|
||||
protected HttpClient httpClient() {
|
||||
protected HttpClient watcherHttpClient() {
|
||||
return internalTestCluster().getInstance(HttpClient.class);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue