Index

A B C D E F G H I L M N O P R S T V X 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

A

addBody(Map<String, Object>) - Method in class org.elasticsearch.test.rest.yaml.section.ApiCallSection
 
addHeaders(Map<String, String>) - Method in class org.elasticsearch.test.rest.yaml.section.ApiCallSection
 
addParam(String, String) - Method in class org.elasticsearch.test.rest.yaml.section.ApiCallSection
 
addSet(String, String) - Method in class org.elasticsearch.test.rest.yaml.section.SetSection
 
addSet(String, String) - Method in class org.elasticsearch.test.rest.yaml.section.TransformAndSetSection
 
allowDuplicateKeys(boolean) - Method in class org.elasticsearch.test.rest.yaml.ParameterizableYamlXContentParser
 
ApiCallSection - Class in org.elasticsearch.test.rest.yaml.section
Represents a test fragment that contains the information needed to call an api
ApiCallSection(String) - Constructor for class org.elasticsearch.test.rest.yaml.section.ApiCallSection
 
areAllSupported(List<String>) - Static method in class org.elasticsearch.test.rest.yaml.Features
Tells whether all the features provided as argument are supported
Assertion - Class in org.elasticsearch.test.rest.yaml.section
Base class for executable sections that hold assertions
Assertion(XContentLocation, String, Object) - Constructor for class org.elasticsearch.test.rest.yaml.section.Assertion
 

B

BETA - Enum constant in enum class org.elasticsearch.test.rest.yaml.restspec.ClientYamlSuiteRestApi.Stability
 
binaryValue() - Method in class org.elasticsearch.test.rest.yaml.ParameterizableYamlXContentParser
 
booleanValue() - Method in class org.elasticsearch.test.rest.yaml.ParameterizableYamlXContentParser
 

C

callApi(String, Map<String, String>, List<Map<String, Object>>, Map<String, String>) - Method in class org.elasticsearch.test.rest.yaml.ClientYamlTestExecutionContext
Calls an elasticsearch api with the parameters and request body provided as arguments.
callApi(String, Map<String, String>, List<Map<String, Object>>, Map<String, String>, NodeSelector) - Method in class org.elasticsearch.test.rest.yaml.ClientYamlTestExecutionContext
Calls an elasticsearch api with the parameters and request body provided as arguments.
callApi(String, Map<String, String>, HttpEntity, Map<String, String>, NodeSelector, BiPredicate<ClientYamlSuiteRestApi, ClientYamlSuiteRestApi.Path>) - Method in class org.elasticsearch.test.rest.yaml.ClientYamlDocsTestClient
 
callApi(String, Map<String, String>, HttpEntity, Map<String, String>, NodeSelector, BiPredicate<ClientYamlSuiteRestApi, ClientYamlSuiteRestApi.Path>) - Method in class org.elasticsearch.test.rest.yaml.ClientYamlTestClient
Calls an api with the provided parameters and body
callApi(String, Map<String, String>, HttpEntity, Map<String, String>, NodeSelector, BiPredicate<ClientYamlSuiteRestApi, ClientYamlSuiteRestApi.Path>) - Method in class org.elasticsearch.test.rest.yaml.ImpersonateOfficialClientTestClient
 
charBuffer() - Method in class org.elasticsearch.test.rest.yaml.ParameterizableYamlXContentParser
 
charBufferOrNull() - Method in class org.elasticsearch.test.rest.yaml.ParameterizableYamlXContentParser
 
checkResponseException(ClientYamlTestResponseException, ClientYamlTestExecutionContext) - Method in class org.elasticsearch.test.rest.yaml.section.DoSection
 
checkWarningHeaders(List<String>, String) - Method in class org.elasticsearch.test.rest.yaml.section.DoSection
Check that the response contains only the warning headers that we expect.
clear() - Method in class org.elasticsearch.test.rest.yaml.ClientYamlTestExecutionContext
Clears the last obtained response and the stashed fields
ClientYamlDocsTestClient - Class in org.elasticsearch.test.rest.yaml
Used to execute REST requests according to the docs snippets that need to be tests.
ClientYamlDocsTestClient(ClientYamlSuiteRestSpec, RestClient, List<HttpHost>, CheckedSupplier<RestClientBuilder, IOException>) - Constructor for class org.elasticsearch.test.rest.yaml.ClientYamlDocsTestClient
 
ClientYamlSuiteRestApi - Class in org.elasticsearch.test.rest.yaml.restspec
Specification of an Elasticsearch endpoint used by the YAML specs to generate REST requests.
ClientYamlSuiteRestApi.Body - Enum Class in org.elasticsearch.test.rest.yaml.restspec
 
ClientYamlSuiteRestApi.Path - Record Class in org.elasticsearch.test.rest.yaml.restspec
 
ClientYamlSuiteRestApi.Stability - Enum Class in org.elasticsearch.test.rest.yaml.restspec
 
ClientYamlSuiteRestApi.Visibility - Enum Class in org.elasticsearch.test.rest.yaml.restspec
 
ClientYamlSuiteRestApiParser - Class in org.elasticsearch.test.rest.yaml.restspec
ClientYamlSuiteRestApiParser() - Constructor for class org.elasticsearch.test.rest.yaml.restspec.ClientYamlSuiteRestApiParser
 
ClientYamlSuiteRestSpec - Class in org.elasticsearch.test.rest.yaml.restspec
Holds the specification used to turn do actions in the YAML suite into REST api calls.
ClientYamlTestCandidate - Class in org.elasticsearch.test.rest.yaml
Wraps ClientYamlTestSections ready to be run.
ClientYamlTestCandidate(ClientYamlTestSuite, ClientYamlTestSection) - Constructor for class org.elasticsearch.test.rest.yaml.ClientYamlTestCandidate
 
