Class ShardedMongoConnectorIT

java.lang.Object
io.debezium.embedded.AbstractConnectorTest
io.debezium.connector.mongodb.ShardedMongoConnectorIT
All Implemented Interfaces:
Testing

public class ShardedMongoConnectorIT extends AbstractConnectorTest
  • Field Details

  • Constructor Details

    • ShardedMongoConnectorIT

      public ShardedMongoConnectorIT()
  • Method Details

    • beforeAll

      public static void beforeAll()
    • afterAll

      public static void afterAll()
    • beforeEach

      public void beforeEach()
    • afterEach

      public void afterEach()
    • populateCollection

      protected static void populateCollection(String dbName, String colName, int count)
    • populateCollection

      protected static void populateCollection(String dbName, String colName, int startId, int count)
    • shouldConsumeAllEventsFromDatabaseWithShardedConnectionMode

      public void shouldConsumeAllEventsFromDatabaseWithShardedConnectionMode() throws InterruptedException
      Throws:
      InterruptedException
    • shouldConsumeAllEventsFromDatabaseWithReplicaSetConnectionMode

      public void shouldConsumeAllEventsFromDatabaseWithReplicaSetConnectionMode() throws InterruptedException
      Throws:
      InterruptedException
    • shouldConsumeAllEventsFromDatabase

      public void shouldConsumeAllEventsFromDatabase(io.debezium.connector.mongodb.MongoDbConnectorConfig.ConnectionMode connectionMode) throws InterruptedException
      Throws:
      InterruptedException
    • connect

      protected static com.mongodb.client.MongoClient connect()
    • consumeAndVerifyFromInitialSync

      protected void consumeAndVerifyFromInitialSync(io.debezium.connector.mongodb.MongoDbConnectorConfig.ConnectionMode connectionMode, String topic, int expectedRecords) throws InterruptedException
      Throws:
      InterruptedException
    • verifyFromInitialSync

      protected void verifyFromInitialSync(org.apache.kafka.connect.source.SourceRecord record, int numOfShards, AtomicInteger lastCounter)
    • consumeAndVerifyNotFromInitialSync

      protected void consumeAndVerifyNotFromInitialSync(String topic, int expectedRecords) throws InterruptedException
      Throws:
      InterruptedException
    • consumeAndVerifyNotFromInitialSync

      protected void consumeAndVerifyNotFromInitialSync(String topic, int expectedRecords, Envelope.Operation op) throws InterruptedException
      Throws:
      InterruptedException
    • verifyNotFromInitialSync

      protected void verifyNotFromInitialSync(org.apache.kafka.connect.source.SourceRecord record)
    • verifyOperation

      protected void verifyOperation(org.apache.kafka.connect.source.SourceRecord record, Envelope.Operation expected)