Class 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:
    InstallShardDataAPI
    • Constructor Detail

      • AbstractInstallShardTest

        public AbstractInstallShardTest()
    • Method Detail

      • 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
      • 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