From d610e9d7cc05eaf07f7683a49ef250025967e8dd Mon Sep 17 00:00:00 2001 From: Keith Massey Date: Tue, 17 Dec 2024 12:58:34 -0600 Subject: [PATCH] making data stream and template name unique --- .../java/org/elasticsearch/upgrades/DataStreamsUpgradeIT.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/qa/rolling-upgrade/src/test/java/org/elasticsearch/upgrades/DataStreamsUpgradeIT.java b/x-pack/qa/rolling-upgrade/src/test/java/org/elasticsearch/upgrades/DataStreamsUpgradeIT.java index 40003aeb15851..24d1e4a9b8270 100644 --- a/x-pack/qa/rolling-upgrade/src/test/java/org/elasticsearch/upgrades/DataStreamsUpgradeIT.java +++ b/x-pack/qa/rolling-upgrade/src/test/java/org/elasticsearch/upgrades/DataStreamsUpgradeIT.java @@ -247,7 +247,7 @@ public void testDataStreamValidationDoesNotBreakUpgrade() throws Exception { } public void testUpgradeDataStream() throws Exception { - String dataStreamName = "k8s"; + String dataStreamName = "reindex_test_data_stream"; int numRollovers = 10; if (CLUSTER_TYPE == ClusterType.OLD) { final String INDEX_TEMPLATE = """ @@ -258,7 +258,7 @@ public void testUpgradeDataStream() throws Exception { } }"""; // Add composable index template - String templateName = "1"; + String templateName = "reindex_test_data_stream_template"; var putIndexTemplateRequest = new Request("POST", "/_index_template/" + templateName); putIndexTemplateRequest.setJsonEntity(INDEX_TEMPLATE.replace("$TEMPLATE", TEMPLATE).replace("$PATTERN", dataStreamName)); assertOK(client().performRequest(putIndexTemplateRequest));