From 5be0fb32f8635d7dd88a7cba0a8f3a03bb225cc2 Mon Sep 17 00:00:00 2001 From: Ryan Ernst Date: Wed, 12 Jun 2019 08:19:14 -0700 Subject: [PATCH] Move painless context api spec to test local (#43122) The painless context api is internal and currently meant only for use in generating docs. This commit moves the spec file for the api so that it is only used by the test for this api, and not externally by any clients building from the public rest spec. --- .../org/elasticsearch/client/RestHighLevelClientTests.java | 5 ++--- .../rest-api-spec/api/scripts_painless_context.json | 0 2 files changed, 2 insertions(+), 3 deletions(-) rename {rest-api-spec/src/main => modules/lang-painless/src/test}/resources/rest-api-spec/api/scripts_painless_context.json (100%) diff --git a/client/rest-high-level/src/test/java/org/elasticsearch/client/RestHighLevelClientTests.java b/client/rest-high-level/src/test/java/org/elasticsearch/client/RestHighLevelClientTests.java index ed5d7b66d80..183bce91f83 100644 --- a/client/rest-high-level/src/test/java/org/elasticsearch/client/RestHighLevelClientTests.java +++ b/client/rest-high-level/src/test/java/org/elasticsearch/client/RestHighLevelClientTests.java @@ -710,8 +710,8 @@ public class RestHighLevelClientTests extends ESTestCase { "indices.exists_type", "indices.get_upgrade", "indices.put_alias", - "render_search_template", - "scripts_painless_execute" + "scripts_painless_execute", + "render_search_template" }; //These API are not required for high-level client feature completeness String[] notRequiredApi = new String[] { @@ -731,7 +731,6 @@ public class RestHighLevelClientTests extends ESTestCase { "nodes.hot_threads", "nodes.usage", "nodes.reload_secure_settings", - "scripts_painless_context", "search_shards", }; List booleanReturnMethods = Arrays.asList( diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/scripts_painless_context.json b/modules/lang-painless/src/test/resources/rest-api-spec/api/scripts_painless_context.json similarity index 100% rename from rest-api-spec/src/main/resources/rest-api-spec/api/scripts_painless_context.json rename to modules/lang-painless/src/test/resources/rest-api-spec/api/scripts_painless_context.json