Package io.debezium.connector.sqlserver
Class TransactionMetadataIT
java.lang.Object
io.debezium.embedded.AbstractConnectorTest
io.debezium.connector.sqlserver.TransactionMetadataIT
- 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.SqlServerConnectionFields 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()voidprivate voidrestartInTheMiddleOfTx(boolean restartJustAfterSnapshot, boolean afterStreaming) voidvoidvoidMethods 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.sqlserver.SqlServerConnection connection -
skipRule
-
-
Constructor Details
-
TransactionMetadataIT
public TransactionMetadataIT()
-
-
Method Details
-
before
- Throws:
SQLException
-
after
- Throws:
SQLException
-
transactionMetadata
- Throws:
Exception
-
restartInTheMiddleOfTx
private void restartInTheMiddleOfTx(boolean restartJustAfterSnapshot, boolean afterStreaming) throws Exception - Throws:
Exception
-
restartInTheMiddleOfTxAfterSnapshot
- Throws:
Exception
-
restartInTheMiddleOfTxAfterCompletedTx
- Throws:
Exception
-
restartInTheMiddleOfTx
- Throws:
Exception
-
assertRecord
private void assertRecord(org.apache.kafka.connect.data.Struct record, List<SchemaAndValueField> expected)
-