clientYamlTestClient(String) - Method in class org.elasticsearch.test.rest.yaml.ClientYamlTestExecutionContext
 
ClientYamlTestClient - Class in org.elasticsearch.test.rest.yaml
Used by ESClientYamlSuiteTestCase to execute REST requests according to the tests written in yaml suite files.
ClientYamlTestExecutionContext - Class in org.elasticsearch.test.rest.yaml
Execution context passed across the REST tests.
ClientYamlTestExecutionContext(ClientYamlTestCandidate, ClientYamlTestClient, boolean, Set<String>, TestFeatureService, Set<String>) - Constructor for class org.elasticsearch.test.rest.yaml.ClientYamlTestExecutionContext
 
ClientYamlTestExecutionContext(ClientYamlTestCandidate, ClientYamlTestClient, boolean, Set<String>, TestFeatureService, Set<String>, BiPredicate<ClientYamlSuiteRestApi, ClientYamlSuiteRestApi.Path>) - Constructor for class org.elasticsearch.test.rest.yaml.ClientYamlTestExecutionContext
 
ClientYamlTestResponse - Class in org.elasticsearch.test.rest.yaml
Response obtained from a REST call, eagerly reads the response body into a string for later optional parsing.
ClientYamlTestResponse(Response) - Constructor for class org.elasticsearch.test.rest.yaml.ClientYamlTestResponse
 
ClientYamlTestResponseException - Exception Class in org.elasticsearch.test.rest.yaml
Exception obtained from a REST call in case the response code indicated an error.
ClientYamlTestResponseException(ResponseException) - Constructor for exception class org.elasticsearch.test.rest.yaml.ClientYamlTestResponseException
 
ClientYamlTestSection - Class in org.elasticsearch.test.rest.yaml.section
Represents a test section, which is composed of a skip section and multiple executable sections.
ClientYamlTestSection(XContentLocation, String, PrerequisiteSection, List<ExecutableSection>) - Constructor for class org.elasticsearch.test.rest.yaml.section.ClientYamlTestSection
 
ClientYamlTestSuite - Class in org.elasticsearch.test.rest.yaml.section
Holds a REST test suite loaded from a specific yaml file.
ClientYamlTestSuite(String, String, Optional<Path>, SetupSection, TeardownSection, List<ClientYamlTestSection>) - Constructor for class org.elasticsearch.test.rest.yaml.section.ClientYamlTestSuite
 
close() - Method in class org.elasticsearch.test.rest.yaml.ClientYamlTestClient
 
close() - Method in class org.elasticsearch.test.rest.yaml.ParameterizableYamlXContentParser
 
closeClient() - Static method in class org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase
 
CloseToAssertion - Class in org.elasticsearch.test.rest.yaml.section
Represents a close_to assert section: - close_to: { get.fields._routing: { value: 5.1, error: 0.00001 } }
CloseToAssertion(XContentLocation, String, Double, Double) - Constructor for class org.elasticsearch.test.rest.yaml.section.CloseToAssertion
 
clusterHasCapabilities(String, String, String, String, boolean) - Method in class org.elasticsearch.test.rest.yaml.ClientYamlTestExecutionContext
 
clusterHasFeature(String, boolean) - Method in class org.elasticsearch.test.rest.yaml.ClientYamlTestExecutionContext
 
compareTo(ClientYamlTestSection) - Method in class org.elasticsearch.test.rest.yaml.section.ClientYamlTestSection
 
ContainsAssertion - Class in org.elasticsearch.test.rest.yaml.section
 
ContainsAssertion(XContentLocation, String, Object) - Constructor for class org.elasticsearch.test.rest.yaml.section.ContainsAssertion
 
contentType() - Method in class org.elasticsearch.test.rest.yaml.ParameterizableYamlXContentParser
 
copyWithNewApi(String) - Method in class org.elasticsearch.test.rest.yaml.section.ApiCallSection
 
createParameters() - Static method in class org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase
Create parameters for this parameterized test.
createParameters(String[]) - Static method in class org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase
Create parameters for this parameterized test.
createParameters(String[], Map<String, Object>) - Static method in class org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase
Create parameters for this parameterized test.
createParameters(NamedXContentRegistry) - Static method in class org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase
Create parameters for this parameterized test.
createParameters(NamedXContentRegistry, String[]) - Static method in class org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase
Create parameters for this parameterized test.
createParameters(NamedXContentRegistry, String[], Map<String, ?>) - Static method in class org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase
Create parameters for this parameterized test.
createParametersWithLegacyNodeSelectorSupport() - Static method in class org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase
Deprecated.
createRestTestExecutionContext(ClientYamlTestCandidate, ClientYamlTestClient, Set<String>, TestFeatureService, Set<String>) - Method in class org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase
Create the test execution context.
currentName() - Method in class org.elasticsearch.test.rest.yaml.ParameterizableYamlXContentParser
 
currentToken() - Method in class org.elasticsearch.test.rest.yaml.ParameterizableYamlXContentParser
 

D

DEFAULT_EXECUTABLE_CONTEXTS - Static variable in interface org.elasticsearch.test.rest.yaml.section.ExecutableSection
Default list of ExecutableSections available for tests.
deprecated() - Method in record class org.elasticsearch.test.rest.yaml.restspec.ClientYamlSuiteRestApi.Path
Returns the value of the deprecated record component.
doAssert(Object, Object) - Method in class org.elasticsearch.test.rest.yaml.section.Assertion
Executes the assertion comparing the actual value (parsed from the response) with the expected one
doAssert(Object, Object) - Method in class org.elasticsearch.test.rest.yaml.section.CloseToAssertion
 
doAssert(Object, Object) - Method in class org.elasticsearch.test.rest.yaml.section.ContainsAssertion
 
