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
(cherry picked from commit 505c54e)

# Conflicts:
#	muted-tests.yml
  • Loading branch information
n1v0lg committed Nov 27, 2024
1 parent 581b9ab commit 44b0bbf
Showing 1 changed file with 5 additions and 3 deletions.
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 @@ -503,9 +505,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 44b0bbf

Please sign in to comment.