Package org.opensearch.test.rest.yaml
package org.opensearch.test.rest.yaml
Infrastructure to run suites of tests written in YAML against a running OpenSearch cluster using OpenSearch's low level REST
client. The YAML tests are run by all official clients and serve as tests for both OpenSearch and the clients.
-
ClassDescriptionUsed to execute REST requests according to the docs snippets that need to be tests.Wraps
ClientYamlTestSections ready to be run.Used byOpenSearchClientYamlSuiteTestCaseto 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.Exception obtained from a REST call in case the response code indicated an error.Allows to register additional features supported by the tests runner.Holds an object and allows to extract specific values from it given their pathRuns a suite of yaml tests shared with all the official OpenSearch clients against an opensearch cluster.Allows 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.