Skip to content

Commit

Permalink
making data stream and template name unique
Browse files Browse the repository at this point in the history
  • Loading branch information
masseyke committed Dec 17, 2024
1 parent 96601d9 commit d610e9d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 = """
Expand All @@ -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));
Expand Down

0 comments on commit d610e9d

Please sign in to comment.