Package io.debezium.connector.sqlserver
Class SnapshotWithSelectOverridesIT
- java.lang.Object
-
- io.debezium.embedded.AbstractConnectorTest
-
- io.debezium.connector.sqlserver.SnapshotWithSelectOverridesIT
-
- All Implemented Interfaces:
Testing
public class SnapshotWithSelectOverridesIT extends AbstractConnectorTest
Integration test for using snapshot SELECT overrides with the Debezium SQL Server connector.- Author:
- Gunnar Morling
-
-
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.SqlServerConnectionconnectionprivate static intINITIAL_RECORDS_PER_TABLE-
Fields inherited from class io.debezium.embedded.AbstractConnectorTest
engine, logger, logTestName, OFFSET_STORE_PATH, pollTimeoutInMs, skipTestRule
-
-
Constructor Summary
Constructors Constructor Description SnapshotWithSelectOverridesIT()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafter()voidbefore()private voidtakeSnapshotWithOverrides(Configuration config, String topicPrefix)voidtakeSnapshotWithOverridesInMultiPartitionMode()voidtakeSnapshotWithOverridesInSinglePartitionMode()private voidtakeSnapshotWithOverridesWithAdditionalWhitespace(Configuration config, String topicPrefix)voidtakeSnapshotWithOverridesWithAdditionalWhitespaceInMultiPartitionMode()voidtakeSnapshotWithOverridesWithAdditionalWhitespaceInSinglePartitionMode()-
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
-
-
-
-
Field Detail
-
INITIAL_RECORDS_PER_TABLE
private static final int INITIAL_RECORDS_PER_TABLE
- See Also:
- Constant Field Values
-
connection
private io.debezium.connector.sqlserver.SqlServerConnection connection
-
-
Method Detail
-
before
public void before() throws SQLException- Throws:
SQLException
-
after
public void after() throws SQLException- Throws:
SQLException
-
takeSnapshotWithOverridesInSinglePartitionMode
@FixFor("DBZ-1224") public void takeSnapshotWithOverridesInSinglePartitionMode() throws Exception
- Throws:
Exception
-
takeSnapshotWithOverridesInMultiPartitionMode
@FixFor({"DBZ-1224","DBZ-2975"}) public void takeSnapshotWithOverridesInMultiPartitionMode() throws Exception
- Throws:
Exception
-
takeSnapshotWithOverrides
private void takeSnapshotWithOverrides(Configuration config, String topicPrefix) throws Exception
- Throws:
Exception
-
takeSnapshotWithOverridesWithAdditionalWhitespaceInSinglePartitionMode
@FixFor("DBZ-3429") public void takeSnapshotWithOverridesWithAdditionalWhitespaceInSinglePartitionMode() throws Exception
- Throws:
Exception
-
takeSnapshotWithOverridesWithAdditionalWhitespaceInMultiPartitionMode
@FixFor({"DBZ-3429","DBZ-2975"}) public void takeSnapshotWithOverridesWithAdditionalWhitespaceInMultiPartitionMode() throws Exception
- Throws:
Exception
-
takeSnapshotWithOverridesWithAdditionalWhitespace
private void takeSnapshotWithOverridesWithAdditionalWhitespace(Configuration config, String topicPrefix) throws Exception
- Throws:
Exception
-
-