diff --git a/plugin/src/test/java/org/elasticsearch/transport/KnownActionsTests.java b/plugin/src/test/java/org/elasticsearch/transport/KnownActionsTests.java index d9f1f0429fb..25197ac5b39 100644 --- a/plugin/src/test/java/org/elasticsearch/transport/KnownActionsTests.java +++ b/plugin/src/test/java/org/elasticsearch/transport/KnownActionsTests.java @@ -6,6 +6,7 @@ package org.elasticsearch.transport; import org.apache.lucene.util.IOUtils; +import org.elasticsearch.Version; import org.elasticsearch.action.Action; import org.elasticsearch.common.io.FileSystemUtils; import org.elasticsearch.common.io.PathUtils; @@ -18,9 +19,6 @@ import org.elasticsearch.test.ESIntegTestCase.ClusterScope; import org.elasticsearch.test.SecurityIntegTestCase; import org.elasticsearch.test.discovery.TestZenDiscovery; import org.elasticsearch.xpack.XPackPlugin; -import org.elasticsearch.xpack.graph.Graph; -import org.elasticsearch.xpack.ml.MachineLearning; -import org.elasticsearch.xpack.security.action.SecurityActionModule; import org.junit.BeforeClass; import java.io.IOException; @@ -127,25 +125,16 @@ public class KnownActionsTests extends SecurityIntegTestCase { private static Set loadCodeActions() throws IOException, ReflectiveOperationException, URISyntaxException { Set actions = new HashSet<>(); - // loading es core actions - loadActions(collectSubClasses(Action.class, Action.class), actions); + // loading es core actions in org.elasticsearch package + loadActions(collectSubClasses(Action.class, Version.class), actions); - // loading all xpack top level actions + // loading all xpack top level actions in org.elasticsearch.xpack package loadActions(collectSubClasses(Action.class, XPackPlugin.class), actions); - // loading security actions - loadActions(collectSubClasses(Action.class, SecurityActionModule.class), actions); - - // also loading all actions from the licensing plugin + // also loading all actions from the licensing plugin in org.elasticsearch.license package loadActions(collectSubClasses(Action.class, Licensing.class), actions); - // also loading all actions from the graph plugin - loadActions(collectSubClasses(Action.class, Graph.class), actions); - - // also loading all actions from the machine learning plugin - loadActions(collectSubClasses(Action.class, MachineLearning.class), actions); - - // also load stuff from Reindex + // also load stuff from Reindex in org.elasticsearch.index.reindex package loadActions(collectSubClasses(Action.class, ReindexPlugin.class), actions); return unmodifiableSet(actions); diff --git a/plugin/src/test/resources/org/elasticsearch/transport/actions b/plugin/src/test/resources/org/elasticsearch/transport/actions index 7fb837d1a5d..349bcd150ec 100644 --- a/plugin/src/test/resources/org/elasticsearch/transport/actions +++ b/plugin/src/test/resources/org/elasticsearch/transport/actions @@ -152,3 +152,6 @@ cluster:admin/persistent/update_status cluster:admin/persistent/remove cluster:internal/xpack/ml/job/finalize_job_execution cluster:admin/reindex/rethrottle +indices:data/write/update/byquery +indices:data/write/delete/byquery +indices:data/write/reindex