Skip to content

Commit aca1679

Browse files
committed
Remove underscore from auto-follow API (#33550)
This commit removes the leading underscore from _auto_follow in the auto-follow API endpoints.
1 parent cde6a3a commit aca1679

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

x-pack/plugin/ccr/qa/multi-cluster-with-non-compliant-license/src/test/java/org/elasticsearch/xpack/ccr/CcrMultiClusterLicenseIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public void testCreateAndFollowIndex() {
4848

4949
public void testAutoFollow() throws Exception {
5050
if (runningAgainstLeaderCluster == false) {
51-
final Request request = new Request("PUT", "/_ccr/_auto_follow/leader_cluster");
51+
final Request request = new Request("PUT", "/_ccr/auto_follow/leader_cluster");
5252
request.setJsonEntity("{\"leader_index_patterns\":[\"*\"]}");
5353
client().performRequest(request);
5454

x-pack/plugin/ccr/qa/multi-cluster/src/test/java/org/elasticsearch/xpack/ccr/FollowIndexIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public void testFollowIndex() throws Exception {
8181
public void testAutoFollowPatterns() throws Exception {
8282
assumeFalse("Test should only run when both clusters are running", runningAgainstLeaderCluster);
8383

84-
Request request = new Request("PUT", "/_ccr/_auto_follow/leader_cluster");
84+
Request request = new Request("PUT", "/_ccr/auto_follow/leader_cluster");
8585
request.setJsonEntity("{\"leader_index_patterns\": [\"logs-*\"]}");
8686
assertOK(client().performRequest(request));
8787

x-pack/plugin/ccr/src/main/java/org/elasticsearch/xpack/ccr/rest/RestDeleteAutoFollowPatternAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public class RestDeleteAutoFollowPatternAction extends BaseRestHandler {
2121

2222
public RestDeleteAutoFollowPatternAction(Settings settings, RestController controller) {
2323
super(settings);
24-
controller.registerHandler(RestRequest.Method.DELETE, "/_ccr/_auto_follow/{leader_cluster_alias}", this);
24+
controller.registerHandler(RestRequest.Method.DELETE, "/_ccr/auto_follow/{leader_cluster_alias}", this);
2525
}
2626

2727
@Override

x-pack/plugin/ccr/src/main/java/org/elasticsearch/xpack/ccr/rest/RestPutAutoFollowPatternAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public class RestPutAutoFollowPatternAction extends BaseRestHandler {
2222

2323
public RestPutAutoFollowPatternAction(Settings settings, RestController controller) {
2424
super(settings);
25-
controller.registerHandler(RestRequest.Method.PUT, "/_ccr/_auto_follow/{leader_cluster_alias}", this);
25+
controller.registerHandler(RestRequest.Method.PUT, "/_ccr/auto_follow/{leader_cluster_alias}", this);
2626
}
2727

2828
@Override

x-pack/plugin/src/test/resources/rest-api-spec/api/ccr.delete_auto_follow_pattern.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current",
44
"methods": [ "DELETE" ],
55
"url": {
6-
"path": "/_ccr/_auto_follow/{leader_cluster_alias}",
7-
"paths": [ "/_ccr/_auto_follow/{leader_cluster_alias}" ],
6+
"path": "/_ccr/auto_follow/{leader_cluster_alias}",
7+
"paths": [ "/_ccr/auto_follow/{leader_cluster_alias}" ],
88
"parts": {
99
"leader_cluster_alias": {
1010
"type": "string",

x-pack/plugin/src/test/resources/rest-api-spec/api/ccr.put_auto_follow_pattern.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current",
44
"methods": [ "PUT" ],
55
"url": {
6-
"path": "/_ccr/_auto_follow/{leader_cluster_alias}",
7-
"paths": [ "/_ccr/_auto_follow/{leader_cluster_alias}" ],
6+
"path": "/_ccr/auto_follow/{leader_cluster_alias}",
7+
"paths": [ "/_ccr/auto_follow/{leader_cluster_alias}" ],
88
"parts": {
99
"leader_cluster_alias": {
1010
"type": "string",

0 commit comments

Comments
 (0)