Package io.debezium.connector.mongodb
Class CloudEventsConverterIT
java.lang.Object
io.debezium.embedded.AbstractConnectorTest
io.debezium.connector.mongodb.AbstractMongoConnectorIT
io.debezium.connector.mongodb.CloudEventsConverterIT
- All Implemented Interfaces:
Testing
Test to verify MongoDB connector behaviour with CloudEvents converter for all streaming events.
- Author:
- Jiri Pechanec
-
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 TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static final StringFields inherited from class io.debezium.connector.mongodb.AbstractMongoConnectorIT
config, context, logInterceptor, mongoFields inherited from class io.debezium.embedded.AbstractConnectorTest
consumedLines, engine, isEngineRunning, logger, logTestName, OFFSET_STORE_PATH, pollTimeoutInMs, skipTestRule -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprivate ConfigurationvoidvoidvoidvoidvoidvoidvoidvoidMethods inherited from class io.debezium.connector.mongodb.AbstractMongoConnectorIT
afterAll, afterEach, beforeAll, connect, deleteDocuments, dropAndInsertDocuments, getSnapshotMetricsObjectName, getSnapshotMetricsObjectName, getStreamingMetricsObjectName, getStreamingMetricsObjectName, insertDocuments, insertDocumentsInTx, loadTestDocuments, storeDocuments, storeDocuments, updateDocument, updateDocumentsInTx, waitForSnapshotToBeCompleted, waitForSnapshotToBeCompleted, waitForStreamingRunning, waitForStreamingRunningMethods 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, createEngine, createEngineBuilder, debug, getConsumer, getMaximumEnqueuedRecordCount, getSnapshotMetricsObjectName, getSnapshotMetricsObjectName, 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, waitForSnapshotWithCustomMetricsToBeCompleted, waitForStreamingRunning, waitForStreamingRunning, waitForStreamingWithCustomMetricsToStart, waitTimeForEngine, waitTimeForRecords, waitTimeForRecordsAfterNulls
-
Field Details
-
SERVER_NAME
- See Also:
-
DB_NAME
- See Also:
-
COLLECTION_NAME
- See Also:
-
-
Constructor Details
-
CloudEventsConverterIT
public CloudEventsConverterIT()
-
-
Method Details
-
beforeEach
public void beforeEach()- Overrides:
beforeEachin classAbstractMongoConnectorIT
-
testCorrectFormat
- 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
-
shouldConvertToCloudEventsInJsonWithGeneratedIdAndTypeFromHeader
@FixFor("DBZ-7016") public void shouldConvertToCloudEventsInJsonWithGeneratedIdAndTypeFromHeader() 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
-
getConfiguration
-