Skip to content

Commit fc67d9d

Browse files
committed
fixing yaml rest test
1 parent 5941105 commit fc67d9d

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

modules/data-streams/src/yamlRestTest/resources/rest-api-spec/test/data_stream/250_data_stream_mappings.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,11 @@ setup:
8080
- match: { data_streams.0.name: my-data-stream-1 }
8181
- match: { data_streams.0.mappings.properties.name.type: "keyword" }
8282
- match: { data_streams.0.effective_mappings: null }
83-
84-
- do:
85-
indices.get_data_stream:
86-
name: my-data-stream-1
87-
- set: { data_streams.0.indices.0.index_name: idx0name }
83+
- set: { data_streams.0.indices.0.index_name: oldIndexName }
84+
- set: { data_streams.0.indices.1.index_name: newIndexName }
8885

8986
- do:
9087
indices.get_mapping:
9188
index: my-data-stream-1
92-
- match: { .$idx0name.mappings.properties.name.type: "keyword" }
89+
- match: { .$oldIndexName.mappings.properties.name: null }
90+
- match: { .$newIndexName.mappings.properties.name.type: "keyword" }

0 commit comments

Comments
 (0)