Class MySqlDatabaseSchemaTest

java.lang.Object
io.debezium.connector.mysql.MySqlDatabaseSchemaTest

public class MySqlDatabaseSchemaTest extends Object
Author:
Randall Hauch
  • Field Details

    • TEST_FILE_PATH

      private static final Path TEST_FILE_PATH
    • DATABASE

      private final UniqueDatabase DATABASE
    • SERVER_NAME

      private static final String SERVER_NAME
      See Also:
    • mysql

      private io.debezium.connector.mysql.MySqlDatabaseSchema mysql
    • connectorConfig

      private io.debezium.connector.mysql.MySqlConnectorConfig connectorConfig
  • Constructor Details

    • MySqlDatabaseSchemaTest

      public MySqlDatabaseSchemaTest()
  • Method Details

    • beforeEach

      public void beforeEach()
    • getSchema

      private io.debezium.connector.mysql.MySqlDatabaseSchema getSchema(Configuration config)
    • afterEach

      public void afterEach()
    • shouldApplyDdlStatementsAndRecover

      public void shouldApplyDdlStatementsAndRecover() throws InterruptedException
      Throws:
      InterruptedException
    • shouldIgnoreUnparseableDdlAndRecover

      public void shouldIgnoreUnparseableDdlAndRecover() throws InterruptedException
      Throws:
      InterruptedException
    • shouldFailOnUnparseableDdl

      public void shouldFailOnUnparseableDdl() throws InterruptedException
      Throws:
      InterruptedException
    • shouldLoadSystemAndNonSystemTablesAndConsumeOnlyFilteredDatabases

      public void shouldLoadSystemAndNonSystemTablesAndConsumeOnlyFilteredDatabases() throws InterruptedException
      Throws:
      InterruptedException
    • shouldLoadSystemAndNonSystemTablesAndConsumeAllDatabases

      public void shouldLoadSystemAndNonSystemTablesAndConsumeAllDatabases() throws InterruptedException
      Throws:
      InterruptedException
    • shouldAllowDecimalPrecision

      public void shouldAllowDecimalPrecision()
    • shouldStoreNonCapturedDatabase

      @FixFor("DBZ-3622") public void shouldStoreNonCapturedDatabase()
    • shouldNotStoreNonCapturedDatabase

      @FixFor("DBZ-3622") public void shouldNotStoreNonCapturedDatabase()
    • shouldStoreNonCapturedTable

      @FixFor("DBZ-3622") public void shouldStoreNonCapturedTable()
    • shouldNotStoreNonCapturedTable

      @FixFor("DBZ-3622") public void shouldNotStoreNonCapturedTable()
    • addCommentToSchemaTest

      public void addCommentToSchemaTest()
    • shouldProduceCorrectTableChangesForDropStatement

      @FixFor("DBZ-6945") public void shouldProduceCorrectTableChangesForDropStatement()
    • assertTableSchemaComments

      protected void assertTableSchemaComments(String tableName, String column, String comments)
    • assertTableIncluded

      protected void assertTableIncluded(String fullyQualifiedTableName)
    • assertTableExcluded

      protected void assertTableExcluded(String fullyQualifiedTableName)
    • assertNoTablesExistForDatabase

      protected void assertNoTablesExistForDatabase(String dbName)
    • assertTablesExistForDatabase

      protected void assertTablesExistForDatabase(String dbName)
    • assertHistoryRecorded

      protected void assertHistoryRecorded(Configuration config, io.debezium.connector.mysql.MySqlPartition partition, io.debezium.pipeline.spi.OffsetContext offset)
    • printStatements

      protected void printStatements(String dbName, Set<TableId> tables, String ddlStatements)
    • initializePartition

      private io.debezium.connector.mysql.MySqlPartition initializePartition(io.debezium.connector.mysql.MySqlConnectorConfig connectorConfig, Configuration taskConfig)
    • initializeOffset

      private io.debezium.connector.mysql.MySqlOffsetContext initializeOffset(io.debezium.connector.mysql.MySqlConnectorConfig connectorConfig)