Class RemoteStoreTestUtils

java.lang.Object
org.opensearch.test.RemoteStoreTestUtils

public final class RemoteStoreTestUtils extends Object
Utilities for remote store related operations used across one or more tests.
  • Method Details

    • createMetadataFileBytes

      public static InputStream createMetadataFileBytes(Map<String,String> segmentFilesMap, org.opensearch.indices.replication.checkpoint.ReplicationCheckpoint replicationCheckpoint, org.apache.lucene.index.SegmentInfos segmentInfos) throws IOException
      Prepares metadata file bytes with header and footer
      Parameters:
      segmentFilesMap - : actual metadata content
      Returns:
      ByteArrayIndexInput: metadata file bytes with header and footer
      Throws:
      IOException - IOException
    • getDummyMetadata

      public static Map<String,String> getDummyMetadata(String prefix, int commitGeneration)