-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path30_create_from.yml
43 lines (43 loc) · 1.01 KB
/
30_create_from.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
---
requires:
stack: true
serverless: false
---
teardown:
- do:
indices.delete:
index: test-source-index-1
ignore: 404
- do:
indices.delete:
index: test-dest-index-1
ignore: 404
---
"Test migrate.create_from":
- do:
indices.create:
index: test-source-index-1
body:
settings:
index:
number_of_shards: 3
number_of_replicas: 5
mappings:
dynamic: strict
properties:
bar:
type: text
- do:
indices.create_from:
source: "test-source-index-1"
dest: "test-dest-index-1"
body: {}
- do:
indices.get_settings:
index: test-dest-index-1
- match: { test-dest-index-1.settings.index.number_of_shards: "3" }
- match: { test-dest-index-1.settings.index.number_of_replicas: "5" }
- do:
indices.get_mapping:
index: test-dest-index-1
- match: {test-dest-index-1.mappings.properties.bar.type: text}