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.AbstractConnectorTestIntegration test for the Debezium DB2 connector.- Author:
- Jiri Pechanec, Luis Garcés-Erice, Peter Urbanetz
-
-
Field Summary
Fields Modifier and Type Field Description private io.debezium.connector.db2.Db2Connectionconnection
-
Constructor Summary
Constructors Constructor Description Db2ConnectorIT()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafter()private voidassertRecord(org.apache.kafka.connect.data.Struct record, List<io.debezium.data.SchemaAndValueField> expected)voidbefore()voiddeleteWithoutTombstone()voidrestartInTheMiddleOfTx()private voidrestartInTheMiddleOfTx(boolean restartJustAfterSnapshot, boolean afterStreaming)voidrestartInTheMiddleOfTxAfterCompletedTx()voidrestartInTheMiddleOfTxAfterSnapshot()voidshouldConsumeEventsWithMaskedAndTruncatedColumns()voidshouldOutputRecordsInCloudEventsFormat()voidshouldPropagateSourceTypeByDatatype()voidshouldRewriteIdentityKey()voidtestEmptySchemaWarningAfterApplyingFilters()voidtestTableBlacklist()voidtestTableExcludeList()voidtestTableIncludeList()voidtestTableWhitelist()voidupdatePrimaryKey()voidupdatePrimaryKeyWithRestartInMiddle()voidverifyOffsets()-
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, consumeDmlRecordsByTopic, consumeDmlRecordsByTopic, consumeDmlRecordsByTopic, consumeRecord, consumeRecords, consumeRecords, consumeRecords, consumeRecordsByTopic, consumeRecordsByTopic, consumeRecordsByTopic, debug, getMaximumEnqueuedRecordCount, getSnapshotMetricsObjectName, getStreamingMetricsObjectName, getStreamingMetricsObjectName, getStreamingNamespace, initializeConnectorTestFramework, isStreamingRunning, isStreamingRunning, isTransactionRecord, loggingCompletion, print, readLastCommittedOffset, readLastCommittedOffsets, setConsumeTimeout, skipAvroValidation, start, start, start, start, start, startAndConsumeTillEnd, stopConnector, stopConnector, validate, waitForAvailableRecords, waitForConnectorShutdown, waitForSnapshotToBeCompleted, waitForStreamingRunning, waitForStreamingRunning, waitTimeForRecords, waitTimeForRecordsAfterNulls
-
-
-
-
Method Detail
-
before
public void before() throws SQLException- Throws:
SQLException
-
after
public void after() throws SQLException- Throws:
SQLException
-
updatePrimaryKeyWithRestartInMiddle
@FixFor("DBZ-1152") public void updatePrimaryKeyWithRestartInMiddle() 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
-
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)
-
-