Skip to content

Commit 90cc2ef

Browse files
committed
Updated Utility cleanup phase with latest ESRestTestCase.java
1 parent 358586f commit 90cc2ef

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/Elasticsearch/Tests/Utility.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ private static function wipeCluster(Client $client): void
119119
self::wipeDataStreams($client);
120120
}
121121

122-
self::wipeAllindices($client);
122+
self::wipeAllIndices($client);
123123

124124
if (getenv('TEST_SUITE') === 'xpack') {
125125
self::wipeTemplateForXpack($client);
@@ -269,12 +269,12 @@ private static function wipeDataStreams(Client $client): void
269269
/**
270270
* Delete all indices
271271
*
272-
* @see ESRestTestCase.java:wipeAllindices()
272+
* @see ESRestTestCase.java:wipeAllIndices()
273273
*/
274-
private static function wipeAllindices(Client $client): void
274+
private static function wipeAllIndices(Client $client): void
275275
{
276276
$client->indices()->delete([
277-
'index' => '*',
277+
'index' => '*,-.ds-ilm-history-*',
278278
'expand_wildcards' => 'all',
279279
'client' => [
280280
'ignore' => 404
@@ -392,6 +392,7 @@ private static function isXPackTemplate(string $name): bool
392392
case "synthetics-settings":
393393
case "synthetics-mappings":
394394
case ".snapshot-blob-cache":
395+
case ".deprecation-indexing-template":
395396
return true;
396397
}
397398
return false;

0 commit comments

Comments
 (0)