-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path10_basic.yml
46 lines (43 loc) · 937 Bytes
/
10_basic.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
requires:
serverless: true
stack: true
---
setup:
- do:
indices.create:
index: 'enrich_tests'
body:
mappings:
properties:
baz: { type: 'keyword' }
a: { type: 'keyword' }
b: { type: 'keyword' }
---
teardown:
- do:
indices.delete:
index: 'enrich_tests'
---
'enrich':
- do:
enrich.put_policy:
name: 'policy_test'
body:
match:
indices: ['enrich_tests*']
match_field: 'baz'
enrich_fields: ['a', 'b']
- match: { acknowledged: true }
- do:
enrich.execute_policy:
name: 'policy_test'
- match: { status.phase: 'COMPLETE' }
- do:
enrich.get_policy:
name: 'policy_test'
- match: { policies.0.config.match.name: 'policy_test' }
- do:
enrich.delete_policy:
name: 'policy_test'
- match: { acknowledged: true }