Skip to content

Commit df335e3

Browse files
committed
Clarify type in the context of this test
1 parent 9bcc095 commit df335e3

File tree

1 file changed

+2
-3
lines changed
  • x-pack/plugin/monitoring/src/test/java/org/elasticsearch/xpack/monitoring/integration

1 file changed

+2
-3
lines changed

x-pack/plugin/monitoring/src/test/java/org/elasticsearch/xpack/monitoring/integration/MonitoringIT.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
import org.elasticsearch.common.xcontent.XContentBuilder;
2424
import org.elasticsearch.common.xcontent.XContentHelper;
2525
import org.elasticsearch.common.xcontent.XContentType;
26-
import org.elasticsearch.index.mapper.MapperService;
2726
import org.elasticsearch.license.License;
2827
import org.elasticsearch.plugins.Plugin;
2928
import org.elasticsearch.rest.RestStatus;
@@ -127,7 +126,7 @@ public void testMonitoringBulk() throws Exception {
127126

128127
final MonitoringBulkResponse bulkResponse =
129128
new MonitoringBulkRequestBuilder(client())
130-
.add(system, null, new BytesArray(createBulkEntity().getBytes("UTF-8")), XContentType.JSON,
129+
.add(system, "monitoring_data_type", new BytesArray(createBulkEntity().getBytes("UTF-8")), XContentType.JSON,
131130
System.currentTimeMillis(), interval.millis())
132131
.get();
133132

@@ -178,7 +177,7 @@ public void testMonitoringBulk() throws Exception {
178177
equalTo(1L));
179178

180179
for (final SearchHit hit : hits.getHits()) {
181-
assertMonitoringDoc(toMap(hit), system, MapperService.SINGLE_MAPPING_NAME, interval);
180+
assertMonitoringDoc(toMap(hit), system, "monitoring_data_type", interval);
182181
}
183182
});
184183
}

0 commit comments

Comments
 (0)