public class MongoDbConnectorIT 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.ReplicationContext |
context |
engine, logger, OFFSET_STORE_PATH, pollTimeoutInMs, skipTestRule| Constructor and Description |
|---|
MongoDbConnectorIT() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterEach() |
void |
beforeEach() |
protected BiConsumer<String,Throwable> |
connectionErrorHandler(int numErrorsBeforeFailing) |
protected List<org.bson.Document> |
loadTestDocuments(String pathOnClasspath) |
protected io.debezium.connector.mongodb.ConnectionContext.MongoPrimary |
primary() |
void |
shouldConsumeAllEventsFromDatabase() |
void |
shouldFailToValidateInvalidConfiguration() |
void |
shouldNotStartWithInvalidConfiguration()
Verifies that the connector doesn't run with an invalid configuration.
|
void |
shouldUseSSL() |
void |
shouldValidateAcceptableConfiguration() |
protected void |
storeDocuments(com.mongodb.client.MongoCollection<org.bson.Document> collection,
String pathOnClasspath) |
protected void |
storeDocuments(String dbName,
String collectionName,
String pathOnClasspath) |
protected void |
verifyCreateOperation(org.apache.kafka.connect.source.SourceRecord record) |
protected void |
verifyDeleteOperation(org.apache.kafka.connect.source.SourceRecord record) |
protected void |
verifyFromInitialSync(org.apache.kafka.connect.source.SourceRecord record,
AtomicBoolean foundLast) |
protected void |
verifyNotFromInitialSync(org.apache.kafka.connect.source.SourceRecord record) |
protected void |
verifyOperation(org.apache.kafka.connect.source.SourceRecord record,
Envelope.Operation expected) |
protected void |
verifyReadOperation(org.apache.kafka.connect.source.SourceRecord record) |
protected void |
verifyUpdateOperation(org.apache.kafka.connect.source.SourceRecord record) |
assertConfigurationErrors, assertConfigurationErrors, assertConfigurationErrors, assertConnectorIsRunning, assertConnectorNotRunning, assertDelete, assertEngineIsRunning, assertInsert, assertKey, assertNoConfigurationErrors, assertNoRecordsToConsume, assertOffset, assertOffset, assertSchemaMatchesStruct, assertSchemaMatchesStruct, assertTombstone, assertTombstone, assertUpdate, assertValueField, configValue, consumeAvailableRecords, consumeRecord, consumeRecords, consumeRecords, consumeRecordsByTopic, debug, getMaximumEnqueuedRecordCount, initializeConnectorTestFramework, loggingCompletion, print, readLastCommittedOffset, readLastCommittedOffsets, setConsumeTimeout, start, start, start, start, stopConnector, stopConnector, validate, waitForAvailableRecordsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdebug, once, once, print, print, printError, printError, printError, resetBeforeEachTest, time, timeprivate Configuration config
private io.debezium.connector.mongodb.ReplicationContext context
public void beforeEach()
public void afterEach()
public void shouldNotStartWithInvalidConfiguration()
public void shouldFailToValidateInvalidConfiguration()
public void shouldValidateAcceptableConfiguration()
public void shouldConsumeAllEventsFromDatabase()
throws InterruptedException,
IOException
InterruptedExceptionIOExceptionprotected void verifyFromInitialSync(org.apache.kafka.connect.source.SourceRecord record,
AtomicBoolean foundLast)
protected void verifyNotFromInitialSync(org.apache.kafka.connect.source.SourceRecord record)
protected void verifyCreateOperation(org.apache.kafka.connect.source.SourceRecord record)
protected void verifyReadOperation(org.apache.kafka.connect.source.SourceRecord record)
protected void verifyUpdateOperation(org.apache.kafka.connect.source.SourceRecord record)
protected void verifyDeleteOperation(org.apache.kafka.connect.source.SourceRecord record)
protected void verifyOperation(org.apache.kafka.connect.source.SourceRecord record,
Envelope.Operation expected)
protected io.debezium.connector.mongodb.ConnectionContext.MongoPrimary primary()
protected void storeDocuments(String dbName, String collectionName, String pathOnClasspath)
protected void storeDocuments(com.mongodb.client.MongoCollection<org.bson.Document> collection,
String pathOnClasspath)
protected BiConsumer<String,Throwable> connectionErrorHandler(int numErrorsBeforeFailing)
public void shouldUseSSL()
throws InterruptedException,
IOException
InterruptedExceptionIOExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.