doAssert(Object, Object) - Method in class org.elasticsearch.test.rest.yaml.section.ExistsAssertion
 
doAssert(Object, Object) - Method in class org.elasticsearch.test.rest.yaml.section.GreaterThanAssertion
 
doAssert(Object, Object) - Method in class org.elasticsearch.test.rest.yaml.section.GreaterThanEqualToAssertion
 
doAssert(Object, Object) - Method in class org.elasticsearch.test.rest.yaml.section.IsAfterAssertion
 
doAssert(Object, Object) - Method in class org.elasticsearch.test.rest.yaml.section.IsFalseAssertion
 
doAssert(Object, Object) - Method in class org.elasticsearch.test.rest.yaml.section.IsTrueAssertion
 
doAssert(Object, Object) - Method in class org.elasticsearch.test.rest.yaml.section.LengthAssertion
 
doAssert(Object, Object) - Method in class org.elasticsearch.test.rest.yaml.section.LessThanAssertion
 
doAssert(Object, Object) - Method in class org.elasticsearch.test.rest.yaml.section.LessThanOrEqualToAssertion
 
doAssert(Object, Object) - Method in class org.elasticsearch.test.rest.yaml.section.MatchAssertion
 
doAssert(Object, Object) - Method in class org.elasticsearch.test.rest.yaml.section.NotExistsAssertion
 
DoSection - Class in org.elasticsearch.test.rest.yaml.section
Represents a do section: - do: catch: missing headers: Authorization: Basic user:pass Content-Type: application/json warnings|warnings_regex: - Stuff is deprecated, yo - Don't use deprecated stuff - Please, stop.
DoSection(XContentLocation) - Constructor for class org.elasticsearch.test.rest.yaml.section.DoSection
 
doubleValue() - Method in class org.elasticsearch.test.rest.yaml.ParameterizableYamlXContentParser
 
doubleValue(boolean) - Method in class org.elasticsearch.test.rest.yaml.ParameterizableYamlXContentParser
 

E

EMPTY - Static variable in class org.elasticsearch.test.rest.yaml.section.PrerequisiteSection
 
EMPTY - Static variable in class org.elasticsearch.test.rest.yaml.section.SetupSection
 
EMPTY - Static variable in class org.elasticsearch.test.rest.yaml.section.TeardownSection
 
equals(Object) - Method in record class org.elasticsearch.test.rest.yaml.restspec.ClientYamlSuiteRestApi.Path
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in class org.elasticsearch.test.rest.yaml.section.ClientYamlTestSection
 
ESClientYamlSuiteTestCase - Class in org.elasticsearch.test.rest.yaml
Runs a suite of yaml tests shared with all the official Elasticsearch clients against an elasticsearch cluster.
ESClientYamlSuiteTestCase(ClientYamlTestCandidate) - Constructor for class org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase
 
evaluate(String) - Method in class org.elasticsearch.test.rest.yaml.ClientYamlTestResponse
Parses the response body and extracts a specific value from it (identified by the provided path)
evaluate(String, Stash) - Method in class org.elasticsearch.test.rest.yaml.ClientYamlTestResponse
Parses the response body and extracts a specific value from it (identified by the provided path)
evaluate(ClientYamlTestExecutionContext, String) - Method in class org.elasticsearch.test.rest.yaml.section.PrerequisiteSection
 
