Package 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. The YAML tests are run by all official clients and serve as tests for both Elasticsearch and the clients.
-
ClassDescriptionUsed to execute REST requests according to the docs snippets that need to be tests.Wraps
ClientYamlTestSection
s ready to be run.Used byESClientYamlSuiteTestCase
to execute REST requests according to the tests written in yaml suite files.Execution context passed across the REST tests.Response obtained from a REST call, eagerly reads the response body into a string for later optional parsing.Runs a suite of yaml tests shared with all the official Elasticsearch clients against against an elasticsearch cluster.Allows to register additional features supported by the tests runner.Holds an object and allows to extract specific values from it given their pathAllows to cache the last obtained test response and or part of it within variables that can be used as input values in following requests and assertions. -
ExceptionDescriptionException obtained from a REST call in case the response code indicated an error.