|
@@ -213,51 +213,3 @@ teardown:
|
|
|
- is_false: indices.my_index
|
|
|
- is_false: indices.my_index2
|
|
|
- is_false: indices.another_index
|
|
|
-
|
|
|
----
|
|
|
-"Test new phase still has phase_time":
|
|
|
-
|
|
|
- - do:
|
|
|
- ilm.put_lifecycle:
|
|
|
- policy: "mypolicy"
|
|
|
- body: |
|
|
|
- {
|
|
|
- "policy": {
|
|
|
- "phases": {
|
|
|
- "hot": {
|
|
|
- "min_age": "1000s",
|
|
|
- "actions": {}
|
|
|
- },
|
|
|
- "warm": {
|
|
|
- "min_age": "2000s",
|
|
|
- "actions": {
|
|
|
- "forcemerge": {
|
|
|
- "max_num_segments": 10000
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- - do:
|
|
|
- indices.create:
|
|
|
- index: foo
|
|
|
- body:
|
|
|
- settings:
|
|
|
- index.lifecycle.name: "mypolicy"
|
|
|
-
|
|
|
- - do:
|
|
|
- ilm.explain_lifecycle:
|
|
|
- index: "foo"
|
|
|
-
|
|
|
- - is_true: indices.foo.managed
|
|
|
- - match: { indices.foo.index: "foo" }
|
|
|
- - match: { indices.foo.policy: "mypolicy" }
|
|
|
- - match: { indices.foo.phase: "new" }
|
|
|
- - match: { indices.foo.action: "complete" }
|
|
|
- - match: { indices.foo.step: "complete" }
|
|
|
- - is_true: indices.foo.phase_time_millis
|
|
|
- - is_false: indices.foo.failed_step
|
|
|
- - is_false: indices.foo.step_info
|
|
|
- - is_false: indices.foo.phase_execution
|