Skip to content

Commit bb41ce1

Browse files
committed
Splits data streams tests in 2 for Stack/Serverless
1 parent 7ba2ce6 commit bb41ce1

File tree

2 files changed

+43
-1
lines changed

2 files changed

+43
-1
lines changed

tests/indices/data_streams.yml tests/indices/data_streams_serverless.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
requires:
33
serverless: true
4-
stack: true
4+
stack: false
55
---
66
setup:
77
- do:

tests/indices/data_streams_stack.yml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
requires:
3+
serverless: false
4+
stack: true
5+
---
6+
setup:
7+
- do:
8+
indices.put_index_template:
9+
name: my-template
10+
body:
11+
index_patterns: [logs-*]
12+
template:
13+
mappings:
14+
properties:
15+
'@timestamp':
16+
type: date
17+
data_stream: {}
18+
---
19+
teardown:
20+
- do:
21+
indices.delete_index_template:
22+
name: my-template
23+
---
24+
'indices.data_streams':
25+
- do:
26+
indices.create_data_stream:
27+
name: logs-test
28+
- is_true: acknowledged
29+
30+
- do:
31+
indices.get_data_stream:
32+
name: logs-test
33+
- match: { data_streams.0.name: logs-test }
34+
35+
- do:
36+
indices.data_streams_stats: {}
37+
- is_true: data_streams
38+
39+
- do:
40+
indices.delete_data_stream:
41+
name: logs-test
42+
- is_true: acknowledged

0 commit comments

Comments
 (0)