@@ -51,16 +51,17 @@ public void testToSteps() {
5151 );
5252 List <Step > steps = action .toSteps (null , phase , nextStepKey );
5353 assertThat (steps , notNullValue ());
54- assertThat (steps .size (), equalTo (8 ));
54+ assertThat (steps .size (), equalTo (9 ));
5555
5656 StepKey expectedFirstStepKey = new StepKey (phase , UnfollowAction .NAME , UnfollowAction .CONDITIONAL_UNFOLLOW_STEP );
5757 StepKey expectedSecondStepKey = new StepKey (phase , UnfollowAction .NAME , WaitForIndexingCompleteStep .NAME );
5858 StepKey expectedThirdStepKey = new StepKey (phase , UnfollowAction .NAME , WaitForFollowShardTasksStep .NAME );
59- StepKey expectedFourthStepKey = new StepKey (phase , UnfollowAction .NAME , PauseFollowerIndexStep .NAME );
60- StepKey expectedFifthStepKey = new StepKey (phase , UnfollowAction .NAME , CloseFollowerIndexStep .NAME );
61- StepKey expectedSixthStepKey = new StepKey (phase , UnfollowAction .NAME , UnfollowFollowerIndexStep .NAME );
62- StepKey expectedSeventhStepKey = new StepKey (phase , UnfollowAction .NAME , OPEN_FOLLOWER_INDEX_STEP_NAME );
63- StepKey expectedEighthStepKey = new StepKey (phase , UnfollowAction .NAME , WaitForIndexColorStep .NAME );
59+ StepKey expectedFourthStepKey = new StepKey (phase , UnfollowAction .NAME , WaitUntilTimeSeriesEndTimePassesStep .NAME );
60+ StepKey expectedFifthStepKey = new StepKey (phase , UnfollowAction .NAME , PauseFollowerIndexStep .NAME );
61+ StepKey expectedSixthStepKey = new StepKey (phase , UnfollowAction .NAME , CloseFollowerIndexStep .NAME );
62+ StepKey expectedSeventhStepKey = new StepKey (phase , UnfollowAction .NAME , UnfollowFollowerIndexStep .NAME );
63+ StepKey expectedEighthStepKey = new StepKey (phase , UnfollowAction .NAME , OPEN_FOLLOWER_INDEX_STEP_NAME );
64+ StepKey expectedNinthStepKey = new StepKey (phase , UnfollowAction .NAME , WaitForIndexColorStep .NAME );
6465
6566 BranchingStep firstStep = (BranchingStep ) steps .get (0 );
6667 assertThat (firstStep .getKey (), equalTo (expectedFirstStepKey ));
@@ -73,26 +74,30 @@ public void testToSteps() {
7374 assertThat (thirdStep .getKey (), equalTo (expectedThirdStepKey ));
7475 assertThat (thirdStep .getNextStepKey (), equalTo (expectedFourthStepKey ));
7576
76- PauseFollowerIndexStep fourthStep = (PauseFollowerIndexStep ) steps .get (3 );
77+ WaitUntilTimeSeriesEndTimePassesStep fourthStep = (WaitUntilTimeSeriesEndTimePassesStep ) steps .get (3 );
7778 assertThat (fourthStep .getKey (), equalTo (expectedFourthStepKey ));
7879 assertThat (fourthStep .getNextStepKey (), equalTo (expectedFifthStepKey ));
7980
80- CloseFollowerIndexStep fifthStep = (CloseFollowerIndexStep ) steps .get (4 );
81+ PauseFollowerIndexStep fifthStep = (PauseFollowerIndexStep ) steps .get (4 );
8182 assertThat (fifthStep .getKey (), equalTo (expectedFifthStepKey ));
8283 assertThat (fifthStep .getNextStepKey (), equalTo (expectedSixthStepKey ));
8384
84- UnfollowFollowerIndexStep sixthStep = (UnfollowFollowerIndexStep ) steps .get (5 );
85+ CloseFollowerIndexStep sixthStep = (CloseFollowerIndexStep ) steps .get (5 );
8586 assertThat (sixthStep .getKey (), equalTo (expectedSixthStepKey ));
8687 assertThat (sixthStep .getNextStepKey (), equalTo (expectedSeventhStepKey ));
8788
88- OpenIndexStep seventhStep = (OpenIndexStep ) steps .get (6 );
89+ UnfollowFollowerIndexStep seventhStep = (UnfollowFollowerIndexStep ) steps .get (6 );
8990 assertThat (seventhStep .getKey (), equalTo (expectedSeventhStepKey ));
9091 assertThat (seventhStep .getNextStepKey (), equalTo (expectedEighthStepKey ));
9192
92- WaitForIndexColorStep eighthStep = (WaitForIndexColorStep ) steps .get (7 );
93- assertThat (eighthStep .getColor (), is (ClusterHealthStatus .YELLOW ));
93+ OpenIndexStep eighthStep = (OpenIndexStep ) steps .get (7 );
9494 assertThat (eighthStep .getKey (), equalTo (expectedEighthStepKey ));
95- assertThat (eighthStep .getNextStepKey (), equalTo (nextStepKey ));
95+ assertThat (eighthStep .getNextStepKey (), equalTo (expectedNinthStepKey ));
96+
97+ WaitForIndexColorStep ninth = (WaitForIndexColorStep ) steps .get (8 );
98+ assertThat (ninth .getColor (), is (ClusterHealthStatus .YELLOW ));
99+ assertThat (ninth .getKey (), equalTo (expectedNinthStepKey ));
100+ assertThat (ninth .getNextStepKey (), equalTo (nextStepKey ));
96101 }
97102
98103 @ Override
0 commit comments