Class ExtractNewDocumentStateUpdateFieldOperatorTestIT
- java.lang.Object
-
- io.debezium.embedded.AbstractConnectorTest
-
- io.debezium.connector.mongodb.transforms.AbstractExtractNewDocumentStateTestIT
-
- io.debezium.connector.mongodb.transforms.UpdateOperators.AbstractExtractNewDocumentStateUpdateOperatorsTestIT
-
- io.debezium.connector.mongodb.transforms.UpdateOperators.ExtractNewDocumentStateUpdateFieldOperatorTestIT
-
- All Implemented Interfaces:
Testing
public class ExtractNewDocumentStateUpdateFieldOperatorTestIT extends AbstractExtractNewDocumentStateUpdateOperatorsTestIT
Integration test forExtractNewDocumentState.This subset of tests cover the Field Update Operator as in the official documentation {@see https://docs.mongodb.com/v3.6/reference/operator/update-field/#field-update-operators}
- Author:
- Renato Mefi
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.debezium.embedded.AbstractConnectorTest
AbstractConnectorTest.SourceRecords
-
Nested 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, transformation
-
Fields inherited from class io.debezium.embedded.AbstractConnectorTest
engine, logger, logTestName, OFFSET_STORE_PATH, pollTimeoutInMs, skipTestRule
-
-
Constructor Summary
Constructors Constructor Description ExtractNewDocumentStateUpdateFieldOperatorTestIT()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidshouldTransformOperationInc()voidshouldTransformOperationMax()voidshouldTransformOperationMin()voidshouldTransformOperationMul()voidshouldTransformOperationRename()voidshouldTransformOperationSet()voidshouldTransformOperationSetOnInsert()voidshouldTransformOperationUnset()-
Methods inherited from class io.debezium.connector.mongodb.transforms.UpdateOperators.AbstractExtractNewDocumentStateUpdateOperatorsTestIT
executeSimpleUpdateOperation, getCollectionName
-
Methods inherited from class io.debezium.connector.mongodb.transforms.AbstractExtractNewDocumentStateTestIT
afterEach, beforeEach, beforeEach, getUpdateRecord, primary, restartConnectorWithoutEmittingTombstones, topicName
-
Methods 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, debug, getMaximumEnqueuedRecordCount, getSnapshotMetricsObjectName, getStreamingMetricsObjectName, getStreamingMetricsObjectName, getStreamingNamespace, initializeConnectorTestFramework, isStreamingRunning, isStreamingRunning, isTransactionRecord, loggingCompletion, print, readLastCommittedOffset, readLastCommittedOffsets, setConsumeTimeout, skipAvroValidation, start, start, start, start, start, startAndConsumeTillEnd, startAndConsumeTillEnd, stopConnector, stopConnector, validate, waitForAvailableRecords, waitForConnectorShutdown, waitForSnapshotToBeCompleted, waitForStreamingRunning, waitForStreamingRunning, waitTimeForRecords, waitTimeForRecordsAfterNulls
-
-
-
-
Method Detail
-
shouldTransformOperationInc
public void shouldTransformOperationInc() throws InterruptedException- Throws:
InterruptedException- See Also:
- MongoDB operator update $inc
-
shouldTransformOperationMin
public void shouldTransformOperationMin() throws InterruptedException- Throws:
InterruptedException- See Also:
- MongoDB operator update $min
-
shouldTransformOperationMax
public void shouldTransformOperationMax() throws InterruptedException- Throws:
InterruptedException- See Also:
- MongoDB operator update $max
-
shouldTransformOperationMul
public void shouldTransformOperationMul() throws InterruptedException- Throws:
InterruptedException- See Also:
- MongoDB operator update $mul
-
shouldTransformOperationRename
public void shouldTransformOperationRename() throws InterruptedException- Throws:
InterruptedException- See Also:
- MongoDB operator update $rename
-
shouldTransformOperationSet
public void shouldTransformOperationSet() throws InterruptedException- Throws:
InterruptedException- See Also:
- MongoDB operator update $set For more extensive tests for the $set operator please check: io.debezium.connector.mongodb.transforms.ExtractNewDocumentStateTest io.debezium.connector.mongodb.transforms.ExtractNewDocumentStateTestIT
-
shouldTransformOperationSetOnInsert
public void shouldTransformOperationSetOnInsert() throws InterruptedException- Throws:
InterruptedException- See Also:
- MongoDB operator update $setOnInsert
-
shouldTransformOperationUnset
public void shouldTransformOperationUnset() throws InterruptedException- Throws:
InterruptedException- See Also:
- MongoDB operator update $unset For more details on how the Unset is implemented please refer to:, DBZ-612 Implementation
-
-