Skip to content

Commit fcd78f8

Browse files
authored
[8.17] Use feature flags in OperatorPrivilegesIT (#117491) (#117630)
* Resolve * Add missing actions
1 parent 80a8102 commit fcd78f8

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

muted-tests.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,9 +275,6 @@ tests:
275275
- class: org.elasticsearch.xpack.inference.InferenceRestIT
276276
method: test {p0=inference/30_semantic_text_inference/Calculates embeddings using the default ELSER 2 endpoint}
277277
issue: https://github.com/elastic/elasticsearch/issues/117349
278-
- class: org.elasticsearch.xpack.security.operator.OperatorPrivilegesIT
279-
method: testEveryActionIsEitherOperatorOnlyOrNonOperator
280-
issue: https://github.com/elastic/elasticsearch/issues/102992
281278
- class: org.elasticsearch.xpack.deprecation.DeprecationHttpIT
282279
method: testDeprecatedSettingsReturnWarnings
283280
issue: https://github.com/elastic/elasticsearch/issues/108628

x-pack/plugin/security/qa/operator-privileges-tests/src/javaRestTest/java/org/elasticsearch/xpack/security/operator/Constants.java

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
package org.elasticsearch.xpack.security.operator;
99

10+
import org.elasticsearch.cluster.metadata.DataStream;
11+
1012
import java.util.Objects;
1113
import java.util.Set;
1214
import java.util.stream.Collectors;
@@ -358,6 +360,7 @@ public class Constants {
358360
"cluster:monitor/nodes/data_tier_usage",
359361
"cluster:monitor/nodes/features",
360362
"cluster:monitor/nodes/hot_threads",
363+
"cluster:monitor/nodes/index_mode_stats",
361364
"cluster:monitor/nodes/info",
362365
"cluster:monitor/nodes/stats",
363366
"cluster:monitor/nodes/usage",
@@ -399,6 +402,7 @@ public class Constants {
399402
"cluster:monitor/xpack/info/frozen_indices",
400403
"cluster:monitor/xpack/info/graph",
401404
"cluster:monitor/xpack/info/ilm",
405+
"cluster:monitor/xpack/info/logsdb",
402406
"cluster:monitor/xpack/info/logstash",
403407
"cluster:monitor/xpack/info/ml",
404408
"cluster:monitor/xpack/info/monitoring",
@@ -463,6 +467,7 @@ public class Constants {
463467
"cluster:monitor/xpack/usage/health_api",
464468
"cluster:monitor/xpack/usage/ilm",
465469
"cluster:monitor/xpack/usage/inference",
470+
"cluster:monitor/xpack/usage/logsdb",
466471
"cluster:monitor/xpack/usage/logstash",
467472
"cluster:monitor/xpack/usage/ml",
468473
"cluster:monitor/xpack/usage/monitoring",
@@ -504,9 +509,9 @@ public class Constants {
504509
"indices:admin/data_stream/lifecycle/get",
505510
"indices:admin/data_stream/lifecycle/put",
506511
"indices:admin/data_stream/lifecycle/explain",
507-
"indices:admin/data_stream/options/delete",
508-
"indices:admin/data_stream/options/get",
509-
"indices:admin/data_stream/options/put",
512+
DataStream.isFailureStoreFeatureFlagEnabled() ? "indices:admin/data_stream/options/delete" : null,
513+
DataStream.isFailureStoreFeatureFlagEnabled() ? "indices:admin/data_stream/options/get" : null,
514+
DataStream.isFailureStoreFeatureFlagEnabled() ? "indices:admin/data_stream/options/put" : null,
510515
"indices:admin/delete",
511516
"indices:admin/flush",
512517
"indices:admin/flush[s]",

0 commit comments

Comments
 (0)