Package io.debezium.connector.oracle
Class OraclePrimaryKeyLobReselectIT
java.lang.Object
io.debezium.embedded.AbstractConnectorTest
io.debezium.connector.oracle.OraclePrimaryKeyLobReselectIT
- All Implemented Interfaces:
Testing
Integration tests when LOB is enabled and the primary key changes, to re-select LOB columns
within the
BaseChangeRecordEmitter.- Author:
- Chris Cranford
-
Nested Class Summary
Nested classes/interfaces inherited from class io.debezium.embedded.AbstractConnectorTest
AbstractConnectorTest.SourceRecordsNested classes/interfaces inherited from interface io.debezium.util.Testing
Testing.Debug, Testing.Files, Testing.InterruptableFunction, Testing.Network, Testing.Print, Testing.Timer -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate io.debezium.connector.oracle.OracleConnectionorg.junit.rules.TestRuleFields inherited from class io.debezium.embedded.AbstractConnectorTest
consumedLines, engine, isEngineRunning, logger, logTestName, OFFSET_STORE_PATH, pollTimeoutInMs, skipTestRule -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidprivate voidtestPrimaryKeyChangeReselect(String keyType, String keyValue) Types the primary-key change reselection process with a specific key column type and inserted value.voidvoidMethods 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
-
Field Details
-
skipAdapterRule
public org.junit.rules.TestRule skipAdapterRule -
connection
private io.debezium.connector.oracle.OracleConnection connection
-
-
Constructor Details
-
OraclePrimaryKeyLobReselectIT
public OraclePrimaryKeyLobReselectIT()
-
-
Method Details
-
beforeEach
public void beforeEach() -
afterEach
- Throws:
Exception
-
testCharColumn
- Throws:
Exception
-
testNationalizedCharColumn
- Throws:
Exception
-
testVarchar2Column
- Throws:
Exception
-
testNationalizedVarchar2Column
- Throws:
Exception
-
testNumericColumnNotVariableScaleDecimal
- Throws:
Exception
-
testNumeric38Column
- Throws:
Exception
-
testFloatColumn
- Throws:
Exception
-
testBinaryFloatColumn
- Throws:
Exception
-
testBinaryDoubleColumn
- Throws:
Exception
-
testDateColumn
- Throws:
Exception
-
testTimestampColumn
- Throws:
Exception
-
testIntervalYearToMonthColumn
- Throws:
Exception
-
testIntervalDayToSecondColumn
- Throws:
Exception
-
testPrimaryKeyChangeReselect
Types the primary-key change reselection process with a specific key column type and inserted value. Internally the method uses a composite key and the numericidfield is what is mutated, which triggers the LOB-based emitter reselection.- Parameters:
keyType- the key column typekeyValue- the key value to insert- Throws:
Exception
-