You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: qa/smoke-test-ingest-with-all-dependencies/src/yamlRestTest/resources/rest-api-spec/test/ingest/80_ingest_simulate.yml
"Test ingest simulate with mapping addition for data streams":
1222
+
# In this test, we make sure that when the index template is a data stream template, simulate ingest works the same whether the data
1223
+
# stream has been created or not -- either way, we expect it to use the template rather than the data stream / index mappings and settings.
1224
+
1225
+
- skip:
1226
+
features:
1227
+
- headers
1228
+
- allowed_warnings
1229
+
1230
+
- requires:
1231
+
cluster_features: ["simulate.mapping.addition"]
1232
+
reason: "ingest simulate mapping addition added in 8.16"
1233
+
1234
+
- do:
1235
+
headers:
1236
+
Content-Type: application/json
1237
+
ingest.put_pipeline:
1238
+
id: "foo-pipeline"
1239
+
body: >
1240
+
{
1241
+
"processors": [
1242
+
{
1243
+
"set": {
1244
+
"field": "foo",
1245
+
"value": true
1246
+
}
1247
+
}
1248
+
]
1249
+
}
1250
+
- match: { acknowledged: true }
1251
+
1252
+
- do:
1253
+
cluster.put_component_template:
1254
+
name: mappings_template
1255
+
body:
1256
+
template:
1257
+
mappings:
1258
+
dynamic: strict
1259
+
properties:
1260
+
foo:
1261
+
type: boolean
1262
+
1263
+
- do:
1264
+
cluster.put_component_template:
1265
+
name: settings_template
1266
+
body:
1267
+
template:
1268
+
settings:
1269
+
index:
1270
+
default_pipeline: "foo-pipeline"
1271
+
1272
+
- do:
1273
+
allowed_warnings:
1274
+
- "index template [test-composable-1] has index patterns [foo*] matching patterns from existing older templates [global] with patterns (global => [*]); this template [test-composable-1] will take precedence during new index creation"
1275
+
indices.put_index_template:
1276
+
name: test-composable-1
1277
+
body:
1278
+
index_patterns:
1279
+
- foo*
1280
+
composed_of:
1281
+
- mappings_template
1282
+
- settings_template
1283
+
1284
+
- do:
1285
+
allowed_warnings:
1286
+
- "index template [my-template-1] has index patterns [simple-data-stream1] matching patterns from existing older templates [global] with patterns (global => [*]); this template [my-template-1] will take precedence during new index creation"
1287
+
indices.put_index_template:
1288
+
name: my-template-1
1289
+
body:
1290
+
index_patterns: [simple-data-stream1]
1291
+
composed_of:
1292
+
- mappings_template
1293
+
- settings_template
1294
+
data_stream: {}
1295
+
1296
+
# Here we replace my-template-1 with a substitute version that uses the settings_template_2 and mappings_template_2 templates defined in
1297
+
# this request, and foo-pipeline-2 defined in this request.
0 commit comments