File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
x-pack/plugin/ccr/src/test/java/org/elasticsearch/xpack/ccr/action Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 1414import org .elasticsearch .persistent .PersistentTasksCustomMetaData ;
1515import org .elasticsearch .xpack .CcrSingleNodeTestCase ;
1616import org .elasticsearch .xpack .core .ccr .action .FollowStatsAction ;
17+ import org .elasticsearch .xpack .core .ccr .action .PauseFollowAction ;
1718import org .elasticsearch .xpack .core .ccr .action .PutFollowAction ;
1819
1920import java .util .Comparator ;
@@ -102,6 +103,9 @@ public void testFollowStatsApiFollowerIndexFiltering() throws Exception {
102103 response .getStatsResponses ().sort (Comparator .comparing (o -> o .status ().followerIndex ()));
103104 assertThat (response .getStatsResponses ().get (0 ).status ().followerIndex (), equalTo ("follower1" ));
104105 assertThat (response .getStatsResponses ().get (1 ).status ().followerIndex (), equalTo ("follower2" ));
106+
107+ assertAcked (client ().execute (PauseFollowAction .INSTANCE , new PauseFollowAction .Request ("follower1" )).actionGet ());
108+ assertAcked (client ().execute (PauseFollowAction .INSTANCE , new PauseFollowAction .Request ("follower2" )).actionGet ());
105109 }
106110
107111}
You can’t perform that action at this time.
0 commit comments