Class AbstractInstallShardTest

java.lang.Object
org.junit.Assert
org.apache.lucene.tests.util.LuceneTestCase
org.apache.solr.SolrTestCase
org.apache.solr.SolrTestCaseJ4
org.apache.solr.cloud.SolrCloudTestCase
org.apache.solr.cloud.api.collections.AbstractInstallShardTest

public abstract class AbstractInstallShardTest extends SolrCloudTestCase
Base class for testing the "Install Shard API" with various backup repositories.

Subclasses are expected to bootstrap a Solr cluster with a single configured backup repository. This base-class will populate that backup repository all data necessary for these tests.

See Also:
  • InstallShardData
  • Field Details

  • Constructor Details

    • AbstractInstallShardTest

      public AbstractInstallShardTest()
  • Method Details

    • seedDocGenerator

      public static void seedDocGenerator()
    • clearCollsToDelete

      public void clearCollsToDelete()
    • deleteTestCollections

      public void deleteTestCollections() throws Exception
      Throws:
      Exception
    • bootstrapBackupRepositoryData

      public static void bootstrapBackupRepositoryData(String baseRepositoryLocation) throws Exception
      Throws:
      Exception
    • testInstallFailsIfCollectionIsNotInReadOnlyMode

      public void testInstallFailsIfCollectionIsNotInReadOnlyMode() throws Exception
      Throws:
      Exception
    • testInstallToSingleShardCollection

      public void testInstallToSingleShardCollection() throws Exception
      Throws:
      Exception
    • testInstallReportsErrorsAppropriately

      public void testInstallReportsErrorsAppropriately() throws Exception
      Throws:
      Exception
    • testSerialInstallToMultiShardCollection

      public void testSerialInstallToMultiShardCollection() throws Exception
      Throws:
      Exception
    • testParallelInstallToMultiShardCollection

      public void testParallelInstallToMultiShardCollection() throws Exception
      Throws:
      Exception
    • defaultSolrXmlTextWithBackupRepository

      public static String defaultSolrXmlTextWithBackupRepository(String backupRepositoryText)
      Builds a string representation of a valid solr.xml configuration, with the provided backup-repository configuration inserted
      Parameters:
      backupRepositoryText - a string representing the 'backup' XML tag to put in the constructed solr.xml