Package io.debezium.connector.mysql
Class CloudEventsConverterIT
java.lang.Object
io.debezium.embedded.AbstractConnectorTest
io.debezium.converters.AbstractCloudEventsConverterTest<io.debezium.connector.mysql.MySqlConnector>
io.debezium.connector.mysql.CloudEventsConverterIT
- All Implemented Interfaces:
Testing
public class CloudEventsConverterIT
extends AbstractCloudEventsConverterTest<io.debezium.connector.mysql.MySqlConnector>
Integration test for
CloudEventsConverter with MySqlConnector- Author:
- Roman Kudryashov
-
Nested Class Summary
Nested classes/interfaces inherited from class io.debezium.embedded.AbstractConnectorTest
AbstractConnectorTest.SourceRecordsNested classes/interfaces inherited from interface io.debezium.util.Testing
Testing.Debug, Testing.Files, Testing.InterruptableFunction, Testing.Network, Testing.Print, Testing.Timer -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate JdbcConnectionprivate final UniqueDatabaseprivate static final Pathprivate static final StringFields inherited from class io.debezium.converters.AbstractCloudEventsConverterTest
headerFrom, outboxEventRouterFields inherited from class io.debezium.embedded.AbstractConnectorTest
consumedLines, engine, logger, logTestName, OFFSET_STORE_PATH, pollTimeoutInMs, skipTestRule -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidprotected StringcreateInsert(String eventId, String eventType, String aggregateType, String aggregateId, String payloadJson, String additional) protected voidprotected JdbcConnectionprotected Configuration.Builderprotected Class<io.debezium.connector.mysql.MySqlConnector>protected Stringprotected Stringprotected Stringprivate TableIdprivate TableIdtableNameId(String table) protected Stringprotected voidMethods inherited from class io.debezium.converters.AbstractCloudEventsConverterTest
shouldConvertToCloudEventsInJsonWithMetadataInHeadersAfterOutboxEventRouterMethods 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, consumeAvailableRecordsByTopic, consumeDmlRecordsByTopic, consumeDmlRecordsByTopic, consumeDmlRecordsByTopic, consumeRecord, consumeRecords, consumeRecords, consumeRecords, consumeRecordsButSkipUntil, consumeRecordsByTopic, consumeRecordsByTopic, consumeRecordsByTopic, consumeRecordsByTopicUntil, consumeRecordsUntil, debug, getConsumer, getMaximumEnqueuedRecordCount, getSnapshotMetricsObjectName, getSnapshotMetricsObjectName, getSnapshotMetricsObjectName, getStreamingMetricsObjectName, getStreamingMetricsObjectName, getStreamingMetricsObjectName, getStreamingMetricsObjectName, getStreamingNamespace, initializeConnectorTestFramework, isStreamingRunning, isStreamingRunning, isStreamingRunning, isStreamingRunning, isTransactionRecord, loggingCompletion, print, readLastCommittedOffset, readLastCommittedOffsets, setConsumeTimeout, skipAvroValidation, start, start, start, start, start, start, start, startAndConsumeTillEnd, startAndConsumeTillEnd, stopConnector, stopConnector, validate, waitForAvailableRecords, waitForConnectorShutdown, waitForNotInitialState, waitForSnapshotToBeCompleted, waitForSnapshotToBeCompleted, waitForSnapshotWithCustomMetricsToBeCompleted, waitForStreamingRunning, waitForStreamingRunning, waitForStreamingRunning, waitForStreamingWithCustomMetricsToStart, waitTimeForRecords, waitTimeForRecordsAfterNulls
-
Field Details
-
SCHEMA_HISTORY_PATH
-
DATABASE
-
connection
-
SETUP_OUTBOX_TABLE
- See Also:
-
-
Constructor Details
-
CloudEventsConverterIT
public CloudEventsConverterIT()
-
-
Method Details
-
beforeEach
- Overrides:
beforeEachin classAbstractCloudEventsConverterTest<io.debezium.connector.mysql.MySqlConnector>- Throws:
Exception
-
afterEach
- Overrides:
afterEachin classAbstractCloudEventsConverterTest<io.debezium.connector.mysql.MySqlConnector>- Throws:
Exception
-
getConnectorClass
- Specified by:
getConnectorClassin classAbstractCloudEventsConverterTest<io.debezium.connector.mysql.MySqlConnector>
-
getConnectorName
- Specified by:
getConnectorNamein classAbstractCloudEventsConverterTest<io.debezium.connector.mysql.MySqlConnector>
-
getServerName
- Specified by:
getServerNamein classAbstractCloudEventsConverterTest<io.debezium.connector.mysql.MySqlConnector>
-
databaseConnection
- Specified by:
databaseConnectionin classAbstractCloudEventsConverterTest<io.debezium.connector.mysql.MySqlConnector>
-
getConfigurationBuilder
- Specified by:
getConfigurationBuilderin classAbstractCloudEventsConverterTest<io.debezium.connector.mysql.MySqlConnector>
-
tableName
- Specified by:
tableNamein classAbstractCloudEventsConverterTest<io.debezium.connector.mysql.MySqlConnector>
-
topicName
- Specified by:
topicNamein classAbstractCloudEventsConverterTest<io.debezium.connector.mysql.MySqlConnector>
-
createTable
- Specified by:
createTablein classAbstractCloudEventsConverterTest<io.debezium.connector.mysql.MySqlConnector>- Throws:
Exception
-
createInsert
protected String createInsert(String eventId, String eventType, String aggregateType, String aggregateId, String payloadJson, String additional) - Specified by:
createInsertin classAbstractCloudEventsConverterTest<io.debezium.connector.mysql.MySqlConnector>
-
waitForStreamingStarted
- Specified by:
waitForStreamingStartedin classAbstractCloudEventsConverterTest<io.debezium.connector.mysql.MySqlConnector>- Throws:
InterruptedException
-
tableNameId
-
tableNameId
-