Class HybridMiningStrategyIT
java.lang.Object
io.debezium.embedded.AbstractConnectorTest
io.debezium.connector.oracle.logminer.HybridMiningStrategyIT
- All Implemented Interfaces:
Testing
- Author:
- Chris Cranford
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classBinds the provided value as a JDBC bind variableprivate static interfaceContract for passing different types of values that require different query bindings.private static classBinds the supplied value as line SQL fragment in the queryprotected static classNested 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.OracleConnectionfinal org.junit.rules.TestRulefinal org.junit.rules.TestRulefinal org.junit.rules.TestRuleprivate TemporalPrecisionModeFields inherited from class io.debezium.embedded.AbstractConnectorTest
consumedLines, engine, isEngineRunning, logger, logTestName, OFFSET_STORE_PATH, pollTimeoutInMs, skipTestRule -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidprivate ConfigurationconfigureAndStartConnector(boolean lobEnabled) private voidcreateAndStreamTable(String columnName, String columnType) private voidprivate voidcreateSchemaHistoryForDdl(String ddlText) private voidinsertRowOffline(String columnName, HybridMiningStrategyIT.QueryValue insertValue, Integer id) private voidinsertRowWithoutCommit(String columnName, HybridMiningStrategyIT.QueryValue insertValue, Integer id) voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidprivate voidstreamOfflineSchemaChanges(String columnType, HybridMiningStrategyIT.QueryValue insertValue, HybridMiningStrategyIT.QueryValue updateValue, Object expectedInsert, Object expectedUpdate) private voidstreamOfflineSchemaChanges(String columnType, HybridMiningStrategyIT.QueryValue insertValue, HybridMiningStrategyIT.QueryValue updateValue, Object expectedInsert, Object expectedUpdate, boolean dropTable, boolean dropTableWithPurge) private voidstreamSchemaChangeMixedWithDataChange(String columnType, HybridMiningStrategyIT.QueryValue insertValue, HybridMiningStrategyIT.QueryValue updateValue, Object expectedInsert, Object expectedUpdate) private static Stringprivate static StringtoTimestamp(int year, int month, int day, int hour, int min, int sec, int nanos, int precision) private static StringtoTimestampTz(int year, int month, int day, int hour, int min, int sec, int nanos, int precision, String tz) private voidupdateRowOffline(String columnName, HybridMiningStrategyIT.QueryValue updateValue, Integer id) private voidupdateRowWithoutCommit(String columnName, HybridMiningStrategyIT.QueryValue updateValue, Integer id) private org.apache.kafka.connect.data.StructvarScaleDecimal(String value) 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, 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
-
skipApicurioRule
public final org.junit.rules.TestRule skipApicurioRule -
skipAdapterRule
public final org.junit.rules.TestRule skipAdapterRule -
skipLongRunning
public final org.junit.rules.TestRule skipLongRunning -
connection
private io.debezium.connector.oracle.OracleConnection connection -
decimalHandlingMode
-
temporalPrecisionMode
-
-
Constructor Details
-
HybridMiningStrategyIT
public HybridMiningStrategyIT()
-
-
Method Details
-
beforeEach
- Throws:
Exception
-
afterEach
- Throws:
Exception
-
shouldStreamOfflineSchemaChangesCharacterDataTypes
@FixFor("DBZ-3401") public void shouldStreamOfflineSchemaChangesCharacterDataTypes() throws Exception- Throws:
Exception
-
shouldStreamSchemaChangeWithDataChangeCharacterDataTypes
@FixFor("DBZ-3401") public void shouldStreamSchemaChangeWithDataChangeCharacterDataTypes() throws Exception- Throws:
Exception
-
shouldStreamOfflineSchemaChangesFloatingPointDataTypes
@FixFor("DBZ-3401") public void shouldStreamOfflineSchemaChangesFloatingPointDataTypes() throws Exception- Throws:
Exception
-
shouldStreamOfflineSchemaChangesFloatingPointDataTypesAsString
@FixFor("DBZ-3401") public void shouldStreamOfflineSchemaChangesFloatingPointDataTypesAsString() throws Exception- Throws:
Exception
-
shouldStreamOfflineSchemaChangesFloatingPointDataTypesAsDouble
@FixFor("DBZ-3401") public void shouldStreamOfflineSchemaChangesFloatingPointDataTypesAsDouble() throws Exception- Throws:
Exception
-
shouldStreamSchemaChangeWithDataChangeFloatingPointDataTypes
@FixFor("DBZ-3401") public void shouldStreamSchemaChangeWithDataChangeFloatingPointDataTypes() throws Exception- Throws:
Exception
-
shouldStreamSchemaChangeWithDataChangeFloatingPointDataTypesAsString
@FixFor("DBZ-3401") public void shouldStreamSchemaChangeWithDataChangeFloatingPointDataTypesAsString() throws Exception- Throws:
Exception
-
shouldStreamSchemaChangeWithDataChangeFloatingPointDataTypesAsDouble
@FixFor("DBZ-3401") public void shouldStreamSchemaChangeWithDataChangeFloatingPointDataTypesAsDouble() throws Exception- Throws:
Exception
-
shouldStreamOfflineSchemaChangesIntegerDataTypes
- Throws:
Exception
-
shouldStreamSchemaChangeWithDataChangeIntegerDataTypes
@FixFor("DBZ-3401") public void shouldStreamSchemaChangeWithDataChangeIntegerDataTypes() throws Exception- Throws:
Exception
-
shouldStreamOfflineSchemaChangesTemporalDataTypes
@FixFor("DBZ-3401") public void shouldStreamOfflineSchemaChangesTemporalDataTypes() throws Exception- Throws:
Exception
-
shouldStreamOfflineSchemaChangesTemporalDataTypesAsConnect
@FixFor("DBZ-3401") public void shouldStreamOfflineSchemaChangesTemporalDataTypesAsConnect() throws Exception- Throws:
Exception
-
shouldStreamSchemaChangeWithDataChangeTemporalDataTypes
@FixFor("DBZ-3401") public void shouldStreamSchemaChangeWithDataChangeTemporalDataTypes() throws Exception- Throws:
Exception
-
shouldStreamSchemaChangeWithDataChangeTemporalDataTypesAsConnect
@FixFor("DBZ-3401") public void shouldStreamSchemaChangeWithDataChangeTemporalDataTypesAsConnect() throws Exception- Throws:
Exception
-
shouldStreamOfflineSchemaChangeWithExistingLegacySchemaHistory
@FixFor("DBZ-3401") public void shouldStreamOfflineSchemaChangeWithExistingLegacySchemaHistory() throws Exception- Throws:
Exception
-
shouldStreamSchemaChangeWithExistingLegacySchemaHistory
@FixFor("DBZ-3401") public void shouldStreamSchemaChangeWithExistingLegacySchemaHistory() throws Exception- Throws:
Exception
-
toTimestamp
private static String toTimestamp(int year, int month, int day, int hour, int min, int sec, int nanos, int precision) -
toTimestampTz
-
streamOfflineSchemaChanges
private void streamOfflineSchemaChanges(String columnType, HybridMiningStrategyIT.QueryValue insertValue, HybridMiningStrategyIT.QueryValue updateValue, Object expectedInsert, Object expectedUpdate) throws Exception - Throws:
Exception
-
streamSchemaChangeMixedWithDataChange
private void streamSchemaChangeMixedWithDataChange(String columnType, HybridMiningStrategyIT.QueryValue insertValue, HybridMiningStrategyIT.QueryValue updateValue, Object expectedInsert, Object expectedUpdate) throws Exception - Throws:
Exception
-
streamOfflineSchemaChanges
private void streamOfflineSchemaChanges(String columnType, HybridMiningStrategyIT.QueryValue insertValue, HybridMiningStrategyIT.QueryValue updateValue, Object expectedInsert, Object expectedUpdate, boolean dropTable, boolean dropTableWithPurge) throws Exception - Throws:
Exception
-
createOffsetBasedOnCurrentScn
- Throws:
Exception
-
createSchemaHistoryForDdl
-
varScaleDecimal
-
topicName
-
createAndStreamTable
- Throws:
SQLException
-
configureAndStartConnector
-
insertRowWithoutCommit
private void insertRowWithoutCommit(String columnName, HybridMiningStrategyIT.QueryValue insertValue, Integer id) throws SQLException - Throws:
SQLException
-
updateRowWithoutCommit
private void updateRowWithoutCommit(String columnName, HybridMiningStrategyIT.QueryValue updateValue, Integer id) throws SQLException - Throws:
SQLException
-
insertRowOffline
private void insertRowOffline(String columnName, HybridMiningStrategyIT.QueryValue insertValue, Integer id) throws SQLException - Throws:
SQLException
-
updateRowOffline
private void updateRowOffline(String columnName, HybridMiningStrategyIT.QueryValue updateValue, Integer id) throws SQLException - Throws:
SQLException
-