@@ -98,7 +98,7 @@ public void testMoveClusterStateToNextStep() {
9898 );
9999 Index index = project .index (indexName ).getIndex ();
100100 PolicyStepsRegistry stepsRegistry = createOneStepPolicyStepRegistry (policy .getName (), new MockStep (nextStep , nextStep ));
101- ProjectMetadata newProject = IndexLifecycleTransition .moveProjectToStep (index , project , nextStep , () -> now , stepsRegistry , false );
101+ ProjectMetadata newProject = IndexLifecycleTransition .moveIndexToStep (index , project , nextStep , () -> now , stepsRegistry , false );
102102 assertProjectOnNextStep (project , index , currentStep , nextStep , newProject , now );
103103
104104 LifecycleExecutionState .Builder lifecycleState = LifecycleExecutionState .builder ();
@@ -113,7 +113,7 @@ public void testMoveClusterStateToNextStep() {
113113
114114 project = buildProject (indexName , indexSettingsBuilder , lifecycleState .build (), policyMetadatas );
115115 index = project .index (indexName ).getIndex ();
116- newProject = IndexLifecycleTransition .moveProjectToStep (index , project , nextStep , () -> now , stepsRegistry , false );
116+ newProject = IndexLifecycleTransition .moveIndexToStep (index , project , nextStep , () -> now , stepsRegistry , false );
117117 assertProjectOnNextStep (project , index , currentStep , nextStep , newProject , now );
118118 }
119119
@@ -142,7 +142,7 @@ public void testMoveClusterStateToNextStepSamePhase() {
142142 );
143143 Index index = project .index (indexName ).getIndex ();
144144 PolicyStepsRegistry stepsRegistry = createOneStepPolicyStepRegistry (policy .getName (), new MockStep (nextStep , nextStep ));
145- ProjectMetadata newProject = IndexLifecycleTransition .moveProjectToStep (index , project , nextStep , () -> now , stepsRegistry , false );
145+ ProjectMetadata newProject = IndexLifecycleTransition .moveIndexToStep (index , project , nextStep , () -> now , stepsRegistry , false );
146146 assertProjectOnNextStep (project , index , currentStep , nextStep , newProject , now );
147147
148148 LifecycleExecutionState .Builder lifecycleState = LifecycleExecutionState .builder ();
@@ -157,7 +157,7 @@ public void testMoveClusterStateToNextStepSamePhase() {
157157
158158 project = buildProject (indexName , indexSettingsBuilder , lifecycleState .build (), policyMetadatas );
159159 index = project .index (indexName ).getIndex ();
160- newProject = IndexLifecycleTransition .moveProjectToStep (index , project , nextStep , () -> now , stepsRegistry , false );
160+ newProject = IndexLifecycleTransition .moveIndexToStep (index , project , nextStep , () -> now , stepsRegistry , false );
161161 assertProjectOnNextStep (project , index , currentStep , nextStep , newProject , now );
162162 }
163163
@@ -186,7 +186,7 @@ public void testMoveClusterStateToNextStepSameAction() {
186186 );
187187 Index index = project .index (indexName ).getIndex ();
188188 PolicyStepsRegistry stepsRegistry = createOneStepPolicyStepRegistry (policy .getName (), new MockStep (nextStep , nextStep ));
189- ProjectMetadata newProject = IndexLifecycleTransition .moveProjectToStep (index , project , nextStep , () -> now , stepsRegistry , false );
189+ ProjectMetadata newProject = IndexLifecycleTransition .moveIndexToStep (index , project , nextStep , () -> now , stepsRegistry , false );
190190 assertProjectOnNextStep (project , index , currentStep , nextStep , newProject , now );
191191
192192 LifecycleExecutionState .Builder lifecycleState = LifecycleExecutionState .builder ();
@@ -201,7 +201,7 @@ public void testMoveClusterStateToNextStepSameAction() {
201201
202202 project = buildProject (indexName , indexSettingsBuilder , lifecycleState .build (), policyMetadatas );
203203 index = project .index (indexName ).getIndex ();
204- newProject = IndexLifecycleTransition .moveProjectToStep (index , project , nextStep , () -> now , stepsRegistry , false );
204+ newProject = IndexLifecycleTransition .moveIndexToStep (index , project , nextStep , () -> now , stepsRegistry , false );
205205 assertProjectOnNextStep (project , index , currentStep , nextStep , newProject , now );
206206 }
207207
@@ -234,7 +234,7 @@ public void testSuccessfulValidatedMoveClusterStateToNextStep() {
234234 Settings .Builder indexSettingsBuilder = Settings .builder ().put (LifecycleSettings .LIFECYCLE_NAME , policyName );
235235 ProjectMetadata project = buildProject (indexName , indexSettingsBuilder , lifecycleState .build (), policyMetadatas );
236236 Index index = project .index (indexName ).getIndex ();
237- ProjectMetadata newProject = IndexLifecycleTransition .moveProjectToStep (index , project , nextStepKey , () -> now , stepRegistry , true );
237+ ProjectMetadata newProject = IndexLifecycleTransition .moveIndexToStep (index , project , nextStepKey , () -> now , stepRegistry , true );
238238 assertProjectOnNextStep (project , index , currentStepKey , nextStepKey , newProject , now );
239239 }
240240
@@ -257,7 +257,7 @@ public void testValidatedMoveClusterStateToNextStepWithoutPolicy() {
257257 Index index = project .index (indexName ).getIndex ();
258258 IllegalArgumentException exception = expectThrows (
259259 IllegalArgumentException .class ,
260- () -> IndexLifecycleTransition .moveProjectToStep (index , project , nextStepKey , () -> now , stepRegistry , true )
260+ () -> IndexLifecycleTransition .moveIndexToStep (index , project , nextStepKey , () -> now , stepRegistry , true )
261261 );
262262 assertThat (exception .getMessage (), equalTo ("index [my_index] is not associated with an Index Lifecycle Policy" ));
263263 }
@@ -281,7 +281,7 @@ public void testValidatedMoveClusterStateToNextStepInvalidNextStep() {
281281 Index index = project .index (indexName ).getIndex ();
282282 IllegalArgumentException exception = expectThrows (
283283 IllegalArgumentException .class ,
284- () -> IndexLifecycleTransition .moveProjectToStep (index , project , nextStepKey , () -> now , stepRegistry , true )
284+ () -> IndexLifecycleTransition .moveIndexToStep (index , project , nextStepKey , () -> now , stepRegistry , true )
285285 );
286286 assertThat (exception .getMessage (), equalTo ("""
287287 step [{"phase":"next_phase","action":"next_action","name":"next_step"}] \
0 commit comments