Package io.debezium.connector.db2
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.SourceRecordsNested 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
FieldsModifier and TypeFieldDescriptionio.debezium.junit.ConditionalFailprivate io.debezium.connector.db2.Db2ConnectionFields inherited from class io.debezium.embedded.AbstractConnectorTest
consumedLines, engine, isEngineRunning, logger, logTestName, OFFSET_STORE_PATH, pollTimeoutInMs, skipTestRule -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafter()private voidassertRecord(org.apache.kafka.connect.data.Struct record, List<io.debezium.data.SchemaAndValueField> expected) voidbefore()voidvoidprivate voidrestartInTheMiddleOfTx(boolean restartJustAfterSnapshot, boolean afterStreaming) voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidMethods 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, 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, validate, waitForAvailableRecords, waitForConnectorShutdown, waitForSnapshotToBeCompleted, waitForSnapshotToBeCompleted, waitForSnapshotWithCustomMetricsToBeCompleted, waitForStreamingRunning, waitForStreamingRunning, waitForStreamingRunning, waitForStreamingWithCustomMetricsToStart, waitTimeForRecords, waitTimeForRecordsAfterNullsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
- Throws:
SQLException
-
after
- Throws:
SQLException
-
deleteWithoutTombstone
- Throws:
Exception
-
updatePrimaryKey
- Throws:
Exception
-
updatePrimaryKeyWithRestartInMiddle
- Throws:
Exception
-
verifyOffsets
- Throws:
Exception
-
testTableIncludeList
- Throws:
Exception
-
testTableExcludeList
- Throws:
Exception
-
restartInTheMiddleOfTx
private void restartInTheMiddleOfTx(boolean restartJustAfterSnapshot, boolean afterStreaming) throws Exception - Throws:
Exception
-
restartInTheMiddleOfTxAfterSnapshot
- Throws:
Exception
-
restartInTheMiddleOfTxAfterCompletedTx
- Throws:
Exception
-
restartInTheMiddleOfTx
- Throws:
Exception
-
testEmptySchemaWarningAfterApplyingFilters
- Throws:
Exception
-
shouldConsumeEventsWithMaskedAndTruncatedColumns
- Throws:
Exception
-
shouldRewriteIdentityKey
- Throws:
Exception
-
shouldPropagateSourceTypeByDatatype
- Throws:
Exception
-
shouldOutputRecordsInCloudEventsFormat
- Throws:
Exception
-
assertRecord
private void assertRecord(org.apache.kafka.connect.data.Struct record, List<io.debezium.data.SchemaAndValueField> expected)
-