Package io.debezium.connector.informix
Class InformixConnectorIT
java.lang.Object
io.debezium.embedded.AbstractConnectorTest
io.debezium.embedded.async.AbstractAsyncEngineConnectorTest
io.debezium.connector.informix.InformixConnectorIT
- All Implemented Interfaces:
io.debezium.util.Testing
public class InformixConnectorIT
extends io.debezium.embedded.async.AbstractAsyncEngineConnectorTest
Integration test for the Debezium Informix connector.
-
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 TypeFieldDescriptionorg.junit.rules.TestRuleprivate io.debezium.connector.informix.InformixConnectionFields 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()voidvoidvoidprivate voidrestartInTheMiddleOfTx(boolean restartJustAfterSnapshot, boolean afterStreaming) voidvoidvoidvoidvoidvoidvoidvoidvoidvoidtestColumnExcludeList(io.debezium.connector.informix.InformixConnectorConfig.SnapshotMode snapshotMode) voidvoidvoidtestColumnIncludeList(io.debezium.connector.informix.InformixConnectorConfig.SnapshotMode snapshotMode) voidvoidvoidvoidvoidvoidvoidvoidvoidverifyOffsets(boolean withOnlineUpd) voidvoidMethods inherited from class io.debezium.embedded.async.AbstractAsyncEngineConnectorTest
createEngine, createEngineBuilderMethods 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, storeOffsets, validate, waitForAvailableRecords, waitForAvailableRecords, waitForConnectorShutdown, waitForEngineShutdown, waitForSnapshotToBeCompleted, waitForSnapshotToBeCompleted, waitForSnapshotWithCustomMetricsToBeCompleted, waitForStreamingRunning, waitForStreamingRunning, waitForStreamingRunning, waitForStreamingWithCustomMetricsToStart, waitTimeForEngine, 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
-
conditionalFail
public org.junit.rules.TestRule conditionalFail -
connection
private io.debezium.connector.informix.InformixConnection connection
-
-
Constructor Details
-
InformixConnectorIT
public InformixConnectorIT()
-
-
Method Details
-
before
- Throws:
SQLException
-
after
- Throws:
SQLException
-
deleteWithoutTombstone
- Throws:
Exception
-
deleteWithTombstone
- Throws:
Exception
-
testTruncateTable
- Throws:
Exception
-
updatePrimaryKey
- Throws:
Exception
-
updatePrimaryKeyWithRestartInMiddle
- Throws:
Exception
-
verifyOffsetsWithoutOnlineUpd
- Throws:
Exception
-
verifyOffsetsWithOnlineUpd
- Throws:
Exception
-
verifyOffsets
- Throws:
Exception
-
testTableIncludeList
- Throws:
Exception
-
testTableExcludeList
- Throws:
Exception
-
testColumnIncludeListWithInitialSnapshot
- Throws:
Exception
-
testColumnIncludeListWithNoData
- Throws:
Exception
-
testColumnIncludeList
public void testColumnIncludeList(io.debezium.connector.informix.InformixConnectorConfig.SnapshotMode snapshotMode) throws Exception - Throws:
Exception
-
testColumnExcludeListWithInitialSnapshot
- Throws:
Exception
-
testColumnExcludeListWithINoData
- Throws:
Exception
-
testColumnExcludeList
public void testColumnExcludeList(io.debezium.connector.informix.InformixConnectorConfig.SnapshotMode snapshotMode) throws Exception - 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
-
shouldNotUseOffsetWhenSnapshotIsAlways
- Throws:
Exception
-
shouldCreateSnapshotSchemaOnlyRecovery
- Throws:
Exception
-
shouldAllowForCustomSnapshot
- Throws:
InterruptedExceptionSQLException
-
assertRecord
private void assertRecord(org.apache.kafka.connect.data.Struct record, List<io.debezium.data.SchemaAndValueField> expected)
-