All Classes and Interfaces
Class
Description
Test implementation of a
DelegatingBackupRepository that disables the checksum
verification on its delegate BackupRepository.This test simply does a bunch of basic things in solrcloud mode and asserts things work as
expected.
This test simply does a bunch of basic things in solrcloud mode and asserts things work as
expected.
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.
Test sync phase that occurs when Leader goes down and a new Leader is elected.
This test simply does a bunch of basic things in solrcloud mode and asserts things work as
expected.
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 simulate query timeouts at specific points in various components that call
QueryLimits.shouldExit().The monkey can stop random or specific jetties used with SolrCloud.
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.
To 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
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.
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 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
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.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
CloudHttp2SolrClient.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 classesConnection strategy that creates instances of
TestableZooKeeper instead of plain ZooKeeper objects.This 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.