Temporarily preserve data streams after each yaml rest test has executed. (#54959) (#55007)

Instead delete the data streams manually, until client yaml test runners
have been updated to also delete all data streams after each yaml test.

Relates to #53100
This commit is contained in:
Martijn van Groningen 2020-04-09 14:44:57 +02:00 committed by GitHub
parent f55a361b64
commit 7f38b146b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -430,4 +430,13 @@ public abstract class ESClientYamlSuiteTestCase extends ESRestTestCase {
configureClient(builder, restClientSettings());
return builder;
}
protected final boolean preserveDataStreamsUponCompletion() {
// TODO: enable automatic deleting of data streams
// For now don't automatically try to remove all data streams after each yaml test.
// The client runners need to be adjust to remove data streams after each test too,
// otherwise rest yaml tests using data streams succeed in Elasticsearch, but may fail when clients run
// the yaml test suite. In the mean time we should delete data streams manually after each test.
return true;
}
}