Use underscore notation for field names

Relates elastic/elasticsearchelastic/elasticsearch#17800

Original commit: elastic/x-pack-elasticsearch@1f6022116c
This commit is contained in:
Daniel Mitterdorfer 2016-04-19 08:41:47 +02:00
parent f5035d3f1e
commit fb825d7fd3
1 changed files with 1 additions and 1 deletions

View File

@ -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();