Class IntegrationTestsHelper

java.lang.Object
org.apache.polaris.service.it.env.IntegrationTestsHelper

public final class IntegrationTestsHelper extends Object
  • Field Details

    • INTEGRATION_TEST_TEMP_DIR_ENV_VAR

      public static final String INTEGRATION_TEST_TEMP_DIR_ENV_VAR
      The environment variable that can be used to override the temporary directory used by the integration tests.
      See Also:
  • Method Details

    • getTemporaryDirectory

      public static URI getTemporaryDirectory(Path defaultLocalDirectory)
      Get the temporary directory to use for integration tests.

      If the environment variable INTEGRATION_TEST_TEMP_DIR_ENV_VAR is set, it will be used as the temporary directory. Otherwise, the default local temporary directory will be used.

      The environment variable should be a URI, e.g. "file:///tmp/polaris" or "s3://bucket/polaris". If the URI does not have a scheme, it will be assumed to be a local file URI.