Package org.elasticsearch.test.rest.yaml
Class ImpersonateOfficialClientTestClient
java.lang.Object
org.elasticsearch.test.rest.yaml.ClientYamlTestClient
org.elasticsearch.test.rest.yaml.ImpersonateOfficialClientTestClient
- All Implemented Interfaces:
Closeable,AutoCloseable
Impersonates an official test client by setting the @{code x-elastic-client-meta} header.
-
Constructor Summary
ConstructorsConstructorDescriptionImpersonateOfficialClientTestClient(ClientYamlSuiteRestSpec restSpec, RestClient restClient, List<org.apache.http.HttpHost> hosts, org.elasticsearch.common.CheckedSupplier<RestClientBuilder, IOException> clientBuilderWithSniffedNodes, String meta) -
Method Summary
Modifier and TypeMethodDescriptioncallApi(String apiName, Map<String, String> params, org.apache.http.HttpEntity entity, Map<String, String> headers, NodeSelector nodeSelector, BiPredicate<ClientYamlSuiteRestApi, ClientYamlSuiteRestApi.Path> pathPredicate) Calls an api with the provided parameters and bodyMethods inherited from class org.elasticsearch.test.rest.yaml.ClientYamlTestClient
close, getRestClient, setOptions
-
Constructor Details
-
ImpersonateOfficialClientTestClient
public ImpersonateOfficialClientTestClient(ClientYamlSuiteRestSpec restSpec, RestClient restClient, List<org.apache.http.HttpHost> hosts, org.elasticsearch.common.CheckedSupplier<RestClientBuilder, IOException> clientBuilderWithSniffedNodes, String meta)
-
-
Method Details
-
callApi
public ClientYamlTestResponse callApi(String apiName, Map<String, String> params, org.apache.http.HttpEntity entity, Map<String, throws IOExceptionString> headers, NodeSelector nodeSelector, BiPredicate<ClientYamlSuiteRestApi, ClientYamlSuiteRestApi.Path> pathPredicate) Description copied from class:ClientYamlTestClientCalls an api with the provided parameters and body- Overrides:
callApiin classClientYamlTestClient- Throws:
IOException
-