Class BinlogReaderIT

java.lang.Object
io.debezium.connector.mysql.legacy.BinlogReaderIT

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

    • DB_HISTORY_PATH

      private static final Path DB_HISTORY_PATH
    • DATABASE

      private final UniqueDatabase DATABASE
    • SET_TLS_PROTOCOLS

      private static final String SET_TLS_PROTOCOLS
      See Also:
    • config

      private Configuration config
    • context

      private io.debezium.connector.mysql.legacy.MySqlTaskContext context
    • reader

      private io.debezium.connector.mysql.legacy.BinlogReader reader
    • store

      private KeyValueStore store
    • schemaChanges

      private SchemaChangeHistory schemaChanges
    • skipRule

      public SkipTestRule skipRule
  • Constructor Details

    • BinlogReaderIT

      public BinlogReaderIT()
  • Method Details

    • beforeEach

      public void beforeEach()
    • afterEach

      public void afterEach()
    • consumeAtLeast

      protected int consumeAtLeast(int minNumber) throws InterruptedException
      Throws:
      InterruptedException
    • consumeAtLeast

      protected int consumeAtLeast(int minNumber, long timeout, TimeUnit unit) throws InterruptedException
      Throws:
      InterruptedException
    • filterAtLeast

      protected long filterAtLeast(int minNumber, long timeout, TimeUnit unit) throws InterruptedException
      Throws:
      InterruptedException
    • simpleConfig

      protected Configuration.Builder simpleConfig()
    • shouldCreateSnapshotOfSingleDatabase

      public void shouldCreateSnapshotOfSingleDatabase() throws Exception
      Throws:
      Exception
    • shouldCreateSnapshotOfSingleDatabaseWithSchemaChanges

      public void shouldCreateSnapshotOfSingleDatabaseWithSchemaChanges() throws Exception
      Throws:
      Exception
    • shouldFilterAllRecordsBasedOnDatabaseWhitelistFilter

      @FixFor("DBZ-1206") public void shouldFilterAllRecordsBasedOnDatabaseWhitelistFilter() throws Exception
      Setup a DATABASE_WHITELIST filter that filters all events. Verify all events are properly filtered. Verify numberOfFilteredEvents metric is incremented correctly.
      Throws:
      Exception
    • shouldFilterAllRecordsBasedOnDatabaseIncludeListFilter

      @FixFor("DBZ-1206") public void shouldFilterAllRecordsBasedOnDatabaseIncludeListFilter() throws Exception
      Setup a DATABASE_INCLUDE_LIST filter that filters all events. Verify all events are properly filtered. Verify numberOfFilteredEvents metric is incremented correctly.
      Throws:
      Exception
    • shouldHandleTimestampTimezones

      @FixFor("DBZ-183") public void shouldHandleTimestampTimezones() throws Exception
      Throws:
      Exception
    • shouldHandleMySQLTimeCorrectly

      @FixFor("DBZ-342") public void shouldHandleMySQLTimeCorrectly() throws Exception
      Throws:
      Exception
    • shouldFailOnSchemaInconsistency

      public void shouldFailOnSchemaInconsistency() throws Exception
      Throws:
      Exception
    • shouldWarnOnSchemaInconsistency

      public void shouldWarnOnSchemaInconsistency() throws Exception
      Throws:
      Exception
    • shouldIgnoreOnSchemaInconsistency

      public void shouldIgnoreOnSchemaInconsistency() throws Exception
      Throws:
      Exception
    • shouldFailOnUnknownTlsProtocol

      @FixFor("DBZ-1208") public void shouldFailOnUnknownTlsProtocol()
    • shouldAcceptTls12

      @FixFor("DBZ-1208") public void shouldAcceptTls12()
    • inconsistentSchema

      Throws:
      InterruptedException
      SQLException
    • toDuration

      private Duration toDuration(String duration)
    • productsTableName

      private String productsTableName()