mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 18:35:25 +00:00
fix test
This commit is contained in:
parent
b5f7fb6882
commit
023e1bf889
@ -554,7 +554,8 @@ public class IndexLifecycleRunnerTests extends ESTestCase {
|
||||
|
||||
public void testMoveClusterStateToNextStep() {
|
||||
String indexName = "my_index";
|
||||
LifecyclePolicy policy = LifecyclePolicyTests.randomTestLifecyclePolicy("policy");
|
||||
LifecyclePolicy policy = randomValueOtherThanMany(p -> p.getPhases().size() == 0,
|
||||
() -> LifecyclePolicyTests.randomTestLifecyclePolicy("policy"));
|
||||
Phase nextPhase = policy.getPhases().values().stream().findFirst().get();
|
||||
List<LifecyclePolicyMetadata> policyMetadatas = Collections.singletonList(
|
||||
new LifecyclePolicyMetadata(policy, Collections.emptyMap()));
|
||||
|
Loading…
x
Reference in New Issue
Block a user