Class StreamingSourceIT

java.lang.Object
io.debezium.embedded.AbstractConnectorTest
io.debezium.connector.mysql.StreamingSourceIT
All Implemented Interfaces:
Testing

public class StreamingSourceIT extends AbstractConnectorTest
Author:
Randall Hauch, Jiri Pechanec
  • Field Details

  • Constructor Details

    • StreamingSourceIT

      public StreamingSourceIT()
  • 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
    • getNumberOfEventsFiltered

      private long getNumberOfEventsFiltered()
    • getNumberOfSkippedEvents

      private long getNumberOfSkippedEvents()
    • 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() throws Exception
      Throws:
      Exception
    • testHeartbeatActionQueryExecuted

      @FixFor("DBZ-4029") public void testHeartbeatActionQueryExecuted() throws Exception
      Throws:
      Exception
    • inconsistentSchema

      Throws:
      InterruptedException
      SQLException
    • toDuration

      private Duration toDuration(String duration)
    • productsTableName

      private String productsTableName() throws SQLException
      Throws:
      SQLException