Class AbstractBackupRepositoryTest


  • public abstract class AbstractBackupRepositoryTest
    extends SolrTestCaseJ4
    • Constructor Detail

      • AbstractBackupRepositoryTest

        public AbstractBackupRepositoryTest()
    • Method Detail

      • getRepositoryClass

        protected abstract Class<? extends org.apache.solr.core.backup.repository.BackupRepository> getRepositoryClass()
      • getRepository

        protected abstract org.apache.solr.core.backup.repository.BackupRepository getRepository()
      • getBaseBackupRepositoryConfiguration

        protected org.apache.solr.common.util.NamedList<Object> getBaseBackupRepositoryConfiguration()
        Provide a base BackupRepository configuration for use by any tests that call NamedListInitializedPlugin.init(NamedList) explicitly.

        Useful for setting configuration properties required for specific BackupRepository implementations.

      • testCanReadProvidedConfigValues

        public void testCanReadProvidedConfigValues()
                                             throws Exception
        Throws:
        Exception
      • testCanChooseDefaultOrOverrideLocationValue

        public void testCanChooseDefaultOrOverrideLocationValue()
                                                         throws Exception
        Throws:
        Exception
      • testCanDetermineWhetherFilesAndDirectoriesExist

        public void testCanDetermineWhetherFilesAndDirectoriesExist()
                                                             throws Exception
        Throws:
        Exception
      • testCanDistinguishBetweenFilesAndDirectories

        public void testCanDistinguishBetweenFilesAndDirectories()
                                                          throws Exception
        Throws:
        Exception
      • testArbitraryFileDataCanBeStoredAndRetrieved

        public void testArbitraryFileDataCanBeStoredAndRetrieved()
                                                          throws Exception
        Throws:
        Exception
      • testCanDeleteEmptyOrFullDirectories

        public void testCanDeleteEmptyOrFullDirectories()
                                                 throws Exception
        Throws:
        Exception
      • testDirectoryCreationFailsIfParentDoesntExist

        public void testDirectoryCreationFailsIfParentDoesntExist()
                                                           throws Exception
        Throws:
        Exception
      • testCanDeleteIndividualFiles

        public void testCanDeleteIndividualFiles()
                                          throws Exception
        Throws:
        Exception
      • testCanListFullOrEmptyDirectories

        public void testCanListFullOrEmptyDirectories()
                                               throws Exception
        Throws:
        Exception
      • testDirectoryExistsWithDirectoryUri

        public void testDirectoryExistsWithDirectoryUri()
                                                 throws Exception
        Throws:
        Exception
      • testCanDisableChecksumVerification

        public void testCanDisableChecksumVerification()
                                                throws Exception
        Throws:
        Exception
      • getPluginInfo

        protected org.apache.solr.core.PluginInfo getPluginInfo​(String pluginName,
                                                                boolean isDefault)
      • getPluginInfo

        protected org.apache.solr.core.PluginInfo getPluginInfo​(String pluginName,
                                                                boolean isDefault,
                                                                Map<String,​String> attributes)