Package io.debezium.connector.sqlserver
Class SchemaHistoryTopicIT
- java.lang.Object
-
- io.debezium.embedded.AbstractConnectorTest
-
- io.debezium.connector.sqlserver.SchemaHistoryTopicIT
-
- All Implemented Interfaces:
Testing
public class SchemaHistoryTopicIT extends AbstractConnectorTest
Integration test for the user-facing history topic of the Debezium SQL Server connector.The tests should verify the
CREATEschema events from snapshot and theCREATEand theALTERschema events from streaming- Author:
- Jiri Pechanec
-
-
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.SqlServerConnectionconnection-
Fields inherited from class io.debezium.embedded.AbstractConnectorTest
engine, logger, logTestName, OFFSET_STORE_PATH, pollTimeoutInMs, skipTestRule
-
-
Constructor Summary
Constructors Constructor Description SchemaHistoryTopicIT()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafter()voidbefore()voidschemaChangeAfterSnapshot()private voidshouldContainPartitionInSchemaChangeEvent(Configuration.Builder configBuilder, Map<String,String> expectedPartition)voidshouldContainPartitionInSchemaChangeEventInMultiPartitionMode()voidshouldContainPartitionInSchemaChangeEventInSinglePartitionMode()voidsnapshotSchemaChanges()voidstreamingSchemaChanges()-
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, 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
-
-
-
-
Method Detail
-
before
public void before() throws SQLException- Throws:
SQLException
-
after
public void after() throws SQLException- Throws:
SQLException
-
streamingSchemaChanges
@FixFor("DBZ-1904") public void streamingSchemaChanges() throws Exception
- Throws:
Exception
-
snapshotSchemaChanges
@FixFor("DBZ-1904") public void snapshotSchemaChanges() throws Exception
- Throws:
Exception
-
schemaChangeAfterSnapshot
@FixFor("DBZ-2303") public void schemaChangeAfterSnapshot() throws Exception
- 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
-
-