Package io.debezium.connector.sqlserver
Class SnapshotIT
java.lang.Object
io.debezium.embedded.AbstractConnectorTest
io.debezium.connector.sqlserver.SnapshotIT
- All Implemented Interfaces:
Testing
Integration test for the Debezium SQL Server connector.
- Author:
- Jiri Pechanec
-
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.sqlserver.SqlServerConnectionprivate static final intprivate static final intFields inherited from class io.debezium.embedded.AbstractConnectorTest
consumedLines, engine, 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<SchemaAndValueField> expected) voidbefore()voidvoidvoidvoidvoidvoidvoidvoidprivate voidtakeSnapshot(io.debezium.connector.sqlserver.SqlServerConnectorConfig.SnapshotIsolationMode lockingMode) voidvoidvoidvoidvoidvoidvoidvoidvoidprivate voidMethods 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, waitForNotInitialState, waitForSnapshotToBeCompleted, waitForStreamingRunning, waitForStreamingRunning, waitTimeForRecords, waitTimeForRecordsAfterNulls
-
Field Details
-
INITIAL_RECORDS_PER_TABLE
private static final int INITIAL_RECORDS_PER_TABLE- See Also:
-
STREAMING_RECORDS_PER_TABLE
private static final int STREAMING_RECORDS_PER_TABLE- See Also:
-
connection
private io.debezium.connector.sqlserver.SqlServerConnection connection
-
-
Constructor Details
-
SnapshotIT
public SnapshotIT()
-
-
Method Details
-
before
- Throws:
SQLException
-
after
- Throws:
SQLException
-
takeSnapshotInExclusiveMode
- Throws:
Exception
-
takeSnapshotInSnapshotMode
- Throws:
Exception
-
takeSnapshotInRepeatableReadMode
- Throws:
Exception
-
takeSnapshotInReadCommittedMode
- Throws:
Exception
-
takeSnapshotInReadUncommittedMode
- Throws:
Exception
-
takeSnapshot
private void takeSnapshot(io.debezium.connector.sqlserver.SqlServerConnectorConfig.SnapshotIsolationMode lockingMode) throws Exception - Throws:
Exception
-
takeSnapshotAndStartStreaming
- Throws:
Exception
-
testDeadlockDetection
- Throws:
Exception
-
testStreaming
- Throws:
SQLExceptionInterruptedException
-
takeSchemaOnlySnapshotAndStartStreaming
- Throws:
Exception
-
takeSnapshotFromTableWithReservedName
- Throws:
Exception
-
takeSchemaOnlySnapshotAndSendHeartbeat
- Throws:
Exception
-
shouldSelectivelySnapshotTables
@FixFor("DBZ-2456") public void shouldSelectivelySnapshotTables() throws SQLException, InterruptedException- Throws:
SQLExceptionInterruptedException
-
testColumnExcludeList
- Throws:
Exception
-
reoderCapturedTables
- Throws:
Exception
-
reoderCapturedTablesWithOverlappingTableWhitelist
- Throws:
Exception
-
reoderCapturedTablesWithoutTableWhitelist
- Throws:
Exception
-
shouldOutputRecordsInCloudEventsFormat
@FixFor({"DBZ-1292","DBZ-3157"}) public void shouldOutputRecordsInCloudEventsFormat() throws Exception- Throws:
Exception
-
shouldHandleBracketsInSnapshotSelect
@FixFor("DBZ-5198") public void shouldHandleBracketsInSnapshotSelect() throws InterruptedException, SQLException- Throws:
InterruptedExceptionSQLException
-
assertRecord
private void assertRecord(org.apache.kafka.connect.data.Struct record, List<SchemaAndValueField> expected)
-