test: fix tests to not use mustache

Original commit: elastic/x-pack-elasticsearch@4a88d0d458
This commit is contained in:
Martijn van Groningen 2016-02-03 10:47:35 +01:00
parent e617d8365f
commit 4d30dadba9
3 changed files with 5 additions and 5 deletions

View File

@ -123,7 +123,7 @@ public class HipChatServiceTests extends AbstractWatcherIntegrationTestCase {
switch (profile) {
case USER:
account = "user_account";
actionBuilder = hipchatAction(account, "/code {{ctx.payload.ref}}")
actionBuilder = hipchatAction(account, "/code HipChatServiceIT#testWatchWithHipChatAction")
.addRooms("test-watcher", "test-watcher-2")
.addUsers("watcher@elastic.co")
.setFormat(HipChatMessage.Format.TEXT)
@ -133,7 +133,7 @@ public class HipChatServiceTests extends AbstractWatcherIntegrationTestCase {
case INTEGRATION:
account = "integration_account";
actionBuilder = hipchatAction(account, "/code {{ctx.payload.ref}}")
actionBuilder = hipchatAction(account, "/code HipChatServiceIT#testWatchWithHipChatAction")
.setFormat(HipChatMessage.Format.TEXT)
.setColor(color)
.setNotify(false);
@ -142,7 +142,7 @@ public class HipChatServiceTests extends AbstractWatcherIntegrationTestCase {
default:
assertThat(profile, is(HipChatAccount.Profile.V1));
account = "v1_account";
actionBuilder = hipchatAction(account, "/code {{ctx.payload.ref}}")
actionBuilder = hipchatAction(account, "/code HipChatServiceIT#testWatchWithHipChatAction")
.addRooms("test-watcher", "test-watcher-2")
.setFrom("watcher-test")
.setFormat(HipChatMessage.Format.TEXT)

View File

@ -74,7 +74,7 @@ public class PagerDutyServiceTests extends AbstractWatcherIntegrationTestCase {
public void testWatchWithPagerDutyAction() throws Exception {
String account = "test_account";
PagerDutyAction.Builder actionBuilder = pagerDutyAction(IncidentEvent
.templateBuilder("pager duty integration test `{{ctx.payload.ref}}`").setAccount(account));
.templateBuilder("pager duty integration test `testWatchWithPagerDutyAction()`").setAccount(account));
PutWatchResponse putWatchResponse = watcherClient().preparePutWatch("1").setSource(watchBuilder()
.trigger(schedule(interval("10m")))

View File

@ -78,7 +78,7 @@ public class SlackServiceTests extends AbstractWatcherIntegrationTestCase {
public void testWatchWithSlackAction() throws Exception {
String account = "test_account";
SlackAction.Builder actionBuilder = slackAction(account, SlackMessage.Template.builder()
.setText("slack integration test `{{ctx.payload.ref}}`")
.setText("slack integration test `testWatchWithSlackAction()`")
.addTo("#watcher-test", "#watcher-test-2"));
PutWatchResponse putWatchResponse = watcherClient().preparePutWatch("1").setSource(watchBuilder()