Skip to content

Commit 4196635

Browse files
authored
Checking failure store used for wrong data_stream.type from 9.2.0 (#131583)
1 parent c9a80bf commit 4196635

File tree

1 file changed

+13
-7
lines changed
  • x-pack/plugin/stack/src/yamlRestTest/resources/rest-api-spec/test/stack

1 file changed

+13
-7
lines changed

x-pack/plugin/stack/src/yamlRestTest/resources/rest-api-spec/test/stack/10_basic.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ setup:
263263
name: .kibana-reporting-foo
264264

265265
---
266-
"Test wrong data_stream type":
266+
"Test wrong data_stream type - synthetics and metrics":
267267

268268
- do:
269269
catch: bad_request
@@ -278,19 +278,25 @@ setup:
278278
- do:
279279
catch: bad_request
280280
index:
281-
index: logs-dataset0-namespace1
281+
index: metrics-dataset0-namespace1
282282
body:
283283
"@timestamp": "2020-01-01"
284-
data_stream.type: "metrics"
284+
data_stream.type: "synthetics"
285285
data_stream.dataset: "dataset0"
286286
data_stream.namespace: "namespace1"
287287

288-
- do:
289-
catch: bad_request
288+
---
289+
"Test wrong data_stream type - logs from 9.2.0":
290+
- requires:
291+
cluster_features: [ "gte_v9.1.99" ]
292+
reason: "failure store is enabled by default for log data streams since 9.2.0"
293+
294+
- do:
290295
index:
291-
index: metrics-dataset0-namespace1
296+
index: logs-dataset0-namespace1
292297
body:
293298
"@timestamp": "2020-01-01"
294-
data_stream.type: "synthetics"
299+
data_stream.type: "metrics"
295300
data_stream.dataset: "dataset0"
296301
data_stream.namespace: "namespace1"
302+
- match: { failure_store: used }

0 commit comments

Comments
 (0)