Class TestTrinoCli

java.lang.Object
io.trino.tempto.ProductTest
io.trino.tests.product.cli.TrinoCliLauncher
io.trino.tests.product.cli.TestTrinoCli
All Implemented Interfaces:
io.trino.tempto.RequirementsProvider

public class TestTrinoCli extends TrinoCliLauncher implements io.trino.tempto.RequirementsProvider
  • Constructor Details

  • Method Details

    • stopCli

      public void stopCli() throws InterruptedException
      Overrides:
      stopCli in class TrinoCliLauncher
      Throws:
      InterruptedException
    • getRequirements

      public io.trino.tempto.Requirement getRequirements(io.trino.tempto.configuration.Configuration configuration)
      Specified by:
      getRequirements in interface io.trino.tempto.RequirementsProvider
    • shouldDisplayVersion

      public void shouldDisplayVersion() throws IOException
      Throws:
      IOException
    • shouldRunQuery

      public void shouldRunQuery() throws IOException
      Throws:
      IOException
    • shouldRunBatchQuery

      public void shouldRunBatchQuery() throws Exception
      Throws:
      Exception
    • shouldRunBatchQueryWithStdinRedirect

      public void shouldRunBatchQueryWithStdinRedirect() throws Exception
      Throws:
      Exception
    • shouldRunMultipleBatchQueriesWithStdinRedirect

      public void shouldRunMultipleBatchQueriesWithStdinRedirect() throws Exception
      Throws:
      Exception
    • shouldExecuteEmptyListOfStatements

      public void shouldExecuteEmptyListOfStatements() throws Exception
      Throws:
      Exception
    • shouldPassSessionUser

      public void shouldPassSessionUser() throws Exception
      Throws:
      Exception
    • shouldUseCatalogAndSchemaOptions

      public void shouldUseCatalogAndSchemaOptions() throws Exception
      Throws:
      Exception
    • shouldUseCatalogAndSchemaOptionsFromConfigFile

      public void shouldUseCatalogAndSchemaOptionsFromConfigFile() throws Exception
      Throws:
      Exception
    • shouldPreferCommandLineArgumentOverConfigDefault

      public void shouldPreferCommandLineArgumentOverConfigDefault() throws Exception
      Throws:
      Exception
    • shouldExitWithErrorOnUnknownPropertiesInConfigFile

      public void shouldExitWithErrorOnUnknownPropertiesInConfigFile() throws Exception
      Throws:
      Exception
    • shouldRunQueryFromFile

      public void shouldRunQueryFromFile() throws Exception
      Throws:
      Exception
    • shouldExitOnErrorFromExecute

      public void shouldExitOnErrorFromExecute() throws IOException
      Throws:
      IOException
    • shouldExitOnErrorFromFile

      public void shouldExitOnErrorFromFile() throws IOException
      Throws:
      IOException
    • shouldNotExitOnErrorFromExecute

      public void shouldNotExitOnErrorFromExecute() throws IOException
      Throws:
      IOException
    • shouldNotExitOnErrorFromFile

      public void shouldNotExitOnErrorFromFile() throws IOException
      Throws:
      IOException
    • shouldHandleSession

      public void shouldHandleSession() throws IOException
      Throws:
      IOException
    • shouldHandleTransaction

      public void shouldHandleTransaction() throws IOException
      Throws:
      IOException
    • testSetRole

      public void testSetRole() throws IOException
      Throws:
      IOException
    • shouldPrintExplainAnalyzePlan

      public void shouldPrintExplainAnalyzePlan() throws Exception
      Throws:
      Exception
    • squeezeLines

      public static List<String> squeezeLines(List<String> lines)