Class ExtractNewDocumentStateTestIT
java.lang.Object
io.debezium.embedded.AbstractConnectorTest
io.debezium.connector.mongodb.AbstractMongoConnectorIT
io.debezium.connector.mongodb.transforms.AbstractExtractNewDocumentStateTestIT
io.debezium.connector.mongodb.transforms.ExtractNewDocumentStateTestIT
- All Implemented Interfaces:
Testing
Integration test for
ExtractNewDocumentState and DefaultDeleteHandlingStrategy. It sends operations into
MongoDB and listens on messages that are generated by Debezium plug-in. The messages
are then run through the SMT itself.- Author:
- Harvey Yue
-
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.connector.mongodb.transforms.AbstractExtractNewDocumentStateTestIT
ADD_FIELDS, ADD_FIELDS_PREFIX, ADD_HEADERS, ADD_HEADERS_PREFIX, ARRAY_ENCODING, CONFIG_DROP_TOMBSTONES, DB_NAME, DELIMITER, DROP_TOMBSTONE, FLATTEN_STRUCT, HANDLE_DELETES, HANDLE_TOMBSTONE_DELETES, SERVER_NAME, transformationFields 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 TypeMethodDescriptionprotected StringvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidMethods inherited from class io.debezium.connector.mongodb.transforms.AbstractExtractNewDocumentStateTestIT
afterEach, beforeEach, beforeEach, createCreateRecord, createCreateRecordFromJson, createDeleteRecordWithTombstone, getBaseConfigBuilder, getNextRecord, getRecordByOperation, getSourceRecordHeaderByKey, getUpdateRecord, restartConnectorWithConfig, restartConnectorWithoutEmittingTombstones, topicName, waitForStreamingRunningMethods inherited from class io.debezium.connector.mongodb.AbstractMongoConnectorIT
afterAll, 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, 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, validate, waitForAvailableRecords, waitForConnectorShutdown, waitForSnapshotToBeCompleted, waitForSnapshotWithCustomMetricsToBeCompleted, waitForStreamingRunning, waitForStreamingRunning, waitForStreamingWithCustomMetricsToStart, waitTimeForRecords, waitTimeForRecordsAfterNulls
-
Constructor Details
-
ExtractNewDocumentStateTestIT
public ExtractNewDocumentStateTestIT()
-
-
Method Details
-
getCollectionName
- Specified by:
getCollectionNamein classAbstractExtractNewDocumentStateTestIT
-
shouldDropTombstoneByDefault
- Throws:
InterruptedException
-
shouldTransformEvents
- Throws:
InterruptedExceptionIOException
-
shouldSupportDbRef
- Throws:
InterruptedExceptionIOException
-
shouldSupportSubSanitizeFieldName
@FixFor("DBZ-2680") public void shouldSupportSubSanitizeFieldName() throws InterruptedException, IOException- Throws:
InterruptedExceptionIOException
-
shouldAddFields
- Throws:
InterruptedException
-
shouldAddFieldsForRewriteDeleteEvent
- Throws:
InterruptedException
-
shouldTransformRecordForInsertEvent
- Throws:
InterruptedException
-
shouldTransformRecordForInsertEventWithComplexIdType
- Throws:
InterruptedException
-
shouldGenerateRecordForUpdateEvent
- Throws:
InterruptedException
-
shouldGenerateRecordForPartialUpdateEvent
- Throws:
InterruptedException
-
shouldGenerateRecordForSetOnlyPartialUpdateEvent
- Throws:
InterruptedException
-
shouldGenerateRecordForUpdateEventWithUnset
@FixFor("DBZ-612") public void shouldGenerateRecordForUpdateEventWithUnset() throws InterruptedException- Throws:
InterruptedException
-
shouldGenerateRecordForUnsetOnlyUpdateEvent
@FixFor("DBZ-612") public void shouldGenerateRecordForUnsetOnlyUpdateEvent() throws InterruptedException- Throws:
InterruptedException
-
shouldGenerateRecordForDeleteEventWithoutTombstone
@FixFor("DBZ-582") public void shouldGenerateRecordForDeleteEventWithoutTombstone() throws InterruptedException- Throws:
InterruptedException
-
shouldGenerateRecordHeaderForTombstone
@FixFor("DBZ-1032") public void shouldGenerateRecordHeaderForTombstone() throws InterruptedException- Throws:
InterruptedException
-
shouldDropDeleteMessagesByDefault
- Throws:
InterruptedException
-
shouldRewriteDeleteMessage
- Throws:
InterruptedException
-
shouldRewriteMessagesWhichAreNotDeletes
@FixFor("DBZ-583") public void shouldRewriteMessagesWhichAreNotDeletes() throws InterruptedException- Throws:
InterruptedException
-
shouldGenerateRecordForDeleteEvent
- Throws:
InterruptedException
-
shouldPropagatePreviousRecordHeaders
- Throws:
InterruptedException
-
shouldNotFlattenTransformRecordForInsertEvent
- Throws:
InterruptedException
-
shouldFlattenTransformRecordForInsertEvent
- Throws:
InterruptedException
-
shouldFlattenWithDelimiterTransformRecordForInsertEvent
- Throws:
InterruptedException
-
shouldFlattenWithDelimiterTransformRecordForUpdateEvent
- Throws:
InterruptedException
-
testAddHeader
- Throws:
Exception
-
testAddHeadersForMissingOrInvalidFields
- Throws:
Exception
-
testAddHeadersSpecifyingStruct
- Throws:
Exception
-
testAddField
- Throws:
Exception
-
testNewFieldAndHeaderMapping
- Throws:
Exception
-
testAddFields
- Throws:
Exception
-
testAddFieldsForMissingOptionalField
- Throws:
Exception
-
testAddFieldsSpecifyStruct
- Throws:
Exception
-
testAddFieldHandleDeleteRewrite
- Throws:
Exception
-
tesAddFieldsHandleDeleteRewrite
- Throws:
Exception
-
testAddFieldsSpecifyStructHandleDeleteRewrite
- Throws:
Exception
-
testAddFieldsHandleDeleteRewriteAndTombstone
- Throws:
Exception
-
testEmptyArray
- Throws:
InterruptedExceptionIOException
-
testAddUpdatedFieldAfterUpdate
- Throws:
Exception
-
testShouldThrowExceptionWithElementsDifferingStructures
@FixFor("DBZ-2316") public void testShouldThrowExceptionWithElementsDifferingStructures() throws Exception- Throws:
Exception
-
testMatrixType
- Throws:
InterruptedExceptionIOException
-
testMatrixArrayAsDocumentType
@FixFor("DBZ-2569") public void testMatrixArrayAsDocumentType() throws InterruptedException, IOException- Throws:
InterruptedExceptionIOException
-
shouldSupportNestedArrays
- Throws:
InterruptedException
-
shouldAddUpdateDescription
- Throws:
Exception
-
shouldGenerateRecordForDeleteEventsDeleteHandlingRewrite
@FixFor("DBZ-6725") public void shouldGenerateRecordForDeleteEventsDeleteHandlingRewrite() throws InterruptedException- Throws:
InterruptedException
-
testConnectorAndTransformAvroFieldNameAdjustment
@FixFor("DBZ-6809") public void testConnectorAndTransformAvroFieldNameAdjustment() throws InterruptedException, IOException- Throws:
InterruptedExceptionIOException
-