public class MySqlConnectorIT extends AbstractConnectorTest
| Modifier and Type | Class and Description |
|---|---|
protected static class |
MySqlConnectorIT.BinlogPosition |
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 UniqueDatabase |
RO_DATABASE |
engine, logger, OFFSET_STORE_PATH, pollTimeoutInMs, skipTestRule| Constructor and Description |
|---|
MySqlConnectorIT() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterEach() |
void |
beforeEach() |
private List<org.apache.kafka.connect.source.SourceRecord> |
recordsForTopicForRoProductsTable(AbstractConnectorTest.SourceRecords records) |
void |
shouldConsumeAllEventsFromDatabaseUsingSnapshot() |
void |
shouldConsumeEventsWithMaskedAndBlacklistedColumns() |
void |
shouldConsumeEventsWithNoSnapshot() |
void |
shouldEmitNoTombstoneOnDelete() |
void |
shouldEmitTombstoneOnDeleteByDefault() |
void |
shouldFailToValidateConflictingLockingModeConfiguration()
Validates that if you use the deprecated snapshot.minimal.locking configuration value
AND set its replacement snapshot.locking.mode an error will be generated.
|
void |
shouldFailToValidateConflictingLockingModeExtendedConfiguration()
Validates that if you use the deprecated snapshot.minimal.locking configuration value
AND set its replacement snapshot.locking.mode an error will be generated.
|
void |
shouldFailToValidateConflictingLockingModeNoneConfiguration()
Validates that if you use the deprecated snapshot.minimal.locking configuration value
AND set its replacement snapshot.locking.mode an error will be generated.
|
void |
shouldFailToValidateInvalidConfiguration() |
void |
shouldNotStartWithInvalidConfiguration()
Verifies that the connector doesn't run with an invalid configuration.
|
void |
shouldNotValidateLockingModeNoneWithInvalidSnapshotModeConfiguration()
Validates that SNAPSHOT_LOCKING_MODE 'none' is invalid with SNAPSHOT_MODE values of
'when_needed', 'initial', 'initial_recovery'
|
void |
shouldUseMultipleOverriddenSelectStatementsDuringSnapshotting() |
void |
shouldUseOverriddenSelectStatementDuringSnapshotting() |
void |
shouldValidateAcceptableConfiguration() |
void |
shouldValidateLockingModeNoneWithValidSnapshotModeConfiguration()
Validates that SNAPSHOT_LOCKING_MODE 'none' is valid with SNAPSHOT_MODE values of
'none', 'schema_only', 'schema_only_recovery'
|
void |
shouldValidateLockingModeWithMinimalLocksEnabledConfiguration()
Validates that if you use the deprecated snapshot.minimal.locking configuration value is set to true
and its replacement snapshot.locking.mode is not explicitly defined, configuration validates as acceptable.
|
void |
shouldValidateLockingModeWithOutMinimalLocksEnabledConfiguration()
Validates that if you use the deprecated snapshot.minimal.locking configuration value is set to false
and its replacement snapshot.locking.mode is not explicitly defined, configuration validates as acceptable.
|
void |
shouldValidateValidConfigurationWithSSL() |
assertConfigurationErrors, assertConfigurationErrors, assertConfigurationErrors, assertConnectorIsRunning, assertConnectorNotRunning, assertDelete, assertEngineIsRunning, assertInsert, assertKey, assertNoConfigurationErrors, assertNoRecordsToConsume, assertOffset, assertOffset, assertSchemaMatchesStruct, assertSchemaMatchesStruct, 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, waitForAvailableRecordsclone, 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 final UniqueDatabase RO_DATABASE
private Configuration config
public void beforeEach()
public void afterEach()
public void shouldNotStartWithInvalidConfiguration()
public void shouldFailToValidateInvalidConfiguration()
public void shouldValidateValidConfigurationWithSSL()
public void shouldValidateAcceptableConfiguration()
@FixFor(value="DBZ-602") public void shouldValidateLockingModeWithMinimalLocksEnabledConfiguration()
@FixFor(value="DBZ-602") public void shouldValidateLockingModeWithOutMinimalLocksEnabledConfiguration()
@FixFor(value="DBZ-602") public void shouldFailToValidateConflictingLockingModeConfiguration()
@FixFor(value="DBZ-602") public void shouldFailToValidateConflictingLockingModeExtendedConfiguration()
@FixFor(value="DBZ-602") public void shouldFailToValidateConflictingLockingModeNoneConfiguration()
@FixFor(value="DBZ-602") public void shouldValidateLockingModeNoneWithValidSnapshotModeConfiguration()
@FixFor(value="DBZ-602") public void shouldNotValidateLockingModeNoneWithInvalidSnapshotModeConfiguration()
public void shouldConsumeAllEventsFromDatabaseUsingSnapshot()
throws SQLException,
InterruptedException
SQLExceptionInterruptedExceptionpublic void shouldUseOverriddenSelectStatementDuringSnapshotting()
throws SQLException,
InterruptedException
SQLExceptionInterruptedExceptionpublic void shouldUseMultipleOverriddenSelectStatementsDuringSnapshotting()
throws SQLException,
InterruptedException
SQLExceptionInterruptedExceptionpublic void shouldConsumeEventsWithNoSnapshot()
throws SQLException,
InterruptedException
SQLExceptionInterruptedExceptionpublic void shouldConsumeEventsWithMaskedAndBlacklistedColumns()
throws SQLException,
InterruptedException
SQLExceptionInterruptedException@FixFor(value="DBZ-582") public void shouldEmitTombstoneOnDeleteByDefault() throws Exception
Exception@FixFor(value="DBZ-582") public void shouldEmitNoTombstoneOnDelete() throws Exception
Exceptionprivate List<org.apache.kafka.connect.source.SourceRecord> recordsForTopicForRoProductsTable(AbstractConnectorTest.SourceRecords records)
Copyright © 2018 JBoss by Red Hat. All rights reserved.