fix state left over by spec test

This commit is contained in:
Tal Levy 2018-02-13 13:40:09 -08:00
parent 8e282f21c8
commit 9850f44b95

View File

@ -101,3 +101,19 @@ setup:
lifecycle: "my_timeseries_lifecycle"
- match: { error.root_cause.0.type: "illegal_argument_exception" }
- match: { error.root_cause.0.reason: "Cannot delete policy [my_timeseries_lifecycle]. It is being used by at least one index [my_timeseries_index]" }
- do:
indices.put_settings:
index: my_timeseries_index
body:
index.lifecycle.name: ""
- do:
acknowledge: true
xpack.index_lifecycle.delete_lifecycle:
lifecycle: "my_timeseries_lifecycle"
- do:
catch: missing
xpack.index_lifecycle.get_lifecycle:
lifecycle: "my_timeseries_lifecycle"