Skip to content

Commit

Permalink
Use feature flags in OperatorPrivilegesIT (elastic#117491)
Browse files Browse the repository at this point in the history
Release runs fail for this suite because some of the actions listed are
still behind a feature flag. 

Closes: elastic#102992
  • Loading branch information
n1v0lg authored Nov 26, 2024
1 parent bfe1aad commit 505c54e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 0 additions & 3 deletions muted-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,6 @@ tests:
- class: org.elasticsearch.xpack.inference.InferenceRestIT
method: test {p0=inference/30_semantic_text_inference/Calculates embeddings using the default ELSER 2 endpoint}
issue: https://github.com/elastic/elasticsearch/issues/117349
- class: org.elasticsearch.xpack.security.operator.OperatorPrivilegesIT
method: testEveryActionIsEitherOperatorOnlyOrNonOperator
issue: https://github.com/elastic/elasticsearch/issues/102992
- class: org.elasticsearch.xpack.test.rest.XPackRestIT
method: test {p0=transform/transforms_reset/Test reset running transform}
issue: https://github.com/elastic/elasticsearch/issues/117473
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

package org.elasticsearch.xpack.security.operator;

import org.elasticsearch.cluster.metadata.DataStream;

import java.util.Objects;
import java.util.Set;
import java.util.stream.Collectors;
Expand Down Expand Up @@ -508,9 +510,9 @@ public class Constants {
"indices:admin/data_stream/lifecycle/get",
"indices:admin/data_stream/lifecycle/put",
"indices:admin/data_stream/lifecycle/explain",
"indices:admin/data_stream/options/delete",
"indices:admin/data_stream/options/get",
"indices:admin/data_stream/options/put",
DataStream.isFailureStoreFeatureFlagEnabled() ? "indices:admin/data_stream/options/delete" : null,
DataStream.isFailureStoreFeatureFlagEnabled() ? "indices:admin/data_stream/options/get" : null,
DataStream.isFailureStoreFeatureFlagEnabled() ? "indices:admin/data_stream/options/put" : null,
"indices:admin/delete",
"indices:admin/flush",
"indices:admin/flush[s]",
Expand Down

0 comments on commit 505c54e

Please sign in to comment.