diff --git a/elasticsearch/x-pack/watcher/src/test/java/org/elasticsearch/watcher/actions/pagerduty/PagerDutyActionTests.java b/elasticsearch/x-pack/watcher/src/test/java/org/elasticsearch/watcher/actions/pagerduty/PagerDutyActionTests.java index 51cd7a4c04c..0010c90303b 100644 --- a/elasticsearch/x-pack/watcher/src/test/java/org/elasticsearch/watcher/actions/pagerduty/PagerDutyActionTests.java +++ b/elasticsearch/x-pack/watcher/src/test/java/org/elasticsearch/watcher/actions/pagerduty/PagerDutyActionTests.java @@ -158,7 +158,7 @@ public class PagerDutyActionTests extends ESTestCase { TextTemplate eventType = null; if (randomBoolean()) { eventType = TextTemplate.inline(randomFrom("trigger", "resolve", "acknowledge")).build(); - builder.field("eventType", eventType); + builder.field("event_type", eventType); } Boolean attachPayload = randomBoolean() ? null : randomBoolean();