Skip to content

Specs with `elastic` trait have rolled over indices

John Mason requested to merge jm-ilm-search-multi-index-trait into master

What does this MR do and why?

With the search curation introduced in !98809 (merged), this rolls over all indices before specs with the elastic metadata tag.

This behavior can be bypassed by using the existing tag elastic_clean.

Any rspec test that has the :elastic metadata tag will have this block defined here run. We use this to spin up indices before tests and delete them after tests. If a test needs to talk to elasticsearch and is not stubbed out, we are most likely using the elastic tag.

What I'm doing in this MR is adding to that hook so every existing test with the elastic tag is interacting with an index that has been rolled over.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by John Mason

Merge request reports

Loading