Skip to content

Commit

Permalink
Fixing ECS tests - replace depracatoin property in template (elastic#…
Browse files Browse the repository at this point in the history
  • Loading branch information
eyalkoren authored Nov 20, 2023
1 parent a5448ec commit b65e871
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
import java.net.URL;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
Expand Down Expand Up @@ -77,7 +76,7 @@ private static void prepareEcsDynamicTemplates() throws IOException {
"/" + ECS_DYNAMIC_TEMPLATES_FILE,
Integer.toString(1),
StackTemplateRegistry.TEMPLATE_VERSION_VARIABLE,
Collections.emptyMap()
StackTemplateRegistry.ADDITIONAL_TEMPLATE_VARIABLES
);
Map<String, Object> ecsDynamicTemplatesRaw;
try (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public class StackTemplateRegistry extends IndexTemplateRegistry {
private final FeatureService featureService;
private volatile boolean stackTemplateEnabled;

private static final Map<String, String> ADDITIONAL_TEMPLATE_VARIABLES = Map.of("xpack.stack.template.deprecated", "false");
public static final Map<String, String> ADDITIONAL_TEMPLATE_VARIABLES = Map.of("xpack.stack.template.deprecated", "false");

// General mappings conventions for any data that ends up in a data stream
public static final String DATA_STREAMS_MAPPINGS_COMPONENT_TEMPLATE_NAME = "data-streams@mappings";
Expand Down

0 comments on commit b65e871

Please sign in to comment.