Class KafkaDatabaseHistoryTest

java.lang.Object
io.debezium.relational.history.KafkaDatabaseHistoryTest

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

    • kafka

      private static KafkaCluster kafka
    • history

      private KafkaDatabaseHistory history
    • offsets

      private io.debezium.pipeline.spi.Offsets<io.debezium.pipeline.spi.Partition,io.debezium.connector.mysql.MySqlOffsetContext> offsets
    • position

      private io.debezium.connector.mysql.MySqlOffsetContext position
    • PARTITION_NO

      private static final int PARTITION_NO
      See Also:
  • Constructor Details

    • KafkaDatabaseHistoryTest

      public KafkaDatabaseHistoryTest()
  • Method Details

    • startKafka

      public static void startKafka() throws Exception
      Throws:
      Exception
    • stopKafka

      public static void stopKafka()
    • beforeEach

      public void beforeEach() throws Exception
      Throws:
      Exception
    • afterEach

      public void afterEach()
    • shouldStartWithEmptyTopicAndStoreDataAndRecoverAllState

      public void shouldStartWithEmptyTopicAndStoreDataAndRecoverAllState() throws Exception
      Throws:
      Exception
    • testHistoryTopicContent

      private void testHistoryTopicContent(String topicName, boolean skipUnparseableDDL)
    • setLogPosition

      protected void setLogPosition(int index)
    • shouldIgnoreUnparseableMessages

      public void shouldIgnoreUnparseableMessages() throws Exception
      Throws:
      Exception
    • shouldStopOnUnparseableSQL

      public void shouldStopOnUnparseableSQL() throws Exception
      Throws:
      Exception
    • testExists

      public void testExists()
    • differentiateStorageExistsFromHistoryExists

      @FixFor("DBZ-1886") public void differentiateStorageExistsFromHistoryExists()
    • shouldValidateMandatoryValues

      @FixFor("DBZ-2144") public void shouldValidateMandatoryValues()
    • shouldConnectionTimeoutIfValueIsTooLow

      @FixFor("DBZ-4518") public void shouldConnectionTimeoutIfValueIsTooLow()