public class StreamingSourceIT extends AbstractConnectorTest
AbstractConnectorTest.SourceRecordsTesting.Debug, Testing.Files, Testing.InterruptableFunction, Testing.Network, Testing.Print, Testing.Timer| Modifier and Type | Field and Description |
|---|---|
private Configuration |
config |
private UniqueDatabase |
DATABASE |
private static Path |
DB_HISTORY_PATH |
private SchemaChangeHistory |
schemaChanges |
private static String |
SET_TLS_PROTOCOLS |
SkipTestRule |
skipRule |
private KeyValueStore |
store |
engine, logger, logTestName, OFFSET_STORE_PATH, pollTimeoutInMs, skipTestRule| Constructor and Description |
|---|
StreamingSourceIT() |
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, stopConnector, stopConnector, validate, waitForAvailableRecords, waitForConnectorShutdown, waitForSnapshotToBeCompleted, waitForStreamingRunning, waitForStreamingRunning, waitTimeForRecordsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdebug, once, once, print, print, printError, printError, printError, resetBeforeEachTest, time, timeprivate static final Path DB_HISTORY_PATH
private final UniqueDatabase DATABASE
private static final String SET_TLS_PROTOCOLS
private Configuration config
private KeyValueStore store
private SchemaChangeHistory schemaChanges
public SkipTestRule skipRule
public void beforeEach()
public void afterEach()
protected int consumeAtLeast(int minNumber)
throws InterruptedException
InterruptedExceptionprotected int consumeAtLeast(int minNumber,
long timeout,
TimeUnit unit)
throws InterruptedException
InterruptedExceptionprotected long filterAtLeast(int minNumber,
long timeout,
TimeUnit unit)
throws InterruptedException
InterruptedExceptionprivate long getNumberOfEventsFiltered()
private long getNumberOfSkippedEvents()
protected Configuration.Builder simpleConfig()
public void shouldCreateSnapshotOfSingleDatabase()
throws Exception
Exceptionpublic void shouldCreateSnapshotOfSingleDatabaseWithSchemaChanges()
throws Exception
Exception@FixFor(value="DBZ-1206") public void shouldFilterAllRecordsBasedOnDatabaseWhitelistFilter() throws Exception
Exception@FixFor(value="DBZ-1206") public void shouldFilterAllRecordsBasedOnDatabaseIncludeListFilter() throws Exception
Exception@FixFor(value="DBZ-183") public void shouldHandleTimestampTimezones() throws Exception
Exception@FixFor(value="DBZ-342") public void shouldHandleMySQLTimeCorrectly() throws Exception
Exceptionpublic void shouldFailOnSchemaInconsistency()
throws Exception
Exceptionpublic void shouldWarnOnSchemaInconsistency()
throws Exception
Exceptionpublic void shouldIgnoreOnSchemaInconsistency()
throws Exception
Exception@FixFor(value="DBZ-1208") public void shouldFailOnUnknownTlsProtocol()
@FixFor(value="DBZ-1208") public void shouldAcceptTls12() throws Exception
Exceptionprivate void inconsistentSchema(CommonConnectorConfig.EventProcessingFailureHandlingMode mode) throws InterruptedException, SQLException
InterruptedExceptionSQLExceptionprivate String productsTableName() throws SQLException
SQLExceptionCopyright © 2021 JBoss by Red Hat. All rights reserved.