diff --git a/x-pack/plugin/migrate/src/internalClusterTest/java/org/elasticsearch/xpack/migrate/action/ReindexDatastreamIndexTransportActionIT.java b/x-pack/plugin/migrate/src/internalClusterTest/java/org/elasticsearch/xpack/migrate/action/ReindexDatastreamIndexTransportActionIT.java index 37311ca571413..a3642ddb664d4 100644 --- a/x-pack/plugin/migrate/src/internalClusterTest/java/org/elasticsearch/xpack/migrate/action/ReindexDatastreamIndexTransportActionIT.java +++ b/x-pack/plugin/migrate/src/internalClusterTest/java/org/elasticsearch/xpack/migrate/action/ReindexDatastreamIndexTransportActionIT.java @@ -24,8 +24,6 @@ import org.elasticsearch.action.bulk.BulkRequest; import org.elasticsearch.action.bulk.BulkResponse; import org.elasticsearch.action.index.IndexRequest; -import org.elasticsearch.action.ingest.DeletePipelineRequest; -import org.elasticsearch.action.ingest.DeletePipelineTransportAction; import org.elasticsearch.action.ingest.PutPipelineRequest; import org.elasticsearch.action.ingest.PutPipelineTransportAction; import org.elasticsearch.cluster.block.ClusterBlockException; @@ -70,18 +68,8 @@ public class ReindexDatastreamIndexTransportActionIT extends ESIntegTestCase { @After - private void cleanupCluster() throws Exception { - safeGet( - clusterAdmin().execute( - DeletePipelineTransportAction.TYPE, - new DeletePipelineRequest( - TEST_REQUEST_TIMEOUT, - TEST_REQUEST_TIMEOUT, - MigrateTemplateRegistry.REINDEX_DATA_STREAM_PIPELINE_NAME - ) - ) - ); - super.cleanUpCluster(); + private void cleanup() { + deletePipeline(MigrateTemplateRegistry.REINDEX_DATA_STREAM_PIPELINE_NAME); } private static final String MAPPING = """