Class BlockingSnapshotIT

java.lang.Object
io.debezium.embedded.AbstractConnectorTest
io.debezium.pipeline.source.snapshot.incremental.AbstractSnapshotTest
io.debezium.pipeline.AbstractBlockingSnapshotTest
io.debezium.connector.db2.BlockingSnapshotIT
All Implemented Interfaces:
io.debezium.util.Testing

public class BlockingSnapshotIT extends io.debezium.pipeline.AbstractBlockingSnapshotTest
  • 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
    private io.debezium.connector.db2.Db2Connection
     
    io.debezium.junit.SkipTestRule
     

    Fields inherited from class io.debezium.pipeline.AbstractBlockingSnapshotTest

    ROW_COUNT

    Fields inherited from class io.debezium.pipeline.source.snapshot.incremental.AbstractSnapshotTest

    PARTITION_NO, SCHEMA_HISTORY_PATH, SERVER_NAME

    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
     
    void
     
    protected io.debezium.config.Configuration.Builder
     
    protected String
     
    protected Class<io.debezium.connector.db2.Db2Connector>
     
    protected io.debezium.jdbc.JdbcConnection
     
    protected int
     
    protected io.debezium.config.Configuration.Builder
    mutableConfig(boolean signalTableOnly, boolean storeOnlyCapturedDdl)
     
    protected String
     
    protected void
     
    protected void
     
    protected String
     
    protected String
     
    protected String
     
    protected List<String>
     
    protected String
     
    protected List<String>
     
    protected String
     

    Methods inherited from class io.debezium.pipeline.AbstractBlockingSnapshotTest

    assertDdl, assertRecordsFromSnapshotAndStreamingArePresent, assertStreamingRecordsArePresent, executeBlockingSnapshot, executeBlockingSnapshotWhileStreaming, executeBlockingSnapshotWithAdditionalCondition, expectedDdlsCount, historizedMutableConfig, insertRecords, readsSchemaOnlyForSignaledTables, waitForLogMessage

    Methods inherited from class io.debezium.pipeline.source.snapshot.incremental.AbstractSnapshotTest

    alterTableAddColumnStatement, alterTableDropColumnStatement, consumeMixedWithIncrementalSnapshot, consumeMixedWithIncrementalSnapshot, consumeMixedWithIncrementalSnapshot, consumeMixedWithIncrementalSnapshot, consumeMixedWithIncrementalSnapshot, consumeMixedWithIncrementalSnapshot, consumeRecordsMixedWithIncrementalSnapshot, consumeRecordsMixedWithIncrementalSnapshot, database, getMaximumEnqueuedRecordCount, getRecordValue, populate4PkTable, populateTable, populateTable, populateTable, populateTables, populateTableWithSpecificValue, sendAdHocSnapshotSignal, sendAdHocSnapshotSignalWithAdditionalConditionsWithSurrogateKey, sendAdHocSnapshotSignalWithAdditionalConditionsWithSurrogateKey, sendAdHocSnapshotSignalWithAdditionalConditionWithSurrogateKey, sendAdHocSnapshotSignalWithAdditionalConditionWithSurrogateKey, signalTableNameSanitized, startConnector, startConnector, startConnector, startConnector, startConnectorWithSnapshot, tableDataCollectionId, tableDataCollectionIds, task, waitForCdcTransactionPropagation, waitForConnectorToStart

    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, debug, getConsumer, 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, validate, waitForAvailableRecords, waitForConnectorShutdown, waitForSnapshotToBeCompleted, waitForSnapshotToBeCompleted, waitForSnapshotWithCustomMetricsToBeCompleted, waitForStreamingRunning, waitForStreamingRunning, waitForStreamingRunning, waitForStreamingWithCustomMetricsToStart, 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
    • skipRule

      public io.debezium.junit.SkipTestRule skipRule
  • Constructor Details

    • BlockingSnapshotIT

      public BlockingSnapshotIT()
  • Method Details

    • before

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

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

      protected void populateTable() throws SQLException
      Overrides:
      populateTable in class io.debezium.pipeline.source.snapshot.incremental.AbstractSnapshotTest
      Throws:
      SQLException
    • populateTables

      protected void populateTables() throws SQLException
      Overrides:
      populateTables in class io.debezium.pipeline.source.snapshot.incremental.AbstractSnapshotTest
      Throws:
      SQLException
    • connectorClass

      protected Class<io.debezium.connector.db2.Db2Connector> connectorClass()
      Specified by:
      connectorClass in class io.debezium.pipeline.source.snapshot.incremental.AbstractSnapshotTest
    • mutableConfig

      protected io.debezium.config.Configuration.Builder mutableConfig(boolean signalTableOnly, boolean storeOnlyCapturedDdl)
      Specified by:
      mutableConfig in class io.debezium.pipeline.AbstractBlockingSnapshotTest
    • databaseConnection

      protected io.debezium.jdbc.JdbcConnection databaseConnection()
      Specified by:
      databaseConnection in class io.debezium.pipeline.AbstractBlockingSnapshotTest
    • topicName

      protected String topicName()
      Specified by:
      topicName in class io.debezium.pipeline.AbstractBlockingSnapshotTest
    • topicNames

      protected List<String> topicNames()
      Specified by:
      topicNames in class io.debezium.pipeline.source.snapshot.incremental.AbstractSnapshotTest
    • tableName

      protected String tableName()
      Specified by:
      tableName in class io.debezium.pipeline.AbstractBlockingSnapshotTest
    • tableNames

      protected List<String> tableNames()
      Specified by:
      tableNames in class io.debezium.pipeline.source.snapshot.incremental.AbstractSnapshotTest
    • signalTableName

      protected String signalTableName()
      Specified by:
      signalTableName in class io.debezium.pipeline.source.snapshot.incremental.AbstractSnapshotTest
    • config

      protected io.debezium.config.Configuration.Builder config()
      Specified by:
      config in class io.debezium.pipeline.source.snapshot.incremental.AbstractSnapshotTest
    • pkFieldName

      protected String pkFieldName()
      Overrides:
      pkFieldName in class io.debezium.pipeline.source.snapshot.incremental.AbstractSnapshotTest
    • valueFieldName

      protected String valueFieldName()
      Overrides:
      valueFieldName in class io.debezium.pipeline.source.snapshot.incremental.AbstractSnapshotTest
    • connector

      protected String connector()
      Specified by:
      connector in class io.debezium.pipeline.AbstractBlockingSnapshotTest
    • server

      protected String server()
      Specified by:
      server in class io.debezium.pipeline.AbstractBlockingSnapshotTest
    • insertMaxSleep

      protected int insertMaxSleep()
      Overrides:
      insertMaxSleep in class io.debezium.pipeline.AbstractBlockingSnapshotTest