Package io.debezium.connector.oracle
Class OracleSchemaMigrationIT
java.lang.Object
io.debezium.embedded.AbstractConnectorTest
io.debezium.connector.oracle.OracleSchemaMigrationIT
- All Implemented Interfaces:
Testing
Integration tests for the Oracle DDL and schema migration.
- 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.OracleConnectionFields inherited from class io.debezium.embedded.AbstractConnectorTest
consumedLines, engine, logger, logTestName, OFFSET_STORE_PATH, pollTimeoutInMs, skipTestRule -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprivate static voidassertSnapshotSchemaChange(org.apache.kafka.connect.source.SourceRecord record) private static voidassertSourceTableInfo(org.apache.kafka.connect.source.SourceRecord record, String schema, String table) private static voidassertStreamingSchemaChange(org.apache.kafka.connect.source.SourceRecord record) private static voidassertTableChange(org.apache.kafka.connect.data.Struct change, String type, String schema, String table) private static voidassertTableChangeColumn(org.apache.kafka.connect.data.Struct change, int index, String columnName) private static voidassertTableChangePrimaryKeyNames(org.apache.kafka.connect.data.Struct change, String... names) voidprivate voidcreateTable(String tableName, String sql) private static StringgetIgnoreAlterTable(String tableName) private static StringgetIgnoreCreateTable(String tableName) private static StringgetTableIdString(String schemaName, String tableName) voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidprivate static StringMethods 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, consumeRecordsByTopicUntil, consumeRecordsUntil, debug, getConsumer, getMaximumEnqueuedRecordCount, getSnapshotMetricsObjectName, getStreamingMetricsObjectName, getStreamingMetricsObjectName, getStreamingNamespace, initializeConnectorTestFramework, isStreamingRunning, isStreamingRunning, isTransactionRecord, loggingCompletion, print, readLastCommittedOffset, readLastCommittedOffsets, setConsumeTimeout, skipAvroValidation, start, start, start, start, start, start, start, startAndConsumeTillEnd, startAndConsumeTillEnd, stopConnector, stopConnector, validate, waitForAvailableRecords, waitForConnectorShutdown, waitForSnapshotToBeCompleted, waitForStreamingRunning, waitForStreamingRunning, waitTimeForRecords, waitTimeForRecordsAfterNulls
-
Field Details
-
connection
private io.debezium.connector.oracle.OracleConnection connection
-
-
Constructor Details
-
OracleSchemaMigrationIT
public OracleSchemaMigrationIT()
-
-
Method Details
-
beforeEach
- Throws:
Exception
-
afterEach
- Throws:
Exception
-
shouldStreamNewlyCreatedNotFilteredTable
- Throws:
Exception
-
shouldNotStreamNewlyCreatedTableDueToFilters
- Throws:
Exception
-
shouldStreamAlterTableAddColumnSchemaChange
- Throws:
Exception
-
shouldStreamAlterTableAddMultipleColumnsSchemaChange
@FixFor("DBZ-2916") public void shouldStreamAlterTableAddMultipleColumnsSchemaChange() throws Exception- Throws:
Exception
-
shouldStreamAlterTableRenameColumnSchemaChange
- Throws:
Exception
-
shouldStreamAlterTableDropColumnSchemaChange
- Throws:
Exception
-
shouldStreamAlterTableDropMultipleColumnsSchemaChange
@FixFor("DBZ-2916") public void shouldStreamAlterTableDropMultipleColumnsSchemaChange() throws Exception- Throws:
Exception
-
shouldStreamAlterTableRenameTableSchemaChange
- Throws:
Exception
-
shouldNotStreamAfterTableRenameToExcludedName
- Throws:
Exception
-
shouldStreamAlterTableChangeColumnDataType
- Throws:
Exception
-
shouldStreamAlterTableChangeColumnNullability
- Throws:
Exception
-
shouldStreamAlterTableChangeColumnPrecisionAndScale
@FixFor("DBZ-2916") public void shouldStreamAlterTableChangeColumnPrecisionAndScale() throws Exception- Throws:
Exception
-
shouldStreamDropTable
- Throws:
Exception
-
shouldSnapshotAndStreamSchemaChangesUsingExplicitCasedNames
@FixFor("DBZ-2916") public void shouldSnapshotAndStreamSchemaChangesUsingExplicitCasedNames() throws Exception- Throws:
Exception
-
shouldNotEmitDdlEventsForNonTableObjects
- Throws:
Exception
-
shouldParseSchemaChangeWithoutErrorOnFilteredTableWithRawDataType
@FixFor("DBZ-4037") public void shouldParseSchemaChangeWithoutErrorOnFilteredTableWithRawDataType() throws Exception- Throws:
Exception
-
shouldParseSchemaChangeOnTableWithRawDataType
- Throws:
Exception
-
shouldNotResendSchemaChangeIfLastEventReadBeforeRestart
@FixFor("DBZ-4782") public void shouldNotResendSchemaChangeIfLastEventReadBeforeRestart() throws Exception- Throws:
Exception
-
shouldNotResendSchemaChangeIfLastEventReadBeforeRestartWithFollowupDml
@FixFor("DBZ-4782") public void shouldNotResendSchemaChangeIfLastEventReadBeforeRestartWithFollowupDml() throws Exception- Throws:
Exception
-
shouldNotResendSchemaChangeWithInprogressTransactionOnSecondTable
@FixFor("DBZ-4782") public void shouldNotResendSchemaChangeWithInprogressTransactionOnSecondTable() throws Exception- Throws:
Exception
-
shouldOnlyCaptureSchemaChangesForIncludedTables
- Throws:
Exception
-
shouldCaptureSchemaChangesForAllTablesRegardlessOfIncludeList
@FixFor("DBZ-5285") public void shouldCaptureSchemaChangesForAllTablesRegardlessOfIncludeList() throws Exception- Throws:
Exception
-
getTableIdString
-
createTable
- Throws:
SQLException
-
assertSnapshotSchemaChange
private static void assertSnapshotSchemaChange(org.apache.kafka.connect.source.SourceRecord record) -
assertStreamingSchemaChange
private static void assertStreamingSchemaChange(org.apache.kafka.connect.source.SourceRecord record) -
assertTableChange
-
assertTableChangePrimaryKeyNames
private static void assertTableChangePrimaryKeyNames(org.apache.kafka.connect.data.Struct change, String... names) -
assertTableChangeColumn
private static void assertTableChangeColumn(org.apache.kafka.connect.data.Struct change, int index, String columnName) -
assertSourceTableInfo
-
topicName
-
getIgnoreCreateTable
-
getIgnoreAlterTable
-