Class OpenSearchBlobStoreRepositoryIntegTestCase

java.lang.Object
org.junit.Assert
org.apache.lucene.tests.util.LuceneTestCase
org.opensearch.test.OpenSearchTestCase
org.opensearch.test.OpenSearchIntegTestCase
org.opensearch.repositories.blobstore.OpenSearchBlobStoreRepositoryIntegTestCase
Direct Known Subclasses:
OpenSearchMockAPIBasedRepositoryIntegTestCase

public abstract class OpenSearchBlobStoreRepositoryIntegTestCase extends OpenSearchIntegTestCase
Integration tests for BlobStoreRepository implementations.
  • Constructor Details

    • OpenSearchBlobStoreRepositoryIntegTestCase

      public OpenSearchBlobStoreRepositoryIntegTestCase()
  • Method Details

    • getRepositoryData

      public static org.opensearch.repositories.RepositoryData getRepositoryData(org.opensearch.repositories.Repository repository)
    • repositoryType

      protected abstract String repositoryType()
    • repositorySettings

      protected org.opensearch.common.settings.Settings repositorySettings()
    • createRepository

      protected final String createRepository(String name)
    • createRepository

      protected final String createRepository(String name, org.opensearch.common.settings.Settings settings)
    • testReadNonExistingPath

      public void testReadNonExistingPath() throws IOException
      Throws:
      IOException
    • testWriteRead

      public void testWriteRead() throws IOException
      Throws:
      IOException
    • testReadRange

      public void testReadRange() throws IOException
      Throws:
      IOException
    • testList

      public void testList() throws IOException
      Throws:
      IOException
    • testDeleteBlobs

      public void testDeleteBlobs() throws IOException
      Throws:
      IOException
    • writeBlob

      public static void writeBlob(org.opensearch.common.blobstore.BlobContainer container, String blobName, org.opensearch.core.common.bytes.BytesArray bytesArray, boolean failIfAlreadyExists) throws IOException
      Throws:
      IOException
    • testContainerCreationAndDeletion

      public void testContainerCreationAndDeletion() throws IOException
      Throws:
      IOException
    • writeRandomBlob

      public static byte[] writeRandomBlob(org.opensearch.common.blobstore.BlobContainer container, String name, int length) throws IOException
      Throws:
      IOException
    • readBlobFully

      public static byte[] readBlobFully(org.opensearch.common.blobstore.BlobContainer container, String name, int length) throws IOException
      Throws:
      IOException
    • randomBytes

      public static byte[] randomBytes(int length)
    • writeBlob

      protected static void writeBlob(org.opensearch.common.blobstore.BlobContainer container, String blobName, org.opensearch.core.common.bytes.BytesArray bytesArray) throws IOException
      Throws:
      IOException
    • newBlobStore

      protected org.opensearch.common.blobstore.BlobStore newBlobStore()
    • testSnapshotAndRestore

      public void testSnapshotAndRestore() throws Exception
      Throws:
      Exception
    • testMultipleSnapshotAndRollback

      public void testMultipleSnapshotAndRollback() throws Exception
      Throws:
      Exception
    • testIndicesDeletedFromRepository

      public void testIndicesDeletedFromRepository() throws Exception
      Throws:
      Exception
    • addRandomDocuments

      protected void addRandomDocuments(String name, int numDocs) throws InterruptedException
      Throws:
      InterruptedException
    • assertSuccessfulSnapshot

      protected static void assertSuccessfulSnapshot(org.opensearch.action.admin.cluster.snapshots.create.CreateSnapshotRequestBuilder requestBuilder)
    • assertSuccessfulRestore

      protected static void assertSuccessfulRestore(org.opensearch.action.admin.cluster.snapshots.restore.RestoreSnapshotRequestBuilder requestBuilder)
    • randomName

      protected static String randomName()