|
@@ -50,6 +50,11 @@ import org.elasticsearch.common.util.set.Sets;
|
|
|
import org.elasticsearch.test.ESTestCase;
|
|
|
import org.elasticsearch.transport.TransportRequest;
|
|
|
import org.elasticsearch.xpack.core.action.XPackInfoAction;
|
|
|
+import org.elasticsearch.xpack.core.ilm.action.GetLifecycleAction;
|
|
|
+import org.elasticsearch.xpack.core.ilm.action.DeleteLifecycleAction;
|
|
|
+import org.elasticsearch.xpack.core.ilm.action.PutLifecycleAction;
|
|
|
+import org.elasticsearch.xpack.core.ilm.action.StartILMAction;
|
|
|
+import org.elasticsearch.xpack.core.ilm.action.StopILMAction;
|
|
|
import org.elasticsearch.xpack.core.ml.MlMetaIndex;
|
|
|
import org.elasticsearch.xpack.core.ml.action.CloseJobAction;
|
|
|
import org.elasticsearch.xpack.core.ml.action.DeleteCalendarAction;
|
|
@@ -300,6 +305,13 @@ public class ReservedRolesStoreTests extends ESTestCase {
|
|
|
assertThat(kibanaRole.cluster().check(ClusterUpdateSettingsAction.NAME, request, authentication), is(false));
|
|
|
assertThat(kibanaRole.cluster().check(MonitoringBulkAction.NAME, request, authentication), is(true));
|
|
|
|
|
|
+ // ILM
|
|
|
+ assertThat(kibanaRole.cluster().check(GetLifecycleAction.NAME, request, authentication), is(true));
|
|
|
+ assertThat(kibanaRole.cluster().check(PutLifecycleAction.NAME, request, authentication), is(true));
|
|
|
+ assertThat(kibanaRole.cluster().check(DeleteLifecycleAction.NAME, request, authentication), is(false));
|
|
|
+ assertThat(kibanaRole.cluster().check(StartILMAction.NAME, request, authentication), is(false));
|
|
|
+ assertThat(kibanaRole.cluster().check(StopILMAction.NAME, request, authentication), is(false));
|
|
|
+
|
|
|
// SAML and token
|
|
|
assertThat(kibanaRole.cluster().check(SamlPrepareAuthenticationAction.NAME, request, authentication), is(true));
|
|
|
assertThat(kibanaRole.cluster().check(SamlAuthenticateAction.NAME, request, authentication), is(true));
|