Package io.debezium.connector.sqlserver
Class IncrementalSnapshotIT
- java.lang.Object
-
- io.debezium.embedded.AbstractConnectorTest
-
- io.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotTest<T>
-
- io.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotWithSchemaChangesSupportTest<io.debezium.connector.sqlserver.SqlServerConnector>
-
- io.debezium.connector.sqlserver.IncrementalSnapshotIT
-
- All Implemented Interfaces:
Testing
public class IncrementalSnapshotIT extends AbstractIncrementalSnapshotWithSchemaChangesSupportTest<io.debezium.connector.sqlserver.SqlServerConnector>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.debezium.embedded.AbstractConnectorTest
AbstractConnectorTest.SourceRecords
-
Nested classes/interfaces inherited from interface io.debezium.util.Testing
Testing.Debug, Testing.Files, Testing.InterruptableFunction, Testing.Network, Testing.Print, Testing.Timer
-
-
Field Summary
Fields Modifier and Type Field Description private io.debezium.connector.sqlserver.SqlServerConnectionconnectionSkipTestRuleskipRule-
Fields inherited from class io.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotTest
DB_HISTORY_PATH, ROW_COUNT
-
Fields inherited from class io.debezium.embedded.AbstractConnectorTest
engine, logger, logTestName, OFFSET_STORE_PATH, pollTimeoutInMs, skipTestRule
-
-
Constructor Summary
Constructors Constructor Description IncrementalSnapshotIT()
-
Method Summary
-
Methods inherited from class io.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotWithSchemaChangesSupportTest
columnDefaultChanges, columnNullabilityChanges, renameTable, schemaChanges
-
Methods inherited from class io.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotTest
alterTableAddColumnStatement, alterTableDropColumnStatement, consumeMixedWithIncrementalSnapshot, consumeMixedWithIncrementalSnapshot, consumeMixedWithIncrementalSnapshot, consumeMixedWithIncrementalSnapshot, consumeRecordsMixedWithIncrementalSnapshot, consumeRecordsMixedWithIncrementalSnapshot, getMaximumEnqueuedRecordCount, inserts, invalidTablesInTheList, pkFieldName, populate4PkTable, populateTable, populateTable, sendAdHocSnapshotSignal, sendAdHocSnapshotSignal, snapshotOnly, snapshotOnlyWithRestart, snapshotPreceededBySchemaChange, startConnector, startConnector, startConnector, startConnector, tableDataCollectionId, updates, updatesLargeChunk, updatesWithRestart, valueFieldName, waitForConnectorToStart
-
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, getSnapshotMetricsObjectName, getStreamingMetricsObjectName, getStreamingMetricsObjectName, getStreamingNamespace, initializeConnectorTestFramework, isStreamingRunning, isStreamingRunning, isTransactionRecord, loggingCompletion, print, readLastCommittedOffset, readLastCommittedOffsets, setConsumeTimeout, skipAvroValidation, start, start, start, start, start, startAndConsumeTillEnd, startAndConsumeTillEnd, stopConnector, stopConnector, validate, waitForAvailableRecords, waitForConnectorShutdown, waitForSnapshotToBeCompleted, waitForStreamingRunning, waitForStreamingRunning, waitTimeForRecords, waitTimeForRecordsAfterNulls
-
-
-
-
Field Detail
-
connection
private io.debezium.connector.sqlserver.SqlServerConnection connection
-
skipRule
public SkipTestRule skipRule
-
-
Method Detail
-
before
public void before() throws SQLException- Throws:
SQLException
-
after
public void after() throws SQLException- Throws:
SQLException
-
populateTable
protected void populateTable() throws SQLException- Overrides:
populateTablein classAbstractIncrementalSnapshotTest<io.debezium.connector.sqlserver.SqlServerConnector>- Throws:
SQLException
-
connectorClass
protected Class<io.debezium.connector.sqlserver.SqlServerConnector> connectorClass()
- Specified by:
connectorClassin classAbstractIncrementalSnapshotTest<io.debezium.connector.sqlserver.SqlServerConnector>
-
databaseConnection
protected JdbcConnection databaseConnection()
- Specified by:
databaseConnectionin classAbstractIncrementalSnapshotTest<io.debezium.connector.sqlserver.SqlServerConnector>
-
topicName
protected String topicName()
- Specified by:
topicNamein classAbstractIncrementalSnapshotTest<io.debezium.connector.sqlserver.SqlServerConnector>
-
tableName
protected String tableName()
- Specified by:
tableNamein classAbstractIncrementalSnapshotTest<io.debezium.connector.sqlserver.SqlServerConnector>
-
tableName
protected String tableName(String table)
- Specified by:
tableNamein classAbstractIncrementalSnapshotWithSchemaChangesSupportTest<io.debezium.connector.sqlserver.SqlServerConnector>
-
signalTableName
protected String signalTableName()
- Specified by:
signalTableNamein classAbstractIncrementalSnapshotTest<io.debezium.connector.sqlserver.SqlServerConnector>
-
alterColumnStatement
protected String alterColumnStatement(String table, String column, String type)
- Specified by:
alterColumnStatementin classAbstractIncrementalSnapshotWithSchemaChangesSupportTest<io.debezium.connector.sqlserver.SqlServerConnector>
-
alterColumnSetNotNullStatement
protected String alterColumnSetNotNullStatement(String table, String column, String type)
- Specified by:
alterColumnSetNotNullStatementin classAbstractIncrementalSnapshotWithSchemaChangesSupportTest<io.debezium.connector.sqlserver.SqlServerConnector>
-
alterColumnDropNotNullStatement
protected String alterColumnDropNotNullStatement(String table, String column, String type)
- Specified by:
alterColumnDropNotNullStatementin classAbstractIncrementalSnapshotWithSchemaChangesSupportTest<io.debezium.connector.sqlserver.SqlServerConnector>
-
alterColumnSetDefaultStatement
protected String alterColumnSetDefaultStatement(String table, String column, String type, String defaultValue)
- Specified by:
alterColumnSetDefaultStatementin classAbstractIncrementalSnapshotWithSchemaChangesSupportTest<io.debezium.connector.sqlserver.SqlServerConnector>
-
alterColumnDropDefaultStatement
protected String alterColumnDropDefaultStatement(String table, String column, String type)
- Specified by:
alterColumnDropDefaultStatementin classAbstractIncrementalSnapshotWithSchemaChangesSupportTest<io.debezium.connector.sqlserver.SqlServerConnector>
-
executeRenameTable
protected void executeRenameTable(JdbcConnection connection, String newTable) throws SQLException
- Specified by:
executeRenameTablein classAbstractIncrementalSnapshotWithSchemaChangesSupportTest<io.debezium.connector.sqlserver.SqlServerConnector>- Throws:
SQLException
-
createTableStatement
protected String createTableStatement(String newTable, String copyTable)
- Specified by:
createTableStatementin classAbstractIncrementalSnapshotWithSchemaChangesSupportTest<io.debezium.connector.sqlserver.SqlServerConnector>
-
config
protected Configuration.Builder config()
- Specified by:
configin classAbstractIncrementalSnapshotTest<io.debezium.connector.sqlserver.SqlServerConnector>
-
-