Class Db2ConnectorIT

java.lang.Object
io.debezium.embedded.AbstractConnectorTest
io.debezium.connector.db2.Db2ConnectorIT
All Implemented Interfaces:
io.debezium.util.Testing

public class Db2ConnectorIT extends io.debezium.embedded.AbstractConnectorTest
Integration test for the Debezium DB2 connector.
Author:
Jiri Pechanec, Luis Garcés-Erice, Peter Urbanetz
  • Nested Class Summary

    Nested classes/interfaces inherited from class io.debezium.embedded.AbstractConnectorTest

    io.debezium.embedded.AbstractConnectorTest.SourceRecords

    Nested classes/interfaces inherited from interface io.debezium.util.Testing

    io.debezium.util.Testing.Debug, io.debezium.util.Testing.Files, io.debezium.util.Testing.InterruptableFunction, io.debezium.util.Testing.Network, io.debezium.util.Testing.Print, io.debezium.util.Testing.Timer
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    io.debezium.junit.ConditionalFail
     
    private io.debezium.connector.db2.Db2Connection
     

    Fields inherited from class io.debezium.embedded.AbstractConnectorTest

    consumedLines, engine, isEngineRunning, logger, logTestName, OFFSET_STORE_PATH, pollTimeoutInMs, skipTestRule
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    private void
    assertRecord(org.apache.kafka.connect.data.Struct record, List<io.debezium.data.SchemaAndValueField> expected)
     
    void
     
    void
     
    void
     
    private void
    restartInTheMiddleOfTx(boolean restartJustAfterSnapshot, boolean afterStreaming)
     
    void
     
    void
     
    void
     
    void
     
    void
     
    void
     
    void
     
    void
     
    void
     
    void
     
    void
     
    void
     

    Methods inherited from class io.debezium.embedded.AbstractConnectorTest

    assertBeginTransaction, assertConfigurationErrors, assertConfigurationErrors, assertConfigurationErrors, assertConnectorIsRunning, assertConnectorNotRunning, assertDelete, assertEndTransaction, assertEngineIsRunning, assertHasNoSourceQuery, assertInsert, assertKey, assertNoConfigurationErrors, assertNoRecordsToConsume, assertOffset, assertOffset, assertOnlyTransactionRecordsToConsume, assertRecordTransactionMetadata, assertSchemaMatchesStruct, assertSchemaMatchesStruct, assertSourceQuery, assertTombstone, assertTombstone, assertUpdate, assertValueField, configValue, consumeAvailableRecords, consumeAvailableRecordsByTopic, consumeDmlRecordsByTopic, consumeDmlRecordsByTopic, consumeDmlRecordsByTopic, consumeRecord, consumeRecords, consumeRecords, consumeRecords, consumeRecordsButSkipUntil, consumeRecordsByTopic, consumeRecordsByTopic, consumeRecordsByTopic, consumeRecordsByTopicUntil, consumeRecordsUntil, createEngine, createEngineBuilder, debug, getConsumer, getMaximumEnqueuedRecordCount, getSnapshotMetricsObjectName, getSnapshotMetricsObjectName, getSnapshotMetricsObjectName, getStreamingMetricsObjectName, getStreamingMetricsObjectName, getStreamingMetricsObjectName, getStreamingMetricsObjectName, getStreamingNamespace, initializeConnectorTestFramework, isStreamingRunning, isStreamingRunning, isStreamingRunning, isStreamingRunning, isTransactionRecord, loggingCompletion, print, readLastCommittedOffset, readLastCommittedOffsets, setConsumeTimeout, skipAvroValidation, start, start, start, start, start, start, start, startAndConsumeTillEnd, startAndConsumeTillEnd, stopConnector, stopConnector, storeOffsets, validate, waitForAvailableRecords, waitForConnectorShutdown, waitForEngineShutdown, waitForSnapshotToBeCompleted, waitForSnapshotToBeCompleted, waitForSnapshotWithCustomMetricsToBeCompleted, waitForStreamingRunning, waitForStreamingRunning, waitForStreamingRunning, waitForStreamingWithCustomMetricsToStart, waitTimeForEngine, waitTimeForRecords, waitTimeForRecordsAfterNulls

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.debezium.util.Testing

    once, once, resetBeforeEachTest, time, time
  • Field Details

    • connection

      private io.debezium.connector.db2.Db2Connection connection
    • conditionalFail

      public io.debezium.junit.ConditionalFail conditionalFail
  • Constructor Details

    • Db2ConnectorIT

      public Db2ConnectorIT()
  • Method Details

    • before

      public void before() throws SQLException
      Throws:
      SQLException
    • after

      public void after() throws SQLException
      Throws:
      SQLException
    • deleteWithoutTombstone

      public void deleteWithoutTombstone() throws Exception
      Throws:
      Exception
    • updatePrimaryKey

      public void updatePrimaryKey() throws Exception
      Throws:
      Exception
    • updatePrimaryKeyWithRestartInMiddle

      @FixFor("DBZ-1152") public void updatePrimaryKeyWithRestartInMiddle() throws Exception
      Throws:
      Exception
    • verifyOffsets

      @FixFor("DBZ-1069") public void verifyOffsets() throws Exception
      Throws:
      Exception
    • testTableIncludeList

      public void testTableIncludeList() throws Exception
      Throws:
      Exception
    • testTableExcludeList

      public void testTableExcludeList() throws Exception
      Throws:
      Exception
    • restartInTheMiddleOfTx

      private void restartInTheMiddleOfTx(boolean restartJustAfterSnapshot, boolean afterStreaming) throws Exception
      Throws:
      Exception
    • restartInTheMiddleOfTxAfterSnapshot

      @FixFor("DBZ-1128") public void restartInTheMiddleOfTxAfterSnapshot() throws Exception
      Throws:
      Exception
    • restartInTheMiddleOfTxAfterCompletedTx

      @FixFor("DBZ-1128") public void restartInTheMiddleOfTxAfterCompletedTx() throws Exception
      Throws:
      Exception
    • restartInTheMiddleOfTx

      public void restartInTheMiddleOfTx() throws Exception
      Throws:
      Exception
    • testEmptySchemaWarningAfterApplyingFilters

      @FixFor("DBZ-1242") public void testEmptySchemaWarningAfterApplyingFilters() throws Exception
      Throws:
      Exception
    • shouldConsumeEventsWithMaskedAndTruncatedColumns

      @FixFor("DBZ-775") public void shouldConsumeEventsWithMaskedAndTruncatedColumns() throws Exception
      Throws:
      Exception
    • shouldRewriteIdentityKey

      @FixFor("DBZ-775") public void shouldRewriteIdentityKey() throws Exception
      Throws:
      Exception
    • shouldPropagateSourceTypeByDatatype

      @FixFor({"DBZ-1916","DBZ-1830"}) public void shouldPropagateSourceTypeByDatatype() throws Exception
      Throws:
      Exception
    • shouldOutputRecordsInCloudEventsFormat

      @FixFor("DBZ-3668") public void shouldOutputRecordsInCloudEventsFormat() throws Exception
      Throws:
      Exception
    • assertRecord

      private void assertRecord(org.apache.kafka.connect.data.Struct record, List<io.debezium.data.SchemaAndValueField> expected)