Package org.opensearch.test.rest
Infrastructure for testing REST. See
OpenSearchRestTestCase for running tests against an OpenSearch cluster using the
REST tests and the rest of the package for mocking utilities.-
Class Summary Class Description FakeRestChannel FakeRestRequest FakeRestRequest.Builder OpenSearchRestTestCase Superclass for tests that interact with an external test cluster using OpenSearch'sRestClient.OpenSearchRestTestCase.VersionSensitiveWarningsHandler Helper class to check warnings in REST responses with sensitivity to versions used in the target cluster.RestActionTestCase A common base class for Rest*ActionTests.RestActionTestCase.VerifyingClient A mockedNodeClientwhich can be easily reconfigured to verify arbitrary verification functions, and can be reset to allow reconfiguration partway through a test without having to construct a new object.