Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,14 @@

import java.io.IOException;
import java.util.List;
import java.util.Set;

import static org.elasticsearch.rest.RestRequest.Method.GET;

public class RestDeprecationInfoAction extends BaseRestHandler {

private static final Set<String> SUPPORTED_CAPABILITIES = Set.of("data_streams", "ilm_policies", "templates");

@Override
public List<Route> routes() {
return List.of(new Route(GET, "/_migration/deprecations"), new Route(GET, "/{index}/_migration/deprecations"));
Expand All @@ -47,4 +50,9 @@ private static RestChannelConsumer handleGet(final RestRequest request, NodeClie
);
return channel -> client.execute(DeprecationInfoAction.INSTANCE, infoRequest, new RestToXContentListener<>(channel));
}

@Override
public Set<String> supportedCapabilities() {
return SUPPORTED_CAPABILITIES;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ setup:
- method: GET
path: /_migration/deprecations
capabilities: [ data_streams, ilm_policies, templates ]
test_runner_features: capabilities
test_runner_features: [capabilities, allowed_warnings]
reason: "Support for data streams, ILM policies and templates"
- do:
allowed_warnings:
- "this request accesses system indices: [.security-7], but in a future major version, direct access to system indices will be prevented by default"
migration.deprecations:
index: "*"
- length: { cluster_settings: 0 }
Expand Down