All Classes and Interfaces
Class
Description
Test implementation of a
DelegatingBackupRepository that disables the checksum
verification on its delegate BackupRepository.Used to test the traditional (now deprecated) 'full-snapshot' method of backup/restoration.
Tests the Cloud Collections API.
TODO: we should still test this works as a custom update chain as well as what we test now - the
default update chain
Used to test the incremental method of backup/restoration (as opposed to the deprecated 'full
snapshot' method).
Base class for testing the "Install Shard API" with various backup repositories.
Base test class for ZooKeeper tests.
Helper class for validating when the replication handler has finished a backup.
Helper base class for distributed search test cases
Builder classes to make tests using different cluster and node configurations easier to write and
to read.
Helper class to collect interesting callers at specific points.
Helper class to simulate query timeouts at specific points in various components that call
QueryLimits.shouldExit().The monkey can stop random or specific jetties used with SolrCloud.
Deprecated.
Constructs
CloudLegacySolrClient instances from provided configuration.Deprecated.
Please use
ConcurrentUpdateBaseSolrClientConstructs
ConcurrentUpdateSolrClient instances from provided configuration.A class for making a request to the config handler.
A Dummy SpellChecker for testing purposes
Deprecated.
Provides an EmbeddedSolrServer for tests.
Helper code for "Muting" ERROR log messages that you expect as a result of the things you are
testing, so they aren't a distraction in test logs.
Some tests need to reach outside the classpath to get certain resources (e.g.
Deprecated.
Used to configure the Apache HTTP client.
Deprecated.
Please use
HttpClusterStateProviderDeprecated.
Please use
HttpJettySolrClient or HttpJdkSolrClientDeprecated.
Please use
HttpJettySolrClientTo use, tests must be able to run iptables, eg sudo chmod u+s iptables
Run solr using jetty
This is a stupid hack to give jetty something to attach to
Deprecated.
Not supporting Apache HttpClient based implementations anymore
Constructs
LBHttpSolrClient instances from provided configuration.Annotation specifying the log level for a particular test case or method
A JUnit
TestRule that sets (and resets) the Log4j2 log level based on the
LogLevel annotation.Helper code to listen for
LogEvent messages (via a BlockingQueue) that you expect
as a result of the things you are testing, So you can make assertions about when a particular
action should/shouldn't cause Solr to produce a particular Log message"Mini" SolrCloud cluster to be used for testing
Builder class for a MiniSolrCloudCluster
Factory for
MockCharFilter for testing purposes.Opens a directory with
LuceneTestCase.newDirectory()Simple mock provider with fixed rates and some assertions
Opens a directory with
LuceneTestCase.newFSDirectory(Path)Factory for
MockTokenFilter for testing purposes.Factory for
MockTokenizer for testing purposes.Base class for tests that require more than one SolrCloud
A mocked up instance of SecureRandom that just uses
Random under the covers.A sample ValueSourceParser for testing.
Deprecated.
Please look into using Solr's new Http2 clients
A
MergePolicy with a no-arg constructor that proxies to a ForceMergePolicy
wrapped instance retrieved from LuceneTestCase.newMergePolicy(java.util.Random).A
MergePolicyFactory for RandomForceMergePolicy.Marker annotation indicating when SSL Randomization should be used for a test class, and if so
what the typical odds of using SSL should for that test class.
A simple data structure for encapsulating the effective values to be used when randomizing SSL
in a test, based on the configured values in the
RandomizeSSL annotation.A
MergePolicy with a no-arg constructor that proxies to an instance retrieved from LuceneTestCase.newMergePolicy(java.util.Random).A
MergePolicyFactory for RandomMergePolicy.A
MergePolicyFactory for RandomMergePolicy preventing random segment reversing.This Factory can optionally save references to the commands it receives in BlockingQueues that
tests can poll from to observe that the expected commands are executed.
Facilitates testing Solr's REST API via a provided embedded Jetty
Comparator for testing purposes
Provides security.json constants for use in tests that enable security.
Kindly borrowed the idea and base implementation from the ActiveMQ project; useful for blocking
traffic on a specified port.
Deprecated.
Please look into using Solr's new Http2 clients
Provides access to a
SolrClient instance and a running Solr in tests.Base test class for cloud tests wanting to track authentication metrics.
Base class for SolrCloud tests
A marker interface to Ignore PRS in tests.
Deprecated.
Please look into using Solr's new Http2 clients
Deprecated.
Please look into using Solr's new Http2 clients
Deprecated.
Please look into using Solr's new Http2 clients
This ignores those threads in Solr for which there is no way to clean up after a suite.
Deprecated.
A
SolrClientTestRule that provides a Solr instance running in Jetty, an HTTP server.This ignores those Kafka threads in Solr for which there is no way to clean up after a suite.
A Utility class for extra Hamcrest
Matcher implementations.A domain handler to validate and match cookies based on the domain and origin.
All Solr test cases should derive from this class eventually.
A junit4 Solr test harness that extends SolrTestCase and, by extension, LuceneTestCase.
A variant of
CloudSolrClient.Builder that will
randomize some internal settings.Deprecated.
Annotation for test classes that want to disable PointFields.
Annotation for test classes that want to disable SSL
Necessary to make method signatures un-ambiguous
Custom field representing a
BinaryField that's sortable.An SSLConfig that provides
SSLConfig and HttpClientUtil.SocketFactoryRegistryProvider for both
clients and servers that supports reading key/trust store information directly from resource
files provided with the Solr test-framework classesThis class provides a simple harness that may be useful when writing testcases.
A ShardHandlerFactory that extends HttpShardHandlerFactory and tracks requests made to
nodes/shards such that interested parties can watch such requests and make assertions inside
tests
A queue having helper methods to select requests by shard and purpose.
This Factory is similar to
RecordingUpdateProcessorFactory, but with the goal of tracking
requests across multiple collections/shards/replicas in a SolrCloudTestCase.
CloudSolrClient