-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathalias.yml
53 lines (45 loc) · 1001 Bytes
/
alias.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
47
48
49
50
51
52
53
---
requires:
serverless: true
stack: true
---
setup:
- do:
indices.create:
index: 'indices_alias_test'
- do:
indices.create:
index: 'indices_alias_test2'
---
teardown:
- do:
indices.delete:
index: 'indices_alias_test'
- do:
indices.delete:
index: 'indices_alias_test2'
---
"indices.alias basic tests":
- do:
indices.put_alias:
index: 'indices_alias_test'
name: 'testing_alias'
- match: { acknowledged: true }
- do:
indices.get_alias:
name: 'testing_alias'
- match: { indices_alias_test.aliases.testing_alias: {} }
- do:
indices.exists_alias:
name: 'testing_alias'
- do:
indices.update_aliases:
body:
actions:
- add: { index: 'indices_alias_test2', alias: 'testing_alias' }
- match: { acknowledged: true }
- do:
indices.delete_alias:
index: '*'
name: 'testing_alias'
- match: { acknowledged: true }