use of com.linecorp.armeria.common.MediaType.JSON_UTF_8 in project zipkin by openzipkin.
the class ITEnsureIndexTemplate method setUpCatchAllTemplate.
/**
* Create a "catch-all" index template with the lowest priority prior to running tests to ensure
* that the index templates created during tests with higher priority function as designed. Only
* applicable for ES >= 7.8
*/
void setUpCatchAllTemplate() throws IOException {
AggregatedHttpRequest updateTemplate = AggregatedHttpRequest.of(RequestHeaders.of(PUT, catchAllIndexPath(), CONTENT_TYPE, JSON_UTF_8), HttpData.ofUtf8(catchAllTemplate()));
Internal.instance.http(storage).newCall(updateTemplate, (parser, contentString) -> null, "update-template").execute();
}
Aggregations