public class SnapshotIT extends AbstractConnectorTest
AbstractConnectorTest.SourceRecordsTesting.Debug, Testing.Files, Testing.InterruptableFunction, Testing.Network, Testing.Print, Testing.Timer| Modifier and Type | Field and Description |
|---|---|
private io.debezium.connector.sqlserver.SqlServerConnection |
connection |
private static int |
INITIAL_RECORDS_PER_TABLE |
private static int |
STREAMING_RECORDS_PER_TABLE |
engine, logger, logTestName, NO_MONITORED_TABLES_WARNING, OFFSET_STORE_PATH, pollTimeoutInMs, skipTestRule| Constructor and Description |
|---|
SnapshotIT() |
| Modifier and Type | Method and Description |
|---|---|
void |
after() |
private void |
assertRecord(org.apache.kafka.connect.data.Struct record,
List<SchemaAndValueField> expected) |
void |
before() |
void |
blacklistColumn() |
void |
reoderCapturedTables() |
void |
reoderCapturedTablesWithoutTableWhitelist() |
void |
reoderCapturedTablesWithOverlappingTableWhitelist() |
void |
takeSchemaOnlySnapshotAndSendHeartbeat() |
void |
takeSchemaOnlySnapshotAndStartStreaming() |
private void |
takeSnapshot(io.debezium.connector.sqlserver.SqlServerConnectorConfig.SnapshotIsolationMode lockingMode) |
void |
takeSnapshotAndStartStreaming() |
void |
takeSnapshotFromTableWithReservedName() |
void |
takeSnapshotInExclusiveMode() |
void |
takeSnapshotInReadUncommittedMode() |
void |
takeSnapshotInRepeatableReadMode() |
void |
takeSnapshotInSnapshotMode() |
void |
takeSnapshotWithOldStructAndStartStreaming() |
private void |
testStreaming() |
assertConfigurationErrors, assertConfigurationErrors, assertConfigurationErrors, assertConnectorIsRunning, assertConnectorNotRunning, assertDelete, assertEngineIsRunning, assertHasNoSourceQuery, assertInsert, assertKey, assertNoConfigurationErrors, assertNoRecordsToConsume, assertOffset, assertOffset, assertSchemaMatchesStruct, assertSchemaMatchesStruct, assertSourceQuery, assertTombstone, assertTombstone, assertUpdate, assertValueField, configValue, consumeAvailableRecords, consumeRecord, consumeRecords, consumeRecords, consumeRecordsByTopic, debug, getMaximumEnqueuedRecordCount, initializeConnectorTestFramework, loggingCompletion, print, readLastCommittedOffset, readLastCommittedOffsets, setConsumeTimeout, start, start, start, start, stopConnector, stopConnector, validate, waitForAvailableRecords, waitForSnapshotToBeCompleted, waitForStreamingRunningclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdebug, once, once, print, print, printError, printError, printError, resetBeforeEachTest, time, timeprivate static final int INITIAL_RECORDS_PER_TABLE
private static final int STREAMING_RECORDS_PER_TABLE
private io.debezium.connector.sqlserver.SqlServerConnection connection
public void before()
throws SQLException
SQLExceptionpublic void after()
throws SQLException
SQLExceptionpublic void takeSnapshotInExclusiveMode()
throws Exception
Exceptionpublic void takeSnapshotInSnapshotMode()
throws Exception
Exceptionpublic void takeSnapshotInRepeatableReadMode()
throws Exception
Exceptionpublic void takeSnapshotInReadUncommittedMode()
throws Exception
Exceptionprivate void takeSnapshot(io.debezium.connector.sqlserver.SqlServerConnectorConfig.SnapshotIsolationMode lockingMode)
throws Exception
Exceptionpublic void takeSnapshotAndStartStreaming()
throws Exception
Exceptionpublic void takeSnapshotWithOldStructAndStartStreaming()
throws Exception
Exceptionprivate void testStreaming()
throws SQLException,
InterruptedException
SQLExceptionInterruptedExceptionpublic void takeSchemaOnlySnapshotAndStartStreaming()
throws Exception
Exception@FixFor(value="DBZ-1031") public void takeSnapshotFromTableWithReservedName() throws Exception
Exceptionpublic void takeSchemaOnlySnapshotAndSendHeartbeat()
throws Exception
Exception@FixFor(value="DBZ-1067") public void blacklistColumn() throws Exception
Exceptionpublic void reoderCapturedTablesWithOverlappingTableWhitelist()
throws Exception
Exceptionpublic void reoderCapturedTablesWithoutTableWhitelist()
throws Exception
Exceptionprivate void assertRecord(org.apache.kafka.connect.data.Struct record,
List<SchemaAndValueField> expected)
Copyright © 2019 JBoss by Red Hat. All rights reserved.