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() |
assertBeginTransaction, assertConfigurationErrors, assertConfigurationErrors, assertConfigurationErrors, assertConnectorIsRunning, assertConnectorNotRunning, assertDelete, assertEndTransaction, assertEngineIsRunning, assertHasNoSourceQuery, assertInsert, assertKey, assertNoConfigurationErrors, assertNoRecordsToConsume, assertOffset, assertOffset, assertRecordTransactionMetadata, assertSchemaMatchesStruct, assertSchemaMatchesStruct, assertSourceQuery, assertTombstone, assertTombstone, assertUpdate, assertValueField, configValue, consumeAvailableRecords, consumeRecord, consumeRecords, consumeRecords, consumeRecords, consumeRecordsByTopic, consumeRecordsByTopic, consumeRecordsByTopic, debug, getMaximumEnqueuedRecordCount, getSnapshotMetricsObjectName, getStreamingMetricsObjectName, getStreamingMetricsObjectName, initializeConnectorTestFramework, loggingCompletion, print, readLastCommittedOffset, readLastCommittedOffsets, setConsumeTimeout, start, start, start, start, stopConnector, stopConnector, validate, waitForAvailableRecords, waitForSnapshotToBeCompleted, waitForStreamingRunning, 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 takeSnapshotInReadCommittedMode()
throws Exception
Exceptionpublic void takeSnapshotInReadUncommittedMode()
throws Exception
Exceptionprivate void takeSnapshot(io.debezium.connector.sqlserver.SqlServerConnectorConfig.SnapshotIsolationMode lockingMode)
throws Exception
Exceptionpublic void takeSnapshotAndStartStreaming()
throws Exception
Exception@FixFor(value="DBZ-1280") public void testDeadlockDetection() 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
Exception@FixFor(value="DBZ-1292") public void shouldOutputRecordsInCloudEventsFormat() throws Exception
Exceptionprivate void assertRecord(org.apache.kafka.connect.data.Struct record,
List<SchemaAndValueField> expected)
Copyright © 2020 JBoss by Red Hat. All rights reserved.