public class FieldBlacklistIT extends AbstractConnectorTest
AbstractConnectorTest.SourceRecordsTesting.Debug, Testing.Files, Testing.InterruptableFunction, Testing.Network, Testing.Print, Testing.Timer| Modifier and Type | Field and Description |
|---|---|
private Configuration |
config |
private io.debezium.connector.mongodb.MongoDbTaskContext |
context |
private static String |
PATCH |
private static String |
SERVER_NAME |
engine, logger, logTestName, OFFSET_STORE_PATH, pollTimeoutInMs, skipTestRule| Constructor and Description |
|---|
FieldBlacklistIT() |
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, stopConnector, stopConnector, validate, waitForAvailableRecords, waitForConnectorShutdown, waitForSnapshotToBeCompleted, waitForStreamingRunning, waitForStreamingRunning, waitTimeForRecordsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdebug, once, once, print, print, printError, printError, printError, resetBeforeEachTest, time, timeprivate static final String SERVER_NAME
private static final String PATCH
private Configuration config
private io.debezium.connector.mongodb.MongoDbTaskContext context
public void beforeEach()
public void afterEach()
public void shouldNotExcludeFieldsForEventOfOtherCollection()
throws InterruptedException
InterruptedExceptionpublic void shouldExcludeFieldsForReadEvent()
throws InterruptedException
InterruptedExceptionpublic void shouldNotExcludeMissingFieldsForReadEvent()
throws InterruptedException
InterruptedExceptionpublic void shouldExcludeNestedFieldsForReadEvent()
throws InterruptedException
InterruptedExceptionpublic void shouldNotExcludeNestedMissingFieldsForReadEvent()
throws InterruptedException
InterruptedExceptionpublic void shouldExcludeFieldsForInsertEvent()
throws InterruptedException
InterruptedExceptionpublic void shouldNotExcludeMissingFieldsForInsertEvent()
throws InterruptedException
InterruptedExceptionpublic void shouldExcludeNestedFieldsForInsertEvent()
throws InterruptedException
InterruptedExceptionpublic void shouldNotExcludeNestedMissingFieldsForInsertEvent()
throws InterruptedException
InterruptedExceptionpublic void shouldExcludeFieldsForUpdateEvent()
throws InterruptedException
InterruptedExceptionpublic void shouldNotExcludeMissingFieldsForUpdateEvent()
throws InterruptedException
InterruptedExceptionpublic void shouldExcludeNestedFieldsForUpdateEventWithEmbeddedDocument()
throws InterruptedException
InterruptedExceptionpublic void shouldNotExcludeNestedMissingFieldsForUpdateEventWithEmbeddedDocument()
throws InterruptedException
InterruptedExceptionpublic void shouldExcludeNestedFieldsForUpdateEventWithArrayOfEmbeddedDocuments()
throws InterruptedException
InterruptedExceptionpublic void shouldNotExcludeNestedFieldsForUpdateEventWithArrayOfArrays()
throws InterruptedException
InterruptedExceptionpublic void shouldExcludeFieldsForSetTopLevelFieldUpdateEvent()
throws InterruptedException
InterruptedExceptionpublic void shouldExcludeFieldsForUnsetTopLevelFieldUpdateEvent()
throws InterruptedException
InterruptedExceptionpublic void shouldExcludeNestedFieldsForSetTopLevelFieldUpdateEventWithEmbeddedDocument()
throws InterruptedException
InterruptedExceptionpublic void shouldExcludeNestedFieldsForSetTopLevelFieldUpdateEventWithArrayOfEmbeddedDocuments()
throws InterruptedException
InterruptedExceptionpublic void shouldNotExcludeNestedFieldsForSetTopLevelFieldUpdateEventWithArrayOfArrays()
throws InterruptedException
InterruptedExceptionpublic void shouldExcludeNestedFieldsForSetNestedFieldUpdateEventWithEmbeddedDocument()
throws InterruptedException
InterruptedExceptionpublic void shouldExcludeNestedFieldsForSetNestedFieldUpdateEventWithArrayOfEmbeddedDocuments()
throws InterruptedException
InterruptedExceptionpublic void shouldNotExcludeNestedFieldsForSetNestedFieldUpdateEventWithArrayOfArrays()
throws InterruptedException
InterruptedExceptionpublic void shouldExcludeNestedFieldsForSetNestedFieldUpdateEventWithSeveralArrays()
throws InterruptedException
InterruptedExceptionpublic void shouldExcludeFieldsForSetNestedFieldUpdateEventWithArrayOfEmbeddedDocuments()
throws InterruptedException
InterruptedExceptionpublic void shouldExcludeFieldsForSetToArrayFieldUpdateEventWithArrayOfEmbeddedDocuments()
throws InterruptedException
InterruptedExceptionpublic void shouldExcludeNestedFieldsForUnsetNestedFieldUpdateEventWithEmbeddedDocument()
throws InterruptedException
InterruptedExceptionpublic void shouldExcludeNestedFieldsForUnsetNestedFieldUpdateEventWithArrayOfEmbeddedDocuments()
throws InterruptedException
InterruptedExceptionpublic void shouldNotExcludeNestedFieldsForUnsetNestedFieldUpdateEventWithArrayOfArrays()
throws InterruptedException
InterruptedExceptionpublic void shouldExcludeNestedFieldsForUnsetNestedFieldUpdateEventWithSeveralArrays()
throws InterruptedException
InterruptedExceptionpublic void shouldExcludeFieldsForUnsetNestedFieldUpdateEventWithArrayOfEmbeddedDocuments()
throws InterruptedException
InterruptedExceptionpublic void shouldExcludeFieldsForDeleteEvent()
throws InterruptedException
InterruptedExceptionpublic void shouldExcludeFieldsForDeleteTombstoneEvent()
throws InterruptedException
InterruptedExceptionprivate Configuration getConfiguration(String blackList)
private org.apache.kafka.connect.data.Struct getValue(org.apache.kafka.connect.source.SourceRecord record)
private BiConsumer<String,Throwable> connectionErrorHandler(int numErrorsBeforeFailing)
private io.debezium.connector.mongodb.ConnectionContext.MongoPrimary primary()
private void storeDocuments(String dbName, String collectionName, org.bson.Document... documents)
private void updateDocuments(String dbName, String collectionName, org.bson.types.ObjectId objId, org.bson.Document document, boolean doSet)
private void deleteDocuments(String dbName, String collectionName, org.bson.types.ObjectId objId)
private void assertReadRecord(String blackList, org.bson.Document snapshotRecord, String field, String expected) throws InterruptedException
InterruptedExceptionprivate void assertInsertRecord(String blackList, org.bson.Document insertRecord, String field, String expected) throws InterruptedException
InterruptedExceptionprivate void assertUpdateRecord(String blackList, org.bson.types.ObjectId objectId, org.bson.Document snapshotRecord, org.bson.Document updateRecord, String field, String expected) throws InterruptedException
InterruptedExceptionprivate void assertUpdateRecord(String blackList, org.bson.types.ObjectId objectId, org.bson.Document snapshotRecord, org.bson.Document updateRecord, boolean doSet, String field, String expected) throws InterruptedException
InterruptedExceptionCopyright © 2021 JBoss by Red Hat. All rights reserved.