File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
modules/data-streams/src/javaRestTest/java/org/elasticsearch/datastreams Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 2525import java .util .Set ;
2626
2727import static org .elasticsearch .cluster .metadata .DataStreamTestHelper .backingIndexEqualTo ;
28+ import static org .hamcrest .Matchers .containsInAnyOrder ;
2829import static org .hamcrest .Matchers .containsString ;
2930import static org .hamcrest .Matchers .empty ;
3031import static org .hamcrest .Matchers .equalTo ;
@@ -431,7 +432,14 @@ public void testSimulateTsdbDataStreamTemplate() throws Exception {
431432 assertThat (ObjectPath .evaluate (responseBody , "template.settings.index.mode" ), equalTo ("time_series" ));
432433 assertThat (ObjectPath .evaluate (responseBody , "template.settings.index.time_series.start_time" ), notNullValue ());
433434 assertThat (ObjectPath .evaluate (responseBody , "template.settings.index.time_series.end_time" ), notNullValue ());
434- assertThat (ObjectPath .evaluate (responseBody , "template.settings.index.routing_path" ), nullValue ());
435+ assertThat (
436+ ObjectPath .evaluate (responseBody , "template.settings.index.routing_path" ),
437+ containsInAnyOrder ("metricset" , "k8s.pod.uid" , "pod.labels.*" )
438+ );
439+ assertThat (
440+ ObjectPath .evaluate (responseBody , "template.settings.index.dimensions" ),
441+ containsInAnyOrder ("metricset" , "k8s.pod.uid" , "pod.labels.*" )
442+ );
435443 assertThat (ObjectPath .evaluate (responseBody , "overlapping" ), empty ());
436444 }
437445
You can’t perform that action at this time.
0 commit comments