Package org.opensearch.test
package org.opensearch.test
-
ClassDescriptionAbstractBroadcastResponseTestCase<T extends org.opensearch.action.support.broadcast.BroadcastResponse>AbstractDiffableSerializationTestCase<T extends org.opensearch.cluster.Diffable<T> & org.opensearch.core.xcontent.ToXContent>An abstract test case to ensure correct behavior of Diffable.AbstractDiffableWireSerializationTestCase<T extends org.opensearch.cluster.Diffable<T>>An abstract test case to ensure correct behavior of Diffable.AbstractNamedWriteableTestCase<T extends org.opensearch.core.common.io.stream.NamedWriteable>Standard test case for testing the wire serialization of subclasses of NamedWriteable.AbstractQueryTestCase<QB extends org.opensearch.index.query.AbstractQueryBuilder<QB>>AbstractSerializingTestCase<T extends org.opensearch.core.xcontent.ToXContent & org.opensearch.core.common.io.stream.Writeable>AbstractWireSerializingTestCase<T extends org.opensearch.core.common.io.stream.Writeable>Standard test case for testing the wire serialization of subclasses of Writeable.Standard test case for testing wire serialization.AbstractXContentTestCase<T extends org.opensearch.core.xcontent.ToXContent>Tests converting to and from xcontent.ThreadFilter to exclude ThreadLeak checks for BC’s global background threadsUtilities that simplify testing of diffable classesUtility class that encapsulates standard checks and assertions around testing the equals() and hashCode() methods of objects that implement them.A function that makes a copy of its input argumentA function that creates a copy of its input argument that is different from its input in exactly one aspect (e.g.External cluster to run the tests against.InternalAggregationTestCase<T extends org.opensearch.search.aggregations.InternalAggregation>Implementors of this test case should be aware that the aggregation under test needs to be registered in the test's namedWriteableRegistry.InternalMultiBucketAggregationTestCase<T extends org.opensearch.search.aggregations.InternalAggregation & org.opensearch.search.aggregations.bucket.MultiBucketsAggregation>InternalTestCluster manages a set of JVM private nodes and allows convenient access to them.An abstract class that is called during
InternalTestCluster.rollingRestart(InternalTestCluster.RestartCallback)and / orInternalTestCluster.fullRestart(InternalTestCluster.RestartCallback)to execute actions at certain stages of the restart.A dummy http transport used by tests when not wanting to actually bind to a real address.Marker plugin used byMockNodeto enableMockHttpTransport.This is a testing plugin that registers a genericMockIndexEventListener.TestEventListeneras a node level service as well as a listener on every index.Some tests rely on the keyword tokenizer, but this tokenizer isn't part of lucene-core and therefor not available in some modules.Test appender that can be used to verify that certain events were logged correctlyUsed for cases when the logger is dynamically named such as to include an index name or shard id Best used in conjunction with the root logger:@TestLogging(value = "_root:debug", reason = "Validate logging output");Utility methods for creatingSettingsinstances defining a set ofDiscoveryNodeRole.Builds a message describing how two sets of values are unequal.OpenSearchIntegTestCaseis an abstract base class to run integration tests against a JVM private OpenSearch Cluster.Defines a cluster scope for aOpenSearchIntegTestCasesubclass.The scope of a test cluster used together withOpenSearchIntegTestCase.ClusterScopeannotations onOpenSearchIntegTestCasesubclasses.If a test is annotated withOpenSearchIntegTestCase.SuiteScopeTestCasethe checks and modifications that are applied to the used test cluster are only done after all tests of this class are executed.Annotation for third-party integration tests.A test that keep a singleton node started for all tests that can be used to get references to Guice injectors in unit tests.Base testcase for randomized unit testing with OpenSearchDefine LockFeatureFlag annotation for unit tests.This cute helper class just holds all analysis building blocks that are used to build IndexAnalyzers.Base class for running the tests with parameterization using dynamic settings: the cluster will be created once before the test suite and the settings will be applied dynamically, please notice that not all settings could be changed dynamically (consider usingParameterizedStaticSettingsOpenSearchIntegTestCaseinstead).Base class for running the tests with parameterization with static settings: the cluster will be pre-created with the settings at startup, the methodParameterizedStaticSettingsOpenSearchIntegTestCase.hasSameParametersAs(ParameterizedOpenSearchIntegTestCase)is being used by the test scaffolding to detect when the test suite is instantiated with the new parameters and the test cluster has to be recreated.Stores the posix attributes for a path and resets them on close.Utilities for remote store related operations used across one or more tests.Base test cluster that exposes the basis to run tests against any opensearch cluster, whose layout (e.g.Deprecated.Test logs appender that provides functionality to extract specific logs/exception messages and wait for it to show upUtilities for selecting versions in tests