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.Modifier and Type | Field and Description |
---|---|
protected RestClient |
restClient |
Constructor and Description |
---|
ClientYamlTestClient(ClientYamlSuiteRestSpec restSpec,
RestClient restClient,
java.util.List<org.apache.http.HttpHost> hosts,
Version esVersion) |
Modifier and Type | Method and Description |
---|---|
ClientYamlTestResponse |
callApi(java.lang.String apiName,
java.util.Map<java.lang.String,java.lang.String> params,
org.apache.http.HttpEntity entity,
java.util.Map<java.lang.String,java.lang.String> headers)
Calls an api with the provided parameters and body
|
Version |
getEsVersion() |
protected final RestClient restClient
public ClientYamlTestClient(ClientYamlSuiteRestSpec restSpec, RestClient restClient, java.util.List<org.apache.http.HttpHost> hosts, Version esVersion) throws java.io.IOException
java.io.IOException
public Version getEsVersion()
public ClientYamlTestResponse callApi(java.lang.String apiName, java.util.Map<java.lang.String,java.lang.String> params, org.apache.http.HttpEntity entity, java.util.Map<java.lang.String,java.lang.String> headers) throws java.io.IOException
java.io.IOException