public class ClientYamlTestClient
extends java.lang.Object
ESClientYamlSuiteTestCase
to execute REST requests according to the tests written in yaml suite files. Wraps a
RestClient
instance used to send the REST requests. Holds the ClientYamlSuiteRestSpec
used to translate api calls into
REST calls.Constructor and Description |
---|
ClientYamlTestClient(ClientYamlSuiteRestSpec restSpec,
org.elasticsearch.client.RestClient restClient,
java.util.List<org.apache.http.HttpHost> hosts) |
Modifier and Type | Method and Description |
---|---|
ClientYamlTestResponse |
callApi(java.lang.String apiName,
java.util.Map<java.lang.String,java.lang.String> params,
java.lang.String body,
java.util.Map<java.lang.String,java.lang.String> headers)
Calls an api with the provided parameters and body
|
org.elasticsearch.Version |
getEsVersion() |
public ClientYamlTestClient(ClientYamlSuiteRestSpec restSpec, org.elasticsearch.client.RestClient restClient, java.util.List<org.apache.http.HttpHost> hosts) throws java.io.IOException
java.io.IOException
public org.elasticsearch.Version getEsVersion()
public ClientYamlTestResponse callApi(java.lang.String apiName, java.util.Map<java.lang.String,java.lang.String> params, java.lang.String body, java.util.Map<java.lang.String,java.lang.String> headers) throws java.io.IOException
java.io.IOException