Skip to content

Commit 17eb188

Browse files
committed
Updates data_lifecycle tests. Delete not available in Serverless
1 parent ac70126 commit 17eb188

File tree

2 files changed

+24
-4
lines changed

2 files changed

+24
-4
lines changed

tests/indices/data_lifecycle.yml tests/indices/10_data_lifecycle.yml

-4
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,3 @@ teardown:
2626
- do:
2727
indices.explain_data_lifecycle: { index: 'my-data-stream' }
2828
- match: { indices.my-data-stream.index: 'my-data-stream' }
29-
- do:
30-
indices.delete_data_lifecycle:
31-
name: 'my-data-stream'
32-
- match: { acknowledged: true }

tests/indices/20_data_lifecycle.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
requires:
3+
serverless: false
4+
stack: true
5+
---
6+
setup:
7+
- do:
8+
indices.create: { index: 'my-data-stream' }
9+
---
10+
teardown:
11+
- do:
12+
indices.delete: { index: 'my-data-stream' }
13+
---
14+
'data_lifecycle':
15+
- do:
16+
indices.put_data_lifecycle:
17+
name: 'my-data-stream'
18+
body:
19+
data_retention: '7d'
20+
- is_true: 'acknowledged'
21+
- do:
22+
indices.delete_data_lifecycle:
23+
name: 'my-data-stream'
24+
- match: { acknowledged: true }

0 commit comments

Comments
 (0)