From 80e1ead082053774716234d14bd0a228e97edc76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20FOUCRET?= Date: Thu, 7 Mar 2024 11:41:23 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Adam Demjen --- .../xpack/application/FullClusterRestartIT.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/x-pack/plugin/ent-search/qa/full-cluster-restart/src/javaRestTest/java/org/elasticsearch/xpack/application/FullClusterRestartIT.java b/x-pack/plugin/ent-search/qa/full-cluster-restart/src/javaRestTest/java/org/elasticsearch/xpack/application/FullClusterRestartIT.java index 7c262f5b844d6..7ba036f6f8c0f 100644 --- a/x-pack/plugin/ent-search/qa/full-cluster-restart/src/javaRestTest/java/org/elasticsearch/xpack/application/FullClusterRestartIT.java +++ b/x-pack/plugin/ent-search/qa/full-cluster-restart/src/javaRestTest/java/org/elasticsearch/xpack/application/FullClusterRestartIT.java @@ -25,14 +25,14 @@ import static org.elasticsearch.Version.V_8_12_0; public class FullClusterRestartIT extends ParameterizedFullClusterRestartTestCase { - // DSL was introduced with version 8.1.2.0 of ES. + // DSL was introduced with version 8.12.0 of ES. private static final Version DSL_DEFAULT_RETENTION_VERSION = V_8_12_0; // DSL was introduced with the version 3 of the registry. private static final int DSL_REGISTRY_VERSION = 3; // Legacy name we used for ILM policy configuration in versions prior to 8.12.0. - private static final String EVENT_DATA_STREAM_TEMPLATE_NAME = "behavioral_analytics-events-default"; + private static final String EVENT_DATA_STREAM_LEGACY_TEMPLATE_NAME = "behavioral_analytics-events-default"; // Event data streams template name. private static final String EVENT_DATA_STREAM_LEGACY_ILM_POLICY_NAME = "behavioral_analytics-events-default_policy"; @@ -66,7 +66,7 @@ public void testBehavioralAnalyticsDataRetention() throws Exception { String newAnalyticsCollectionName = "newstuff"; if (isRunningAgainstOldCluster()) { - // Ensure index templates is installed before executing the tests. + // Ensure index template is installed before executing the tests. assertBusy(() -> assertDataStreamTemplateExists(EVENT_DATA_STREAM_TEMPLATE_NAME)); // Create an analytics collection