Class AbstractExtractNewDocumentStateTestIT
- java.lang.Object
-
- io.debezium.embedded.AbstractConnectorTest
-
- io.debezium.connector.mongodb.transforms.AbstractExtractNewDocumentStateTestIT
-
- All Implemented Interfaces:
Testing
- Direct Known Subclasses:
AbstractExtractNewDocumentStateUpdateOperatorsTestIT,ExtractNewDocumentStateTestIT
public abstract class AbstractExtractNewDocumentStateTestIT extends AbstractConnectorTest
Baseline for all integrations tests regarding MongoDB Update Operations- 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 Modifier and Type Field Description private io.debezium.connector.mongodb.MongoDbTaskContextcontextprotected static StringDB_NAMEprotected static StringSERVER_NAMEprotected io.debezium.connector.mongodb.transforms.ExtractNewDocumentState<org.apache.kafka.connect.source.SourceRecord>transformation-
Fields inherited from class io.debezium.embedded.AbstractConnectorTest
engine, logger, logTestName, OFFSET_STORE_PATH, pollTimeoutInMs, skipTestRule
-
-
Constructor Summary
Constructors Constructor Description AbstractExtractNewDocumentStateTestIT()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidafterEach()voidbeforeEach()voidbeforeEach(Configuration config)private BiConsumer<String,Throwable>connectionErrorHandler(int numErrorsBeforeFailing)protected abstract StringgetCollectionName()(package private) org.apache.kafka.connect.source.SourceRecordgetNextRecord()(package private) org.apache.kafka.connect.source.SourceRecordgetRecordByOperation(Envelope.Operation operation)protected org.apache.kafka.connect.source.SourceRecordgetUpdateRecord()protected io.debezium.connector.mongodb.ConnectionContext.MongoPrimaryprimary()protected voidrestartConnectorWithoutEmittingTombstones()protected StringtopicName()-
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, stopConnector, stopConnector, validate, waitForAvailableRecords, waitForConnectorShutdown, waitForSnapshotToBeCompleted, waitForStreamingRunning, waitForStreamingRunning, waitTimeForRecords, waitTimeForRecordsAfterNulls
-
-
-
-
Field Detail
-
DB_NAME
protected static final String DB_NAME
- See Also:
- Constant Field Values
-
SERVER_NAME
protected static final String SERVER_NAME
- See Also:
- Constant Field Values
-
context
private io.debezium.connector.mongodb.MongoDbTaskContext context
-
transformation
protected io.debezium.connector.mongodb.transforms.ExtractNewDocumentState<org.apache.kafka.connect.source.SourceRecord> transformation
-
-
Method Detail
-
getCollectionName
protected abstract String getCollectionName()
-
topicName
protected String topicName()
-
beforeEach
public void beforeEach()
-
beforeEach
public void beforeEach(Configuration config)
-
afterEach
public void afterEach()
-
restartConnectorWithoutEmittingTombstones
protected void restartConnectorWithoutEmittingTombstones()
-
getRecordByOperation
org.apache.kafka.connect.source.SourceRecord getRecordByOperation(Envelope.Operation operation) throws InterruptedException
- Throws:
InterruptedException
-
getNextRecord
org.apache.kafka.connect.source.SourceRecord getNextRecord() throws InterruptedException- Throws:
InterruptedException
-
getUpdateRecord
protected org.apache.kafka.connect.source.SourceRecord getUpdateRecord() throws InterruptedException- Throws:
InterruptedException
-
primary
protected io.debezium.connector.mongodb.ConnectionContext.MongoPrimary primary()
-
connectionErrorHandler
private BiConsumer<String,Throwable> connectionErrorHandler(int numErrorsBeforeFailing)
-
-