Class AbstractThirdPartyRepositoryTestCase

java.lang.Object
org.junit.Assert
org.apache.lucene.util.LuceneTestCase
org.elasticsearch.test.ESTestCase
org.elasticsearch.test.ESSingleNodeTestCase
org.elasticsearch.repositories.AbstractThirdPartyRepositoryTestCase

public abstract class AbstractThirdPartyRepositoryTestCase
extends ESSingleNodeTestCase
  • Constructor Details

    • AbstractThirdPartyRepositoryTestCase

      public AbstractThirdPartyRepositoryTestCase()
  • Method Details

    • nodeSettings

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

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

      protected abstract void createRepository​(java.lang.String repoName)
    • setUp

      public void setUp() throws java.lang.Exception
      Overrides:
      setUp in class ESSingleNodeTestCase
      Throws:
      java.lang.Exception
    • tearDown

      public void tearDown() throws java.lang.Exception
      Overrides:
      tearDown in class ESSingleNodeTestCase
      Throws:
      java.lang.Exception
    • testCreateSnapshot

      public void testCreateSnapshot()
    • testListChildren

      public void testListChildren() throws java.lang.Exception
      Throws:
      java.lang.Exception
    • assertBlobsByPrefix

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

      public void testCleanup() throws java.lang.Exception
      Throws:
      java.lang.Exception
    • assertCleanupResponse

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

      protected boolean assertCorruptionVisible​(org.elasticsearch.repositories.blobstore.BlobStoreRepository repo, java.util.concurrent.Executor executor) throws java.lang.Exception
      Throws:
      java.lang.Exception
    • assertConsistentRepository

      protected void assertConsistentRepository​(org.elasticsearch.repositories.blobstore.BlobStoreRepository repo, java.util.concurrent.Executor executor) throws java.lang.Exception
      Throws:
      java.lang.Exception
    • assertDeleted

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

      protected void assertChildren​(org.elasticsearch.common.blobstore.BlobPath path, java.util.Collection<java.lang.String> children) throws java.lang.Exception
      Throws:
      java.lang.Exception
    • getRepository

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