Don't remove indices to avoid monitoring from intermittently failing

to index monitoring docs.
This commit is contained in:
Martijn van Groningen 2019-10-08 17:10:16 +02:00
parent a17f394e27
commit 8b7100eb1f
No known key found for this signature in database
GPG Key ID: AB236F4FCF2AF12A
1 changed files with 6 additions and 0 deletions

View File

@ -41,6 +41,12 @@ public abstract class CommonEnrichRestTestCase extends ESRestTestCase {
} }
} }
@Override
protected boolean preserveIndicesUponCompletion() {
// In order to avoid monitoring from failing exporting docs to monitor index.
return true;
}
private void setupGenericLifecycleTest(boolean deletePipeilne) throws Exception { private void setupGenericLifecycleTest(boolean deletePipeilne) throws Exception {
// Create the policy: // Create the policy:
Request putPolicyRequest = new Request("PUT", "/_enrich/policy/my_policy"); Request putPolicyRequest = new Request("PUT", "/_enrich/policy/my_policy");