-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path10_basic.yml
79 lines (76 loc) · 1.77 KB
/
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
---
requires:
stack: true
serverless: false
---
setup:
- do:
indices.create:
index: test_snapshots_searchable
body:
settings:
number_of_shards: 1
number_of_replicas: 0
- do:
bulk:
body:
- index:
_index: test_snapshots_searchable
_id: "1"
- field: foo
- index:
_index: test_snapshots_searchable
_id: "2"
- field: bar
- index:
_index: test_snapshots_searchable
_id: "3"
- field: baz
- do:
snapshot.create_repository:
repository: repository-test
body:
type: fs
settings:
location: "repository-test"
- do:
snapshot.create:
repository: repository-test
snapshot: snapshot
wait_for_completion: true
- do:
indices.delete:
index: test_snapshots_searchable
---
teardown:
- do:
snapshot.delete:
repository: repository-test
snapshot: snapshot
ignore: 404
- do:
indices.delete:
index: test_snapshots_searchable
ignore: 404
---
'Searchable Snapshots':
- do:
searchable_snapshots.mount:
repository: repository-test
snapshot: snapshot
wait_for_completion: true
storage: full_copy
body:
index: test_snapshots_searchable
- match: { snapshot.snapshot: snapshot }
- match: { snapshot.shards.failed: 0 }
- match: { snapshot.shards.successful: 1 }
- do:
searchable_snapshots.stats: {}
- gte: { _shards.total: 1 }
- do:
searchable_snapshots.cache_stats: {}
- is_true: nodes
- do:
searchable_snapshots.clear_cache: {}
- gte: { _shards.total: 1 }