Package io.debezium.converters
Class AbstractCloudEventsConverterTest<T extends org.apache.kafka.connect.source.SourceConnector>
java.lang.Object
io.debezium.embedded.AbstractConnectorTest
io.debezium.embedded.async.AbstractAsyncEngineConnectorTest
io.debezium.converters.AbstractCloudEventsConverterTest<T>
- All Implemented Interfaces:
Testing
public abstract class AbstractCloudEventsConverterTest<T extends org.apache.kafka.connect.source.SourceConnector>
extends AbstractAsyncEngineConnectorTest
A unified test of all
CloudEventsConverter behavior which all connectors should extend.- 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
Fields 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 abstract Stringprotected abstract StringcreateInsertToOutbox(String eventId, String eventType, String aggregateType, String aggregateId, String payloadJson, String additional) protected abstract voidprotected abstract voidprotected abstract JdbcConnectionprotected abstract Configuration.Builderprotected abstract Stringprotected abstract Stringvoidvoidvoidvoidvoidvoidvoidprivate voidprotected abstract Stringprotected abstract Stringprotected abstract voidMethods 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, waitForConnectorShutdown, waitForEngineShutdown, waitForSnapshotToBeCompleted, waitForSnapshotToBeCompleted, waitForSnapshotWithCustomMetricsToBeCompleted, waitForStreamingRunning, waitForStreamingRunning, waitForStreamingRunning, waitForStreamingWithCustomMetricsToStart, waitTimeForEngine, waitTimeForRecords, waitTimeForRecordsAfterNulls
-
Constructor Details
-
AbstractCloudEventsConverterTest
public AbstractCloudEventsConverterTest()
-
-
Method Details
-
getConnectorClass
-
getConnectorName
-
getServerName
-
databaseConnection
-
getConfigurationBuilder
-
topicName
-
topicNameOutbox
-
createTable
- Throws:
Exception
-
createOutboxTable
- Throws:
Exception
-
createInsert
-
createInsertToOutbox
-
waitForStreamingStarted
- Throws:
InterruptedException
-
beforeEach
- Throws:
Exception
-
afterEach
- Throws:
Exception
-
shouldConvertToCloudEventsInJsonWithoutExtensionAttributes
@FixFor("DBZ-6982") public void shouldConvertToCloudEventsInJsonWithoutExtensionAttributes() throws Exception- Throws:
Exception
-
shouldConvertToCloudEventsInJsonWithMetadataAndIdAndTypeInHeadersAfterOutboxEventRouter
@FixFor({"DBZ-3642","DBZ-7016"}) public void shouldConvertToCloudEventsInJsonWithMetadataAndIdAndTypeInHeadersAfterOutboxEventRouter() throws Exception- Throws:
Exception
-
shouldConvertToCloudEventsInJsonWithDataAsAvroAndAllMetadataInHeadersAfterOutboxEventRouter
@FixFor("DBZ-7284") public void shouldConvertToCloudEventsInJsonWithDataAsAvroAndAllMetadataInHeadersAfterOutboxEventRouter() throws Exception- Throws:
Exception
-
shouldConvertToCloudEventsInJsonWithIdFromHeaderAndGeneratedType
@FixFor("DBZ-7016") public void shouldConvertToCloudEventsInJsonWithIdFromHeaderAndGeneratedType() throws Exception- Throws:
Exception
-
shouldThrowExceptionWhenDeserializingNotCloudEventJson
@FixFor("DBZ-7159") public void shouldThrowExceptionWhenDeserializingNotCloudEventJson() throws Exception- Throws:
Exception
-
shouldThrowExceptionWhenDeserializingNotCloudEventAvro
@FixFor("DBZ-7159") public void shouldThrowExceptionWhenDeserializingNotCloudEventAvro() throws Exception- Throws:
Exception
-
shouldConvertToCloudEventsInAvroWithCustomCloudEventsSchemaName
@FixFor("DBZ-7235") public void shouldConvertToCloudEventsInAvroWithCustomCloudEventsSchemaName() throws Exception- Throws:
Exception
-
startConnector
- Throws:
Exception
-