Skip to content

Commit 25bc848

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 2609ed2 commit 25bc848

File tree

1 file changed

+3
-11
lines changed
  • x-pack/plugin/logsdb/src/javaRestTest/java/org/elasticsearch/xpack/logsdb

1 file changed

+3
-11
lines changed

x-pack/plugin/logsdb/src/javaRestTest/java/org/elasticsearch/xpack/logsdb/LogsdbRestIT.java

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,16 @@
77

88
package org.elasticsearch.xpack.logsdb;
99

10-
import org.apache.http.util.EntityUtils;
1110
import org.elasticsearch.client.Request;
1211
import org.elasticsearch.cluster.metadata.IndexMetadata;
1312
import org.elasticsearch.common.settings.Settings;
1413
import org.elasticsearch.common.time.DateFormatter;
1514
import org.elasticsearch.common.time.FormatNames;
16-
import org.elasticsearch.common.xcontent.XContentHelper;
1715
import org.elasticsearch.common.xcontent.support.XContentMapValues;
1816
import org.elasticsearch.index.IndexSettings;
1917
import org.elasticsearch.test.cluster.ElasticsearchCluster;
2018
import org.elasticsearch.test.cluster.local.distribution.DistributionType;
2119
import org.elasticsearch.test.rest.ESRestTestCase;
22-
import org.elasticsearch.xcontent.json.JsonXContent;
2320
import org.hamcrest.Matchers;
2421
import org.junit.ClassRule;
2522

@@ -380,14 +377,9 @@ public void testSyntheticSourceRuntimeFieldQueries() throws IOException {
380377
String messageLength = Integer.toString(msg.length());
381378
sb.append("{ \"create\": {} }").append('\n');
382379
if (randomBoolean()) {
383-
sb.append(
384-
"""
385-
{"@timestamp":"$now","message":"$msg","message_length":$l,"log":{"level":"$level"}}
386-
""".replace("$now", formatInstant(now))
387-
.replace("$level", level)
388-
.replace("$msg", msg)
389-
.replace("$l", messageLength)
390-
);
380+
sb.append("""
381+
{"@timestamp":"$now","message":"$msg","message_length":$l,"log":{"level":"$level"}}
382+
""".replace("$now", formatInstant(now)).replace("$level", level).replace("$msg", msg).replace("$l", messageLength));
391383
} else {
392384
sb.append("""
393385
{"@timestamp": "$now", "message": "$msg", "message_length": $l}

0 commit comments

Comments
 (0)