ExecutableSection - Interface in org.elasticsearch.test.rest.yaml.section
Represents a test fragment that can be executed (e.g.
execute(ClientYamlTestExecutionContext) - Method in class org.elasticsearch.test.rest.yaml.section.Assertion
 
execute(ClientYamlTestExecutionContext) - Method in class org.elasticsearch.test.rest.yaml.section.DoSection
 
execute(ClientYamlTestExecutionContext) - Method in interface org.elasticsearch.test.rest.yaml.section.ExecutableSection
Executes the section passing in the execution context
execute(ClientYamlTestExecutionContext) - Method in class org.elasticsearch.test.rest.yaml.section.SetSection
 
execute(ClientYamlTestExecutionContext) - Method in class org.elasticsearch.test.rest.yaml.section.TransformAndSetSection
 
ExistsAssertion - Class in org.elasticsearch.test.rest.yaml.section
Represents an exists assert section: - exists: get.fields.bar
ExistsAssertion(XContentLocation, String) - Constructor for class org.elasticsearch.test.rest.yaml.section.ExistsAssertion
 
EXPERIMENTAL - Enum constant in enum class org.elasticsearch.test.rest.yaml.restspec.ClientYamlSuiteRestApi.Stability
 

F

failIfHasCatch(ClientYamlTestResponse) - Method in class org.elasticsearch.test.rest.yaml.section.DoSection
 
FALSE - Static variable in class org.elasticsearch.test.rest.yaml.section.Prerequisites
 
FEATURE_FLAG - Enum constant in enum class org.elasticsearch.test.rest.yaml.restspec.ClientYamlSuiteRestApi.Visibility
 
Features - Class in org.elasticsearch.test.rest.yaml
Allows to register additional features supported by the tests runner.
floatValue() - Method in class org.elasticsearch.test.rest.yaml.ParameterizableYamlXContentParser
 
floatValue(boolean) - Method in class org.elasticsearch.test.rest.yaml.ParameterizableYamlXContentParser
 

G

getActualValue(ClientYamlTestExecutionContext) - Method in class org.elasticsearch.test.rest.yaml.section.Assertion
 
getAdminExecutionContext() - Method in class org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase
 
getAllowedWarningHeaders() - Method in class org.elasticsearch.test.rest.yaml.section.DoSection
Warning headers that we allow from this response.
getAllowedWarningHeadersRegex() - Method in class org.elasticsearch.test.rest.yaml.section.DoSection
Warning headers that we allow from this response.
getApi() - Method in class org.elasticsearch.test.rest.yaml.ClientYamlTestCandidate
 
getApi() - Method in class org.elasticsearch.test.rest.yaml.section.ApiCallSection
 
getApi() - Method in class org.elasticsearch.test.rest.yaml.section.ClientYamlTestSuite
 
getApi(String) - Method in class org.elasticsearch.test.rest.yaml.restspec.ClientYamlSuiteRestSpec
 
getApiCallSection() - Method in class org.elasticsearch.test.rest.yaml.section.DoSection
 
getApis() - Method in class org.elasticsearch.test.rest.yaml.restspec.ClientYamlSuiteRestSpec
 
getBestMatchingPaths(Set<String>) - Method in class org.elasticsearch.test.rest.yaml.restspec.ClientYamlSuiteRestApi
Returns the best matching paths based on the provided parameters, which may include either path parts or query_string parameters.
getBodies() - Method in class org.elasticsearch.test.rest.yaml.section.ApiCallSection
 
getBody() - Method in class org.elasticsearch.test.rest.yaml.ClientYamlTestResponse
Returns the body properly parsed depending on the content type.
getBodyAsString() - Method in class org.elasticsearch.test.rest.yaml.ClientYamlTestResponse
Returns the body as a string
getCatch() - Method in class org.elasticsearch.test.rest.yaml.section.DoSection
 
getClientBuilderWithSniffedHosts() - Method in class org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase
Sniff the cluster for host metadata and return a RestClientBuilder for a client with that metadata.
getClientYamlTestCandidate() - Method in class org.elasticsearch.test.rest.yaml.ClientYamlTestExecutionContext
 
getDeprecationHandler() - Method in class org.elasticsearch.test.rest.yaml.ParameterizableYamlXContentParser
 
getDoSections() - Method in class org.elasticsearch.test.rest.yaml.section.TeardownSection
 
getError() - Method in class org.elasticsearch.test.rest.yaml.section.CloseToAssertion
 
getExecutableSections() - Method in class org.elasticsearch.test.rest.yaml.section.ClientYamlTestSection
 
getExecutableSections() - Method in class org.elasticsearch.test.rest.yaml.section.SetupSection
 
getExpectedValue() - Method in class org.elasticsearch.test.rest.yaml.section.Assertion
 
getExpectedWarningHeaders() - Method in class org.elasticsearch.test.rest.yaml.section.DoSection
Warning headers patterns that we expect from this response.
getExpectedWarningHeadersRegex() - Method in class org.elasticsearch.test.rest.yaml.section.DoSection
Warning headers patterns that we expect from this response.
getFeatureFlag() - Method in class org.elasticsearch.test.rest.yaml.restspec.ClientYamlSuiteRestApi
 
getField() - Method in class org.elasticsearch.test.rest.yaml.section.Assertion
 
getFile() - Method in class org.elasticsearch.test.rest.yaml.section.ClientYamlTestSuite
 
getHeaders() - Method in class org.elasticsearch.test.rest.yaml.section.ApiCallSection
 
getHeaders(String) - Method in class org.elasticsearch.test.rest.yaml.ClientYamlTestResponse
Get a list of all the values of a given header returned in the response.
getLocation() - Method in class org.elasticsearch.test.rest.yaml.restspec.ClientYamlSuiteRestApi
 
getLocation() - Method in class org.elasticsearch.test.rest.yaml.section.Assertion
 
getLocation() - Method in class org.elasticsearch.test.rest.yaml.section.ClientYamlTestSection
 
getLocation() - Method in class org.elasticsearch.test.rest.yaml.section.DoSection
 
getLocation() - Method in interface org.elasticsearch.test.rest.yaml.section.ExecutableSection
Get the location in the test that this was defined.
getLocation() - Method in class org.elasticsearch.test.rest.yaml.section.SetSection
 
getLocation() - Method in class org.elasticsearch.test.rest.yaml.section.TransformAndSetSection
 
getName() - Method in class org.elasticsearch.test.rest.yaml.ClientYamlTestCandidate
 
getName() - Method in class org.elasticsearch.test.rest.yaml.restspec.ClientYamlSuiteRestApi
 
getName() - Method in class org.elasticsearch.test.rest.yaml.section.ClientYamlTestSection
 
getName() - Method in class org.elasticsearch.test.rest.yaml.section.ClientYamlTestSuite
 
getNodeSelector() - Method in class org.elasticsearch.test.rest.yaml.section.ApiCallSection
Selects the node on which to run this request.
getParams() - Method in class org.elasticsearch.test.rest.yaml.restspec.ClientYamlSuiteRestApi
Gets all parameters supported by the api.
getParams() - Method in class org.elasticsearch.test.rest.yaml.section.ApiCallSection
 
getPath() - Method in class org.elasticsearch.test.rest.yaml.section.ClientYamlTestSuite
 
getPaths() - Method in class org.elasticsearch.test.rest.yaml.restspec.ClientYamlSuiteRestApi
 
getPrerequisiteSection() - Method in class org.elasticsearch.test.rest.yaml.section.ClientYamlTestSection
 
getPrerequisiteSection() - Method in class org.elasticsearch.test.rest.yaml.section.SetupSection
 
getPrerequisiteSection() - Method in class org.elasticsearch.test.rest.yaml.section.TeardownSection
 
getReasonPhrase() - Method in class org.elasticsearch.test.rest.yaml.ClientYamlTestResponse
 
getRequestMimeTypes() - Method in class org.elasticsearch.test.rest.yaml.restspec.ClientYamlSuiteRestApi
 
getResponseException() - Method in exception class org.elasticsearch.test.rest.yaml.ClientYamlTestResponseException
Exposes the origina ResponseException.
getResponseMimeTypes() - Method in class org.elasticsearch.test.rest.yaml.restspec.ClientYamlSuiteRestApi
 
getRestApiVersion() - Method in class org.elasticsearch.test.rest.yaml.ParameterizableYamlXContentParser
 
getRestClient(NodeSelector) - Method in class org.elasticsearch.test.rest.yaml.ClientYamlTestClient
 
getRestTestResponse() - Method in exception class org.elasticsearch.test.rest.yaml.ClientYamlTestResponseException
Exposes the obtained response body
getRestTestSuite() - Method in class org.elasticsearch.test.rest.yaml.ClientYamlTestCandidate
 
getSetupSection() - Method in class org.elasticsearch.test.rest.yaml.ClientYamlTestCandidate
 
getSetupSection() - Method in class org.elasticsearch.test.rest.yaml.section.ClientYamlTestSuite
 
getStability() - Method in class org.elasticsearch.test.rest.yaml.restspec.ClientYamlSuiteRestApi
 
getStash() - Method in class org.elasticsearch.test.rest.yaml.section.SetSection
 
getStash() - Method in class org.elasticsearch.test.rest.yaml.section.TransformAndSetSection
 
getStatusCode() - Method in class org.elasticsearch.test.rest.yaml.ClientYamlTestResponse
 
getSuitePath() - Method in class org.elasticsearch.test.rest.yaml.ClientYamlTestCandidate
 
getTeardownSection() - Method in class org.elasticsearch.test.rest.yaml.ClientYamlTestCandidate
 
getTeardownSection() - Method in class org.elasticsearch.test.rest.yaml.section.ClientYamlTestSuite
 
getTestCandidate() - Method in class org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase
 
getTestPath() - Method in class org.elasticsearch.test.rest.yaml.ClientYamlTestCandidate
 
getTestSection() - Method in class org.elasticsearch.test.rest.yaml.ClientYamlTestCandidate
 
getTestSections() - Method in class org.elasticsearch.test.rest.yaml.section.ClientYamlTestSuite
 
getTokenLocation() - Method in class org.elasticsearch.test.rest.yaml.ParameterizableYamlXContentParser
 
getVisibility() - Method in class org.elasticsearch.test.rest.yaml.restspec.ClientYamlSuiteRestApi
 
getWarningHeaders() - Method in class org.elasticsearch.test.rest.yaml.ClientYamlTestResponse
Get a list of all of the values of all warning headers returned in the response.
getXContentRegistry() - Method in class org.elasticsearch.test.rest.yaml.ParameterizableYamlXContentParser
 
GreaterThanAssertion - Class in org.elasticsearch.test.rest.yaml.section
Represents a gt assert section:
GreaterThanAssertion(XContentLocation, String, Object) - Constructor for class org.elasticsearch.test.rest.yaml.section.GreaterThanAssertion
 
GreaterThanEqualToAssertion - Class in org.elasticsearch.test.rest.yaml.section
Represents a gte assert section: - gte: { fields._ttl: 0 }
GreaterThanEqualToAssertion(XContentLocation, String, Object) - Constructor for class org.elasticsearch.test.rest.yaml.section.GreaterThanEqualToAssertion
 

H

hasBody() - Method in class org.elasticsearch.test.rest.yaml.section.ApiCallSection
 
hashCode() - Method in record class org.elasticsearch.test.rest.yaml.restspec.ClientYamlSuiteRestApi.Path
Returns a hash code value for this object.
hashCode() - Method in class org.elasticsearch.test.rest.yaml.section.ClientYamlTestSection
 
hasTextCharacters() - Method in class org.elasticsearch.test.rest.yaml.ParameterizableYamlXContentParser
 
hasYamlRunnerFeature(String) - Method in class org.elasticsearch.test.rest.yaml.section.PrerequisiteSection
 

I

ImpersonateOfficialClientTestClient - Class in org.elasticsearch.test.rest.yaml
Impersonates an official test client by setting the @{code x-elastic-client-meta} header.
ImpersonateOfficialClientTestClient(ClientYamlSuiteRestSpec, RestClient, List<HttpHost>, CheckedSupplier<RestClientBuilder, IOException>, String) - Constructor for class org.elasticsearch.test.rest.yaml.ImpersonateOfficialClientTestClient
 
initAndResetContext() - Method in class org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase
 
initClientYamlTestClient(ClientYamlSuiteRestSpec, RestClient, List<HttpHost>) - Method in class org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase
 
intValue() - Method in class org.elasticsearch.test.rest.yaml.ParameterizableYamlXContentParser
 
intValue(boolean) - Method in class org.elasticsearch.test.rest.yaml.ParameterizableYamlXContentParser
 
IsAfterAssertion - Class in org.elasticsearch.test.rest.yaml.section
Represents an is after assert section: - is_after: { result.some_instant: "2023-05-25T12:30:00.000Z" }
IsAfterAssertion(XContentLocation, String, Object) - Constructor for class org.elasticsearch.test.rest.yaml.section.IsAfterAssertion
 
isBodyRequired() - Method in class org.elasticsearch.test.rest.yaml.restspec.ClientYamlSuiteRestApi
 
isBodySupported() - Method in class org.elasticsearch.test.rest.yaml.restspec.ClientYamlSuiteRestApi
 
isBooleanValue() - Method in class org.elasticsearch.test.rest.yaml.ParameterizableYamlXContentParser
 
isClientParameter(String) - Method in class org.elasticsearch.test.rest.yaml.restspec.ClientYamlSuiteRestSpec
Returns whether the provided parameter is one of those parameters that are supported by the Elasticsearch language clients, meaning that they influence the client behaviour and don't get sent to Elasticsearch
isClosed() - Method in class org.elasticsearch.test.rest.yaml.ParameterizableYamlXContentParser
 
isEmpty() - Method in class org.elasticsearch.test.rest.yaml.section.SetupSection
 
isEmpty() - Method in class org.elasticsearch.test.rest.yaml.section.TeardownSection
 
isError() - Method in class org.elasticsearch.test.rest.yaml.ClientYamlTestResponse
 
IsFalseAssertion - Class in org.elasticsearch.test.rest.yaml.section
Represents an is_false assert section: - is_false: get.fields.bar
IsFalseAssertion(XContentLocation, String) - Constructor for class org.elasticsearch.test.rest.yaml.section.IsFalseAssertion
 
isGlobalParameter(String) - Method in class org.elasticsearch.test.rest.yaml.restspec.ClientYamlSuiteRestSpec
Returns whether the provided parameter is one of those parameters that are supported by all Elasticsearch api
IsTrueAssertion - Class in org.elasticsearch.test.rest.yaml.section
Represents an is_true assert section: - is_true: get.fields.bar
IsTrueAssertion(XContentLocation, String) - Constructor for class org.elasticsearch.test.rest.yaml.section.IsTrueAssertion
 

L

LengthAssertion - Class in org.elasticsearch.test.rest.yaml.section
Represents a length assert section:
LengthAssertion(XContentLocation, String, Object) - Constructor for class org.elasticsearch.test.rest.yaml.section.LengthAssertion
 
LessThanAssertion - Class in org.elasticsearch.test.rest.yaml.section
Represents a lt assert section: - lt: { fields._ttl: 20000}
LessThanAssertion(XContentLocation, String, Object) - Constructor for class org.elasticsearch.test.rest.yaml.section.LessThanAssertion
 
LessThanOrEqualToAssertion - Class in org.elasticsearch.test.rest.yaml.section
Represents a lte assert section: - lte: { fields._ttl: 0 }
LessThanOrEqualToAssertion(XContentLocation, String, Object) - Constructor for class org.elasticsearch.test.rest.yaml.section.LessThanOrEqualToAssertion
 
list() - Method in class org.elasticsearch.test.rest.yaml.ParameterizableYamlXContentParser
 
listOrderedMap() - Method in class org.elasticsearch.test.rest.yaml.ParameterizableYamlXContentParser
 
load(String) - Static method in class org.elasticsearch.test.rest.yaml.restspec.ClientYamlSuiteRestSpec
Parses the complete set of REST spec available under the provided directories
longValue() - Method in class org.elasticsearch.test.rest.yaml.ParameterizableYamlXContentParser
 
longValue(boolean) - Method in class org.elasticsearch.test.rest.yaml.ParameterizableYamlXContentParser
 

M

map() - Method in class org.elasticsearch.test.rest.yaml.ParameterizableYamlXContentParser
 
map(Supplier<Map<String, T>>, CheckedFunction<XContentParser, T, IOException>) - Method in class org.elasticsearch.test.rest.yaml.ParameterizableYamlXContentParser
 
mapOrdered() - Method in class org.elasticsearch.test.rest.yaml.ParameterizableYamlXContentParser
 
mapStrings() - Method in class org.elasticsearch.test.rest.yaml.ParameterizableYamlXContentParser
 
MatchAssertion - Class in org.elasticsearch.test.rest.yaml.section
Represents a match assert section: - match: { get.fields._routing: "5" }
MatchAssertion(XContentLocation, String, Object) - Constructor for class org.elasticsearch.test.rest.yaml.section.MatchAssertion
 
methods() - Method in record class org.elasticsearch.test.rest.yaml.restspec.ClientYamlSuiteRestApi.Path
Returns the value of the methods record component.

N

namedObject(Class<T>, String, Object) - Method in class org.elasticsearch.test.rest.yaml.ParameterizableYamlXContentParser
 
nextFieldName() - Method in class org.elasticsearch.test.rest.yaml.ParameterizableYamlXContentParser
 
nextToken() - Method in class org.elasticsearch.test.rest.yaml.ParameterizableYamlXContentParser
 
nodesVersions() - Method in class org.elasticsearch.test.rest.yaml.ClientYamlTestExecutionContext
 
NOT_SUPPORTED - Enum constant in enum class org.elasticsearch.test.rest.yaml.restspec.ClientYamlSuiteRestApi.Body
 
NotExistsAssertion - Class in org.elasticsearch.test.rest.yaml.section
Represents an exists assert section:
NotExistsAssertion(XContentLocation, String) - Constructor for class org.elasticsearch.test.rest.yaml.section.NotExistsAssertion
 
numberType() - Method in class org.elasticsearch.test.rest.yaml.ParameterizableYamlXContentParser
 
numberValue() - Method in class org.elasticsearch.test.rest.yaml.ParameterizableYamlXContentParser
 

O

objectBytes() - Method in class org.elasticsearch.test.rest.yaml.ParameterizableYamlXContentParser
 
objectText() - Method in class org.elasticsearch.test.rest.yaml.ParameterizableYamlXContentParser
 
optimizedText() - Method in class org.elasticsearch.test.rest.yaml.ParameterizableYamlXContentParser
 
optimizedTextOrNull() - Method in class org.elasticsearch.test.rest.yaml.ParameterizableYamlXContentParser
 
OPTIONAL - Enum constant in enum class org.elasticsearch.test.rest.yaml.restspec.ClientYamlSuiteRestApi.Body
 
org.elasticsearch.test.rest.yaml - package org.elasticsearch.test.rest.yaml
Infrastructure to run suites of tests written in YAML against a running Elasticsearch cluster using Elasticsearch's low level REST client.
org.elasticsearch.test.rest.yaml.restspec - package org.elasticsearch.test.rest.yaml.restspec
Specification of REST endpoints used to convert YAML do sections into actual calls to Elasticsearch.
org.elasticsearch.test.rest.yaml.section - package org.elasticsearch.test.rest.yaml.section
Sections within the YAML tests that are executed to run the tests.
os() - Method in class org.elasticsearch.test.rest.yaml.ClientYamlTestExecutionContext
 

P

ParameterizableYamlXContentParser - Class in org.elasticsearch.test.rest.yaml
a wrapper around YamlXContentParser that allows for parameter replacement in the yaml file
ParameterizableYamlXContentParser(XContentParser, Map<String, ?>) - Constructor for class org.elasticsearch.test.rest.yaml.ParameterizableYamlXContentParser
 
parse(String, String, Optional<Path>, XContentParser) - Static method in class org.elasticsearch.test.rest.yaml.section.ClientYamlTestSuite
 
parse(String, XContentParser) - Method in class org.elasticsearch.test.rest.yaml.restspec.ClientYamlSuiteRestApiParser
 
parse(NamedXContentRegistry, String, Path) - Static method in class org.elasticsearch.test.rest.yaml.section.ClientYamlTestSuite
 
parse(NamedXContentRegistry, String, Path, Map<String, ?>) - Static method in class org.elasticsearch.test.rest.yaml.section.ClientYamlTestSuite
 
parse(XContentParser) - Static method in class org.elasticsearch.test.rest.yaml.section.ClientYamlTestSection
 
parse(XContentParser) - Static method in class org.elasticsearch.test.rest.yaml.section.CloseToAssertion
 
parse(XContentParser) - Static method in class org.elasticsearch.test.rest.yaml.section.ContainsAssertion
 
parse(XContentParser) - Static method in class org.elasticsearch.test.rest.yaml.section.DoSection
 
parse(XContentParser) - Static method in interface org.elasticsearch.test.rest.yaml.section.ExecutableSection
 
parse(XContentParser) - Static method in class org.elasticsearch.test.rest.yaml.section.ExistsAssertion
 
parse(XContentParser) - Static method in class org.elasticsearch.test.rest.yaml.section.GreaterThanAssertion
 
parse(XContentParser) - Static method in class org.elasticsearch.test.rest.yaml.section.GreaterThanEqualToAssertion
 
parse(XContentParser) - Static method in class org.elasticsearch.test.rest.yaml.section.IsAfterAssertion
 
parse(XContentParser) - Static method in class org.elasticsearch.test.rest.yaml.section.IsFalseAssertion
 
parse(XContentParser) - Static method in class org.elasticsearch.test.rest.yaml.section.IsTrueAssertion
 
parse(XContentParser) - Static method in class org.elasticsearch.test.rest.yaml.section.LengthAssertion
 
parse(XContentParser) - Static method in class org.elasticsearch.test.rest.yaml.section.LessThanAssertion
 
parse(XContentParser) - Static method in class org.elasticsearch.test.rest.yaml.section.LessThanOrEqualToAssertion
 
parse(XContentParser) - Static method in class org.elasticsearch.test.rest.yaml.section.MatchAssertion
 
parse(XContentParser) - Static method in class org.elasticsearch.test.rest.yaml.section.NotExistsAssertion
 
parse(XContentParser) - Static method in class org.elasticsearch.test.rest.yaml.section.SetSection
 
parse(XContentParser) - Static method in class org.elasticsearch.test.rest.yaml.section.SetupSection
 
parse(XContentParser) - Static method in class org.elasticsearch.test.rest.yaml.section.TeardownSection
 
parse(XContentParser) - Static method in class org.elasticsearch.test.rest.yaml.section.TransformAndSetSection
 
parseIfNext(XContentParser) - Static method in class org.elasticsearch.test.rest.yaml.section.PrerequisiteSection
Parse a PrerequisiteSection if the next field is skip, otherwise returns PrerequisiteSection.EMPTY.
parseWithLegacyNodeSelectorSupport(XContentParser) - Static method in class org.elasticsearch.test.rest.yaml.section.DoSection
Deprecated.
parts() - Method in record class org.elasticsearch.test.rest.yaml.restspec.ClientYamlSuiteRestApi.Path
Returns the value of the parts record component.
path() - Method in record class org.elasticsearch.test.rest.yaml.restspec.ClientYamlSuiteRestApi.Path
Returns the value of the path record component.
Path(String, String[], Set<String>, boolean) - Constructor for record class org.elasticsearch.test.rest.yaml.restspec.ClientYamlSuiteRestApi.Path
Creates an instance of a Path record class.
Prerequisites - Class in org.elasticsearch.test.rest.yaml.section
 
PrerequisiteSection - Class in org.elasticsearch.test.rest.yaml.section
Represents a section where prerequisites to run a specific test section or suite are specified.
PRIVATE - Enum constant in enum class org.elasticsearch.test.rest.yaml.restspec.ClientYamlSuiteRestApi.Visibility
 
PUBLIC - Enum constant in enum class org.elasticsearch.test.rest.yaml.restspec.ClientYamlSuiteRestApi.Visibility
 

R

randomizeContentType() - Method in class org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase
 
REQUIRED - Enum constant in enum class org.elasticsearch.test.rest.yaml.restspec.ClientYamlSuiteRestApi.Body
 
resolveExpectedValue(ClientYamlTestExecutionContext) - Method in class org.elasticsearch.test.rest.yaml.section.Assertion
 
response(String) - Method in class org.elasticsearch.test.rest.yaml.ClientYamlTestExecutionContext
Extracts a specific value from the last saved response
REST_TESTS_BLACKLIST - Static variable in class org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase
Property that allows to blacklist some of the REST tests based on a comma separated list of globs e.g.
REST_TESTS_BLACKLIST_ADDITIONS - Static variable in class org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase
We use tests.rest.blacklist in build files to blacklist tests; this property enables a user to add additional blacklisted tests on top of the tests blacklisted in the build.
REST_TESTS_SUITE - Static variable in class org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase
Property that allows to control which REST tests get run.

S

safeClass(Object) - Method in class org.elasticsearch.test.rest.yaml.section.Assertion
a utility to get the class of an object, protecting for null (i.e., returning null if the input is null)
setAllowedWarningHeaders(List<String>) - Method in class org.elasticsearch.test.rest.yaml.section.DoSection
Set the warning headers that we expect from this response.
setAllowedWarningHeadersRegex(List<Pattern>) - Method in class org.elasticsearch.test.rest.yaml.section.DoSection
Set the warning headers pattern that we expect from this response.
setApiCallSection(ApiCallSection) - Method in class org.elasticsearch.test.rest.yaml.section.DoSection
 
setCatch(String) - Method in class org.elasticsearch.test.rest.yaml.section.DoSection
 
setExpectedWarningHeaders(List<String>) - Method in class org.elasticsearch.test.rest.yaml.section.DoSection
Set the warning headers that we expect from this response.
setExpectedWarningHeadersRegex(List<Pattern>) - Method in class org.elasticsearch.test.rest.yaml.section.DoSection
Set the warning headers patterns that we expect from this response.
setFeatureFlag(String) - Method in class org.elasticsearch.test.rest.yaml.restspec.ClientYamlSuiteRestApi
 
setNodeSelector(NodeSelector) - Method in class org.elasticsearch.test.rest.yaml.section.ApiCallSection
Set the selector that decides which node can run this request.
setOptions(Request, Map<String, String>) - Static method in class org.elasticsearch.test.rest.yaml.ClientYamlTestClient
 
setRequestMimeTypes(List<String>) - Method in class org.elasticsearch.test.rest.yaml.restspec.ClientYamlSuiteRestApi
 
setResponseMimeTypes(List<String>) - Method in class org.elasticsearch.test.rest.yaml.restspec.ClientYamlSuiteRestApi
 
SetSection - Class in org.elasticsearch.test.rest.yaml.section
Represents a set section: - set: {_scroll_id: scroll_id}
SetSection(XContentLocation) - Constructor for class org.elasticsearch.test.rest.yaml.section.SetSection
 
setStability(String) - Method in class org.elasticsearch.test.rest.yaml.restspec.ClientYamlSuiteRestApi
 
SetupSection - Class in org.elasticsearch.test.rest.yaml.section
Represents a setup section.
SetupSection(PrerequisiteSection, List<ExecutableSection>) - Constructor for class org.elasticsearch.test.rest.yaml.section.SetupSection
 
setVisibility(String) - Method in class org.elasticsearch.test.rest.yaml.restspec.ClientYamlSuiteRestApi
 
shortValue() - Method in class org.elasticsearch.test.rest.yaml.ParameterizableYamlXContentParser
 
shortValue(boolean) - Method in class org.elasticsearch.test.rest.yaml.ParameterizableYamlXContentParser
 
skipChildren() - Method in class org.elasticsearch.test.rest.yaml.ParameterizableYamlXContentParser
 
skipSetupSections() - Method in class org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase
 
STABLE - Enum constant in enum class org.elasticsearch.test.rest.yaml.restspec.ClientYamlSuiteRestApi.Stability
 
stash() - Method in class org.elasticsearch.test.rest.yaml.ClientYamlTestExecutionContext
 

T

TeardownSection - Class in org.elasticsearch.test.rest.yaml.section
 
test() - Method in class org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase
 
text() - Method in class org.elasticsearch.test.rest.yaml.ParameterizableYamlXContentParser
 
textCharacters() - Method in class org.elasticsearch.test.rest.yaml.ParameterizableYamlXContentParser
 
textLength() - Method in class org.elasticsearch.test.rest.yaml.ParameterizableYamlXContentParser
 
textOffset() - Method in class org.elasticsearch.test.rest.yaml.ParameterizableYamlXContentParser
 
textOrNull() - Method in class org.elasticsearch.test.rest.yaml.ParameterizableYamlXContentParser
 
toString() - Method in class org.elasticsearch.test.rest.yaml.ClientYamlTestCandidate
 
toString() - Method in record class org.elasticsearch.test.rest.yaml.restspec.ClientYamlSuiteRestApi.Path
Returns a string representation of this record class.
TransformAndSetSection - Class in org.elasticsearch.test.rest.yaml.section
Represents a transform_and_set section:
TransformAndSetSection(XContentLocation) - Constructor for class org.elasticsearch.test.rest.yaml.section.TransformAndSetSection
 
TRUE - Static variable in class org.elasticsearch.test.rest.yaml.section.Prerequisites
 

V

validate() - Method in class org.elasticsearch.test.rest.yaml.section.ClientYamlTestSuite
 
valueOf(String) - Static method in enum class org.elasticsearch.test.rest.yaml.restspec.ClientYamlSuiteRestApi.Body
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class org.elasticsearch.test.rest.yaml.restspec.ClientYamlSuiteRestApi.Stability
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class org.elasticsearch.test.rest.yaml.restspec.ClientYamlSuiteRestApi.Visibility
Returns the enum constant of this class with the specified name.
values() - Static method in enum class org.elasticsearch.test.rest.yaml.restspec.ClientYamlSuiteRestApi.Body
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class org.elasticsearch.test.rest.yaml.restspec.ClientYamlSuiteRestApi.Stability
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class org.elasticsearch.test.rest.yaml.restspec.ClientYamlSuiteRestApi.Visibility
Returns an array containing the constants of this enum class, in the order they are declared.

X

XCONTENT_REGISTRY - Static variable in interface org.elasticsearch.test.rest.yaml.section.ExecutableSection
NamedXContentRegistry that parses the default list of ExecutableSections available for tests.
A B C D E F G H I L M N O P R S T V X 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form