Package io.debezium.connector.sqlserver
Class SchemaHistoryTopicIT
java.lang.Object
io.debezium.embedded.AbstractConnectorTest
io.debezium.connector.sqlserver.SchemaHistoryTopicIT
- All Implemented Interfaces:
Testing
Integration test for the user-facing history topic of the Debezium SQL Server connector.
The tests should verify the CREATE schema events from snapshot and the CREATE and
the ALTER schema events from streaming
- 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
engine, logger, logTestName, OFFSET_STORE_PATH, pollTimeoutInMs, skipTestRule -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafter()voidbefore()voidprivate voidshouldContainPartitionInSchemaChangeEvent(Configuration.Builder configBuilder, Runnable waitForStreamingStarted, Map<String, String> expectedPartition) voidvoidvoidvoidMethods 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, getMaximumEnqueuedRecordCount, 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 Details
-
connection
private io.debezium.connector.sqlserver.SqlServerConnection connection
-
-
Constructor Details
-
SchemaHistoryTopicIT
public SchemaHistoryTopicIT()
-
-
Method Details
-
before
- Throws:
SQLException
-
after
- Throws:
SQLException
-
streamingSchemaChanges
- Throws:
Exception
-
snapshotSchemaChanges
- Throws:
Exception
-
schemaChangeAfterSnapshot
- Throws:
Exception
-
shouldContainPartitionInSchemaChangeEventInSinglePartitionMode
@FixFor("DBZ-3347") public void shouldContainPartitionInSchemaChangeEventInSinglePartitionMode() throws Exception- Throws:
Exception
-
shouldContainPartitionInSchemaChangeEventInMultiPartitionMode
@FixFor({"DBZ-3347","DBZ-2975"}) public void shouldContainPartitionInSchemaChangeEventInMultiPartitionMode() throws Exception- Throws:
Exception
-
shouldContainPartitionInSchemaChangeEvent
private void shouldContainPartitionInSchemaChangeEvent(Configuration.Builder configBuilder, Runnable waitForStreamingStarted, Map<String, String> expectedPartition) throws Exception- Throws:
Exception
-