11setup :
2- - skip :
2+ - skip :
33 features : allowed_warnings
44
55---
@@ -30,6 +30,22 @@ setup:
3030 index : " my-data-stream-1"
3131 wait_for_status : green
3232
33+ - do :
34+ indices.get_data_stream_settings :
35+ name : my-data-stream-1
36+ - match : { data_streams.0.name: my-data-stream-1 }
37+ - match : { data_streams.0.settings: {} }
38+ - match : { data_streams.0.effective_settings.index.number_of_shards: null }
39+ - match : { data_streams.0.effective_settings.index.number_of_replicas: "0" }
40+ - match : { data_streams.0.effective_settings.index.lifecycle.name: "my-policy" }
41+
42+ - do :
43+ indices.get_data_stream :
44+ name : my-data-stream-1
45+ - match : { data_streams.0.name: my-data-stream-1 }
46+ - match : { data_streams.0.settings: {} }
47+ - match : { data_streams.0.effective_settings: null }
48+
3349 - do :
3450 indices.put_data_stream_settings :
3551 name : my-data-stream-1
@@ -45,6 +61,22 @@ setup:
4561 - match : { data_streams.0.effective_settings.index.number_of_replicas: "0" }
4662 - match : { data_streams.0.effective_settings.index.lifecycle.name: "my-policy" }
4763
64+ - do :
65+ indices.get_data_stream_settings :
66+ name : my-data-stream-1
67+ - match : { data_streams.0.name: my-data-stream-1 }
68+ - match : { data_streams.0.settings.index.number_of_shards: "2" }
69+ - match : { data_streams.0.effective_settings.index.number_of_shards: "2" }
70+ - match : { data_streams.0.effective_settings.index.number_of_replicas: "0" }
71+ - match : { data_streams.0.effective_settings.index.lifecycle.name: "my-policy" }
72+
73+ - do :
74+ indices.get_data_stream :
75+ name : my-data-stream-1
76+ - match : { data_streams.0.name: my-data-stream-1 }
77+ - match : { data_streams.0.settings.index.number_of_shards: "2" }
78+ - match : { data_streams.0.effective_settings: null }
79+
4880---
4981" Test invalid settings " :
5082 - do :
0 commit comments