Package io.debezium.connector.mysql
Class MySqlDatabaseHistoryIT
- java.lang.Object
-
- io.debezium.embedded.AbstractConnectorTest
-
- io.debezium.connector.mysql.MySqlDatabaseHistoryIT
-
- All Implemented Interfaces:
Testing
public class MySqlDatabaseHistoryIT extends AbstractConnectorTest
The test to verify whether DDL is stored correctly in database history.- Author:
- Jiri Pechanec
-
-
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 Configurationconfigprivate UniqueDatabaseDATABASEprivate static PathDB_HISTORY_PATHprivate static intTABLE_COUNT-
Fields inherited from class io.debezium.embedded.AbstractConnectorTest
engine, logger, logTestName, OFFSET_STORE_PATH, pollTimeoutInMs, skipTestRule
-
-
Constructor Summary
Constructors Constructor Description MySqlDatabaseHistoryIT()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterEach()private voidassertDdls(AbstractConnectorTest.SourceRecords records)voidbeforeEach()private StringgetDdl(List<org.apache.kafka.connect.source.SourceRecord> schemaChanges, int index)voidshouldStoreAlterRename()voidshouldStoreMultipleRenames()voidshouldStoreSingleRename()voidshouldUseQuotedNameInDrop()-
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, stopConnector, stopConnector, validate, waitForAvailableRecords, waitForConnectorShutdown, waitForSnapshotToBeCompleted, waitForStreamingRunning, waitForStreamingRunning, waitTimeForRecords, waitTimeForRecordsAfterNulls
-
-
-
-
Field Detail
-
DB_HISTORY_PATH
private static final Path DB_HISTORY_PATH
-
TABLE_COUNT
private static final int TABLE_COUNT
- See Also:
- Constant Field Values
-
DATABASE
private UniqueDatabase DATABASE
-
config
private Configuration config
-
-
Method Detail
-
beforeEach
public void beforeEach()
-
afterEach
public void afterEach()
-
shouldUseQuotedNameInDrop
@FixFor("DBZ-3485") public void shouldUseQuotedNameInDrop() throws SQLException, InterruptedException
- Throws:
SQLExceptionInterruptedException
-
shouldStoreSingleRename
@FixFor("DBZ-3399") public void shouldStoreSingleRename() throws SQLException, InterruptedException
- Throws:
SQLExceptionInterruptedException
-
shouldStoreMultipleRenames
@FixFor("DBZ-3399") public void shouldStoreMultipleRenames() throws SQLException, InterruptedException
- Throws:
SQLExceptionInterruptedException
-
shouldStoreAlterRename
@FixFor("DBZ-3399") public void shouldStoreAlterRename() throws SQLException, InterruptedException
- Throws:
SQLExceptionInterruptedException
-
assertDdls
private void assertDdls(AbstractConnectorTest.SourceRecords records)
-
-