Class AbstractThirdPartyRepositoryTestCase

java.lang.Object
org.junit.Assert
org.apache.lucene.tests.util.LuceneTestCase
org.opensearch.test.OpenSearchTestCase
org.opensearch.test.OpenSearchSingleNodeTestCase
org.opensearch.repositories.AbstractThirdPartyRepositoryTestCase

public abstract class AbstractThirdPartyRepositoryTestCase extends OpenSearchSingleNodeTestCase
  • Constructor Details

    • AbstractThirdPartyRepositoryTestCase

      public AbstractThirdPartyRepositoryTestCase()
  • Method Details

    • nodeSettings

      protected org.opensearch.common.settings.Settings nodeSettings()
      Description copied from class: OpenSearchSingleNodeTestCase
      Additional settings to add when creating the node. Also allows overriding the default settings.
      Overrides:
      nodeSettings in class OpenSearchSingleNodeTestCase
    • credentials

      protected abstract org.opensearch.common.settings.SecureSettings credentials()
    • createRepository

      protected abstract void createRepository(String repoName)
    • setUp

      public void setUp() throws Exception
      Overrides:
      setUp in class OpenSearchSingleNodeTestCase
      Throws:
      Exception
    • tearDown

      public void tearDown() throws Exception
      Overrides:
      tearDown in class OpenSearchSingleNodeTestCase
      Throws:
      Exception
    • testCreateSnapshot

      public void testCreateSnapshot()
    • testListChildren

      public void testListChildren() throws Exception
      Throws:
      Exception
    • assertBlobsByPrefix

      protected void assertBlobsByPrefix(org.opensearch.common.blobstore.BlobPath path, String prefix, Map<String, org.opensearch.common.blobstore.BlobMetadata> blobs) throws Exception
      Throws:
      Exception
    • testCleanup

      public void testCleanup() throws Exception
      Throws:
      Exception
    • assertCleanupResponse

      protected void assertCleanupResponse(org.opensearch.action.admin.cluster.repositories.cleanup.CleanupRepositoryResponse response, long bytes, long blobs)
    • assertCorruptionVisible

      protected boolean assertCorruptionVisible(org.opensearch.repositories.blobstore.BlobStoreRepository repo, Executor executor) throws Exception
      Throws:
      Exception
    • assertConsistentRepository

      protected void assertConsistentRepository(org.opensearch.repositories.blobstore.BlobStoreRepository repo, Executor executor) throws Exception
      Throws:
      Exception
    • assertDeleted

      protected void assertDeleted(org.opensearch.common.blobstore.BlobPath path, String name) throws Exception
      Throws:
      Exception
    • assertChildren

      protected void assertChildren(org.opensearch.common.blobstore.BlobPath path, Collection<String> children) throws Exception
      Throws:
      Exception
    • getRepository

      protected org.opensearch.repositories.blobstore.BlobStoreRepository getRepository()