Class AbstractExtractNewDocumentStateUpdateOperatorsTestIT
java.lang.Object
io.debezium.embedded.AbstractConnectorTest
io.debezium.connector.mongodb.AbstractMongoConnectorIT
io.debezium.connector.mongodb.transforms.AbstractExtractNewDocumentStateTestIT
io.debezium.connector.mongodb.transforms.UpdateOperators.AbstractExtractNewDocumentStateUpdateOperatorsTestIT
- All Implemented Interfaces:
Testing
- Direct Known Subclasses:
ExtractNewDocumentStateArrayOperatorTestIT,ExtractNewDocumentStateUpdateBitOperatorTestIT,ExtractNewDocumentStateUpdateFieldOperatorTestIT
abstract class AbstractExtractNewDocumentStateUpdateOperatorsTestIT
extends AbstractExtractNewDocumentStateTestIT
Integration test for
ExtractNewDocumentState. 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.
This tries to cover every mongo update operation as described in the official documentation
- Author:
- Renato Mefi
-
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
DB_NAME, SERVER_NAME, transformationFields inherited from class io.debezium.connector.mongodb.AbstractMongoConnectorIT
config, context, logInterceptorFields inherited from class io.debezium.embedded.AbstractConnectorTest
engine, logger, logTestName, OFFSET_STORE_PATH, pollTimeoutInMs, skipTestRule -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate Consumer<com.mongodb.client.MongoClient>createInsertItemDefault(int id) private Consumer<com.mongodb.client.MongoClient>createUpdateOneItem(int id, String document) (package private) org.apache.kafka.connect.source.SourceRecordexecuteSimpleUpdateOperation(String updateDocument) protected StringMethods inherited from class io.debezium.connector.mongodb.transforms.AbstractExtractNewDocumentStateTestIT
afterEach, beforeEach, beforeEach, getUpdateRecord, restartConnectorWithoutEmittingTombstones, topicNameMethods inherited from class io.debezium.connector.mongodb.AbstractMongoConnectorIT
connectionErrorHandler, deleteDocuments, dropAndInsertDocuments, getSnapshotMetricsObjectName, getSnapshotMetricsObjectName, getStreamingMetricsObjectName, getStreamingMetricsObjectName, insertDocuments, insertDocumentsInTx, loadTestDocuments, primary, 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, consumeDmlRecordsByTopic, consumeDmlRecordsByTopic, consumeDmlRecordsByTopic, consumeRecord, consumeRecords, consumeRecords, consumeRecords, consumeRecordsByTopic, consumeRecordsByTopic, consumeRecordsByTopic, consumeRecordsByTopicUntil, consumeRecordsUntil, debug, getMaximumEnqueuedRecordCount, getStreamingMetricsObjectName, getStreamingNamespace, initializeConnectorTestFramework, isStreamingRunning, isStreamingRunning, isTransactionRecord, loggingCompletion, print, readLastCommittedOffset, readLastCommittedOffsets, setConsumeTimeout, skipAvroValidation, start, start, start, start, start, startAndConsumeTillEnd, startAndConsumeTillEnd, stopConnector, stopConnector, validate, waitForAvailableRecords, waitForConnectorShutdown, waitForStreamingRunning, waitTimeForRecords, waitTimeForRecordsAfterNulls
-
Constructor Details
-
AbstractExtractNewDocumentStateUpdateOperatorsTestIT
AbstractExtractNewDocumentStateUpdateOperatorsTestIT()
-
-
Method Details
-
getCollectionName
- Specified by:
getCollectionNamein classAbstractExtractNewDocumentStateTestIT
-
executeSimpleUpdateOperation
org.apache.kafka.connect.source.SourceRecord executeSimpleUpdateOperation(String updateDocument) throws InterruptedException - Throws:
InterruptedException
-
createInsertItemDefault
-
createUpdateOneItem
-