public class ExtractNewDocumentStateTestIT extends AbstractExtractNewDocumentStateTestIT
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.AbstractConnectorTest.SourceRecordsTesting.Debug, Testing.Files, Testing.InterruptableFunction, Testing.Network, Testing.Print, Testing.Timer| Modifier and Type | Field and Description |
|---|---|
private static String |
ADD_FIELDS |
private static String |
ADD_FIELDS_PREFIX |
private static String |
ADD_HEADERS |
private static String |
ADD_HEADERS_PREFIX |
private static String |
ADD_SOURCE_FIELDS |
private static String |
ARRAY_ENCODING |
private static String |
CONFIG_DROP_TOMBSTONES |
private static String |
DELIMITER |
private static String |
DROP_TOMBSTONE |
private static String |
FLATTEN_STRUCT |
private static String |
HANDLE_DELETES |
private static String |
OPERATION_HEADER |
DB_NAME, SERVER_NAME, transformationengine, logger, logTestName, OFFSET_STORE_PATH, pollTimeoutInMs, skipTestRule| Constructor and Description |
|---|
ExtractNewDocumentStateTestIT() |
afterEach, beforeEach, beforeEach, getNextRecord, getRecordByOperation, getUpdateRecord, primary, restartConnectorWithoutEmittingTombstones, topicNameassertBeginTransaction, 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, 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 CONFIG_DROP_TOMBSTONES
private static final String HANDLE_DELETES
private static final String FLATTEN_STRUCT
private static final String DELIMITER
private static final String OPERATION_HEADER
private static final String DROP_TOMBSTONE
private static final String ADD_SOURCE_FIELDS
private static final String ADD_HEADERS
private static final String ADD_FIELDS
private static final String ADD_FIELDS_PREFIX
private static final String ADD_HEADERS_PREFIX
private static final String ARRAY_ENCODING
protected String getCollectionName()
getCollectionName in class AbstractExtractNewDocumentStateTestIT@FixFor(value="DBZ-563") public void shouldDropTombstoneByDefault() throws InterruptedException
InterruptedExceptionpublic void shouldTransformEvents()
throws InterruptedException,
IOException
InterruptedExceptionIOException@FixFor(value="DBZ-1767") public void shouldSupportDbRef() throws InterruptedException, IOException
InterruptedExceptionIOException@FixFor(value="DBZ-1442") public void shouldAddSourceFields() throws InterruptedException
InterruptedException@FixFor(value="DBZ-1442") public void shouldAddSourceFieldsForRewriteDeleteEvent() throws InterruptedException
InterruptedExceptionpublic void shouldTransformRecordForInsertEvent()
throws InterruptedException
InterruptedExceptionpublic void shouldTransformRecordForInsertEventWithComplexIdType()
throws InterruptedException
InterruptedExceptionpublic void shouldGenerateRecordForUpdateEvent()
throws InterruptedException
InterruptedException@FixFor(value="DBZ-612") public void shouldGenerateRecordForUpdateEventWithUnset() throws InterruptedException
InterruptedException@FixFor(value="DBZ-612") public void shouldGenerateRecordForUnsetOnlyUpdateEvent() throws InterruptedException
InterruptedException@FixFor(value="DBZ-582") public void shouldGenerateRecordForDeleteEventWithoutTombstone() throws InterruptedException
InterruptedException@FixFor(value="DBZ-1032") public void shouldGenerateRecordHeaderForTombstone() throws InterruptedException
InterruptedException@FixFor(value="DBZ-583") public void shouldDropDeleteMessagesByDefault() throws InterruptedException
InterruptedException@FixFor(value="DBZ-583") public void shouldRewriteDeleteMessage() throws InterruptedException
InterruptedException@FixFor(value="DBZ-583") public void shouldRewriteMessagesWhichAreNotDeletes() throws InterruptedException
InterruptedExceptionpublic void shouldGenerateRecordForDeleteEvent()
throws InterruptedException
InterruptedException@FixFor(value="DBZ-971") public void shouldPropagatePreviousRecordHeaders() throws InterruptedException
InterruptedExceptionpublic void shouldNotFlattenTransformRecordForInsertEvent()
throws InterruptedException
InterruptedExceptionpublic void shouldFlattenTransformRecordForInsertEvent()
throws InterruptedException
InterruptedExceptionpublic void shouldFlattenWithDelimiterTransformRecordForInsertEvent()
throws InterruptedException
InterruptedExceptionpublic void shouldFlattenWithDelimiterTransformRecordForUpdateEvent()
throws InterruptedException
InterruptedException@FixFor(value="DBZ-1791") public void testAddHeader() throws Exception
Exception@FixFor(value="DBZ-1791") public void testAddHeadersForMissingOrInvalidFields() throws Exception
Exception@FixFor(value={"DBZ-1791","DBZ-2504"}) public void testAddHeadersSpecifyingStruct() throws Exception
Exception@FixFor(value="DBZ-1791") public void testAddField() throws Exception
Exception@FixFor(value={"DBZ-1791","DBZ-2504"}) public void testAddFields() throws Exception
Exception@FixFor(value="DBZ-1791") public void testAddFieldsForMissingOptionalField() throws Exception
Exception@FixFor(value="DBZ-1791") public void testAddFieldsSpecifyStruct() throws Exception
Exception@FixFor(value="DBZ-1791") public void testAddFieldHandleDeleteRewrite() throws Exception
Exception@FixFor(value="DBZ-1791") public void tesAddFieldsHandleDeleteRewrite() throws Exception
Exception@FixFor(value="DBZ-1791") public void testAddFieldsSpecifyStructHandleDeleteRewrite() throws Exception
Exception@FixFor(value="DBZ-1791") public void testAddFieldsHandleDeleteRewriteAndTombstone() throws Exception
Exception@FixFor(value="DBZ-2585") public void testEmptyArray() throws InterruptedException, IOException
InterruptedExceptionIOException@FixFor(value="DBZ-2455") public void testAddPatchFieldAfterUpdate() throws Exception
Exception@FixFor(value="DBZ-2316") public void testShouldThrowExceptionWithElementsDifferingStructures() throws Exception
Exception@FixFor(value="DBZ-2569") public void testMatrixType() throws InterruptedException, IOException
InterruptedExceptionIOException@FixFor(value="DBZ-2569") public void testMatrixArrayAsDocumentType() throws InterruptedException, IOException
InterruptedExceptionIOExceptionprivate AbstractConnectorTest.SourceRecords createCreateRecordFromJson(String pathOnClasspath) throws Exception
Exceptionprivate org.apache.kafka.connect.source.SourceRecord createCreateRecord()
throws Exception
Exceptionprivate AbstractConnectorTest.SourceRecords createDeleteRecordWithTombstone() throws Exception
Exceptionprivate static void waitForStreamingRunning()
throws InterruptedException
InterruptedExceptionCopyright © 2021 JBoss by Red Hat. All rights reserved.