Package io.debezium.connector.binlog
Class BinlogCloudEventsConverterIT<C extends org.apache.kafka.connect.source.SourceConnector>
java.lang.Object
io.debezium.embedded.AbstractConnectorTest
io.debezium.embedded.async.AbstractAsyncEngineConnectorTest
io.debezium.converters.AbstractCloudEventsConverterTest<C>
io.debezium.connector.binlog.BinlogCloudEventsConverterIT<C>
- All Implemented Interfaces:
BinlogConnectorTest<C>,Testing
public abstract class BinlogCloudEventsConverterIT<C extends org.apache.kafka.connect.source.SourceConnector>
extends AbstractCloudEventsConverterTest<C>
implements BinlogConnectorTest<C>
Integration test for
CloudEventsConverter with binlog-based connectors.- 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 Stringprivate static final Pathprivate static final Stringprivate static final StringFields inherited from class io.debezium.embedded.AbstractConnectorTest
consumedLines, engine, isEngineRunning, logger, logTestName, OFFSET_STORE_PATH, pollTimeoutInMs, skipTestRule -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidprotected Stringprotected StringcreateInsertToOutbox(String eventId, String eventType, String aggregateType, String aggregateId, String payloadJson, String additional) protected voidprotected voidprotected JdbcConnectionprotected Configuration.Builderprotected Stringprivate TableIdprivate TableIdtableNameId(String table) protected Stringprotected Stringprotected voidMethods inherited from class io.debezium.converters.AbstractCloudEventsConverterTest
getConnectorClass, getConnectorName, shouldConvertToCloudEventsInAvroWithCustomCloudEventsSchemaName, shouldConvertToCloudEventsInJsonWithDataAsAvroAndAllMetadataInHeadersAfterOutboxEventRouter, shouldConvertToCloudEventsInJsonWithIdFromHeaderAndGeneratedType, shouldConvertToCloudEventsInJsonWithMetadataAndIdAndTypeInHeadersAfterOutboxEventRouter, shouldConvertToCloudEventsInJsonWithoutExtensionAttributes, shouldThrowExceptionWhenDeserializingNotCloudEventAvro, shouldThrowExceptionWhenDeserializingNotCloudEventJsonMethods inherited from class io.debezium.embedded.async.AbstractAsyncEngineConnectorTest
createEngine, createEngineBuilderMethods 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, storeOffsets, validate, waitForAvailableRecords, waitForAvailableRecords, waitForConnectorShutdown, waitForEngineShutdown, waitForSnapshotToBeCompleted, waitForSnapshotToBeCompleted, waitForSnapshotWithCustomMetricsToBeCompleted, waitForStreamingRunning, waitForStreamingRunning, waitForStreamingRunning, waitForStreamingWithCustomMetricsToStart, waitTimeForEngine, waitTimeForRecords, waitTimeForRecordsAfterNullsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.debezium.connector.binlog.BinlogConnectorTest
getConnectorClass, getConnectorName, getTestDatabaseConnection, getTestDatabaseConnection, getTestReplicaDatabaseConnection, isMariaDb
-
Field Details
-
SCHEMA_HISTORY_PATH
-
DATABASE
-
connection
-
SETUP_TABLE
- See Also:
-
SETUP_OUTBOX_TABLE
- See Also:
-
INSERT_STMT
- See Also:
-
-
Constructor Details
-
BinlogCloudEventsConverterIT
public BinlogCloudEventsConverterIT()
-
-
Method Details
-
beforeEach
- Overrides:
beforeEachin classAbstractCloudEventsConverterTest<C extends org.apache.kafka.connect.source.SourceConnector>- Throws:
Exception
-
afterEach
- Overrides:
afterEachin classAbstractCloudEventsConverterTest<C extends org.apache.kafka.connect.source.SourceConnector>- Throws:
Exception
-
getServerName
- Specified by:
getServerNamein classAbstractCloudEventsConverterTest<C extends org.apache.kafka.connect.source.SourceConnector>
-
databaseConnection
- Specified by:
databaseConnectionin classAbstractCloudEventsConverterTest<C extends org.apache.kafka.connect.source.SourceConnector>
-
getConfigurationBuilder
- Specified by:
getConfigurationBuilderin classAbstractCloudEventsConverterTest<C extends org.apache.kafka.connect.source.SourceConnector>
-
topicName
- Specified by:
topicNamein classAbstractCloudEventsConverterTest<C extends org.apache.kafka.connect.source.SourceConnector>
-
topicNameOutbox
- Specified by:
topicNameOutboxin classAbstractCloudEventsConverterTest<C extends org.apache.kafka.connect.source.SourceConnector>
-
createTable
- Specified by:
createTablein classAbstractCloudEventsConverterTest<C extends org.apache.kafka.connect.source.SourceConnector>- Throws:
Exception
-
createOutboxTable
- Specified by:
createOutboxTablein classAbstractCloudEventsConverterTest<C extends org.apache.kafka.connect.source.SourceConnector>- Throws:
Exception
-
createInsert
- Specified by:
createInsertin classAbstractCloudEventsConverterTest<C extends org.apache.kafka.connect.source.SourceConnector>
-
createInsertToOutbox
protected String createInsertToOutbox(String eventId, String eventType, String aggregateType, String aggregateId, String payloadJson, String additional) - Specified by:
createInsertToOutboxin classAbstractCloudEventsConverterTest<C extends org.apache.kafka.connect.source.SourceConnector>
-
waitForStreamingStarted
- Specified by:
waitForStreamingStartedin classAbstractCloudEventsConverterTest<C extends org.apache.kafka.connect.source.SourceConnector>- Throws:
InterruptedException
-
tableNameId
-
tableNameId
-