Skip to content

Commit

Permalink
spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnvg committed Aug 16, 2023
1 parent d5cf4a9 commit c1f94a9
Showing 1 changed file with 22 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -546,30 +546,30 @@ public void testUpdateComponentTemplateDoesNotFailIndexTemplateValidation() thro
public void testLookBackTime() throws IOException {
// Create template that uses index.look_back_time index setting:
String template = """
{
"index_patterns": ["test*"],
"template": {
"settings":{
"index": {
"look_back_time": "24h",
"number_of_replicas": 0,
"mode": "time_series"
}
},
"mappings":{
"properties": {
"@timestamp" : {
"type": "date"
},
"field": {
"type": "keyword",
"time_series_dimension": true
{
"index_patterns": ["test*"],
"template": {
"settings":{
"index": {
"look_back_time": "24h",
"number_of_replicas": 0,
"mode": "time_series"
}
},
"mappings":{
"properties": {
"@timestamp" : {
"type": "date"
},
"field": {
"type": "keyword",
"time_series_dimension": true
}
}
}
}
},
"data_stream": {}
}""";
},
"data_stream": {}
}""";
var putIndexTemplateRequest = new Request("PUT", "/_index_template/2");
putIndexTemplateRequest.setJsonEntity(template);
assertOK(client().performRequest(putIndexTemplateRequest));
Expand Down

0 comments on commit c1f94a9

Please sign in to comment.