Class ParameterizedDynamicSettingsOpenSearchIntegTestCase

java.lang.Object
org.junit.Assert
org.apache.lucene.tests.util.LuceneTestCase
org.opensearch.test.OpenSearchTestCase
org.opensearch.test.OpenSearchIntegTestCase
org.opensearch.test.ParameterizedDynamicSettingsOpenSearchIntegTestCase

public abstract class ParameterizedDynamicSettingsOpenSearchIntegTestCase extends OpenSearchIntegTestCase
Base class for running the tests with parameterization using dynamic settings: the cluster will be created once before the test suite and the settings will be applied dynamically, please notice that not all settings could be changed dynamically (consider using ParameterizedStaticSettingsOpenSearchIntegTestCase instead).

Here is the simple illustration on of the execution flow per parameters combination:

  • suite scope: create cluster -> for each test method { apply settings -> run test method -> unapply settings } -> shutdown cluster
  • test scope: for each test method { create cluster -> apply settings -> run test method -> unapply settings -> shutdown cluster }
  • Field Details

    • settings

      protected final org.opensearch.common.settings.Settings settings
  • Constructor Details

    • ParameterizedDynamicSettingsOpenSearchIntegTestCase

      public ParameterizedDynamicSettingsOpenSearchIntegTestCase(org.opensearch.common.settings.Settings dynamicSettings)
  • Method Details

    • beforeTests

      public void beforeTests()
    • afterTests

      public void afterTests()
    • indexRandomForConcurrentSearch

      public void indexRandomForConcurrentSearch(String... indices) throws InterruptedException
      Throws:
      InterruptedException